PrometheusService.Client.
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'
)
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
This field is autopopulated if not provided.
[REQUIRED]
The ARN of the CW log group to which the vended log data will be published.
[REQUIRED]
The ID of the workspace to vend logs to.
dict
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