Class CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty>
- Enclosing interface:
CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty
@Stability(Stable)
public static final class CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty>
A builder for
CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maximumExecutionTimeoutInSeconds(Number maximumExecutionTimeoutInSeconds) terminationWaitInSeconds(Number terminationWaitInSeconds) trafficRoutingConfiguration(CfnEndpointPropsMixin.TrafficRoutingConfigProperty trafficRoutingConfiguration) trafficRoutingConfiguration(IResolvable trafficRoutingConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumExecutionTimeoutInSeconds
@Stability(Stable) public CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty.Builder maximumExecutionTimeoutInSeconds(Number maximumExecutionTimeoutInSeconds) Sets the value ofCfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty.getMaximumExecutionTimeoutInSeconds()- Parameters:
maximumExecutionTimeoutInSeconds- Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting time specified inTerminationWaitInSecondsandWaitIntervalInSeconds.- Returns:
this
-
terminationWaitInSeconds
@Stability(Stable) public CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty.Builder terminationWaitInSeconds(Number terminationWaitInSeconds) - Parameters:
terminationWaitInSeconds- Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.- Returns:
this
-
trafficRoutingConfiguration
@Stability(Stable) public CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty.Builder trafficRoutingConfiguration(IResolvable trafficRoutingConfiguration) Sets the value ofCfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty.getTrafficRoutingConfiguration()- Parameters:
trafficRoutingConfiguration- Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.- Returns:
this
-
trafficRoutingConfiguration
@Stability(Stable) public CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty.Builder trafficRoutingConfiguration(CfnEndpointPropsMixin.TrafficRoutingConfigProperty trafficRoutingConfiguration) Sets the value ofCfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty.getTrafficRoutingConfiguration()- Parameters:
trafficRoutingConfiguration- Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty>- Returns:
- a new instance of
CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-