#[non_exhaustive]pub struct AwsEcsTaskDefinitionDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsEcsTaskDefinitionDetails
.
Implementations§
source§impl AwsEcsTaskDefinitionDetailsBuilder
impl AwsEcsTaskDefinitionDetailsBuilder
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 get_container_definitions(
&self
) -> &Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsDetails>>
pub fn get_container_definitions( &self ) -> &Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsDetails>>
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 get_cpu(&self) -> &Option<String>
pub fn get_cpu(&self) -> &Option<String>
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 get_execution_role_arn(&self) -> &Option<String>
pub fn get_execution_role_arn(&self) -> &Option<String>
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 get_family(&self) -> &Option<String>
pub fn get_family(&self) -> &Option<String>
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 get_inference_accelerators(
&self
) -> &Option<Vec<AwsEcsTaskDefinitionInferenceAcceleratorsDetails>>
pub fn get_inference_accelerators( &self ) -> &Option<Vec<AwsEcsTaskDefinitionInferenceAcceleratorsDetails>>
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 get_ipc_mode(&self) -> &Option<String>
pub fn get_ipc_mode(&self) -> &Option<String>
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 get_memory(&self) -> &Option<String>
pub fn get_memory(&self) -> &Option<String>
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 get_network_mode(&self) -> &Option<String>
pub fn get_network_mode(&self) -> &Option<String>
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 get_pid_mode(&self) -> &Option<String>
pub fn get_pid_mode(&self) -> &Option<String>
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 get_placement_constraints(
&self
) -> &Option<Vec<AwsEcsTaskDefinitionPlacementConstraintsDetails>>
pub fn get_placement_constraints( &self ) -> &Option<Vec<AwsEcsTaskDefinitionPlacementConstraintsDetails>>
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 get_proxy_configuration(
&self
) -> &Option<AwsEcsTaskDefinitionProxyConfigurationDetails>
pub fn get_proxy_configuration( &self ) -> &Option<AwsEcsTaskDefinitionProxyConfigurationDetails>
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 get_requires_compatibilities(&self) -> &Option<Vec<String>>
pub fn get_requires_compatibilities(&self) -> &Option<Vec<String>>
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 get_task_role_arn(&self) -> &Option<String>
pub fn get_task_role_arn(&self) -> &Option<String>
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 get_volumes(&self) -> &Option<Vec<AwsEcsTaskDefinitionVolumesDetails>>
pub fn get_volumes(&self) -> &Option<Vec<AwsEcsTaskDefinitionVolumesDetails>>
The data volume definitions for the task.
sourcepub fn build(self) -> AwsEcsTaskDefinitionDetails
pub fn build(self) -> AwsEcsTaskDefinitionDetails
Consumes the builder and constructs a AwsEcsTaskDefinitionDetails
.
Trait Implementations§
source§impl Clone for AwsEcsTaskDefinitionDetailsBuilder
impl Clone for AwsEcsTaskDefinitionDetailsBuilder
source§fn clone(&self) -> AwsEcsTaskDefinitionDetailsBuilder
fn clone(&self) -> AwsEcsTaskDefinitionDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsEcsTaskDefinitionDetailsBuilder
impl Default for AwsEcsTaskDefinitionDetailsBuilder
source§fn default() -> AwsEcsTaskDefinitionDetailsBuilder
fn default() -> AwsEcsTaskDefinitionDetailsBuilder
source§impl PartialEq<AwsEcsTaskDefinitionDetailsBuilder> for AwsEcsTaskDefinitionDetailsBuilder
impl PartialEq<AwsEcsTaskDefinitionDetailsBuilder> for AwsEcsTaskDefinitionDetailsBuilder
source§fn eq(&self, other: &AwsEcsTaskDefinitionDetailsBuilder) -> bool
fn eq(&self, other: &AwsEcsTaskDefinitionDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.