CloudWatchObservabilityAccessManager.Client.
get_sink_policy
(**kwargs)¶Returns the current sink policy attached to this sink. The sink policy specifies what accounts can attach to this sink as source accounts, and what types of data they can share.
See also: AWS API Documentation
Request Syntax
response = client.get_sink_policy(
SinkIdentifier='string'
)
[REQUIRED]
The ARN of the sink to retrieve the policy of.
{
'SinkArn': 'string',
'SinkId': 'string',
'Policy': 'string'
}
Response Structure
The ARN of the sink.
The random ID string that Amazon Web Services generated as part of the sink ARN.
The policy that you specified, in JSON format.
Exceptions
CloudWatchObservabilityAccessManager.Client.exceptions.InternalServiceFault
CloudWatchObservabilityAccessManager.Client.exceptions.MissingRequiredParameterException
CloudWatchObservabilityAccessManager.Client.exceptions.InvalidParameterException
CloudWatchObservabilityAccessManager.Client.exceptions.ResourceNotFoundException