Interface ThresholdConfiguration.Builder

  • Method Details

    • type

      Determines how value is used to calculate the failure threshold. For the percentage types ( BOUNDED_PERCENT and UNBOUNDED_PERCENT), value is multiplied by the latest service desired count; for COUNT, value is used directly. The default is BOUNDED_PERCENT.

      Parameters:
      type - Determines how value is used to calculate the failure threshold. For the percentage types (BOUNDED_PERCENT and UNBOUNDED_PERCENT), value is multiplied by the latest service desired count; for COUNT, value is used directly. The default is BOUNDED_PERCENT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      Determines how value is used to calculate the failure threshold. For the percentage types ( BOUNDED_PERCENT and UNBOUNDED_PERCENT), value is multiplied by the latest service desired count; for COUNT, value is used directly. The default is BOUNDED_PERCENT.

      Parameters:
      type - Determines how value is used to calculate the failure threshold. For the percentage types (BOUNDED_PERCENT and UNBOUNDED_PERCENT), value is multiplied by the latest service desired count; for COUNT, value is used directly. The default is BOUNDED_PERCENT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • value

      The integer used to calculate the failure threshold. When type is COUNT, this is the failure threshold itself. When type is a percentage type, this is the percentage that Amazon ECS multiplies by the latest service desired count to calculate the failure threshold.

      Parameters:
      value - The integer used to calculate the failure threshold. When type is COUNT, this is the failure threshold itself. When type is a percentage type, this is the percentage that Amazon ECS multiplies by the latest service desired count to calculate the failure threshold.
      Returns:
      Returns a reference to this object so that method calls can be chained together.