KinesisClient.put_resource_policy
rboto-kinesis==0.4.0 · Service index · Types
Model summary (excerpt): Attaches a resource-based policy to a data stream, a queue, or an enhanced fan-out consumer. If you are using an identity other than the root user of the Amazon Web Services account that owns the resource, the calling identity must have the PutResourcePolicy permissions on the specified Kinesis Data Streams resource and belong to the owner's account in order to use this operation. If you don't...
Install and imports
Signature
async def put_resource_policy(
*,
resource_arn: str,
policy: str,
stream_id: str | None = None,
) -> None: ...
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. |
policy |
Yes | Details of the resource policy. It must include the identity of the principal and the actions allowed on this resource. This is formatted as a JSON string. |
stream_id |
No | Not Implemented. Reserved for future use. |
Output
None.
| 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.