- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DeleteContinuousDeploymentPolicyCommand
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.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { CloudFrontClient, DeleteContinuousDeploymentPolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
// const { CloudFrontClient, DeleteContinuousDeploymentPolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
const client = new CloudFrontClient(config);
const input = { // DeleteContinuousDeploymentPolicyRequest
Id: "STRING_VALUE", // required
IfMatch: "STRING_VALUE",
};
const command = new DeleteContinuousDeploymentPolicyCommand(input);
const response = await client.send(command);
// {};
DeleteContinuousDeploymentPolicyCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
Id Required | string | undefined | The identifier of the continuous deployment policy that you are deleting. |
IfMatch | string | undefined | The current version ( |
DeleteContinuousDeploymentPolicyCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDenied | client | Access denied. |
ContinuousDeploymentPolicyInUse | client | You cannot delete a continuous deployment policy that is associated with a primary distribution. |
InvalidArgument | client | An argument is invalid. |
InvalidIfMatchVersion | client | The |
NoSuchContinuousDeploymentPolicy | client | The continuous deployment policy doesn't exist. |
PreconditionFailed | client | The precondition in one or more of the request fields evaluated to |
CloudFrontServiceException | Base exception class for all service exceptions from CloudFront service. |