Class CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty>
- Enclosing interface:
CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty
@Stability(Stable)
public static final class CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.enabled
(IResolvable enabled) singleHeaderPolicyConfig
(IResolvable singleHeaderPolicyConfig) singleHeaderPolicyConfig
(CfnContinuousDeploymentPolicy.SingleHeaderPolicyConfigProperty singleHeaderPolicyConfig) singleWeightPolicyConfig
(IResolvable singleWeightPolicyConfig) singleWeightPolicyConfig
(CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty singleWeightPolicyConfig) stagingDistributionDnsNames
(List<String> stagingDistributionDnsNames) trafficConfig
(IResolvable trafficConfig) trafficConfig
(CfnContinuousDeploymentPolicy.TrafficConfigProperty trafficConfig)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder enabled(Boolean enabled) Sets the value ofCfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.getEnabled()
- Parameters:
enabled
- A Boolean that indicates whether this continuous deployment policy is enabled (in effect). This parameter is required. When this value istrue
, this policy is enabled and in effect. When this value isfalse
, this policy is not enabled and has no effect.- Returns:
this
-
enabled
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.getEnabled()
- Parameters:
enabled
- A Boolean that indicates whether this continuous deployment policy is enabled (in effect). This parameter is required. When this value istrue
, this policy is enabled and in effect. When this value isfalse
, this policy is not enabled and has no effect.- Returns:
this
-
stagingDistributionDnsNames
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder stagingDistributionDnsNames(List<String> stagingDistributionDnsNames) Sets the value ofCfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.getStagingDistributionDnsNames()
- Parameters:
stagingDistributionDnsNames
- The CloudFront domain name of the staging distribution. This parameter is required. For example:d111111abcdef8.cloudfront.net
.- Returns:
this
-
singleHeaderPolicyConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder singleHeaderPolicyConfig(IResolvable singleHeaderPolicyConfig) Sets the value ofCfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.getSingleHeaderPolicyConfig()
- Parameters:
singleHeaderPolicyConfig
- This configuration determines which HTTP requests are sent to the staging distribution. If the HTTP request contains a header and value that matches what you specify here, the request is sent to the staging distribution. Otherwise the request is sent to the primary distribution.- Returns:
this
-
singleHeaderPolicyConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder singleHeaderPolicyConfig(CfnContinuousDeploymentPolicy.SingleHeaderPolicyConfigProperty singleHeaderPolicyConfig) Sets the value ofCfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.getSingleHeaderPolicyConfig()
- Parameters:
singleHeaderPolicyConfig
- This configuration determines which HTTP requests are sent to the staging distribution. If the HTTP request contains a header and value that matches what you specify here, the request is sent to the staging distribution. Otherwise the request is sent to the primary distribution.- Returns:
this
-
singleWeightPolicyConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder singleWeightPolicyConfig(IResolvable singleWeightPolicyConfig) Sets the value ofCfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.getSingleWeightPolicyConfig()
- Parameters:
singleWeightPolicyConfig
- This configuration determines the percentage of HTTP requests that are sent to the staging distribution.- Returns:
this
-
singleWeightPolicyConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder singleWeightPolicyConfig(CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty singleWeightPolicyConfig) Sets the value ofCfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.getSingleWeightPolicyConfig()
- Parameters:
singleWeightPolicyConfig
- This configuration determines the percentage of HTTP requests that are sent to the staging distribution.- Returns:
this
-
trafficConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder trafficConfig(IResolvable trafficConfig) Sets the value ofCfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.getTrafficConfig()
- Parameters:
trafficConfig
- Contains the parameters for routing production traffic from your primary to staging distributions.- Returns:
this
-
trafficConfig
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder trafficConfig(CfnContinuousDeploymentPolicy.TrafficConfigProperty trafficConfig) Sets the value ofCfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.getTrafficConfig()
- Parameters:
trafficConfig
- Contains the parameters for routing production traffic from your primary to staging distributions.- Returns:
this
-
type
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty.Builder type(String type) - Parameters:
type
- The type of traffic configuration.- Returns:
this
-
build
@Stability(Stable) public CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty build()Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty>
- Returns:
- a new instance of
CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-