Interface CfnEndpoint.BlueGreenUpdatePolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEndpoint.BlueGreenUpdatePolicyProperty.Jsii$Proxy
- Enclosing class:
CfnEndpoint
@Stability(Stable)
public static interface CfnEndpoint.BlueGreenUpdatePolicyProperty
extends software.amazon.jsii.JsiiSerializable
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.
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.sagemaker.*; BlueGreenUpdatePolicyProperty blueGreenUpdatePolicyProperty = BlueGreenUpdatePolicyProperty.builder() .trafficRoutingConfiguration(TrafficRoutingConfigProperty.builder() .type("type") // the properties below are optional .canarySize(CapacitySizeProperty.builder() .type("type") .value(123) .build()) .linearStepSize(CapacitySizeProperty.builder() .type("type") .value(123) .build()) .waitIntervalInSeconds(123) .build()) // the properties below are optional .maximumExecutionTimeoutInSeconds(123) .terminationWaitInSeconds(123) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnEndpoint.BlueGreenUpdatePolicyProperty
static final class
An implementation forCfnEndpoint.BlueGreenUpdatePolicyProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Number
Maximum execution timeout for the deployment.default Number
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet.Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTrafficRoutingConfiguration
Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.- See Also:
-
getMaximumExecutionTimeoutInSeconds
Maximum execution timeout for the deployment.Note that the timeout value should be larger than the total waiting time specified in
TerminationWaitInSeconds
andWaitIntervalInSeconds
.- See Also:
-
getTerminationWaitInSeconds
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet.Default is 0.
- See Also:
-
builder
-