logo
pub struct Deployment {
Show 15 fields pub capacity_provider_strategy: Option<Vec<CapacityProviderStrategyItem>>, pub created_at: Option<f64>, pub desired_count: Option<i64>, pub failed_tasks: Option<i64>, pub id: Option<String>, pub launch_type: Option<String>, pub network_configuration: Option<NetworkConfiguration>, pub pending_count: Option<i64>, pub platform_version: Option<String>, pub rollout_state: Option<String>, pub rollout_state_reason: Option<String>, pub running_count: Option<i64>, pub status: Option<String>, pub task_definition: Option<String>, pub updated_at: Option<f64>,
}
Expand description

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

Fields

capacity_provider_strategy: Option<Vec<CapacityProviderStrategyItem>>

The capacity provider strategy that the deployment is using.

created_at: Option<f64>

The Unix timestamp for when the service deployment was created.

desired_count: Option<i64>

The most recent desired count of tasks that was specified for the service to deploy or maintain.

failed_tasks: Option<i64>

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.

Once a service deployment has one or more successfully running tasks, the failed task count resets to zero and stops being evaluated.

id: Option<String>

The ID of the deployment.

launch_type: Option<String>

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

network_configuration: Option<NetworkConfiguration>

The VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the awsvpc networking mode.

pending_count: Option<i64>

The number of tasks in the deployment that are in the PENDING status.

platform_version: Option<String>

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 AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

rollout_state: Option<String>

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.

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.

rollout_state_reason: Option<String>

A description of the rollout state of a deployment.

running_count: Option<i64>

The number of tasks in the deployment that are in the RUNNING status.

status: Option<String>

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.

task_definition: Option<String>

The most recent task definition that was specified for the tasks in the service to use.

updated_at: Option<f64>

The Unix timestamp for when the service deployment was last updated.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more