CloudWatchLogs / Client / put_bearer_token_authentication

put_bearer_token_authentication

CloudWatchLogs.Client.put_bearer_token_authentication(**kwargs)

Enables or disables bearer token authentication for the specified log group. When enabled on a log group, bearer token authentication is enabled on operations until it is explicitly disabled.

For information about the parameters that are common to all actions, see Common Parameters.

See also: AWS API Documentation

Request Syntax

response = client.put_bearer_token_authentication(
    logGroupIdentifier='string',
    bearerTokenAuthenticationEnabled=True|False
)
Parameters:
  • logGroupIdentifier (string) –

    [REQUIRED]

    The name or ARN of the log group.

    Type: String

    Length Constraints: Minimum length of 1. Maximum length of 512.

    Pattern: [\.\-_/#A-Za-z0-9]+

    Required: Yes

  • bearerTokenAuthenticationEnabled (boolean) –

    [REQUIRED]

    Whether to enable bearer token authentication.

    Type: Boolean

    Required: Yes

Returns:

None

Exceptions

  • CloudWatchLogs.Client.exceptions.InvalidParameterException

  • CloudWatchLogs.Client.exceptions.ResourceNotFoundException

  • CloudWatchLogs.Client.exceptions.AccessDeniedException

  • CloudWatchLogs.Client.exceptions.OperationAbortedException

  • CloudWatchLogs.Client.exceptions.ServiceUnavailableException

  • CloudWatchLogs.Client.exceptions.InvalidOperationException