delete_resource_policy
async
¶
delete_resource_policy(
resource_arn: ResourceArn,
*,
config_overrides: Optional[AsyncCloudTrailClientConfig] = None,
) -> DeleteResourcePolicyResponse
Deletes the resource-based policy attached to the CloudTrail event data store, dashboard, or channel.
Parameters:
-
resource_arn(ResourceArn) –The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel you're deleting the resource-based policy from.
Example event data store ARN format:
arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLEExample dashboard ARN format:
arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDashExample channel ARN format:
arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890
Raises:
-
ConflictException–This exception is thrown when the specified resource is not ready for an operation. This can occur when you try to run an operation on a resource before CloudTrail has time to fully load the resource, or because another operation is modifying the resource. If this exception occurs, wait a few minutes, and then try the operation again.
-
OperationNotPermittedException–This exception is thrown when the requested operation is not permitted.
-
ResourceARNNotValidException–This exception is thrown when the provided resource does not exist, or the ARN format of the resource is not valid.
The following is the format of an event data store ARN:
arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLEThe following is the format of a dashboard ARN:
arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDashThe following is the format of a channel ARN:
arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890 -
ResourceNotFoundException–This exception is thrown when the specified resource is not found.
-
ResourcePolicyNotFoundException–This exception is thrown when the specified resource policy is not found.
-
ResourceTypeNotSupportedException–This exception is thrown when the specified resource type is not supported by CloudTrail.
-
UnsupportedOperationException–This exception is thrown when the requested operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.