interface SingleWeightConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnContinuousDeploymentPolicyPropsMixin_SingleWeightConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnContinuousDeploymentPolicyPropsMixin » SingleWeightConfigProperty |
This configuration determines the percentage of HTTP requests that are sent to the staging distribution.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const singleWeightConfigProperty: cloudfront_mixins.CfnContinuousDeploymentPolicyPropsMixin.SingleWeightConfigProperty = {
sessionStickinessConfig: {
idleTtl: 123,
maximumTtl: 123,
},
weight: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| session | IResolvable | Session | Session stickiness provides the ability to define multiple requests from a single viewer as a single session. |
| weight? | number | The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution. |
sessionStickinessConfig?
Type:
IResolvable | Session
(optional)
Session stickiness provides the ability to define multiple requests from a single viewer as a single session.
This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
weight?
Type:
number
(optional)
The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.

.NET
Go
Java
Python
TypeScript