#[non_exhaustive]pub struct UpdateComputeEnvironmentInput { /* private fields */ }
Expand description
Contains the parameters for UpdateComputeEnvironment
.
Implementations§
source§impl UpdateComputeEnvironmentInput
impl UpdateComputeEnvironmentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateComputeEnvironment, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateComputeEnvironment, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateComputeEnvironment
>
Examples found in repository?
2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateComputeEnvironment,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateComputeEnvironmentError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateComputeEnvironmentOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateComputeEnvironmentError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateComputeEnvironmentInput
.
source§impl UpdateComputeEnvironmentInput
impl UpdateComputeEnvironmentInput
sourcepub fn compute_environment(&self) -> Option<&str>
pub fn compute_environment(&self) -> Option<&str>
The name or full Amazon Resource Name (ARN) of the compute environment to update.
sourcepub fn state(&self) -> Option<&CeState>
pub fn state(&self) -> Option<&CeState>
The state of the compute environment. Compute environments in the ENABLED
state can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues.
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. However, they scale in to minvCpus
value after instances become idle.
sourcepub fn unmanagedv_cpus(&self) -> Option<i32>
pub fn unmanagedv_cpus(&self) -> Option<i32>
The maximum number of vCPUs expected to be used for an unmanaged compute environment. Do not specify this parameter for a managed compute environment. This parameter is only used for fair share scheduling to reserve vCPU capacity for new share identifiers. If this parameter is not provided for a fair share job queue, no vCPU capacity will be reserved.
sourcepub fn compute_resources(&self) -> Option<&ComputeResourceUpdate>
pub fn compute_resources(&self) -> Option<&ComputeResourceUpdate>
Details of the compute resources managed by the compute environment. Required for a managed compute environment. For more information, see Compute Environments in the Batch User Guide.
sourcepub fn service_role(&self) -> Option<&str>
pub fn service_role(&self) -> Option<&str>
The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf. For more information, see Batch service IAM role in the Batch User Guide.
If the compute environment has a service-linked role, it can't be changed to use a regular IAM role. Likewise, if the compute environment has a regular IAM role, it can't be changed to use a service-linked role. To update the parameters for the compute environment that require an infrastructure update to change, the AWSServiceRoleForBatch service-linked role must be used. For more information, see Updating compute environments in the Batch User Guide.
If your specified role has a path other than /
, then you must either specify the full role ARN (recommended) or prefix the role name with the path.
Depending on how you created your Batch service role, its ARN might contain the service-role
path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the service-role
path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.
sourcepub fn update_policy(&self) -> Option<&UpdatePolicy>
pub fn update_policy(&self) -> Option<&UpdatePolicy>
Specifies the updated infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.
Trait Implementations§
source§impl Clone for UpdateComputeEnvironmentInput
impl Clone for UpdateComputeEnvironmentInput
source§fn clone(&self) -> UpdateComputeEnvironmentInput
fn clone(&self) -> UpdateComputeEnvironmentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more