Kinesis / Client / get_resource_policy

get_resource_policy#

Kinesis.Client.get_resource_policy(**kwargs)#

Returns a policy attached to the specified data stream or consumer. Request patterns can be one of the following:

  • Data stream pattern: arn:aws.*:kinesis:.*:\d{12}:.*stream/\S+

  • Consumer pattern: ^(arn):aws.*:kinesis:.*:\d{12}:.*stream\/[a-zA-Z0-9_.-]+\/consumer\/[a-zA-Z0-9_.-]+:[0-9]+

See also: AWS API Documentation

Request Syntax

response = client.get_resource_policy(
    ResourceARN='string'
)
Parameters:

ResourceARN (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the data stream or consumer.

Return type:

dict

Returns:

Response Syntax

{
    'Policy': 'string'
}

Response Structure

  • (dict) –

    • Policy (string) –

      Details of the resource policy. This is formatted as a JSON string.

Exceptions

  • Kinesis.Client.exceptions.AccessDeniedException

  • Kinesis.Client.exceptions.ResourceNotFoundException

  • Kinesis.Client.exceptions.LimitExceededException

  • Kinesis.Client.exceptions.InvalidArgumentException

  • Kinesis.Client.exceptions.ResourceInUseException