2022/08/12 - Amazon Prometheus Service - 4 new api methods
Changes This release adds log APIs that allow customers to manage logging for their Amazon Managed Service for Prometheus workspaces.
Create logging configuration.
See also: AWS API Documentation
Request Syntax
client.create_logging_configuration( clientToken='string', logGroupArn='string', workspaceId='string' )
string
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
This field is autopopulated if not provided.
string
[REQUIRED]
The ARN of the CW log group to which the vended log data will be published.
string
[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.
Update logging configuration.
See also: AWS API Documentation
Request Syntax
client.update_logging_configuration( clientToken='string', logGroupArn='string', workspaceId='string' )
string
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
This field is autopopulated if not provided.
string
[REQUIRED]
The ARN of the CW log group to which the vended log data will be published.
string
[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 an UpdateLoggingConfiguration 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.
Describes logging configuration.
See also: AWS API Documentation
Request Syntax
client.describe_logging_configuration( workspaceId='string' )
string
[REQUIRED]
The ID of the workspace to vend logs to.
dict
Response Syntax
{ 'loggingConfiguration': { 'createdAt': datetime(2015, 1, 1), 'logGroupArn': 'string', 'modifiedAt': datetime(2015, 1, 1), 'status': { 'statusCode': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATION_FAILED'|'UPDATE_FAILED', 'statusReason': 'string' }, 'workspace': 'string' } }
Response Structure
(dict) --
Represents the output of a DescribeLoggingConfiguration operation.
loggingConfiguration (dict) --
Metadata object containing information about the logging configuration of a workspace.
createdAt (datetime) --
The time when the logging configuration was created.
logGroupArn (string) --
The ARN of the CW log group to which the vended log data will be published.
modifiedAt (datetime) --
The time when the logging configuration was modified.
status (dict) --
The status of the logging configuration.
statusCode (string) --
Status code of the logging configuration.
statusReason (string) --
The reason for failure if any.
workspace (string) --
The workspace where the logging configuration exists.
Delete logging configuration.
See also: AWS API Documentation
Request Syntax
client.delete_logging_configuration( clientToken='string', workspaceId='string' )
string
Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
This field is autopopulated if not provided.
string
[REQUIRED]
The ID of the workspace to vend logs to.
None