@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BlueGreenUpdatePolicy extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
BlueGreenUpdatePolicy() |
Modifier and Type | Method and Description |
---|---|
BlueGreenUpdatePolicy |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaximumExecutionTimeoutInSeconds()
Maximum execution timeout for the deployment.
|
Integer |
getTerminationWaitInSeconds()
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old
endpoint fleet.
|
TrafficRoutingConfig |
getTrafficRoutingConfiguration()
Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint
deployment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)
Maximum execution timeout for the deployment.
|
void |
setTerminationWaitInSeconds(Integer terminationWaitInSeconds)
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old
endpoint fleet.
|
void |
setTrafficRoutingConfiguration(TrafficRoutingConfig trafficRoutingConfiguration)
Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint
deployment.
|
String |
toString()
Returns a string representation of this object.
|
BlueGreenUpdatePolicy |
withMaximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)
Maximum execution timeout for the deployment.
|
BlueGreenUpdatePolicy |
withTerminationWaitInSeconds(Integer terminationWaitInSeconds)
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old
endpoint fleet.
|
BlueGreenUpdatePolicy |
withTrafficRoutingConfiguration(TrafficRoutingConfig trafficRoutingConfiguration)
Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint
deployment.
|
public void setTrafficRoutingConfiguration(TrafficRoutingConfig trafficRoutingConfiguration)
Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
trafficRoutingConfiguration
- Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an
endpoint deployment.public TrafficRoutingConfig getTrafficRoutingConfiguration()
Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
public BlueGreenUpdatePolicy withTrafficRoutingConfiguration(TrafficRoutingConfig trafficRoutingConfiguration)
Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
trafficRoutingConfiguration
- Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an
endpoint deployment.public void setTerminationWaitInSeconds(Integer terminationWaitInSeconds)
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.
terminationWaitInSeconds
- Additional waiting time in seconds after the completion of an endpoint deployment before terminating the
old endpoint fleet. Default is 0.public Integer getTerminationWaitInSeconds()
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.
public BlueGreenUpdatePolicy withTerminationWaitInSeconds(Integer terminationWaitInSeconds)
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.
terminationWaitInSeconds
- Additional waiting time in seconds after the completion of an endpoint deployment before terminating the
old endpoint fleet. Default is 0.public void setMaximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)
Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting
time specified in TerminationWaitInSeconds
and WaitIntervalInSeconds
.
maximumExecutionTimeoutInSeconds
- Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total
waiting time specified in TerminationWaitInSeconds
and WaitIntervalInSeconds
.public Integer getMaximumExecutionTimeoutInSeconds()
Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting
time specified in TerminationWaitInSeconds
and WaitIntervalInSeconds
.
TerminationWaitInSeconds
and WaitIntervalInSeconds
.public BlueGreenUpdatePolicy withMaximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)
Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting
time specified in TerminationWaitInSeconds
and WaitIntervalInSeconds
.
maximumExecutionTimeoutInSeconds
- Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total
waiting time specified in TerminationWaitInSeconds
and WaitIntervalInSeconds
.public String toString()
toString
in class Object
Object.toString()
public BlueGreenUpdatePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.