PrometheusService / Client / update_logging_configuration

update_logging_configuration#

PrometheusService.Client.update_logging_configuration(**kwargs)#

Updates the log group ARN or the workspace ID of the current logging configuration.

See also: AWS API Documentation

Request Syntax

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

    A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.

    This field is autopopulated if not provided.

  • logGroupArn (string) –

    [REQUIRED]

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

  • workspaceId (string) –

    [REQUIRED]

    The ID of the workspace to update the logging configuration for.

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 an UpdateLoggingConfiguration operation.

    • status (dict) –

      A structure that contains the current status of the logging configuration.

      • statusCode (string) –

        The current status of the logging configuration.

      • statusReason (string) –

        If failed, the reason for the failure.

Exceptions