Interface CfnContinuousDeploymentPolicy.TrafficConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContinuousDeploymentPolicy.TrafficConfigProperty.Jsii$Proxy
- Enclosing class:
CfnContinuousDeploymentPolicy
@Stability(Stable)
public static interface CfnContinuousDeploymentPolicy.TrafficConfigProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.cloudfront.*;
TrafficConfigProperty trafficConfigProperty = TrafficConfigProperty.builder()
.type("type")
// the properties below are optional
.singleHeaderConfig(SingleHeaderConfigProperty.builder()
.header("header")
.value("value")
.build())
.singleWeightConfig(SingleWeightConfigProperty.builder()
.weight(123)
// the properties below are optional
.sessionStickinessConfig(SessionStickinessConfigProperty.builder()
.idleTtl(123)
.maximumTtl(123)
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnContinuousDeploymentPolicy.TrafficConfigPropertystatic final classAn implementation forCfnContinuousDeploymentPolicy.TrafficConfigProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The type of traffic configuration.- See Also:
-
getSingleHeaderConfig
Determines which HTTP requests are sent to the staging distribution.Returns union: either
IResolvableorCfnContinuousDeploymentPolicy.SingleHeaderConfigProperty- See Also:
-
getSingleWeightConfig
Contains the percentage of traffic to send to the staging distribution.Returns union: either
IResolvableorCfnContinuousDeploymentPolicy.SingleWeightConfigProperty- See Also:
-
builder
-