Interface CfnContinuousDeploymentPolicy.ISingleWeightPolicyConfigProperty
Configure a policy that CloudFront uses to route requests to different origins or use different cache settings, based on the weight assigned to each option.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnContinuousDeploymentPolicy.ISingleWeightPolicyConfigProperty
Syntax (vb)
Public Interface CfnContinuousDeploymentPolicy.ISingleWeightPolicyConfigProperty
Remarks
This property is legacy. We recommend that you use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html">TrafficConfig</a> and specify the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-trafficconfig.html#cfn-cloudfront-continuousdeploymentpolicy-trafficconfig-singleweightconfig">SingleWeightConfig</a> property instead.
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 singleWeightPolicyConfigProperty = new SingleWeightPolicyConfigProperty {
Weight = 123,
// the properties below are optional
SessionStickinessConfig = new SessionStickinessConfigProperty {
IdleTtl = 123,
MaximumTtl = 123
}
};
Synopsis
Properties
SessionStickinessConfig | Enable session stickiness for the associated origin or cache settings. |
Weight | The percentage of requests that CloudFront will use to send to an associated origin or cache settings. |
Properties
SessionStickinessConfig
Enable session stickiness for the associated origin or cache settings.
object? SessionStickinessConfig { get; }
Property Value
Remarks
Weight
The percentage of requests that CloudFront will use to send to an associated origin or cache settings.
double Weight { get; }