interface SingleWeightPolicyConfigProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnContinuousDeploymentPolicy_SingleWeightPolicyConfigProperty |
![]() | software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty |
![]() | aws_cdk.aws_cloudfront.CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty |
![]() | aws-cdk-lib » aws_cloudfront » CfnContinuousDeploymentPolicy » SingleWeightPolicyConfigProperty |
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.
This property is legacy. We recommend that you use TrafficConfig and specify the SingleWeightConfig property instead.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const singleWeightPolicyConfigProperty: cloudfront.CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty = {
weight: 123,
// the properties below are optional
sessionStickinessConfig: {
idleTtl: 123,
maximumTtl: 123,
},
};
Properties
Name | Type | Description |
---|---|---|
weight | number | The percentage of requests that CloudFront will use to send to an associated origin or cache settings. |
session | IResolvable | Session | Enable session stickiness for the associated origin or cache settings. |
weight
Type:
number
The percentage of requests that CloudFront will use to send to an associated origin or cache settings.
sessionStickinessConfig?
Type:
IResolvable
|
Session
(optional)
Enable session stickiness for the associated origin or cache settings.