CloudWatchLogsClient.delete_resource_policy
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Deletes a resource policy from this account. This revokes the access of the identities in that policy to put log events to this account.
Install and imports
Signature
async def delete_resource_policy(
*,
policy_name: str | None = None,
resource_arn: str | None = None,
expected_revision_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) |
|---|---|---|
policy_name |
No | The name of the policy to be revoked. This parameter is required. |
resource_arn |
No | The ARN of the CloudWatch Logs resource for which the resource policy needs to be deleted |
expected_revision_id |
No | The expected revision ID of the resource policy. Required when deleting a resource-scoped policy to prevent concurrent modifications. |
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, ResourceNotFoundError, ServiceUnavailableError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.