Struct aws_sdk_ecs::model::task_override::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for TaskOverride
Implementations
sourceimpl Builder
impl Builder
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 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 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 IAM 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 IAM 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 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 IAM 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 IAM 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 build(self) -> TaskOverride
pub fn build(self) -> TaskOverride
Consumes the builder and constructs a TaskOverride
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more