Class CfnContinuousDeploymentPolicy
A CloudFormation AWS::CloudFront::ContinuousDeploymentPolicy
.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public class CfnContinuousDeploymentPolicy : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnContinuousDeploymentPolicy
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.
After you create and update a staging distribution, you can use a continuous deployment policy to incrementally move traffic to the staging distribution. This enables you to test changes to a distribution's configuration before moving all of your production traffic to the new configuration.
For more information, see Using CloudFront continuous deployment to safely test CDN configuration changes in the Amazon CloudFront Developer Guide .
CloudformationResource: AWS::CloudFront::ContinuousDeploymentPolicy
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var cfnContinuousDeploymentPolicy = new CfnContinuousDeploymentPolicy(this, "MyCfnContinuousDeploymentPolicy", new CfnContinuousDeploymentPolicyProps {
ContinuousDeploymentPolicyConfig = new ContinuousDeploymentPolicyConfigProperty {
Enabled = false,
StagingDistributionDnsNames = new [] { "stagingDistributionDnsNames" },
// the properties below are optional
TrafficConfig = new TrafficConfigProperty {
Type = "type",
// the properties below are optional
SingleHeaderConfig = new SingleHeaderConfigProperty {
Header = "header",
Value = "value"
},
SingleWeightConfig = new SingleWeightConfigProperty {
Weight = 123,
// the properties below are optional
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
}
}
}
}
});
Synopsis
Constructors
CfnContinuousDeploymentPolicy(Construct, String, ICfnContinuousDeploymentPolicyProps) | Create a new |
CfnContinuousDeploymentPolicy(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnContinuousDeploymentPolicy(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrId | The identifier of the cotinuous deployment policy. |
AttrLastModifiedTime | The date and time when the continuous deployment policy was last modified. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ContinuousDeploymentPolicyConfig | Contains the configuration for a continuous deployment policy. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnContinuousDeploymentPolicy(Construct, String, ICfnContinuousDeploymentPolicyProps)
Create a new AWS::CloudFront::ContinuousDeploymentPolicy
.
public CfnContinuousDeploymentPolicy(Construct scope, string id, ICfnContinuousDeploymentPolicyProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnContinuousDeploymentPolicyProps
- resource properties.
CfnContinuousDeploymentPolicy(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnContinuousDeploymentPolicy(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnContinuousDeploymentPolicy(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnContinuousDeploymentPolicy(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrId
The identifier of the cotinuous deployment policy.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
AttrLastModifiedTime
The date and time when the continuous deployment policy was last modified.
public virtual string AttrLastModifiedTime { get; }
Property Value
System.String
Remarks
CloudformationAttribute: LastModifiedTime
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
ContinuousDeploymentPolicyConfig
Contains the configuration for a continuous deployment policy.
public virtual object ContinuousDeploymentPolicyConfig { get; set; }
Property Value
System.Object
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>