Skip to content
v2.275.0

TrafficConfigProperty Struct ​

The traffic configuration of your continuous deployment.

Example ​

ts
// 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 ​

singleHeaderConfigoptionalIResolvable | CfnContinuousDeploymentPolicy.SingleHeaderConfigPropertysingle_header_configoptionaltyping.Union[IResolvable, SingleHeaderConfigProperty]singleHeaderConfigoptionalIResolvableSingleHeaderConfigoptionalIResolvableSingleHeaderConfigoptionalinterface{}#
Determines which HTTP requests are sent to the staging distribution.
singleWeightConfigoptionalIResolvable | CfnContinuousDeploymentPolicy.SingleWeightConfigPropertysingle_weight_configoptionaltyping.Union[IResolvable, SingleWeightConfigProperty]singleWeightConfigoptionalIResolvableSingleWeightConfigoptionalIResolvableSingleWeightConfigoptionalinterface{}#
Contains the percentage of traffic to send to the staging distribution.
typestringtypestrtypeStringTypestringType*stringrequired#
The type of traffic configuration.