CloudWatchLogsClient.put_destination_policy
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Creates or updates an access policy associated with an existing destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.
Install and imports
Signature
async def put_destination_policy(
*,
destination_name: str,
access_policy: str,
force_update: bool | 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) |
|---|---|---|
destination_name |
Yes | A name for an existing destination. |
access_policy |
Yes | An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. This can be up to 5120 bytes. |
force_update |
No | Specify true if you are updating an existing destination policy to grant permission to an organization ID instead of granting permission to individual Amazon Web Services accounts. Before you update a destination policy this way, you must first update the subscription filters in the accounts that send logs to this destination. If you do not, the subscription filters might stop working. By... |
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_cloudwatch_logs.exceptions:
InvalidParameterError, OperationAbortedError, ServiceUnavailableError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.