Struct aws_sdk_batch::client::fluent_builders::CreateJobQueue [−][src]
pub struct CreateJobQueue<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateJobQueue
.
Creates an Batch job queue. When you create a job queue, you associate one or more compute environments to the queue and assign an order of preference for the compute environments.
You also set a priority to the job queue that determines the order that the Batch scheduler places jobs onto its associated compute environments. For example, if a compute environment is associated with more than one job queue, the job queue with a higher priority is given preference for scheduling jobs to that compute environment.
Implementations
impl<C, M, R> CreateJobQueue<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateJobQueue<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateJobQueueOutput, SdkError<CreateJobQueueError>> where
R::Policy: SmithyRetryPolicy<CreateJobQueueInputOperationOutputAlias, CreateJobQueueOutput, CreateJobQueueError, CreateJobQueueInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateJobQueueOutput, SdkError<CreateJobQueueError>> where
R::Policy: SmithyRetryPolicy<CreateJobQueueInputOperationOutputAlias, CreateJobQueueOutput, CreateJobQueueError, CreateJobQueueInputOperationRetryAlias>,
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, which can be set when configuring the client.
The name of the job queue. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed.
The name of the job queue. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed.
The state of the job queue. If the job queue state is ENABLED
, it is able to accept jobs. If the
job queue state is DISABLED
, new jobs can't be added to the queue, but jobs already in the queue can
finish.
The state of the job queue. If the job queue state is ENABLED
, it is able to accept jobs. If the
job queue state is DISABLED
, new jobs can't be added to the queue, but jobs already in the queue can
finish.
The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
priority
parameter) are evaluated first when associated with the same compute environment. Priority is
determined in descending order. For example, a job queue with a priority value of 10
is given scheduling
preference over a job queue with a priority value of 1
. All of the compute environments must be either
EC2 (EC2
or SPOT
) or Fargate (FARGATE
or FARGATE_SPOT
); EC2 and
Fargate compute environments can't be mixed.
The priority of the job queue. Job queues with a higher priority (or a higher integer value for the
priority
parameter) are evaluated first when associated with the same compute environment. Priority is
determined in descending order. For example, a job queue with a priority value of 10
is given scheduling
preference over a job queue with a priority value of 1
. All of the compute environments must be either
EC2 (EC2
or SPOT
) or Fargate (FARGATE
or FARGATE_SPOT
); EC2 and
Fargate compute environments can't be mixed.
Appends an item to computeEnvironmentOrder
.
To override the contents of this collection use set_compute_environment_order
.
The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler
uses this parameter to determine which compute environment should run a specific job. Compute environments must be in
the VALID
state before you can associate them with a job queue. You can associate up to three compute
environments with a job queue. All of the compute environments must be either EC2 (EC2
or
SPOT
) or Fargate (FARGATE
or FARGATE_SPOT
); EC2 and Fargate compute
environments can't be mixed.
All compute environments that are associated with a job queue must share the same architecture. Batch doesn't support mixing compute environment architecture types in a single job queue.
pub fn set_compute_environment_order(
self,
input: Option<Vec<ComputeEnvironmentOrder>>
) -> Self
pub fn set_compute_environment_order(
self,
input: Option<Vec<ComputeEnvironmentOrder>>
) -> Self
The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler
uses this parameter to determine which compute environment should run a specific job. Compute environments must be in
the VALID
state before you can associate them with a job queue. You can associate up to three compute
environments with a job queue. All of the compute environments must be either EC2 (EC2
or
SPOT
) or Fargate (FARGATE
or FARGATE_SPOT
); EC2 and Fargate compute
environments can't be mixed.
All compute environments that are associated with a job queue must share the same architecture. Batch doesn't support mixing compute environment architecture types in a single job queue.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide.
The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateJobQueue<C, M, R>
impl<C, M, R> Send for CreateJobQueue<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateJobQueue<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateJobQueue<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateJobQueue<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more