Class CfnQuotaShare
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.CfnQuotaShare
- All Implemented Interfaces:
IInspectable,IQuotaShareRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-24T20:29:23.192Z")
@Stability(Stable)
public class CfnQuotaShare
extends CfnResource
implements IInspectable, IQuotaShareRef, ITaggableV2
Creates an AWS Batch quota share.
Each quota share operates as a virtual queue with a configured compute capacity, resource sharing strategy, and borrow limits.
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.*;
CfnQuotaShare cfnQuotaShare = CfnQuotaShare.Builder.create(this, "MyCfnQuotaShare")
.capacityLimits(List.of(QuotaShareCapacityLimitProperty.builder()
.capacityUnit("capacityUnit")
.maxCapacity(123)
.build()))
.jobQueue("jobQueue")
.preemptionConfiguration(QuotaSharePreemptionConfigurationProperty.builder()
.inSharePreemption("inSharePreemption")
.build())
.quotaShareName("quotaShareName")
.resourceSharingConfiguration(QuotaShareResourceSharingConfigurationProperty.builder()
.strategy("strategy")
// the properties below are optional
.borrowLimit(123)
.build())
// the properties below are optional
.state("state")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnQuotaShare.static interfaceExample:static interfaceExample:static interfaceExample: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.IQuotaShareRef
IQuotaShareRef.Jsii$Default, IQuotaShareRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnQuotaShare(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnQuotaShare(software.amazon.jsii.JsiiObjectRef objRef) CfnQuotaShare(software.constructs.Construct scope, String id, CfnQuotaShareProps props) Create a newAWS::Batch::QuotaShare. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForQuotaShare(IQuotaShareRef resource) A list that specifies the quantity and type of compute capacity allocated to the quota share.Tag Manager which manages the tags for this resource.The AWS Batch job queue associated with the quota share.Returns union: eitherIResolvableorCfnQuotaShare.QuotaSharePreemptionConfigurationPropertyThe name of the quota share.A reference to a QuotaShare resource.Returns union: eitherIResolvableorCfnQuotaShare.QuotaShareResourceSharingConfigurationPropertygetState()The state of the quota share.getTags()The tags that you apply to the quota share to help you categorize and organize your resources.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnQuotaShare.renderProperties(Map<String, Object> props) voidsetCapacityLimits(List<Object> value) A list that specifies the quantity and type of compute capacity allocated to the quota share.voidsetCapacityLimits(IResolvable value) A list that specifies the quantity and type of compute capacity allocated to the quota share.voidsetJobQueue(String value) The AWS Batch job queue associated with the quota share.voidvoidvoidsetQuotaShareName(String value) The name of the quota share.voidvoidvoidThe state of the quota share.voidThe tags that you apply to the quota share to help you categorize and organize your resources.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, overrideLogicalId, withMethods 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
getNode, withMethods 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
-
CfnQuotaShare
protected CfnQuotaShare(software.amazon.jsii.JsiiObjectRef objRef) -
CfnQuotaShare
protected CfnQuotaShare(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
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.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCapacityLimits
A list that specifies the quantity and type of compute capacity allocated to the quota share.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnQuotaShare.QuotaShareCapacityLimitProperty> -
setCapacityLimits
A list that specifies the quantity and type of compute capacity allocated to the quota share. -
setCapacityLimits
A list that specifies the quantity and type of compute capacity allocated to the quota share. -
getJobQueue
The AWS Batch job queue associated with the quota share. -
setJobQueue
The AWS Batch job queue associated with the quota share. -
getPreemptionConfiguration
Returns union: eitherIResolvableorCfnQuotaShare.QuotaSharePreemptionConfigurationProperty -
setPreemptionConfiguration
-
getResourceSharingConfiguration
Returns union: eitherIResolvableorCfnQuotaShare.QuotaShareResourceSharingConfigurationProperty -
setResourceSharingConfiguration
-
getState
The state of the quota share. -
setState
The state of the quota share. -
getTags
The tags that you apply to the quota share to help you categorize and organize your resources. -
setTags
The tags that you apply to the quota share to help you categorize and organize your resources.