class Aws::ECS::Types::Deployment

The details of an Amazon ECS service deployment. This is used only when a service uses the `ECS` deployment controller type.

@!attribute [rw] id

The ID of the deployment.
@return [String]

@!attribute [rw] status

The status of the deployment. The following describes each state:

PRIMARY

: The most recent deployment of a service.

ACTIVE

: A service deployment that still has running tasks, but are in the
  process of being replaced with a new `PRIMARY` deployment.

INACTIVE

: A deployment that has been completely replaced.
@return [String]

@!attribute [rw] task_definition

The most recent task definition that was specified for the tasks in
the service to use.
@return [String]

@!attribute [rw] desired_count

The most recent desired count of tasks that was specified for the
service to deploy or maintain.
@return [Integer]

@!attribute [rw] pending_count

The number of tasks in the deployment that are in the `PENDING`
status.
@return [Integer]

@!attribute [rw] running_count

The number of tasks in the deployment that are in the `RUNNING`
status.
@return [Integer]

@!attribute [rw] failed_tasks

The number of consecutively failed tasks in the deployment. A task
is considered a failure if the service scheduler can't launch the
task, the task doesn't transition to a `RUNNING` state, or if it
fails any of its defined health checks and is stopped.

<note markdown="1"> Once a service deployment has one or more successfully running
tasks, the failed task count resets to zero and stops being
evaluated.

 </note>
@return [Integer]

@!attribute [rw] created_at

The Unix timestamp for when the service deployment was created.
@return [Time]

@!attribute [rw] updated_at

The Unix timestamp for when the service deployment was last updated.
@return [Time]

@!attribute [rw] capacity_provider_strategy

The capacity provider strategy that the deployment is using.
@return [Array<Types::CapacityProviderStrategyItem>]

@!attribute [rw] launch_type

The launch type the tasks in the service are using. For more
information, see [Amazon ECS Launch Types][1] in the *Amazon Elastic
Container Service Developer Guide*.

[1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
@return [String]

@!attribute [rw] platform_version

The platform version on which your tasks in the service are running.
A platform version is only specified for tasks using the Fargate
launch type. If one is not specified, the `LATEST` platform version
is used by default. For more information, see [Fargate Platform
Versions][1] in the *Amazon Elastic Container Service Developer
Guide*.

[1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html
@return [String]

@!attribute [rw] network_configuration

The VPC subnet and security group configuration for tasks that
receive their own elastic network interface by using the `awsvpc`
networking mode.
@return [Types::NetworkConfiguration]

@!attribute [rw] rollout_state

<note markdown="1"> The `rolloutState` of a service is only returned for services that
use the rolling update (`ECS`) deployment type that are not behind a
Classic Load Balancer.

 </note>

The rollout state of the deployment. When a service deployment is
started, it begins in an `IN_PROGRESS` state. When the service
reaches a steady state, the deployment will transition to a
`COMPLETED` state. If the service fails to reach a steady state and
circuit breaker is enabled, the deployment will transition to a
`FAILED` state. A deployment in `FAILED` state will launch no new
tasks. For more information, see DeploymentCircuitBreaker.
@return [String]

@!attribute [rw] rollout_state_reason

A description of the rollout state of a deployment.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Deployment AWS API Documentation

Constants

SENSITIVE