Struct aws_sdk_ecs::types::Deployment
source · #[non_exhaustive]pub struct Deployment {Show 18 fields
pub id: Option<String>,
pub status: Option<String>,
pub task_definition: Option<String>,
pub desired_count: i32,
pub pending_count: i32,
pub running_count: i32,
pub failed_tasks: i32,
pub created_at: Option<DateTime>,
pub updated_at: Option<DateTime>,
pub capacity_provider_strategy: Option<Vec<CapacityProviderStrategyItem>>,
pub launch_type: Option<LaunchType>,
pub platform_version: Option<String>,
pub platform_family: Option<String>,
pub network_configuration: Option<NetworkConfiguration>,
pub rollout_state: Option<DeploymentRolloutState>,
pub rollout_state_reason: Option<String>,
pub service_connect_configuration: Option<ServiceConnectConfiguration>,
pub service_connect_resources: Option<Vec<ServiceConnectServiceResource>>,
}
Expand description
The details of an Amazon ECS service deployment. This is used only when a service uses the ECS
deployment controller type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Option<String>
The ID of the deployment.
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.
desired_count: i32
The most recent desired count of tasks that was specified for the service to deploy or maintain.
pending_count: i32
The number of tasks in the deployment that are in the PENDING
status.
running_count: i32
The number of tasks in the deployment that are in the RUNNING
status.
failed_tasks: i32
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.
created_at: Option<DateTime>
The Unix timestamp for the time when the service deployment was created.
updated_at: Option<DateTime>
The Unix timestamp for the time when the service deployment was last updated.
capacity_provider_strategy: Option<Vec<CapacityProviderStrategyItem>>
The capacity provider strategy that the deployment is using.
launch_type: Option<LaunchType>
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.
platform_version: Option<String>
The platform version that your tasks in the service run on. A platform version is only specified for tasks using the Fargate launch type. If one isn't specified, the LATEST
platform version is used. For more information, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.
platform_family: Option<String>
The operating system that your tasks in the service, or tasks are running on. A platform family is specified only for tasks using the Fargate launch type.
All tasks that run as part of this service must use the same platformFamily
value as the service, for example, LINUX.
.
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.
rollout_state: Option<DeploymentRolloutState>
The rolloutState
of a service is only returned for services that use the rolling update (ECS
) deployment type that aren't 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 transitions to a COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned on, the deployment transitions to a FAILED
state. A deployment in FAILED
state doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker
.
rollout_state_reason: Option<String>
A description of the rollout state of a deployment.
service_connect_configuration: Option<ServiceConnectConfiguration>
The details of the Service Connect configuration that's used by this deployment. Compare the configuration between multiple deployments when troubleshooting issues with new deployments.
The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.
Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
service_connect_resources: Option<Vec<ServiceConnectServiceResource>>
The list of Service Connect resources that are associated with this deployment. Each list entry maps a discovery name to a Cloud Map service name.
Implementations§
source§impl Deployment
impl Deployment
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
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.
sourcepub fn task_definition(&self) -> Option<&str>
pub fn task_definition(&self) -> Option<&str>
The most recent task definition that was specified for the tasks in the service to use.
sourcepub fn desired_count(&self) -> i32
pub fn desired_count(&self) -> i32
The most recent desired count of tasks that was specified for the service to deploy or maintain.
sourcepub fn pending_count(&self) -> i32
pub fn pending_count(&self) -> i32
The number of tasks in the deployment that are in the PENDING
status.
sourcepub fn running_count(&self) -> i32
pub fn running_count(&self) -> i32
The number of tasks in the deployment that are in the RUNNING
status.
sourcepub fn failed_tasks(&self) -> i32
pub fn failed_tasks(&self) -> i32
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.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The Unix timestamp for the time when the service deployment was created.
sourcepub fn updated_at(&self) -> Option<&DateTime>
pub fn updated_at(&self) -> Option<&DateTime>
The Unix timestamp for the time when the service deployment was last updated.
sourcepub fn capacity_provider_strategy(&self) -> &[CapacityProviderStrategyItem]
pub fn capacity_provider_strategy(&self) -> &[CapacityProviderStrategyItem]
The capacity provider strategy that the deployment is using.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .capacity_provider_strategy.is_none()
.
sourcepub fn launch_type(&self) -> Option<&LaunchType>
pub fn launch_type(&self) -> Option<&LaunchType>
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.
sourcepub fn platform_version(&self) -> Option<&str>
pub fn platform_version(&self) -> Option<&str>
The platform version that your tasks in the service run on. A platform version is only specified for tasks using the Fargate launch type. If one isn't specified, the LATEST
platform version is used. For more information, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.
sourcepub fn platform_family(&self) -> Option<&str>
pub fn platform_family(&self) -> Option<&str>
The operating system that your tasks in the service, or tasks are running on. A platform family is specified only for tasks using the Fargate launch type.
All tasks that run as part of this service must use the same platformFamily
value as the service, for example, LINUX.
.
sourcepub fn network_configuration(&self) -> Option<&NetworkConfiguration>
pub fn network_configuration(&self) -> Option<&NetworkConfiguration>
The VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the awsvpc
networking mode.
sourcepub fn rollout_state(&self) -> Option<&DeploymentRolloutState>
pub fn rollout_state(&self) -> Option<&DeploymentRolloutState>
The rolloutState
of a service is only returned for services that use the rolling update (ECS
) deployment type that aren't 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 transitions to a COMPLETED
state. If the service fails to reach a steady state and circuit breaker is turned on, the deployment transitions to a FAILED
state. A deployment in FAILED
state doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker
.
sourcepub fn rollout_state_reason(&self) -> Option<&str>
pub fn rollout_state_reason(&self) -> Option<&str>
A description of the rollout state of a deployment.
sourcepub fn service_connect_configuration(
&self
) -> Option<&ServiceConnectConfiguration>
pub fn service_connect_configuration( &self ) -> Option<&ServiceConnectConfiguration>
The details of the Service Connect configuration that's used by this deployment. Compare the configuration between multiple deployments when troubleshooting issues with new deployments.
The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.
Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
sourcepub fn service_connect_resources(&self) -> &[ServiceConnectServiceResource]
pub fn service_connect_resources(&self) -> &[ServiceConnectServiceResource]
The list of Service Connect resources that are associated with this deployment. Each list entry maps a discovery name to a Cloud Map service name.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .service_connect_resources.is_none()
.
source§impl Deployment
impl Deployment
sourcepub fn builder() -> DeploymentBuilder
pub fn builder() -> DeploymentBuilder
Creates a new builder-style object to manufacture Deployment
.
Trait Implementations§
source§impl Clone for Deployment
impl Clone for Deployment
source§fn clone(&self) -> Deployment
fn clone(&self) -> Deployment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Deployment
impl Debug for Deployment
source§impl PartialEq for Deployment
impl PartialEq for Deployment
source§fn eq(&self, other: &Deployment) -> bool
fn eq(&self, other: &Deployment) -> bool
self
and other
values to be equal, and is used
by ==
.