Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

create_logging_configuration

create_logging_configuration(**kwargs)

Create logging configuration.

See also: AWS API Documentation

Request Syntax

response = client.create_logging_configuration(
    clientToken='string',
    logGroupArn='string',
    workspaceId='string'
)
Parameters
  • clientToken (string) --

    Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.

    This field is autopopulated if not provided.

  • logGroupArn (string) --

    [REQUIRED]

    The ARN of the CW log group to which the vended log data will be published.

  • workspaceId (string) --

    [REQUIRED]

    The ID of the workspace to vend logs to.

Return type

dict

Returns

Response Syntax

{
    'status': {
        'statusCode': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATION_FAILED'|'UPDATE_FAILED',
        'statusReason': 'string'
    }
}

Response Structure

  • (dict) --

    Represents the output of a CreateLoggingConfiguration operation.

    • status (dict) --

      The status of the logging configuration.

      • statusCode (string) --

        Status code of the logging configuration.

      • statusReason (string) --

        The reason for failure if any.

Exceptions

  • PrometheusService.Client.exceptions.ValidationException
  • PrometheusService.Client.exceptions.ResourceNotFoundException
  • PrometheusService.Client.exceptions.AccessDeniedException
  • PrometheusService.Client.exceptions.InternalServerException