Class CfnEndpointPropsMixin.DeploymentConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointPropsMixin.DeploymentConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointPropsMixin.DeploymentConfigProperty>
- Enclosing interface:
CfnEndpointPropsMixin.DeploymentConfigProperty
@Stability(Stable)
public static final class CfnEndpointPropsMixin.DeploymentConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointPropsMixin.DeploymentConfigProperty>
A builder for
CfnEndpointPropsMixin.DeploymentConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoRollbackConfiguration(CfnEndpointPropsMixin.AutoRollbackConfigProperty autoRollbackConfiguration) autoRollbackConfiguration(IResolvable autoRollbackConfiguration) blueGreenUpdatePolicy(CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty blueGreenUpdatePolicy) blueGreenUpdatePolicy(IResolvable blueGreenUpdatePolicy) build()Builds the configured instance.rollingUpdatePolicy(CfnEndpointPropsMixin.RollingUpdatePolicyProperty rollingUpdatePolicy) Sets the value ofCfnEndpointPropsMixin.DeploymentConfigProperty.getRollingUpdatePolicy()rollingUpdatePolicy(IResolvable rollingUpdatePolicy) Sets the value ofCfnEndpointPropsMixin.DeploymentConfigProperty.getRollingUpdatePolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoRollbackConfiguration
@Stability(Stable) public CfnEndpointPropsMixin.DeploymentConfigProperty.Builder autoRollbackConfiguration(IResolvable autoRollbackConfiguration) - Parameters:
autoRollbackConfiguration- Automatic rollback configuration for handling endpoint deployment failures and recovery.- Returns:
this
-
autoRollbackConfiguration
@Stability(Stable) public CfnEndpointPropsMixin.DeploymentConfigProperty.Builder autoRollbackConfiguration(CfnEndpointPropsMixin.AutoRollbackConfigProperty autoRollbackConfiguration) - Parameters:
autoRollbackConfiguration- Automatic rollback configuration for handling endpoint deployment failures and recovery.- Returns:
this
-
blueGreenUpdatePolicy
@Stability(Stable) public CfnEndpointPropsMixin.DeploymentConfigProperty.Builder blueGreenUpdatePolicy(IResolvable blueGreenUpdatePolicy) - Parameters:
blueGreenUpdatePolicy- Update policy for a blue/green deployment. If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. SageMaker flips traffic to the new fleet according to the specified traffic routing configuration. Only one update policy should be used in the deployment configuration. If no update policy is specified, SageMaker uses a blue/green deployment strategy with all at once traffic shifting by default.- Returns:
this
-
blueGreenUpdatePolicy
@Stability(Stable) public CfnEndpointPropsMixin.DeploymentConfigProperty.Builder blueGreenUpdatePolicy(CfnEndpointPropsMixin.BlueGreenUpdatePolicyProperty blueGreenUpdatePolicy) - Parameters:
blueGreenUpdatePolicy- Update policy for a blue/green deployment. If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. SageMaker flips traffic to the new fleet according to the specified traffic routing configuration. Only one update policy should be used in the deployment configuration. If no update policy is specified, SageMaker uses a blue/green deployment strategy with all at once traffic shifting by default.- Returns:
this
-
rollingUpdatePolicy
@Stability(Stable) public CfnEndpointPropsMixin.DeploymentConfigProperty.Builder rollingUpdatePolicy(IResolvable rollingUpdatePolicy) Sets the value ofCfnEndpointPropsMixin.DeploymentConfigProperty.getRollingUpdatePolicy()- Parameters:
rollingUpdatePolicy- Specifies a rolling deployment strategy for updating a SageMaker endpoint.- Returns:
this
-
rollingUpdatePolicy
@Stability(Stable) public CfnEndpointPropsMixin.DeploymentConfigProperty.Builder rollingUpdatePolicy(CfnEndpointPropsMixin.RollingUpdatePolicyProperty rollingUpdatePolicy) Sets the value ofCfnEndpointPropsMixin.DeploymentConfigProperty.getRollingUpdatePolicy()- Parameters:
rollingUpdatePolicy- Specifies a rolling deployment strategy for updating a SageMaker endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointPropsMixin.DeploymentConfigProperty>- Returns:
- a new instance of
CfnEndpointPropsMixin.DeploymentConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-