delete_continuous_deployment_policy

CloudFront.Client.delete_continuous_deployment_policy(**kwargs)

Deletes a continuous deployment policy.

You cannot delete a continuous deployment policy that's attached to a primary distribution. First update your distribution to remove the continuous deployment policy, then you can delete the policy.

See also: AWS API Documentation

Request Syntax

response = client.delete_continuous_deployment_policy(
    Id='string',
    IfMatch='string'
)
Parameters
  • Id (string) --

    [REQUIRED]

    The identifier of the continuous deployment policy that you are deleting.

  • IfMatch (string) -- The current version ( ETag value) of the continuous deployment policy that you are deleting.
Returns

None

Exceptions

  • CloudFront.Client.exceptions.InvalidIfMatchVersion
  • CloudFront.Client.exceptions.InvalidArgument
  • CloudFront.Client.exceptions.AccessDenied
  • CloudFront.Client.exceptions.PreconditionFailed
  • CloudFront.Client.exceptions.ContinuousDeploymentPolicyInUse
  • CloudFront.Client.exceptions.NoSuchContinuousDeploymentPolicy