Struct aws_sdk_ecs::types::builders::TaskOverrideBuilder
source · #[non_exhaustive]pub struct TaskOverrideBuilder { /* private fields */ }
Expand description
A builder for TaskOverride
.
Implementations§
source§impl TaskOverrideBuilder
impl TaskOverrideBuilder
sourcepub fn container_overrides(self, input: ContainerOverride) -> Self
pub fn container_overrides(self, input: ContainerOverride) -> Self
Appends an item to container_overrides
.
To override the contents of this collection use set_container_overrides
.
One or more container overrides that are sent to a task.
sourcepub fn set_container_overrides(
self,
input: Option<Vec<ContainerOverride>>
) -> Self
pub fn set_container_overrides( self, input: Option<Vec<ContainerOverride>> ) -> Self
One or more container overrides that are sent to a task.
sourcepub fn get_container_overrides(&self) -> &Option<Vec<ContainerOverride>>
pub fn get_container_overrides(&self) -> &Option<Vec<ContainerOverride>>
One or more container overrides that are sent to a task.
sourcepub fn inference_accelerator_overrides(
self,
input: InferenceAcceleratorOverride
) -> Self
pub fn inference_accelerator_overrides( self, input: InferenceAcceleratorOverride ) -> Self
Appends an item to inference_accelerator_overrides
.
To override the contents of this collection use set_inference_accelerator_overrides
.
The Elastic Inference accelerator override for the task.
sourcepub fn set_inference_accelerator_overrides(
self,
input: Option<Vec<InferenceAcceleratorOverride>>
) -> Self
pub fn set_inference_accelerator_overrides( self, input: Option<Vec<InferenceAcceleratorOverride>> ) -> Self
The Elastic Inference accelerator override for the task.
sourcepub fn get_inference_accelerator_overrides(
&self
) -> &Option<Vec<InferenceAcceleratorOverride>>
pub fn get_inference_accelerator_overrides( &self ) -> &Option<Vec<InferenceAcceleratorOverride>>
The Elastic Inference accelerator override for the task.
sourcepub fn execution_role_arn(self, input: impl Into<String>) -> Self
pub fn execution_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the task execution role override for the task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide.
sourcepub fn set_execution_role_arn(self, input: Option<String>) -> Self
pub fn set_execution_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the task execution role override for the task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide.
sourcepub fn get_execution_role_arn(&self) -> &Option<String>
pub fn get_execution_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the task execution role override for the task. For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide.
sourcepub fn set_memory(self, input: Option<String>) -> Self
pub fn set_memory(self, input: Option<String>) -> Self
The memory override for the task.
sourcepub fn get_memory(&self) -> &Option<String>
pub fn get_memory(&self) -> &Option<String>
The memory override for the task.
sourcepub fn task_role_arn(self, input: impl Into<String>) -> Self
pub fn task_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Role for Tasks in the Amazon Elastic Container Service Developer Guide.
sourcepub fn set_task_role_arn(self, input: Option<String>) -> Self
pub fn set_task_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Role for Tasks in the Amazon Elastic Container Service Developer Guide.
sourcepub fn get_task_role_arn(&self) -> &Option<String>
pub fn get_task_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Role for Tasks in the Amazon Elastic Container Service Developer Guide.
sourcepub fn ephemeral_storage(self, input: EphemeralStorage) -> Self
pub fn ephemeral_storage(self, input: EphemeralStorage) -> Self
The ephemeral storage setting override for the task.
This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
-
Linux platform version
1.4.0
or later. -
Windows platform version
1.0.0
or later.
sourcepub fn set_ephemeral_storage(self, input: Option<EphemeralStorage>) -> Self
pub fn set_ephemeral_storage(self, input: Option<EphemeralStorage>) -> Self
The ephemeral storage setting override for the task.
This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
-
Linux platform version
1.4.0
or later. -
Windows platform version
1.0.0
or later.
sourcepub fn get_ephemeral_storage(&self) -> &Option<EphemeralStorage>
pub fn get_ephemeral_storage(&self) -> &Option<EphemeralStorage>
The ephemeral storage setting override for the task.
This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
-
Linux platform version
1.4.0
or later. -
Windows platform version
1.0.0
or later.
sourcepub fn build(self) -> TaskOverride
pub fn build(self) -> TaskOverride
Consumes the builder and constructs a TaskOverride
.
Trait Implementations§
source§impl Clone for TaskOverrideBuilder
impl Clone for TaskOverrideBuilder
source§fn clone(&self) -> TaskOverrideBuilder
fn clone(&self) -> TaskOverrideBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskOverrideBuilder
impl Debug for TaskOverrideBuilder
source§impl Default for TaskOverrideBuilder
impl Default for TaskOverrideBuilder
source§fn default() -> TaskOverrideBuilder
fn default() -> TaskOverrideBuilder
source§impl PartialEq for TaskOverrideBuilder
impl PartialEq for TaskOverrideBuilder
source§fn eq(&self, other: &TaskOverrideBuilder) -> bool
fn eq(&self, other: &TaskOverrideBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.