Class CfnContinuousDeploymentPolicy
Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnContinuousDeploymentPolicy : CfnResource, IInspectable, IContinuousDeploymentPolicyRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnContinuousDeploymentPolicy Inherits CfnResource Implements IInspectable, IContinuousDeploymentPolicyRef, IConstruct, IDependable, IEnvironmentAware
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(Construct, string, ICfnContinuousDeploymentPolicyProps) | Create a new |
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 | Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution. |
| ContinuousDeploymentPolicyConfig | Contains the configuration for a continuous deployment policy. |
| ContinuousDeploymentPolicyRef | A reference to a ContinuousDeploymentPolicy resource. |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| RenderProperties(IDictionary<string, object>) | Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution. |
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 string
Construct identifier for this resource (unique in its scope).
- props ICfnContinuousDeploymentPolicyProps
Resource properties.
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
Properties
AttrId
The identifier of the cotinuous deployment policy.
public virtual string AttrId { get; }
Property Value
Remarks
CloudformationAttribute: Id
AttrLastModifiedTime
The date and time when the continuous deployment policy was last modified.
public virtual string AttrLastModifiedTime { get; }
Property Value
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
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
CfnProperties
Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
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
ContinuousDeploymentPolicyConfig
Contains the configuration for a continuous deployment policy.
public virtual object ContinuousDeploymentPolicyConfig { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnContinuousDeploymentPolicy.IContinuousDeploymentPolicyConfigProperty
ContinuousDeploymentPolicyRef
A reference to a ContinuousDeploymentPolicy resource.
public virtual IContinuousDeploymentPolicyReference ContinuousDeploymentPolicyRef { get; }
Property Value
IContinuousDeploymentPolicyReference
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
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.
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
RenderProperties(IDictionary<string, object>)
Creates a continuous deployment policy that routes a subset of production traffic from a primary distribution to a staging distribution.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
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