continuous_deployment_policies
Creates, updates, deletes or gets a continuous_deployment_policy
resource or lists continuous_deployment_policies
in a region
Overview
Name | continuous_deployment_policies |
Type | Resource |
Description | Resource Type definition for AWS::CloudFront::ContinuousDeploymentPolicy |
Id | aws.cloudfront.continuous_deployment_policies |
Fields
Name | Datatype | Description |
---|---|---|
continuous_deployment_policy_config | object | |
id | string | |
last_modified_time | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ContinuousDeploymentPolicyConfig, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.cloudfront.continuous_deployment_policies (
ContinuousDeploymentPolicyConfig,
region
)
SELECT
'{{ ContinuousDeploymentPolicyConfig }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.cloudfront.continuous_deployment_policies (
ContinuousDeploymentPolicyConfig,
region
)
SELECT
'{{ ContinuousDeploymentPolicyConfig }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: continuous_deployment_policy
props:
- name: ContinuousDeploymentPolicyConfig
value:
Enabled: '{{ Enabled }}'
SingleHeaderPolicyConfig:
Header: '{{ Header }}'
Value: '{{ Value }}'
SingleWeightPolicyConfig:
SessionStickinessConfig:
IdleTTL: '{{ IdleTTL }}'
MaximumTTL: '{{ MaximumTTL }}'
Weight: null
StagingDistributionDnsNames:
- '{{ StagingDistributionDnsNames[0] }}'
TrafficConfig:
SingleHeaderConfig:
Header: '{{ Header }}'
Value: '{{ Value }}'
SingleWeightConfig:
SessionStickinessConfig: null
Weight: null
Type: '{{ Type }}'
Type: '{{ Type }}'
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