Struct aws_sdk_securityhub::model::AwsEcsServiceDetails [−][src]
#[non_exhaustive]pub struct AwsEcsServiceDetails {Show 22 fields
pub capacity_provider_strategy: Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>,
pub cluster: Option<String>,
pub deployment_configuration: Option<AwsEcsServiceDeploymentConfigurationDetails>,
pub deployment_controller: Option<AwsEcsServiceDeploymentControllerDetails>,
pub desired_count: i32,
pub enable_ecs_managed_tags: bool,
pub enable_execute_command: bool,
pub health_check_grace_period_seconds: i32,
pub launch_type: Option<String>,
pub load_balancers: Option<Vec<AwsEcsServiceLoadBalancersDetails>>,
pub name: Option<String>,
pub network_configuration: Option<AwsEcsServiceNetworkConfigurationDetails>,
pub placement_constraints: Option<Vec<AwsEcsServicePlacementConstraintsDetails>>,
pub placement_strategies: Option<Vec<AwsEcsServicePlacementStrategiesDetails>>,
pub platform_version: Option<String>,
pub propagate_tags: Option<String>,
pub role: Option<String>,
pub scheduling_strategy: Option<String>,
pub service_arn: Option<String>,
pub service_name: Option<String>,
pub service_registries: Option<Vec<AwsEcsServiceServiceRegistriesDetails>>,
pub task_definition: Option<String>,
}
Expand description
Provides details about a service within an ECS cluster.
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.capacity_provider_strategy: Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>
The capacity provider strategy that the service uses.
cluster: Option<String>
The ARN of the cluster that hosts the service.
deployment_configuration: Option<AwsEcsServiceDeploymentConfigurationDetails>
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
deployment_controller: Option<AwsEcsServiceDeploymentControllerDetails>
Contains the deployment controller type that the service uses.
desired_count: i32
The number of instantiations of the task definition to run on the service.
Whether to enable Amazon ECS managed tags for the tasks in the service.
enable_execute_command: bool
Whether the execute command functionality is enabled for the service.
health_check_grace_period_seconds: i32
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
launch_type: Option<String>
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
load_balancers: Option<Vec<AwsEcsServiceLoadBalancersDetails>>
Information about the load balancers that the service uses.
name: Option<String>
The name of the service.
network_configuration: Option<AwsEcsServiceNetworkConfigurationDetails>
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
placement_constraints: Option<Vec<AwsEcsServicePlacementConstraintsDetails>>
The placement constraints for the tasks in the service.
placement_strategies: Option<Vec<AwsEcsServicePlacementStrategiesDetails>>
Information about how tasks for the service are placed.
platform_version: Option<String>
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a platform version is not specified, the LATEST
platform version is used by default.
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
role: Option<String>
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
scheduling_strategy: Option<String>
The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the task placement constraints for running tasks and stops tasks that do not meet the placement constraints.
Valid values: REPLICA
| DAEMON
service_arn: Option<String>
The ARN of the service.
service_name: Option<String>
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
service_registries: Option<Vec<AwsEcsServiceServiceRegistriesDetails>>
Information about the service discovery registries to assign to the service.
task_definition: Option<String>
The task definition to use for tasks in the service.
Implementations
pub fn capacity_provider_strategy(
&self
) -> Option<&[AwsEcsServiceCapacityProviderStrategyDetails]>
pub fn capacity_provider_strategy(
&self
) -> Option<&[AwsEcsServiceCapacityProviderStrategyDetails]>
The capacity provider strategy that the service uses.
pub fn deployment_configuration(
&self
) -> Option<&AwsEcsServiceDeploymentConfigurationDetails>
pub fn deployment_configuration(
&self
) -> Option<&AwsEcsServiceDeploymentConfigurationDetails>
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
Contains the deployment controller type that the service uses.
The number of instantiations of the task definition to run on the service.
Whether to enable Amazon ECS managed tags for the tasks in the service.
Whether the execute command functionality is enabled for the service.
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
Information about the load balancers that the service uses.
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
The placement constraints for the tasks in the service.
Information about how tasks for the service are placed.
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a platform version is not specified, the LATEST
platform version is used by default.
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the task placement constraints for running tasks and stops tasks that do not meet the placement constraints.
Valid values: REPLICA
| DAEMON
The ARN of the service.
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
Information about the service discovery registries to assign to the service.
The task definition to use for tasks in the service.
Creates a new builder-style object to manufacture AwsEcsServiceDetails
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AwsEcsServiceDetails
impl Send for AwsEcsServiceDetails
impl Sync for AwsEcsServiceDetails
impl Unpin for AwsEcsServiceDetails
impl UnwindSafe for AwsEcsServiceDetails
Blanket Implementations
Mutably borrows from an owned value. Read more
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