interface TrafficConfigProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFront.CfnContinuousDeploymentPolicy.TrafficConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnContinuousDeploymentPolicy_TrafficConfigProperty |
Java | software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.TrafficConfigProperty |
Python | aws_cdk.aws_cloudfront.CfnContinuousDeploymentPolicy.TrafficConfigProperty |
TypeScript | aws-cdk-lib » aws_cloudfront » CfnContinuousDeploymentPolicy » TrafficConfigProperty |
The traffic configuration of your continuous deployment.
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 trafficConfigProperty: cloudfront.CfnContinuousDeploymentPolicy.TrafficConfigProperty = {
type: 'type',
// the properties below are optional
singleHeaderConfig: {
header: 'header',
value: 'value',
},
singleWeightConfig: {
weight: 123,
// the properties below are optional
sessionStickinessConfig: {
idleTtl: 123,
maximumTtl: 123,
},
},
};
Properties
Name | Type | Description |
---|---|---|
type | string | The type of traffic configuration. |
single | IResolvable | Single | Determines which HTTP requests are sent to the staging distribution. |
single | IResolvable | Single | Contains the percentage of traffic to send to the staging distribution. |
type
Type:
string
The type of traffic configuration.
singleHeaderConfig?
Type:
IResolvable
|
Single
(optional)
Determines which HTTP requests are sent to the staging distribution.
singleWeightConfig?
Type:
IResolvable
|
Single
(optional)
Contains the percentage of traffic to send to the staging distribution.