Struct aws_sdk_pipes::types::EcsTaskOverride
source · #[non_exhaustive]pub struct EcsTaskOverride {
pub container_overrides: Option<Vec<EcsContainerOverride>>,
pub cpu: Option<String>,
pub ephemeral_storage: Option<EcsEphemeralStorage>,
pub execution_role_arn: Option<String>,
pub inference_accelerator_overrides: Option<Vec<EcsInferenceAcceleratorOverride>>,
pub memory: Option<String>,
pub task_role_arn: Option<String>,
}
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<EcsContainerOverride>>
One or more container overrides that are sent to a task.
cpu: Option<String>
The cpu override for the task.
ephemeral_storage: Option<EcsEphemeralStorage>
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.
execution_role_arn: Option<String>
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.
inference_accelerator_overrides: Option<Vec<EcsInferenceAcceleratorOverride>>
The Elastic Inference accelerator override for the task.
memory: Option<String>
The memory override for the task.
task_role_arn: Option<String>
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.
Implementations§
source§impl EcsTaskOverride
impl EcsTaskOverride
sourcepub fn container_overrides(&self) -> &[EcsContainerOverride]
pub fn container_overrides(&self) -> &[EcsContainerOverride]
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 ephemeral_storage(&self) -> Option<&EcsEphemeralStorage>
pub fn ephemeral_storage(&self) -> Option<&EcsEphemeralStorage>
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 execution_role_arn(&self) -> Option<&str>
pub fn execution_role_arn(&self) -> Option<&str>
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 inference_accelerator_overrides(
&self
) -> &[EcsInferenceAcceleratorOverride]
pub fn inference_accelerator_overrides( &self ) -> &[EcsInferenceAcceleratorOverride]
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 task_role_arn(&self) -> Option<&str>
pub fn task_role_arn(&self) -> Option<&str>
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.
source§impl EcsTaskOverride
impl EcsTaskOverride
sourcepub fn builder() -> EcsTaskOverrideBuilder
pub fn builder() -> EcsTaskOverrideBuilder
Creates a new builder-style object to manufacture EcsTaskOverride
.
Trait Implementations§
source§impl Clone for EcsTaskOverride
impl Clone for EcsTaskOverride
source§fn clone(&self) -> EcsTaskOverride
fn clone(&self) -> EcsTaskOverride
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EcsTaskOverride
impl Debug for EcsTaskOverride
source§impl PartialEq for EcsTaskOverride
impl PartialEq for EcsTaskOverride
source§fn eq(&self, other: &EcsTaskOverride) -> bool
fn eq(&self, other: &EcsTaskOverride) -> bool
self
and other
values to be equal, and is used
by ==
.