We recommend new projects start with resources from the AWS provider.
published on Monday, May 4, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, May 4, 2026 by Pulumi
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.
Create QuotaShare Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new QuotaShare(name: string, args: QuotaShareArgs, opts?: CustomResourceOptions);@overload
def QuotaShare(resource_name: str,
args: QuotaShareArgs,
opts: Optional[ResourceOptions] = None)
@overload
def QuotaShare(resource_name: str,
opts: Optional[ResourceOptions] = None,
capacity_limits: Optional[Sequence[QuotaShareCapacityLimitArgs]] = None,
job_queue: Optional[str] = None,
preemption_configuration: Optional[QuotaSharePreemptionConfigurationArgs] = None,
resource_sharing_configuration: Optional[QuotaShareResourceSharingConfigurationArgs] = None,
quota_share_name: Optional[str] = None,
state: Optional[QuotaShareState] = None,
tags: Optional[Mapping[str, str]] = None)func NewQuotaShare(ctx *Context, name string, args QuotaShareArgs, opts ...ResourceOption) (*QuotaShare, error)public QuotaShare(string name, QuotaShareArgs args, CustomResourceOptions? opts = null)
public QuotaShare(String name, QuotaShareArgs args)
public QuotaShare(String name, QuotaShareArgs args, CustomResourceOptions options)
type: aws-native:batch:QuotaShare
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args QuotaShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args QuotaShareArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args QuotaShareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args QuotaShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args QuotaShareArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
QuotaShare Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The QuotaShare resource accepts the following input properties:
- Capacity
Limits List<Pulumi.Aws Native. Batch. Inputs. Quota Share Capacity Limit> - A list that specifies the quantity and type of compute capacity allocated to the quota share.
- Job
Queue string - The AWS Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the
VALIDstate before you can associate it with a quota share. - Preemption
Configuration Pulumi.Aws Native. Batch. Inputs. Quota Share Preemption Configuration - Specifies the preemption behavior for jobs in a quota share.
- Resource
Sharing Pulumi.Configuration Aws Native. Batch. Inputs. Quota Share Resource Sharing Configuration - Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
- string
- The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
- State
Pulumi.
Aws Native. Batch. Quota Share State - The state of the quota share. If the quota share is
ENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED. - Dictionary<string, string>
- The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value.
- Capacity
Limits []QuotaShare Capacity Limit Args - A list that specifies the quantity and type of compute capacity allocated to the quota share.
- Job
Queue string - The AWS Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the
VALIDstate before you can associate it with a quota share. - Preemption
Configuration QuotaShare Preemption Configuration Args - Specifies the preemption behavior for jobs in a quota share.
- Resource
Sharing QuotaConfiguration Share Resource Sharing Configuration Args - Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
- string
- The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
- State
Quota
Share State Enum - The state of the quota share. If the quota share is
ENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED. - map[string]string
- The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value.
- capacity
Limits List<QuotaShare Capacity Limit> - A list that specifies the quantity and type of compute capacity allocated to the quota share.
- job
Queue String - The AWS Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the
VALIDstate before you can associate it with a quota share. - preemption
Configuration QuotaShare Preemption Configuration - Specifies the preemption behavior for jobs in a quota share.
- resource
Sharing QuotaConfiguration Share Resource Sharing Configuration - Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
- String
- The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
- state
Quota
Share State - The state of the quota share. If the quota share is
ENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED. - Map<String,String>
- The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value.
- capacity
Limits QuotaShare Capacity Limit[] - A list that specifies the quantity and type of compute capacity allocated to the quota share.
- job
Queue string - The AWS Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the
VALIDstate before you can associate it with a quota share. - preemption
Configuration QuotaShare Preemption Configuration - Specifies the preemption behavior for jobs in a quota share.
- resource
Sharing QuotaConfiguration Share Resource Sharing Configuration - Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
- string
- The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
- state
Quota
Share State - The state of the quota share. If the quota share is
ENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED. - {[key: string]: string}
- The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value.
- capacity_
limits Sequence[QuotaShare Capacity Limit Args] - A list that specifies the quantity and type of compute capacity allocated to the quota share.
- job_
queue str - The AWS Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the
VALIDstate before you can associate it with a quota share. - preemption_
configuration QuotaShare Preemption Configuration Args - Specifies the preemption behavior for jobs in a quota share.
- resource_
sharing_ Quotaconfiguration Share Resource Sharing Configuration Args - Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
- str
- The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
- state
Quota
Share State - The state of the quota share. If the quota share is
ENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED. - Mapping[str, str]
- The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value.
- capacity
Limits List<Property Map> - A list that specifies the quantity and type of compute capacity allocated to the quota share.
- job
Queue String - The AWS Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the
VALIDstate before you can associate it with a quota share. - preemption
Configuration Property Map - Specifies the preemption behavior for jobs in a quota share.
- resource
Sharing Property MapConfiguration - Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
- String
- The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
- state "ENABLED" | "DISABLED"
- The state of the quota share. If the quota share is
ENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED. - Map<String>
- The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value.
Outputs
All input properties are implicitly available as output properties. Additionally, the QuotaShare resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- string
- The Amazon Resource Name (ARN) of the quota share.
- Id string
- The provider-assigned unique ID for this managed resource.
- string
- The Amazon Resource Name (ARN) of the quota share.
- id String
- The provider-assigned unique ID for this managed resource.
- String
- The Amazon Resource Name (ARN) of the quota share.
- id string
- The provider-assigned unique ID for this managed resource.
- string
- The Amazon Resource Name (ARN) of the quota share.
- id str
- The provider-assigned unique ID for this managed resource.
- str
- The Amazon Resource Name (ARN) of the quota share.
- id String
- The provider-assigned unique ID for this managed resource.
- String
- The Amazon Resource Name (ARN) of the quota share.
Supporting Types
QuotaShareCapacityLimit, QuotaShareCapacityLimitArgs
- Capacity
Unit string - The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - Max
Capacity int - The maximum capacity available for the quota share. This value represents the maximum quantity of a resource that can be allocated to jobs in the quota share without borrowing.
- Capacity
Unit string - The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - Max
Capacity int - The maximum capacity available for the quota share. This value represents the maximum quantity of a resource that can be allocated to jobs in the quota share without borrowing.
- capacity
Unit String - The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - max
Capacity Integer - The maximum capacity available for the quota share. This value represents the maximum quantity of a resource that can be allocated to jobs in the quota share without borrowing.
- capacity
Unit string - The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - max
Capacity number - The maximum capacity available for the quota share. This value represents the maximum quantity of a resource that can be allocated to jobs in the quota share without borrowing.
- capacity_
unit str - The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - max_
capacity int - The maximum capacity available for the quota share. This value represents the maximum quantity of a resource that can be allocated to jobs in the quota share without borrowing.
- capacity
Unit String - The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - max
Capacity Number - The maximum capacity available for the quota share. This value represents the maximum quantity of a resource that can be allocated to jobs in the quota share without borrowing.
QuotaSharePreemptionConfiguration, QuotaSharePreemptionConfigurationArgs
-
Pulumi.
Aws Native. Batch. Quota Share Preemption Configuration In Share Preemption - Specifies whether jobs within a quota share can be preempted by another, higher priority job in the same quota share.
-
Quota
Share Preemption Configuration In Share Preemption - Specifies whether jobs within a quota share can be preempted by another, higher priority job in the same quota share.
-
Quota
Share Preemption Configuration In Share Preemption - Specifies whether jobs within a quota share can be preempted by another, higher priority job in the same quota share.
-
Quota
Share Preemption Configuration In Share Preemption - Specifies whether jobs within a quota share can be preempted by another, higher priority job in the same quota share.
-
Quota
Share Preemption Configuration In Share Preemption - Specifies whether jobs within a quota share can be preempted by another, higher priority job in the same quota share.
- "ENABLED" | "DISABLED"
- Specifies whether jobs within a quota share can be preempted by another, higher priority job in the same quota share.
QuotaSharePreemptionConfigurationInSharePreemption, QuotaSharePreemptionConfigurationInSharePreemptionArgs
- Enabled
ENABLED- Disabled
DISABLED
- Quota
Share Preemption Configuration In Share Preemption Enabled ENABLED- Quota
Share Preemption Configuration In Share Preemption Disabled DISABLED
- Enabled
ENABLED- Disabled
DISABLED
- Enabled
ENABLED- Disabled
DISABLED
- ENABLED
ENABLED- DISABLED
DISABLED
- "ENABLED"
ENABLED- "DISABLED"
DISABLED
QuotaShareResourceSharingConfiguration, QuotaShareResourceSharingConfigurationArgs
- Strategy
Pulumi.
Aws Native. Batch. Quota Share Resource Sharing Configuration Strategy - The resource sharing strategy for the quota share. The
RESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - Borrow
Limit int - The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimitcan only be applied to quota shares with a strategy ofLEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. TheBorrowLimitis applied uniformly across all capacity units. For example, if theBorrowLimitis 200, the quota share can borrow up to 200% of its configuredmaxCapacityfor each capacity unit. The defaultBorrowLimitis -1, which indicates unlimited borrowing.
- Strategy
Quota
Share Resource Sharing Configuration Strategy - The resource sharing strategy for the quota share. The
RESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - Borrow
Limit int - The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimitcan only be applied to quota shares with a strategy ofLEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. TheBorrowLimitis applied uniformly across all capacity units. For example, if theBorrowLimitis 200, the quota share can borrow up to 200% of its configuredmaxCapacityfor each capacity unit. The defaultBorrowLimitis -1, which indicates unlimited borrowing.
- strategy
Quota
Share Resource Sharing Configuration Strategy - The resource sharing strategy for the quota share. The
RESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - borrow
Limit Integer - The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimitcan only be applied to quota shares with a strategy ofLEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. TheBorrowLimitis applied uniformly across all capacity units. For example, if theBorrowLimitis 200, the quota share can borrow up to 200% of its configuredmaxCapacityfor each capacity unit. The defaultBorrowLimitis -1, which indicates unlimited borrowing.
- strategy
Quota
Share Resource Sharing Configuration Strategy - The resource sharing strategy for the quota share. The
RESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - borrow
Limit number - The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimitcan only be applied to quota shares with a strategy ofLEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. TheBorrowLimitis applied uniformly across all capacity units. For example, if theBorrowLimitis 200, the quota share can borrow up to 200% of its configuredmaxCapacityfor each capacity unit. The defaultBorrowLimitis -1, which indicates unlimited borrowing.
- strategy
Quota
Share Resource Sharing Configuration Strategy - The resource sharing strategy for the quota share. The
RESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - borrow_
limit int - The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimitcan only be applied to quota shares with a strategy ofLEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. TheBorrowLimitis applied uniformly across all capacity units. For example, if theBorrowLimitis 200, the quota share can borrow up to 200% of its configuredmaxCapacityfor each capacity unit. The defaultBorrowLimitis -1, which indicates unlimited borrowing.
- strategy "RESERVE" | "LEND" | "LEND_AND_BORROW"
- The resource sharing strategy for the quota share. The
RESERVEstrategy allows a quota share to reserve idle capacity for itself.LENDconfigures the share to lend its idle capacity to another share in need of capacity. TheLEND_AND_BORROWstrategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - borrow
Limit Number - The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimitcan only be applied to quota shares with a strategy ofLEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. TheBorrowLimitis applied uniformly across all capacity units. For example, if theBorrowLimitis 200, the quota share can borrow up to 200% of its configuredmaxCapacityfor each capacity unit. The defaultBorrowLimitis -1, which indicates unlimited borrowing.
QuotaShareResourceSharingConfigurationStrategy, QuotaShareResourceSharingConfigurationStrategyArgs
- Reserve
RESERVE- Lend
LEND- Lend
And Borrow LEND_AND_BORROW
- Quota
Share Resource Sharing Configuration Strategy Reserve RESERVE- Quota
Share Resource Sharing Configuration Strategy Lend LEND- Quota
Share Resource Sharing Configuration Strategy Lend And Borrow LEND_AND_BORROW
- Reserve
RESERVE- Lend
LEND- Lend
And Borrow LEND_AND_BORROW
- Reserve
RESERVE- Lend
LEND- Lend
And Borrow LEND_AND_BORROW
- RESERVE
RESERVE- LEND
LEND- LEND_AND_BORROW
LEND_AND_BORROW
- "RESERVE"
RESERVE- "LEND"
LEND- "LEND_AND_BORROW"
LEND_AND_BORROW
QuotaShareState, QuotaShareStateArgs
- Enabled
ENABLED- Disabled
DISABLED
- Quota
Share State Enabled ENABLED- Quota
Share State Disabled DISABLED
- Enabled
ENABLED- Disabled
DISABLED
- Enabled
ENABLED- Disabled
DISABLED
- ENABLED
ENABLED- DISABLED
DISABLED
- "ENABLED"
ENABLED- "DISABLED"
DISABLED
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, May 4, 2026 by Pulumi
