aws-cdk-lib.aws_cloudfront.CfnContinuousDeploymentPolicy.TrafficConfigProperty

interface TrafficConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnContinuousDeploymentPolicy.TrafficConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnContinuousDeploymentPolicy_TrafficConfigProperty
Javasoftware.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.TrafficConfigProperty
Pythonaws_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

NameTypeDescription
typestringThe type of traffic configuration.
singleHeaderConfig?IResolvable | SingleHeaderConfigPropertyDetermines which HTTP requests are sent to the staging distribution.
singleWeightConfig?IResolvable | SingleWeightConfigPropertyContains the percentage of traffic to send to the staging distribution.

type

Type: string

The type of traffic configuration.


singleHeaderConfig?

Type: IResolvable | SingleHeaderConfigProperty (optional)

Determines which HTTP requests are sent to the staging distribution.


singleWeightConfig?

Type: IResolvable | SingleWeightConfigProperty (optional)

Contains the percentage of traffic to send to the staging distribution.