@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RollingUpdatePolicy extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a rolling deployment strategy for updating a SageMaker endpoint.
Constructor and Description |
---|
RollingUpdatePolicy() |
Modifier and Type | Method and Description |
---|---|
RollingUpdatePolicy |
clone() |
boolean |
equals(Object obj) |
CapacitySize |
getMaximumBatchSize()
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and
terminate capacity on the old endpoint fleet.
|
Integer |
getMaximumExecutionTimeoutInSeconds()
The time limit for the total deployment.
|
CapacitySize |
getRollbackMaximumBatchSize()
Batch size for rollback to the old endpoint fleet.
|
Integer |
getWaitIntervalInSeconds()
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaximumBatchSize(CapacitySize maximumBatchSize)
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and
terminate capacity on the old endpoint fleet.
|
void |
setMaximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)
The time limit for the total deployment.
|
void |
setRollbackMaximumBatchSize(CapacitySize rollbackMaximumBatchSize)
Batch size for rollback to the old endpoint fleet.
|
void |
setWaitIntervalInSeconds(Integer waitIntervalInSeconds)
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
|
String |
toString()
Returns a string representation of this object.
|
RollingUpdatePolicy |
withMaximumBatchSize(CapacitySize maximumBatchSize)
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and
terminate capacity on the old endpoint fleet.
|
RollingUpdatePolicy |
withMaximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)
The time limit for the total deployment.
|
RollingUpdatePolicy |
withRollbackMaximumBatchSize(CapacitySize rollbackMaximumBatchSize)
Batch size for rollback to the old endpoint fleet.
|
RollingUpdatePolicy |
withWaitIntervalInSeconds(Integer waitIntervalInSeconds)
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
|
public void setMaximumBatchSize(CapacitySize maximumBatchSize)
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.
maximumBatchSize
- Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and
terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total
instance count.public CapacitySize getMaximumBatchSize()
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.
public RollingUpdatePolicy withMaximumBatchSize(CapacitySize maximumBatchSize)
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.
maximumBatchSize
- Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and
terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total
instance count.public void setWaitIntervalInSeconds(Integer waitIntervalInSeconds)
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
waitIntervalInSeconds
- The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.public Integer getWaitIntervalInSeconds()
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
public RollingUpdatePolicy withWaitIntervalInSeconds(Integer waitIntervalInSeconds)
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
waitIntervalInSeconds
- The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.public void setMaximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)
The time limit for the total deployment. Exceeding this limit causes a timeout.
maximumExecutionTimeoutInSeconds
- The time limit for the total deployment. Exceeding this limit causes a timeout.public Integer getMaximumExecutionTimeoutInSeconds()
The time limit for the total deployment. Exceeding this limit causes a timeout.
public RollingUpdatePolicy withMaximumExecutionTimeoutInSeconds(Integer maximumExecutionTimeoutInSeconds)
The time limit for the total deployment. Exceeding this limit causes a timeout.
maximumExecutionTimeoutInSeconds
- The time limit for the total deployment. Exceeding this limit causes a timeout.public void setRollbackMaximumBatchSize(CapacitySize rollbackMaximumBatchSize)
Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
rollbackMaximumBatchSize
- Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on
traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is
absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity
of the old fleet at once during rollback.public CapacitySize getRollbackMaximumBatchSize()
Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
public RollingUpdatePolicy withRollbackMaximumBatchSize(CapacitySize rollbackMaximumBatchSize)
Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
rollbackMaximumBatchSize
- Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on
traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is
absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity
of the old fleet at once during rollback.public String toString()
toString
in class Object
Object.toString()
public RollingUpdatePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.