You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ECS::Types::DeploymentConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb

Overview

Note:

When making an API call, you may pass DeploymentConfiguration data as a hash:

{
  maximum_percent: 1,
  minimum_healthy_percent: 1,
}

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

Instance Attribute Summary collapse

Instance Attribute Details

#maximum_percentInteger

The upper limit (as a percentage of the service's desiredCount) of the number of tasks that are allowed in the RUNNING or PENDING state in a service during a deployment. The maximum number of tasks during a deployment is the desiredCount multiplied by maximumPercent/100, rounded down to the nearest integer value.

Returns:

  • (Integer)


1360
1361
1362
1363
1364
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1360

class DeploymentConfiguration < Struct.new(
  :maximum_percent,
  :minimum_healthy_percent)
  include Aws::Structure
end

#minimum_healthy_percentInteger

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

Returns:

  • (Integer)


1360
1361
1362
1363
1364
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1360

class DeploymentConfiguration < Struct.new(
  :maximum_percent,
  :minimum_healthy_percent)
  include Aws::Structure
end