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

A builder for ComputeEnvironmentDetail.

Implementations§

source§

impl ComputeEnvironmentDetailBuilder

source

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

The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

source

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

The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

source

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

The Amazon Resource Name (ARN) of the compute environment.

source

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

The Amazon Resource Name (ARN) of the compute environment.

source

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

The maximum number of VCPUs expected to be used for an unmanaged compute environment.

source

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

The maximum number of VCPUs expected to be used for an unmanaged compute environment.

source

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

The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.

source

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

The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.

source

pub fn tags(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

The tags applied to the compute environment.

source

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

The tags applied to the compute environment.

source

pub fn type(self, input: CeType) -> Self

The type of the compute environment: MANAGED or UNMANAGED. For more information, see Compute environments in the Batch User Guide.

source

pub fn set_type(self, input: Option<CeType>) -> Self

The type of the compute environment: MANAGED or UNMANAGED. For more information, see Compute environments in the Batch User Guide.

source

pub fn state(self, input: CeState) -> Self

The state of the compute environment. The valid values are ENABLED or DISABLED.

If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand.

If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed compute environments in the DISABLED state don't scale out.

Compute environments in a DISABLED state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.

When an instance is idle, the instance scales down to the minvCpus value. However, the instance size doesn't change. For example, consider a c5.8xlarge instance with a minvCpus value of 4 and a desiredvCpus value of 36. This instance doesn't scale down to a c5.large instance.

source

pub fn set_state(self, input: Option<CeState>) -> Self

The state of the compute environment. The valid values are ENABLED or DISABLED.

If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand.

If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed compute environments in the DISABLED state don't scale out.

Compute environments in a DISABLED state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see State in the Batch User Guide.

When an instance is idle, the instance scales down to the minvCpus value. However, the instance size doesn't change. For example, consider a c5.8xlarge instance with a minvCpus value of 4 and a desiredvCpus value of 36. This instance doesn't scale down to a c5.large instance.

source

pub fn status(self, input: CeStatus) -> Self

The current status of the compute environment (for example, CREATING or VALID).

source

pub fn set_status(self, input: Option<CeStatus>) -> Self

The current status of the compute environment (for example, CREATING or VALID).

source

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

A short, human-readable string to provide additional details for the current status of the compute environment.

source

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

A short, human-readable string to provide additional details for the current status of the compute environment.

source

pub fn compute_resources(self, input: ComputeResource) -> Self

The compute resources defined for the compute environment. For more information, see Compute environments in the Batch User Guide.

source

pub fn set_compute_resources(self, input: Option<ComputeResource>) -> Self

The compute resources defined for the compute environment. For more information, see Compute environments in the Batch User Guide.

source

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

The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in the Batch User Guide.

source

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

The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in the Batch User Guide.

source

pub fn update_policy(self, input: UpdatePolicy) -> Self

Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.

source

pub fn set_update_policy(self, input: Option<UpdatePolicy>) -> Self

Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.

source

pub fn eks_configuration(self, input: EksConfiguration) -> Self

The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this parameter if the containerOrchestrationType is EKS.

source

pub fn set_eks_configuration(self, input: Option<EksConfiguration>) -> Self

The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this parameter if the containerOrchestrationType is EKS.

source

pub fn container_orchestration_type(self, input: OrchestrationType) -> Self

The orchestration type of the compute environment. The valid values are ECS (default) or EKS.

source

pub fn set_container_orchestration_type( self, input: Option<OrchestrationType> ) -> Self

The orchestration type of the compute environment. The valid values are ECS (default) or EKS.

source

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

Unique identifier for the compute environment.

source

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

Unique identifier for the compute environment.

source

pub fn build(self) -> ComputeEnvironmentDetail

Consumes the builder and constructs a ComputeEnvironmentDetail.

Trait Implementations§

source§

impl Clone for ComputeEnvironmentDetailBuilder

source§

fn clone(&self) -> ComputeEnvironmentDetailBuilder

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 ComputeEnvironmentDetailBuilder

source§

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

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

impl Default for ComputeEnvironmentDetailBuilder

source§

fn default() -> ComputeEnvironmentDetailBuilder

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

impl PartialEq<ComputeEnvironmentDetailBuilder> for ComputeEnvironmentDetailBuilder

source§

fn eq(&self, other: &ComputeEnvironmentDetailBuilder) -> 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 ComputeEnvironmentDetailBuilder

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · 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>,

const: unstable · 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.
const: unstable · 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.
const: unstable · 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