CloudWatchObservabilityAccessManager / Client / get_sink_policy

get_sink_policy#

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'
)
Parameters:

SinkIdentifier (string) –

[REQUIRED]

The ARN of the sink to retrieve the policy of.

Return type:

dict

Returns:

Response Syntax

{
    'SinkArn': 'string',
    'SinkId': 'string',
    'Policy': 'string'
}

Response Structure

  • (dict) –

    • SinkArn (string) –

      The ARN of the sink.

    • SinkId (string) –

      The random ID string that Amazon Web Services generated as part of the sink ARN.

    • Policy (string) –

      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