CloudFront / Client / delete_resource_policy

delete_resource_policy

CloudFront.Client.delete_resource_policy(**kwargs)

Deletes the resource policy attached to the CloudFront resource.

See also: AWS API Documentation

Request Syntax

response = client.delete_resource_policy(
    ResourceArn='string'
)
Parameters:

ResourceArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the CloudFront resource for which the resource policy should be deleted.

Returns:

None

Exceptions

  • CloudFront.Client.exceptions.PreconditionFailed

  • CloudFront.Client.exceptions.AccessDenied

  • CloudFront.Client.exceptions.EntityNotFound

  • CloudFront.Client.exceptions.IllegalDelete

  • CloudFront.Client.exceptions.UnsupportedOperation

  • CloudFront.Client.exceptions.InvalidArgument