Class CfnEndpoint.BlueGreenUpdatePolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpoint.BlueGreenUpdatePolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpoint.BlueGreenUpdatePolicyProperty>
- Enclosing interface:
- CfnEndpoint.BlueGreenUpdatePolicyProperty
@Stability(Stable)
public static final class CfnEndpoint.BlueGreenUpdatePolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpoint.BlueGreenUpdatePolicyProperty>
A builder for
CfnEndpoint.BlueGreenUpdatePolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maximumExecutionTimeoutInSeconds(Number maximumExecutionTimeoutInSeconds) terminationWaitInSeconds(Number terminationWaitInSeconds) Sets the value ofCfnEndpoint.BlueGreenUpdatePolicyProperty.getTerminationWaitInSeconds()trafficRoutingConfiguration(IResolvable trafficRoutingConfiguration) trafficRoutingConfiguration(CfnEndpoint.TrafficRoutingConfigProperty trafficRoutingConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
trafficRoutingConfiguration
@Stability(Stable) public CfnEndpoint.BlueGreenUpdatePolicyProperty.Builder trafficRoutingConfiguration(IResolvable trafficRoutingConfiguration) - Parameters:
trafficRoutingConfiguration- Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment. This parameter is required.- Returns:
this
-
trafficRoutingConfiguration
@Stability(Stable) public CfnEndpoint.BlueGreenUpdatePolicyProperty.Builder trafficRoutingConfiguration(CfnEndpoint.TrafficRoutingConfigProperty trafficRoutingConfiguration) - Parameters:
trafficRoutingConfiguration- Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment. This parameter is required.- Returns:
this
-
maximumExecutionTimeoutInSeconds
@Stability(Stable) public CfnEndpoint.BlueGreenUpdatePolicyProperty.Builder maximumExecutionTimeoutInSeconds(Number maximumExecutionTimeoutInSeconds) - 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 CfnEndpoint.BlueGreenUpdatePolicyProperty.Builder terminationWaitInSeconds(Number terminationWaitInSeconds) Sets the value ofCfnEndpoint.BlueGreenUpdatePolicyProperty.getTerminationWaitInSeconds()- 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpoint.BlueGreenUpdatePolicyProperty>- Returns:
- a new instance of
CfnEndpoint.BlueGreenUpdatePolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-