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.
Using getQuotaShare
Two invocation forms are available. The direct form accepts plain
arguments and either blocks until the result value is available, or
returns a Promise-wrapped result. The output form accepts
Input-wrapped arguments and returns an Output-wrapped result.
def get_quota_share(quota_share_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetQuotaShareResult
def get_quota_share_output(quota_share_arn: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetQuotaShareResult]
> Note: This function is named LookupQuotaShare in the Go SDK.
public static CompletableFuture<GetQuotaShareResult> getQuotaShare(GetQuotaShareArgs args, InvokeOptions options)
public static Output<GetQuotaShareResult> getQuotaShare(GetQuotaShareArgs args, InvokeOptions options)
public static Output<GetQuotaShareResult> getQuotaShare(GetQuotaShareArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws-native:batch:getQuotaShare
arguments:
# arguments dictionary
data "aws-native_batch_get_quota_share" "name" {
# arguments
}
The following arguments are supported:
- QuotaShareArn
string
- The Amazon Resource Name (ARN) of the quota share.
- QuotaShareArn
string
- The Amazon Resource Name (ARN) of the quota share.
- quotaShareArn
String
- The Amazon Resource Name (ARN) of the quota share.
- quotaShareArn
string
- The Amazon Resource Name (ARN) of the quota share.
- quotaShareArn
String
- The Amazon Resource Name (ARN) of the quota share.
getQuotaShare Result
The following output properties are available:
- capacity_limits
list(object)
- A list that specifies the quantity and type of compute capacity allocated to the quota share.
- preemption_configuration
object
- Specifies the preemption behavior for jobs in a quota share.
- quota_share_arn
string
- The Amazon Resource Name (ARN) of the quota share.
- resource_sharing_configuration
object
- Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
- 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 is DISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state is ENABLED. - tags
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.
- capacityLimits
List<Property Map>
- A list that specifies the quantity and type of compute capacity allocated to the quota share.
- preemptionConfiguration
Property Map
- Specifies the preemption behavior for jobs in a quota share.
- quotaShareArn
String
- The Amazon Resource Name (ARN) of the quota share.
- resourceSharingConfiguration
Property Map
- Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
- 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 is DISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state is ENABLED. - tags
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.
Supporting Types
QuotaShareCapacityLimit
- CapacityUnit
string
- The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - MaxCapacity
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.
- CapacityUnit
string
- The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - MaxCapacity
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.
- capacityUnit
String
- The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - maxCapacity
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.
- capacityUnit
string
- The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - maxCapacity
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.
- capacityUnit
String
- The unit of compute capacity for the capacityLimit. For example,
ml.m5.large. - maxCapacity
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
QuotaSharePreemptionConfigurationInSharePreemption
| Name | Value |
|---|
| Enabled | ENABLED |
| Disabled | DISABLED |
| Name | Value |
|---|
| QuotaSharePreemptionConfigurationInSharePreemptionEnabled | ENABLED |
| QuotaSharePreemptionConfigurationInSharePreemptionDisabled | DISABLED |
| Name | Value |
|---|
| Enabled | ENABLED |
| Disabled | DISABLED |
| Name | Value |
|---|
| Enabled | ENABLED |
| Disabled | DISABLED |
| Name | Value |
|---|
| ENABLED | ENABLED |
| DISABLED | DISABLED |
QuotaShareResourceSharingConfiguration
- Strategy
Pulumi.AwsNative.Batch.QuotaShareResourceSharingConfigurationStrategy
- The resource sharing strategy for the quota share. The
RESERVE strategy allows a quota share to reserve idle capacity for itself. LEND configures the share to lend its idle capacity to another share in need of capacity. The LEND_AND_BORROW strategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - BorrowLimit
int
- The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimit can only be applied to quota shares with a strategy of LEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. The BorrowLimit is applied uniformly across all capacity units. For example, if the BorrowLimit is 200, the quota share can borrow up to 200% of its configured maxCapacity for each capacity unit. The default BorrowLimit is -1, which indicates unlimited borrowing.
- Strategy
QuotaShareResourceSharingConfigurationStrategy
- The resource sharing strategy for the quota share. The
RESERVE strategy allows a quota share to reserve idle capacity for itself. LEND configures the share to lend its idle capacity to another share in need of capacity. The LEND_AND_BORROW strategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - BorrowLimit
int
- The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimit can only be applied to quota shares with a strategy of LEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. The BorrowLimit is applied uniformly across all capacity units. For example, if the BorrowLimit is 200, the quota share can borrow up to 200% of its configured maxCapacity for each capacity unit. The default BorrowLimit is -1, which indicates unlimited borrowing.
- strategy
"RESERVE" | "LEND" | "LEND_AND_BORROW"
- The resource sharing strategy for the quota share. The
RESERVE strategy allows a quota share to reserve idle capacity for itself. LEND configures the share to lend its idle capacity to another share in need of capacity. The LEND_AND_BORROW strategy 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.
BorrowLimit can only be applied to quota shares with a strategy of LEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. The BorrowLimit is applied uniformly across all capacity units. For example, if the BorrowLimit is 200, the quota share can borrow up to 200% of its configured maxCapacity for each capacity unit. The default BorrowLimit is -1, which indicates unlimited borrowing.
- strategy
QuotaShareResourceSharingConfigurationStrategy
- The resource sharing strategy for the quota share. The
RESERVE strategy allows a quota share to reserve idle capacity for itself. LEND configures the share to lend its idle capacity to another share in need of capacity. The LEND_AND_BORROW strategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - borrowLimit
Integer
- The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimit can only be applied to quota shares with a strategy of LEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. The BorrowLimit is applied uniformly across all capacity units. For example, if the BorrowLimit is 200, the quota share can borrow up to 200% of its configured maxCapacity for each capacity unit. The default BorrowLimit is -1, which indicates unlimited borrowing.
- strategy
QuotaShareResourceSharingConfigurationStrategy
- The resource sharing strategy for the quota share. The
RESERVE strategy allows a quota share to reserve idle capacity for itself. LEND configures the share to lend its idle capacity to another share in need of capacity. The LEND_AND_BORROW strategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - borrowLimit
number
- The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimit can only be applied to quota shares with a strategy of LEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. The BorrowLimit is applied uniformly across all capacity units. For example, if the BorrowLimit is 200, the quota share can borrow up to 200% of its configured maxCapacity for each capacity unit. The default BorrowLimit is -1, which indicates unlimited borrowing.
- strategy
QuotaShareResourceSharingConfigurationStrategy
- The resource sharing strategy for the quota share. The
RESERVE strategy allows a quota share to reserve idle capacity for itself. LEND configures the share to lend its idle capacity to another share in need of capacity. The LEND_AND_BORROW strategy 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.
BorrowLimit can only be applied to quota shares with a strategy of LEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. The BorrowLimit is applied uniformly across all capacity units. For example, if the BorrowLimit is 200, the quota share can borrow up to 200% of its configured maxCapacity for each capacity unit. The default BorrowLimit is -1, which indicates unlimited borrowing.
- strategy
"RESERVE" | "LEND" | "LEND_AND_BORROW"
- The resource sharing strategy for the quota share. The
RESERVE strategy allows a quota share to reserve idle capacity for itself. LEND configures the share to lend its idle capacity to another share in need of capacity. The LEND_AND_BORROW strategy configures the share to borrow idle capacity from an underutilized share, as well as lend to another share. - borrowLimit
Number
- The maximum percentage of additional capacity that the quota share can borrow from other shares.
BorrowLimit can only be applied to quota shares with a strategy of LEND_AND_BORROW. This value is expressed as a percentage of the quota share's configured CapacityLimits. The BorrowLimit is applied uniformly across all capacity units. For example, if the BorrowLimit is 200, the quota share can borrow up to 200% of its configured maxCapacity for each capacity unit. The default BorrowLimit is -1, which indicates unlimited borrowing.
QuotaShareResourceSharingConfigurationStrategy
| Name | Value |
|---|
| Reserve | RESERVE |
| Lend | LEND |
| LendAndBorrow | LEND_AND_BORROW |
| Name | Value |
|---|
| QuotaShareResourceSharingConfigurationStrategyReserve | RESERVE |
| QuotaShareResourceSharingConfigurationStrategyLend | LEND |
| QuotaShareResourceSharingConfigurationStrategyLendAndBorrow | LEND_AND_BORROW |
| Value |
|---|
RESERVE |
LEND |
LEND_AND_BORROW |
| Name | Value |
|---|
| Reserve | RESERVE |
| Lend | LEND |
| LendAndBorrow | LEND_AND_BORROW |
| Name | Value |
|---|
| Reserve | RESERVE |
| Lend | LEND |
| LendAndBorrow | LEND_AND_BORROW |
| Name | Value |
|---|
| RESERVE | RESERVE |
| LEND | LEND |
| LEND_AND_BORROW | LEND_AND_BORROW |
| Value |
|---|
RESERVE |
LEND |
LEND_AND_BORROW |
QuotaShareState
| Name | Value |
|---|
| Enabled | ENABLED |
| Disabled | DISABLED |
| Name | Value |
|---|
| QuotaShareStateEnabled | ENABLED |
| QuotaShareStateDisabled | DISABLED |
| Name | Value |
|---|
| Enabled | ENABLED |
| Disabled | DISABLED |
| Name | Value |
|---|
| Enabled | ENABLED |
| Disabled | DISABLED |
| Name | Value |
|---|
| ENABLED | ENABLED |
| DISABLED | DISABLED |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0