#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEcsTaskDefinitionDetails
Implementations
sourceimpl Builder
impl Builder
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 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 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 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 ipc_mode(self, input: impl Into<String>) -> Self
pub fn ipc_mode(self, input: impl Into<String>) -> Self
The IPC resource namespace to use for the containers in the task.
sourcepub fn set_ipc_mode(self, input: Option<String>) -> Self
pub fn set_ipc_mode(self, input: Option<String>) -> Self
The IPC resource namespace to use for the containers in the 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.
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.
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.
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.
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.
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.
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 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 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 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 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 build(self) -> AwsEcsTaskDefinitionDetails
pub fn build(self) -> AwsEcsTaskDefinitionDetails
Consumes the builder and constructs a AwsEcsTaskDefinitionDetails
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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