KinesisClient.get_resource_policy
rboto-kinesis==0.4.0 · Service index · Types
Model summary (excerpt): Returns a policy attached to the specified data stream, consumer, or queue. 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]+ Queue pattern: arn:aws.*:kinesis:.*:\d{12}:queue/\S+
Install and imports
Signature
async def get_resource_policy(
*,
resource_arn: str,
stream_id: str | None = None,
) -> GetResourcePolicyOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
resource_arn |
Yes | The Amazon Resource Name (ARN) of a data stream, a queue, or an enhanced fan-out consumer. |
stream_id |
No | Not Implemented. Reserved for future use. |
Output
GetResourcePolicyOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
policy |
str |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_kinesis.exceptions:
AccessDeniedError, InternalFailureError, InvalidArgumentError, LimitExceededError, ResourceInUseError, ResourceNotFoundError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.