Class CfnContinuousDeploymentPolicy
Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnContinuousDeploymentPolicy : CfnResource, IInspectable
Syntax (vb)
Public Class CfnContinuousDeploymentPolicy
Inherits CfnResource
Implements IInspectable
Remarks
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
SingleHeaderPolicyConfig = new SingleHeaderPolicyConfigProperty {
Header = "header",
Value = "value"
},
SingleWeightPolicyConfig = new SingleWeightPolicyConfigProperty {
Weight = 123,
// the properties below are optional
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
}
},
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
}
}
},
Type = "type"
}
});
Synopsis
Constructors
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 |
CfnContinuousDeploymentPolicy(Construct, String, ICfnContinuousDeploymentPolicyProps) |
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(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
CfnContinuousDeploymentPolicy(Construct, String, ICfnContinuousDeploymentPolicyProps)
public CfnContinuousDeploymentPolicy(Construct scope, string id, ICfnContinuousDeploymentPolicyProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnContinuousDeploymentPolicyProps
Resource properties.
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
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>