PrometheusService / Client / create_logging_configuration

create_logging_configuration#

PrometheusService.Client.create_logging_configuration(**kwargs)#

Create logging configuration.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The ID of the workspace to vend logs to.

  • logGroupArn (string) –

    [REQUIRED]

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

  • clientToken (string) –

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

    This field is autopopulated if not provided.

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