pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEcsTaskDefinitionDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn container_definitions(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsDetails
) -> Self
pub fn container_definitions(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsDetails
) -> Self
Appends an item to container_definitions
.
To override the contents of this collection use set_container_definitions
.
The container definitions that describe the containers that make up the task.
sourcepub fn set_container_definitions(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsDetails>>
) -> Self
pub fn set_container_definitions(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsDetails>>
) -> Self
The container definitions that describe the containers that make up the task.
sourcepub fn cpu(self, input: impl Into<String>) -> Self
pub fn cpu(self, input: impl Into<String>) -> Self
The number of CPU units used by the task.Valid values are as follows:
-
256 (.25 vCPU)
-
512 (.5 vCPU)
-
1024 (1 vCPU)
-
2048 (2 vCPU)
-
4096 (4 vCPU)
sourcepub fn set_cpu(self, input: Option<String>) -> Self
pub fn set_cpu(self, input: Option<String>) -> Self
The number of CPU units used by the task.Valid values are as follows:
-
256 (.25 vCPU)
-
512 (.5 vCPU)
-
1024 (1 vCPU)
-
2048 (2 vCPU)
-
4096 (4 vCPU)
sourcepub fn execution_role_arn(self, input: impl Into<String>) -> Self
pub fn execution_role_arn(self, input: impl Into<String>) -> Self
The ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.
sourcepub fn set_execution_role_arn(self, input: Option<String>) -> Self
pub fn set_execution_role_arn(self, input: Option<String>) -> Self
The ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.
sourcepub fn family(self, input: impl Into<String>) -> Self
pub fn family(self, input: impl Into<String>) -> Self
The name of a family that this task definition is registered to.
sourcepub fn set_family(self, input: Option<String>) -> Self
pub fn set_family(self, input: Option<String>) -> Self
The name of a family that this task definition is registered to.
sourcepub fn inference_accelerators(
self,
input: AwsEcsTaskDefinitionInferenceAcceleratorsDetails
) -> Self
pub fn inference_accelerators(
self,
input: AwsEcsTaskDefinitionInferenceAcceleratorsDetails
) -> Self
Appends an item to inference_accelerators
.
To override the contents of this collection use set_inference_accelerators
.
The Elastic Inference accelerators to use for the containers in the task.
sourcepub fn set_inference_accelerators(
self,
input: Option<Vec<AwsEcsTaskDefinitionInferenceAcceleratorsDetails>>
) -> Self
pub fn set_inference_accelerators(
self,
input: Option<Vec<AwsEcsTaskDefinitionInferenceAcceleratorsDetails>>
) -> Self
The Elastic Inference accelerators to use for the containers in the task.
sourcepub fn ipc_mode(self, input: impl Into<String>) -> Self
pub fn ipc_mode(self, input: impl Into<String>) -> Self
The inter-process communication (IPC) resource namespace to use for the containers in the task. Valid values are as follows:
-
host
-
none
-
task
sourcepub fn set_ipc_mode(self, input: Option<String>) -> Self
pub fn set_ipc_mode(self, input: Option<String>) -> Self
The inter-process communication (IPC) resource namespace to use for the containers in the task. Valid values are as follows:
-
host
-
none
-
task
sourcepub fn memory(self, input: impl Into<String>) -> Self
pub fn memory(self, input: impl Into<String>) -> Self
The amount (in MiB) of memory used by the task.
For tasks that are hosted on Amazon EC2, you can provide a task-level memory value or a container-level memory value. For tasks that are hosted on Fargate, you must use one of the specified values in the Amazon Elastic Container Service Developer Guide , which determines your range of supported values for the Cpu
and Memory
parameters.
sourcepub fn set_memory(self, input: Option<String>) -> Self
pub fn set_memory(self, input: Option<String>) -> Self
The amount (in MiB) of memory used by the task.
For tasks that are hosted on Amazon EC2, you can provide a task-level memory value or a container-level memory value. For tasks that are hosted on Fargate, you must use one of the specified values in the Amazon Elastic Container Service Developer Guide , which determines your range of supported values for the Cpu
and Memory
parameters.
sourcepub fn network_mode(self, input: impl Into<String>) -> Self
pub fn network_mode(self, input: impl Into<String>) -> Self
The Docker networking mode to use for the containers in the task. Valid values are as follows:
-
awsvpc
-
bridge
-
host
-
none
sourcepub fn set_network_mode(self, input: Option<String>) -> Self
pub fn set_network_mode(self, input: Option<String>) -> Self
The Docker networking mode to use for the containers in the task. Valid values are as follows:
-
awsvpc
-
bridge
-
host
-
none
sourcepub fn pid_mode(self, input: impl Into<String>) -> Self
pub fn pid_mode(self, input: impl Into<String>) -> Self
The process namespace to use for the containers in the task. Valid values are host
or task
.
sourcepub fn set_pid_mode(self, input: Option<String>) -> Self
pub fn set_pid_mode(self, input: Option<String>) -> Self
The process namespace to use for the containers in the task. Valid values are host
or task
.
sourcepub fn placement_constraints(
self,
input: AwsEcsTaskDefinitionPlacementConstraintsDetails
) -> Self
pub fn placement_constraints(
self,
input: AwsEcsTaskDefinitionPlacementConstraintsDetails
) -> Self
Appends an item to placement_constraints
.
To override the contents of this collection use set_placement_constraints
.
The placement constraint objects to use for tasks.
sourcepub fn set_placement_constraints(
self,
input: Option<Vec<AwsEcsTaskDefinitionPlacementConstraintsDetails>>
) -> Self
pub fn set_placement_constraints(
self,
input: Option<Vec<AwsEcsTaskDefinitionPlacementConstraintsDetails>>
) -> Self
The placement constraint objects to use for tasks.
sourcepub fn proxy_configuration(
self,
input: AwsEcsTaskDefinitionProxyConfigurationDetails
) -> Self
pub fn proxy_configuration(
self,
input: AwsEcsTaskDefinitionProxyConfigurationDetails
) -> Self
The configuration details for the App Mesh proxy.
sourcepub fn set_proxy_configuration(
self,
input: Option<AwsEcsTaskDefinitionProxyConfigurationDetails>
) -> Self
pub fn set_proxy_configuration(
self,
input: Option<AwsEcsTaskDefinitionProxyConfigurationDetails>
) -> Self
The configuration details for the App Mesh proxy.
sourcepub fn requires_compatibilities(self, input: impl Into<String>) -> Self
pub fn requires_compatibilities(self, input: impl Into<String>) -> Self
Appends an item to requires_compatibilities
.
To override the contents of this collection use set_requires_compatibilities
.
The task launch types that the task definition was validated against.
sourcepub fn set_requires_compatibilities(self, input: Option<Vec<String>>) -> Self
pub fn set_requires_compatibilities(self, input: Option<Vec<String>>) -> Self
The task launch types that the task definition was validated against.
sourcepub fn task_role_arn(self, input: impl Into<String>) -> Self
pub fn task_role_arn(self, input: impl Into<String>) -> Self
The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.
sourcepub fn set_task_role_arn(self, input: Option<String>) -> Self
pub fn set_task_role_arn(self, input: Option<String>) -> Self
The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.
sourcepub fn volumes(self, input: AwsEcsTaskDefinitionVolumesDetails) -> Self
pub fn volumes(self, input: AwsEcsTaskDefinitionVolumesDetails) -> Self
Appends an item to volumes
.
To override the contents of this collection use set_volumes
.
The data volume definitions for the task.
sourcepub fn set_volumes(
self,
input: Option<Vec<AwsEcsTaskDefinitionVolumesDetails>>
) -> Self
pub fn set_volumes(
self,
input: Option<Vec<AwsEcsTaskDefinitionVolumesDetails>>
) -> Self
The data volume definitions for the task.
sourcepub fn build(self) -> AwsEcsTaskDefinitionDetails
pub fn build(self) -> AwsEcsTaskDefinitionDetails
Consumes the builder and constructs a AwsEcsTaskDefinitionDetails
.