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
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnJobQueue.static interfaceThe 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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnJobQueue(Construct scope, String id, CfnJobQueueProps props) Create a newAWS::Batch::JobQueue.protectedCfnJobQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnJobQueue(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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetComputeEnvironmentOrder(List<Object> value) The set of compute environments mapped to a job queue and their order relative to each other.voidThe set of compute environments mapped to a job queue and their order relative to each other.voidsetJobQueueName(String value) The name of the job queue.voidsetPriority(Number value) The priority of the job queue.voidsetSchedulingPolicyArn(String value) The Amazon Resource Name (ARN) of the scheduling policy.voidThe 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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrJobQueueArn
Returns the job queue ARN, such asbatch: *us-east-1* : *111122223333* :job-queue/ *JobQueueName*. -
getCfnProperties
- Overrides:
getCfnPropertiesin 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
VALIDstate 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 (EC2orSPOT) or Fargate (FARGATEorFARGATE_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
VALIDstate 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 (EC2orSPOT) or Fargate (FARGATEorFARGATE_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
VALIDstate 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 (EC2orSPOT) or Fargate (FARGATEorFARGATE_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
priorityparameter) 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 of10is given scheduling preference over a job queue with a priority value of1. All of the compute environments must be either EC2 (EC2orSPOT) or Fargate (FARGATEorFARGATE_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
priorityparameter) 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 of10is given scheduling preference over a job queue with a priority value of1. All of the compute environments must be either EC2 (EC2orSPOT) or Fargate (FARGATEorFARGATE_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.
-