CfnQuotaShareProps
- class aws_cdk.aws_batch.CfnQuotaShareProps(*, capacity_limits, job_queue, preemption_configuration, quota_share_name, resource_sharing_configuration, state=None, tags=None)
Bases:
objectProperties for defining a
CfnQuotaShare.- Parameters:
capacity_limits (
Union[IResolvable,Sequence[Union[IResolvable,QuotaShareCapacityLimitProperty,Dict[str,Any]]]]) – 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 theVALIDstate before you can associate it with a quota share.preemption_configuration (
Union[IResolvable,QuotaSharePreemptionConfigurationProperty,Dict[str,Any]])quota_share_name (
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 (_).resource_sharing_configuration (
Union[IResolvable,QuotaShareResourceSharingConfigurationProperty,Dict[str,Any]])state (
Optional[str]) – The state of the quota share. If the quota share isENABLED, 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.tags (
Optional[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.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-quotashare.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_batch as batch cfn_quota_share_props = batch.CfnQuotaShareProps( capacity_limits=[batch.CfnQuotaShare.QuotaShareCapacityLimitProperty( capacity_unit="capacityUnit", max_capacity=123 )], job_queue="jobQueue", preemption_configuration=batch.CfnQuotaShare.QuotaSharePreemptionConfigurationProperty( in_share_preemption="inSharePreemption" ), quota_share_name="quotaShareName", resource_sharing_configuration=batch.CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty( strategy="strategy", # the properties below are optional borrow_limit=123 ), # the properties below are optional state="state", tags={ "tags_key": "tags" } )
Attributes
- capacity_limits
A list that specifies the quantity and type of compute capacity allocated to the quota share.
- job_queue
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
-
- Type:
see
- quota_share_name
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 (_).
- resource_sharing_configuration
-
- Type:
see
- 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.
- tags
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.