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

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

Response Structure

  • (dict) –

    • Policy (string) –

      The policy that you specified, in JSON format.

    • SinkArn (string) –

      The ARN of the sink.

    • SinkId (string) –

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

Exceptions