Class CfnJobQueue
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Batch::JobQueue
.
The AWS::Batch::JobQueue
resource specifies the parameters for an AWS Batch job queue definition. For more information, see Job Queues in the ** .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.batch.*; CfnJobQueue cfnJobQueue = CfnJobQueue.Builder.create(this, "MyCfnJobQueue") .computeEnvironmentOrder(List.of(ComputeEnvironmentOrderProperty.builder() .computeEnvironment("computeEnvironment") .order(123) .build())) .priority(123) // the properties below are optional .jobQueueName("jobQueueName") .schedulingPolicyArn("schedulingPolicyArn") .state("state") .tags(Map.of( "tagsKey", "tags")) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnJobQueue
.static interface
The order that compute environments are tried in for job placement within a queue.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnJobQueue
(Construct scope, String id, CfnJobQueueProps props) Create a newAWS::Batch::JobQueue
.protected
CfnJobQueue
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnJobQueue
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns the job queue ARN, such asbatch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
.The set of compute environments mapped to a job queue and their order relative to each other.The name of the job queue.The priority of the job queue.The Amazon Resource Name (ARN) of the scheduling policy.getState()
The state of the job queue.getTags()
The tags that are applied to the job queue.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setComputeEnvironmentOrder
(List<Object> value) The set of compute environments mapped to a job queue and their order relative to each other.void
The set of compute environments mapped to a job queue and their order relative to each other.void
setJobQueueName
(String value) The name of the job queue.void
setPriority
(Number value) The priority of the job queue.void
setSchedulingPolicyArn
(String value) The Amazon Resource Name (ARN) of the scheduling policy.void
The state of the job queue.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnJobQueue
protected CfnJobQueue(software.amazon.jsii.JsiiObjectRef objRef) -
CfnJobQueue
protected CfnJobQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnJobQueue
@Stability(Stable) public CfnJobQueue(@NotNull Construct scope, @NotNull String id, @NotNull CfnJobQueueProps props) Create a newAWS::Batch::JobQueue
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrJobQueueArn
Returns the job queue ARN, such asbatch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*
. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
The tags that are applied to the job queue.For more information, see Tagging your AWS Batch resources in AWS Batch User Guide .
-
getComputeEnvironmentOrder
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 runs 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
orSPOT
) or Fargate (FARGATE
orFARGATE_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. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
-
setComputeEnvironmentOrder
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 runs 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
orSPOT
) or Fargate (FARGATE
orFARGATE_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. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
-
setComputeEnvironmentOrder
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 runs 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
orSPOT
) or Fargate (FARGATE
orFARGATE_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. AWS Batch doesn't support mixing compute environment architecture types in a single job queue.
-
getPriority
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 of10
is given scheduling preference over a job queue with a priority value of1
. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed. -
setPriority
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 of10
is given scheduling preference over a job queue with a priority value of1
. All of the compute environments must be either EC2 (EC2
orSPOT
) or Fargate (FARGATE
orFARGATE_SPOT
); EC2 and Fargate compute environments can't be mixed. -
getJobQueueName
The name of the job queue.It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
-
setJobQueueName
The name of the job queue.It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
-
getSchedulingPolicyArn
The Amazon Resource Name (ARN) of the scheduling policy.The format is
aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*
. For example,aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
. -
setSchedulingPolicyArn
The Amazon Resource Name (ARN) of the scheduling policy.The format is
aws: *Partition* :batch: *Region* : *Account* :scheduling-policy/ *Name*
. For example,aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy
. -
getState
The state of the job queue.If the job queue state is
ENABLED
, it is able to accept jobs. If the job queue state isDISABLED
, new jobs can't be added to the queue, but jobs already in the queue can finish. -
setState
The state of the job queue.If the job queue state is
ENABLED
, it is able to accept jobs. If the job queue state isDISABLED
, new jobs can't be added to the queue, but jobs already in the queue can finish.
-