Struct aws_sdk_ecs::types::TaskOverride
source · #[non_exhaustive]pub struct TaskOverride {
pub container_overrides: Option<Vec<ContainerOverride>>,
pub cpu: Option<String>,
pub inference_accelerator_overrides: Option<Vec<InferenceAcceleratorOverride>>,
pub execution_role_arn: Option<String>,
pub memory: Option<String>,
pub task_role_arn: Option<String>,
pub ephemeral_storage: Option<EphemeralStorage>,
}Expand description
The overrides that are associated with a task.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.container_overrides: Option<Vec<ContainerOverride>>One or more container overrides that are sent to a task.
cpu: Option<String>The CPU override for the task.
inference_accelerator_overrides: Option<Vec<InferenceAcceleratorOverride>>The Elastic Inference accelerator override for the task.
execution_role_arn: 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.
memory: Option<String>The memory override for the task.
task_role_arn: 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.
ephemeral_storage: 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.0or later. -
Windows platform version
1.0.0or later.
Implementations§
source§impl TaskOverride
impl TaskOverride
sourcepub fn container_overrides(&self) -> &[ContainerOverride]
pub fn container_overrides(&self) -> &[ContainerOverride]
One or more container overrides that are sent to a task.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .container_overrides.is_none().
sourcepub fn inference_accelerator_overrides(&self) -> &[InferenceAcceleratorOverride]
pub fn inference_accelerator_overrides(&self) -> &[InferenceAcceleratorOverride]
The Elastic Inference accelerator override for the task.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .inference_accelerator_overrides.is_none().
sourcepub fn execution_role_arn(&self) -> Option<&str>
pub fn execution_role_arn(&self) -> Option<&str>
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 task_role_arn(&self) -> Option<&str>
pub fn task_role_arn(&self) -> Option<&str>
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) -> Option<&EphemeralStorage>
pub fn 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.0or later. -
Windows platform version
1.0.0or later.
source§impl TaskOverride
impl TaskOverride
sourcepub fn builder() -> TaskOverrideBuilder
pub fn builder() -> TaskOverrideBuilder
Creates a new builder-style object to manufacture TaskOverride.
Trait Implementations§
source§impl Clone for TaskOverride
impl Clone for TaskOverride
source§fn clone(&self) -> TaskOverride
fn clone(&self) -> TaskOverride
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TaskOverride
impl Debug for TaskOverride
source§impl PartialEq for TaskOverride
impl PartialEq for TaskOverride
impl StructuralPartialEq for TaskOverride
Auto Trait Implementations§
impl Freeze for TaskOverride
impl RefUnwindSafe for TaskOverride
impl Send for TaskOverride
impl Sync for TaskOverride
impl Unpin for TaskOverride
impl UnwindSafe for TaskOverride
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more