Class CfnJobQueue
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.batch.CfnJobQueue
- All Implemented Interfaces:
IInspectable,IJobQueueRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:59.604Z")
@Stability(Stable)
public class CfnJobQueue
extends CfnResource
implements IInspectable, IJobQueueRef, ITaggable
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")
.priority(123)
// the properties below are optional
.computeEnvironmentOrder(List.of(ComputeEnvironmentOrderProperty.builder()
.computeEnvironment("computeEnvironment")
.order(123)
.build()))
.jobQueueName("jobQueueName")
.jobQueueType("jobQueueType")
.jobStateTimeLimitActions(List.of(JobStateTimeLimitActionProperty.builder()
.action("action")
.maxTimeSeconds(123)
.reason("reason")
.state("state")
.build()))
.schedulingPolicyArn("schedulingPolicyArn")
.serviceEnvironmentOrder(List.of(ServiceEnvironmentOrderProperty.builder()
.order(123)
.serviceEnvironment("serviceEnvironment")
.build()))
.state("state")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
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.static interfaceSpecifies an action that AWS Batch will take after the job has remained at the head of the queue in the specified state for longer than the specified time.static interfaceSpecifies the order of a service environment for a job queue.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.batch.IJobQueueRef
IJobQueueRef.Jsii$Default, IJobQueueRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnJobQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnJobQueue(software.amazon.jsii.JsiiObjectRef objRef) CfnJobQueue(software.constructs.Construct scope, String id, CfnJobQueueProps props) Create a newAWS::Batch::JobQueue. -
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.A reference to a JobQueue resource.The type of job queue.The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times.The priority of the job queue.The Amazon Resource Name (ARN) of the scheduling policy.The order of the service environment associated with the job queue.getState()The state of the job queue.getTags()Tag Manager which manages the tags for this resource.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.voidsetJobQueueType(String value) The type of job queue.voidsetJobStateTimeLimitActions(List<Object> value) The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times.voidThe set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times.voidsetPriority(Number value) The priority of the job queue.voidsetSchedulingPolicyArn(String value) The Amazon Resource Name (ARN) of the scheduling policy.voidsetServiceEnvironmentOrder(List<Object> value) The order of the service environment associated with the job queue.voidThe order of the service environment associated with the job queue.voidThe state of the job queue.voidsetTagsRaw(Map<String, String> value) The tags that are applied to the job queue.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnJobQueueProps props) Create a newAWS::Batch::JobQueue.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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
-
getJobQueueRef
A reference to a JobQueue resource.- Specified by:
getJobQueueRefin interfaceIJobQueueRef
-
getTags
Tag Manager which manages the tags for this resource. -
getPriority
The priority of the job queue. -
setPriority
The priority of the job queue. -
getComputeEnvironmentOrder
The set of compute environments mapped to a job queue and their order relative to each other.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnJobQueue.ComputeEnvironmentOrderProperty> -
setComputeEnvironmentOrder
The set of compute environments mapped to a job queue and their order relative to each other. -
setComputeEnvironmentOrder
The set of compute environments mapped to a job queue and their order relative to each other. -
getJobQueueName
The name of the job queue. -
setJobQueueName
The name of the job queue. -
getJobQueueType
The type of job queue. -
setJobQueueType
The type of job queue. -
getJobStateTimeLimitActions
The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnJobQueue.JobStateTimeLimitActionProperty> -
setJobStateTimeLimitActions
The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. -
setJobStateTimeLimitActions
The set of actions that AWS Batch perform on jobs that remain at the head of the job queue in the specified state longer than specified times. -
getSchedulingPolicyArn
The Amazon Resource Name (ARN) of the scheduling policy. -
setSchedulingPolicyArn
The Amazon Resource Name (ARN) of the scheduling policy. -
getServiceEnvironmentOrder
The order of the service environment associated with the job queue.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnJobQueue.ServiceEnvironmentOrderProperty> -
setServiceEnvironmentOrder
The order of the service environment associated with the job queue. -
setServiceEnvironmentOrder
The order of the service environment associated with the job queue. -
getState
The state of the job queue. -
setState
The state of the job queue. -
getTagsRaw
The tags that are applied to the job queue. -
setTagsRaw
The tags that are applied to the job queue.
-