Class DeploymentConfiguration

java.lang.Object
com.amazonaws.services.ecs.model.DeploymentConfiguration
All Implemented Interfaces:
Serializable, Cloneable

public class DeploymentConfiguration extends Object implements Serializable, Cloneable

Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment.
    The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment.
    int
     
    void
    setMaximumPercent(Integer maximumPercent)
    The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment.
    void
    setMinimumHealthyPercent(Integer minimumHealthyPercent)
    The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment.
    Returns a string representation of this object; useful for testing and debugging.
    withMaximumPercent(Integer maximumPercent)
    The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment.
    withMinimumHealthyPercent(Integer minimumHealthyPercent)
    The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DeploymentConfiguration

      public DeploymentConfiguration()
  • Method Details

    • setMaximumPercent

      public void setMaximumPercent(Integer maximumPercent)

      The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is the desiredCount multiplied by the maximumPercent/100, rounded down to the nearest integer value.

      Parameters:
      maximumPercent - The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is the desiredCount multiplied by the maximumPercent/100, rounded down to the nearest integer value.
    • getMaximumPercent

      public Integer getMaximumPercent()

      The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is the desiredCount multiplied by the maximumPercent/100, rounded down to the nearest integer value.

      Returns:
      The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is the desiredCount multiplied by the maximumPercent/100, rounded down to the nearest integer value.
    • withMaximumPercent

      public DeploymentConfiguration withMaximumPercent(Integer maximumPercent)

      The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is the desiredCount multiplied by the maximumPercent/100, rounded down to the nearest integer value.

      Parameters:
      maximumPercent - The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. The maximum number of tasks during a deployment is the desiredCount multiplied by the maximumPercent/100, rounded down to the nearest integer value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMinimumHealthyPercent

      public void setMinimumHealthyPercent(Integer minimumHealthyPercent)

      The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.

      Parameters:
      minimumHealthyPercent - The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.
    • getMinimumHealthyPercent

      public Integer getMinimumHealthyPercent()

      The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.

      Returns:
      The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.
    • withMinimumHealthyPercent

      public DeploymentConfiguration withMinimumHealthyPercent(Integer minimumHealthyPercent)

      The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.

      Parameters:
      minimumHealthyPercent - The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. The minimum healthy tasks during a deployment is the desiredCount multiplied by the minimumHealthyPercent/100, rounded up to the nearest integer value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public DeploymentConfiguration clone()
      Overrides:
      clone in class Object