Show / Hide Table of Contents

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig.html

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

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig-sessionstickinessconfig

Weight

The percentage of requests that CloudFront will use to send to an associated origin or cache settings.

double Weight { get; }
Property Value

double

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig.html#cfn-cloudfront-continuousdeploymentpolicy-singleweightpolicyconfig-weight

Back to top Generated by DocFX