Skip to main content

continuous_deployment_policies

Creates, updates, deletes or gets a continuous_deployment_policy resource or lists continuous_deployment_policies in a region

Overview

Namecontinuous_deployment_policies
TypeResource
DescriptionResource Type definition for AWS::CloudFront::ContinuousDeploymentPolicy
Idaws.cloudfront.continuous_deployment_policies

Fields

NameDatatypeDescription
continuous_deployment_policy_configobject
idstring
last_modified_timestring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTContinuousDeploymentPolicyConfig, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all continuous_deployment_policies in a region.

SELECT
region,
continuous_deployment_policy_config,
id,
last_modified_time
FROM aws.cloudfront.continuous_deployment_policies
;

Gets all properties from an individual continuous_deployment_policy.

SELECT
region,
continuous_deployment_policy_config,
id,
last_modified_time
FROM aws.cloudfront.continuous_deployment_policies
WHERE data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new continuous_deployment_policy resource, using stack-deploy.

/*+ create */
INSERT INTO aws.cloudfront.continuous_deployment_policies (
ContinuousDeploymentPolicyConfig,
region
)
SELECT
'{{ ContinuousDeploymentPolicyConfig }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cloudfront.continuous_deployment_policies
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the continuous_deployment_policies resource, the following permissions are required:

Create

cloudfront:CreateContinuousDeploymentPolicy

Delete

cloudfront:DeleteContinuousDeploymentPolicy,
cloudfront:GetContinuousDeploymentPolicy

List

cloudfront:ListContinuousDeploymentPolicies

Read

cloudfront:GetContinuousDeploymentPolicy

Update

cloudfront:UpdateContinuousDeploymentPolicy,
cloudfront:GetContinuousDeploymentPolicy