Struct aws_sdk_securityhub::model::aws_ecs_service_details::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEcsServiceDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn capacity_provider_strategy(
self,
input: AwsEcsServiceCapacityProviderStrategyDetails
) -> Self
pub fn capacity_provider_strategy(
self,
input: AwsEcsServiceCapacityProviderStrategyDetails
) -> Self
Appends an item to capacity_provider_strategy
.
To override the contents of this collection use set_capacity_provider_strategy
.
The capacity provider strategy that the service uses.
sourcepub fn set_capacity_provider_strategy(
self,
input: Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>
) -> Self
pub fn set_capacity_provider_strategy(
self,
input: Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>
) -> Self
The capacity provider strategy that the service uses.
sourcepub fn cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
The ARN of the cluster that hosts the service.
sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
The ARN of the cluster that hosts the service.
sourcepub fn deployment_configuration(
self,
input: AwsEcsServiceDeploymentConfigurationDetails
) -> Self
pub fn deployment_configuration(
self,
input: AwsEcsServiceDeploymentConfigurationDetails
) -> Self
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
sourcepub fn set_deployment_configuration(
self,
input: Option<AwsEcsServiceDeploymentConfigurationDetails>
) -> Self
pub fn set_deployment_configuration(
self,
input: Option<AwsEcsServiceDeploymentConfigurationDetails>
) -> Self
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,
input: AwsEcsServiceDeploymentControllerDetails
) -> Self
pub fn deployment_controller(
self,
input: AwsEcsServiceDeploymentControllerDetails
) -> Self
Contains the deployment controller type that the service uses.
sourcepub fn set_deployment_controller(
self,
input: Option<AwsEcsServiceDeploymentControllerDetails>
) -> Self
pub fn set_deployment_controller(
self,
input: Option<AwsEcsServiceDeploymentControllerDetails>
) -> Self
Contains the deployment controller type that the service uses.
sourcepub fn desired_count(self, input: i32) -> Self
pub fn desired_count(self, input: i32) -> Self
The number of instantiations of the task definition to run on the service.
sourcepub fn set_desired_count(self, input: Option<i32>) -> Self
pub fn set_desired_count(self, input: Option<i32>) -> Self
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 to enable Amazon ECS managed tags for the tasks in the service.
sourcepub fn enable_execute_command(self, input: bool) -> Self
pub fn enable_execute_command(self, input: bool) -> Self
Whether the execute command functionality is enabled for the service.
sourcepub fn set_enable_execute_command(self, input: Option<bool>) -> Self
pub fn set_enable_execute_command(self, input: Option<bool>) -> Self
Whether the execute command functionality is enabled for the service.
sourcepub fn health_check_grace_period_seconds(self, input: i32) -> Self
pub fn health_check_grace_period_seconds(self, input: i32) -> Self
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 set_health_check_grace_period_seconds(self, input: Option<i32>) -> Self
pub fn set_health_check_grace_period_seconds(self, input: Option<i32>) -> Self
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, input: impl Into<String>) -> Self
pub fn launch_type(self, input: impl Into<String>) -> Self
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
sourcepub fn set_launch_type(self, input: Option<String>) -> Self
pub fn set_launch_type(self, input: Option<String>) -> Self
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
sourcepub fn load_balancers(self, input: AwsEcsServiceLoadBalancersDetails) -> Self
pub fn load_balancers(self, input: AwsEcsServiceLoadBalancersDetails) -> Self
Appends an item to load_balancers
.
To override the contents of this collection use set_load_balancers
.
Information about the load balancers that the service uses.
sourcepub fn set_load_balancers(
self,
input: Option<Vec<AwsEcsServiceLoadBalancersDetails>>
) -> Self
pub fn set_load_balancers(
self,
input: Option<Vec<AwsEcsServiceLoadBalancersDetails>>
) -> Self
Information about the load balancers that the service uses.
sourcepub fn network_configuration(
self,
input: AwsEcsServiceNetworkConfigurationDetails
) -> Self
pub fn network_configuration(
self,
input: AwsEcsServiceNetworkConfigurationDetails
) -> Self
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
sourcepub fn set_network_configuration(
self,
input: Option<AwsEcsServiceNetworkConfigurationDetails>
) -> Self
pub fn set_network_configuration(
self,
input: Option<AwsEcsServiceNetworkConfigurationDetails>
) -> Self
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
sourcepub fn placement_constraints(
self,
input: AwsEcsServicePlacementConstraintsDetails
) -> Self
pub fn placement_constraints(
self,
input: AwsEcsServicePlacementConstraintsDetails
) -> Self
Appends an item to placement_constraints
.
To override the contents of this collection use set_placement_constraints
.
The placement constraints for the tasks in the service.
sourcepub fn set_placement_constraints(
self,
input: Option<Vec<AwsEcsServicePlacementConstraintsDetails>>
) -> Self
pub fn set_placement_constraints(
self,
input: Option<Vec<AwsEcsServicePlacementConstraintsDetails>>
) -> Self
The placement constraints for the tasks in the service.
sourcepub fn placement_strategies(
self,
input: AwsEcsServicePlacementStrategiesDetails
) -> Self
pub fn placement_strategies(
self,
input: AwsEcsServicePlacementStrategiesDetails
) -> Self
Appends an item to placement_strategies
.
To override the contents of this collection use set_placement_strategies
.
Information about how tasks for the service are placed.
sourcepub fn set_placement_strategies(
self,
input: Option<Vec<AwsEcsServicePlacementStrategiesDetails>>
) -> Self
pub fn set_placement_strategies(
self,
input: Option<Vec<AwsEcsServicePlacementStrategiesDetails>>
) -> Self
Information about how tasks for the service are placed.
sourcepub fn platform_version(self, input: impl Into<String>) -> Self
pub fn platform_version(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_platform_version(self, input: Option<String>) -> Self
pub fn set_platform_version(self, input: Option<String>) -> Self
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
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, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
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 set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn scheduling_strategy(self, input: impl Into<String>) -> Self
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 set_scheduling_strategy(self, input: Option<String>) -> Self
pub fn set_scheduling_strategy(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn service_arn(self, input: impl Into<String>) -> Self
The ARN of the service.
sourcepub fn set_service_arn(self, input: Option<String>) -> Self
pub fn set_service_arn(self, input: Option<String>) -> Self
The ARN of the service.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
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,
input: AwsEcsServiceServiceRegistriesDetails
) -> Self
pub fn service_registries(
self,
input: AwsEcsServiceServiceRegistriesDetails
) -> Self
Appends an item to service_registries
.
To override the contents of this collection use set_service_registries
.
Information about the service discovery registries to assign to the service.
sourcepub fn set_service_registries(
self,
input: Option<Vec<AwsEcsServiceServiceRegistriesDetails>>
) -> Self
pub fn set_service_registries(
self,
input: Option<Vec<AwsEcsServiceServiceRegistriesDetails>>
) -> Self
Information about the service discovery registries to assign to the service.
sourcepub fn task_definition(self, input: impl Into<String>) -> Self
pub fn task_definition(self, input: impl Into<String>) -> Self
The task definition to use for tasks in the service.
sourcepub fn set_task_definition(self, input: Option<String>) -> Self
pub fn set_task_definition(self, input: Option<String>) -> Self
The task definition to use for tasks in the service.
sourcepub fn build(self) -> AwsEcsServiceDetails
pub fn build(self) -> AwsEcsServiceDetails
Consumes the builder and constructs a AwsEcsServiceDetails
.