#[non_exhaustive]
pub struct EksContainerDetailBuilder { /* private fields */ }
Expand description

A builder for EksContainerDetail.

Implementations§

source§

impl EksContainerDetailBuilder

source

pub fn name(self, input: impl Into<String>) -> Self

The name of the container. If the name isn't specified, the default name "Default" is used. Each container in a pod must have a unique name.

source

pub fn set_name(self, input: Option<String>) -> Self

The name of the container. If the name isn't specified, the default name "Default" is used. Each container in a pod must have a unique name.

source

pub fn get_name(&self) -> &Option<String>

The name of the container. If the name isn't specified, the default name "Default" is used. Each container in a pod must have a unique name.

source

pub fn image(self, input: impl Into<String>) -> Self

The Docker image used to start the container.

source

pub fn set_image(self, input: Option<String>) -> Self

The Docker image used to start the container.

source

pub fn get_image(&self) -> &Option<String>

The Docker image used to start the container.

source

pub fn image_pull_policy(self, input: impl Into<String>) -> Self

The image pull policy for the container. Supported values are Always, IfNotPresent, and Never. This parameter defaults to Always if the :latest tag is specified, IfNotPresent otherwise. For more information, see Updating images in the Kubernetes documentation.

source

pub fn set_image_pull_policy(self, input: Option<String>) -> Self

The image pull policy for the container. Supported values are Always, IfNotPresent, and Never. This parameter defaults to Always if the :latest tag is specified, IfNotPresent otherwise. For more information, see Updating images in the Kubernetes documentation.

source

pub fn get_image_pull_policy(&self) -> &Option<String>

The image pull policy for the container. Supported values are Always, IfNotPresent, and Never. This parameter defaults to Always if the :latest tag is specified, IfNotPresent otherwise. For more information, see Updating images in the Kubernetes documentation.

source

pub fn command(self, input: impl Into<String>) -> Self

Appends an item to command.

To override the contents of this collection use set_command.

The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation.

source

pub fn set_command(self, input: Option<Vec<String>>) -> Self

The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation.

source

pub fn get_command(&self) -> &Option<Vec<String>>

The entrypoint for the container. For more information, see Entrypoint in the Kubernetes documentation.

source

pub fn args(self, input: impl Into<String>) -> Self

Appends an item to args.

To override the contents of this collection use set_args.

An array of arguments to the entrypoint. If this isn't specified, the CMD of the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment.

If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to "$(NAME1)" and the NAME1 environment variable doesn't exist, the command string will remain "$(NAME1)". $$ is replaced with $ and the resulting string isn't expanded. For example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the VAR_NAME environment variable exists. For more information, see CMD in the Dockerfile reference and Define a command and arguments for a pod in the Kubernetes documentation.

source

pub fn set_args(self, input: Option<Vec<String>>) -> Self

An array of arguments to the entrypoint. If this isn't specified, the CMD of the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment.

If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to "$(NAME1)" and the NAME1 environment variable doesn't exist, the command string will remain "$(NAME1)". $$ is replaced with $ and the resulting string isn't expanded. For example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the VAR_NAME environment variable exists. For more information, see CMD in the Dockerfile reference and Define a command and arguments for a pod in the Kubernetes documentation.

source

pub fn get_args(&self) -> &Option<Vec<String>>

An array of arguments to the entrypoint. If this isn't specified, the CMD of the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod in Kubernetes. Environment variable references are expanded using the container's environment.

If the referenced environment variable doesn't exist, the reference in the command isn't changed. For example, if the reference is to "$(NAME1)" and the NAME1 environment variable doesn't exist, the command string will remain "$(NAME1)". $$ is replaced with $ and the resulting string isn't expanded. For example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the VAR_NAME environment variable exists. For more information, see CMD in the Dockerfile reference and Define a command and arguments for a pod in the Kubernetes documentation.

source

pub fn env(self, input: EksContainerEnvironmentVariable) -> Self

Appends an item to env.

To override the contents of this collection use set_env.

The environment variables to pass to a container.

Environment variables cannot start with "AWS_BATCH". This naming convention is reserved for variables that Batch sets.

source

pub fn set_env( self, input: Option<Vec<EksContainerEnvironmentVariable>> ) -> Self

The environment variables to pass to a container.

Environment variables cannot start with "AWS_BATCH". This naming convention is reserved for variables that Batch sets.

source

pub fn get_env(&self) -> &Option<Vec<EksContainerEnvironmentVariable>>

The environment variables to pass to a container.

Environment variables cannot start with "AWS_BATCH". This naming convention is reserved for variables that Batch sets.

source

pub fn resources(self, input: EksContainerResourceRequirements) -> Self

The type and amount of resources to assign to a container. The supported resources include memory, cpu, and nvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation.

source

pub fn set_resources( self, input: Option<EksContainerResourceRequirements> ) -> Self

The type and amount of resources to assign to a container. The supported resources include memory, cpu, and nvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation.

source

pub fn get_resources(&self) -> &Option<EksContainerResourceRequirements>

The type and amount of resources to assign to a container. The supported resources include memory, cpu, and nvidia.com/gpu. For more information, see Resource management for pods and containers in the Kubernetes documentation.

source

pub fn exit_code(self, input: i32) -> Self

The exit code for the job attempt. A non-zero exit code is considered failed.

source

pub fn set_exit_code(self, input: Option<i32>) -> Self

The exit code for the job attempt. A non-zero exit code is considered failed.

source

pub fn get_exit_code(&self) -> &Option<i32>

The exit code for the job attempt. A non-zero exit code is considered failed.

source

pub fn reason(self, input: impl Into<String>) -> Self

A short human-readable string to provide additional details for a running or stopped container. It can be up to 255 characters long.

source

pub fn set_reason(self, input: Option<String>) -> Self

A short human-readable string to provide additional details for a running or stopped container. It can be up to 255 characters long.

source

pub fn get_reason(&self) -> &Option<String>

A short human-readable string to provide additional details for a running or stopped container. It can be up to 255 characters long.

source

pub fn volume_mounts(self, input: EksContainerVolumeMount) -> Self

Appends an item to volume_mounts.

To override the contents of this collection use set_volume_mounts.

The volume mounts for the container. Batch supports emptyDir, hostPath, and secret volume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.

source

pub fn set_volume_mounts( self, input: Option<Vec<EksContainerVolumeMount>> ) -> Self

The volume mounts for the container. Batch supports emptyDir, hostPath, and secret volume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.

source

pub fn get_volume_mounts(&self) -> &Option<Vec<EksContainerVolumeMount>>

The volume mounts for the container. Batch supports emptyDir, hostPath, and secret volume types. For more information about volumes and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.

source

pub fn security_context(self, input: EksContainerSecurityContext) -> Self

The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation.

source

pub fn set_security_context( self, input: Option<EksContainerSecurityContext> ) -> Self

The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation.

source

pub fn get_security_context(&self) -> &Option<EksContainerSecurityContext>

The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation.

source

pub fn build(self) -> EksContainerDetail

Consumes the builder and constructs a EksContainerDetail.

Trait Implementations§

source§

impl Clone for EksContainerDetailBuilder

source§

fn clone(&self) -> EksContainerDetailBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EksContainerDetailBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for EksContainerDetailBuilder

source§

fn default() -> EksContainerDetailBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<EksContainerDetailBuilder> for EksContainerDetailBuilder

source§

fn eq(&self, other: &EksContainerDetailBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for EksContainerDetailBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more