Struct aws_sdk_securityhub::model::AwsEcsServiceDetails
source · #[non_exhaustive]pub struct AwsEcsServiceDetails { /* private fields */ }
Expand description
Provides details about a service within an ECS cluster.
Implementations§
source§impl AwsEcsServiceDetails
impl AwsEcsServiceDetails
sourcepub fn capacity_provider_strategy(
&self
) -> Option<&[AwsEcsServiceCapacityProviderStrategyDetails]>
pub fn capacity_provider_strategy(
&self
) -> Option<&[AwsEcsServiceCapacityProviderStrategyDetails]>
The capacity provider strategy that the service uses.
sourcepub 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.
sourcepub fn deployment_controller(
&self
) -> Option<&AwsEcsServiceDeploymentControllerDetails>
pub fn deployment_controller(
&self
) -> Option<&AwsEcsServiceDeploymentControllerDetails>
Contains the deployment controller type that the service uses.
sourcepub fn desired_count(&self) -> i32
pub fn desired_count(&self) -> 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.
sourcepub fn enable_execute_command(&self) -> bool
pub fn enable_execute_command(&self) -> bool
Whether the execute command functionality is enabled for the service.
sourcepub fn health_check_grace_period_seconds(&self) -> i32
pub fn health_check_grace_period_seconds(&self) -> 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.
sourcepub fn launch_type(&self) -> Option<&str>
pub fn launch_type(&self) -> Option<&str>
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
sourcepub fn load_balancers(&self) -> Option<&[AwsEcsServiceLoadBalancersDetails]>
pub fn load_balancers(&self) -> Option<&[AwsEcsServiceLoadBalancersDetails]>
Information about the load balancers that the service uses.
sourcepub fn network_configuration(
&self
) -> Option<&AwsEcsServiceNetworkConfigurationDetails>
pub fn network_configuration(
&self
) -> Option<&AwsEcsServiceNetworkConfigurationDetails>
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
sourcepub fn placement_constraints(
&self
) -> Option<&[AwsEcsServicePlacementConstraintsDetails]>
pub fn placement_constraints(
&self
) -> Option<&[AwsEcsServicePlacementConstraintsDetails]>
The placement constraints for the tasks in the service.
sourcepub fn placement_strategies(
&self
) -> Option<&[AwsEcsServicePlacementStrategiesDetails]>
pub fn placement_strategies(
&self
) -> Option<&[AwsEcsServicePlacementStrategiesDetails]>
Information about how tasks for the service are placed.
sourcepub fn platform_version(&self) -> Option<&str>
pub fn platform_version(&self) -> Option<&str>
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
sourcepub fn role(&self) -> Option<&str>
pub fn role(&self) -> Option<&str>
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.
sourcepub fn scheduling_strategy(&self) -> Option<&str>
pub fn scheduling_strategy(&self) -> Option<&str>
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
sourcepub fn service_arn(&self) -> Option<&str>
pub fn service_arn(&self) -> Option<&str>
The ARN of the service.
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
sourcepub fn service_registries(
&self
) -> Option<&[AwsEcsServiceServiceRegistriesDetails]>
pub fn service_registries(
&self
) -> Option<&[AwsEcsServiceServiceRegistriesDetails]>
Information about the service discovery registries to assign to the service.
sourcepub fn task_definition(&self) -> Option<&str>
pub fn task_definition(&self) -> Option<&str>
The task definition to use for tasks in the service.
source§impl AwsEcsServiceDetails
impl AwsEcsServiceDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsEcsServiceDetails
.
Trait Implementations§
source§impl Clone for AwsEcsServiceDetails
impl Clone for AwsEcsServiceDetails
source§fn clone(&self) -> AwsEcsServiceDetails
fn clone(&self) -> AwsEcsServiceDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsEcsServiceDetails
impl Debug for AwsEcsServiceDetails
source§impl PartialEq<AwsEcsServiceDetails> for AwsEcsServiceDetails
impl PartialEq<AwsEcsServiceDetails> for AwsEcsServiceDetails
source§fn eq(&self, other: &AwsEcsServiceDetails) -> bool
fn eq(&self, other: &AwsEcsServiceDetails) -> bool
self
and other
values to be equal, and is used
by ==
.