CfnQuotaSharePropsMixin
- class aws_cdk.cfn_property_mixins.aws_batch.CfnQuotaSharePropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::Batch::QuotaShare.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-quotashare.html
- CloudformationResource:
AWS::Batch::QuotaShare
- Mixin:
true
- 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.cfn_property_mixins import aws_batch as batch import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_quota_share_props_mixin = batch.CfnQuotaSharePropsMixin(batch.CfnQuotaShareMixinProps( capacity_limits=[batch.CfnQuotaSharePropsMixin.QuotaShareCapacityLimitProperty( capacity_unit="capacityUnit", max_capacity=123 )], job_queue="jobQueue", preemption_configuration=batch.CfnQuotaSharePropsMixin.QuotaSharePreemptionConfigurationProperty( in_share_preemption="inSharePreemption" ), quota_share_name="quotaShareName", resource_sharing_configuration=batch.CfnQuotaSharePropsMixin.QuotaShareResourceSharingConfigurationProperty( borrow_limit=123, strategy="strategy" ), state="state", tags={ "tags_key": "tags" } ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Batch::QuotaShare.- Parameters:
props (
Union[CfnQuotaShareMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['capacityLimits', 'jobQueue', 'preemptionConfiguration', 'quotaShareName', 'resourceSharingConfiguration', 'state', 'tags']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
QuotaShareCapacityLimitProperty
- class CfnQuotaSharePropsMixin.QuotaShareCapacityLimitProperty(*, capacity_unit=None, max_capacity=None)
Bases:
object- Parameters:
capacity_unit (
Optional[str]) – The unit of compute capacity for the capacityLimit.max_capacity (
Union[int,float,None]) – The maximum capacity available for the quota share. This value represents the maximum amount of resources that can be allocated to jobs in the quota share without borrowing
- See:
- 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.cfn_property_mixins import aws_batch as batch quota_share_capacity_limit_property = batch.CfnQuotaSharePropsMixin.QuotaShareCapacityLimitProperty( capacity_unit="capacityUnit", max_capacity=123 )
Attributes
- capacity_unit
The unit of compute capacity for the capacityLimit.
- max_capacity
The maximum capacity available for the quota share.
This value represents the maximum amount of resources that can be allocated to jobs in the quota share without borrowing
QuotaSharePreemptionConfigurationProperty
- class CfnQuotaSharePropsMixin.QuotaSharePreemptionConfigurationProperty(*, in_share_preemption=None)
Bases:
object- Parameters:
in_share_preemption (
Optional[str]) – Whether preemption is enabled within the quota share.- See:
- 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.cfn_property_mixins import aws_batch as batch quota_share_preemption_configuration_property = batch.CfnQuotaSharePropsMixin.QuotaSharePreemptionConfigurationProperty( in_share_preemption="inSharePreemption" )
Attributes
- in_share_preemption
Whether preemption is enabled within the quota share.
QuotaShareResourceSharingConfigurationProperty
- class CfnQuotaSharePropsMixin.QuotaShareResourceSharingConfigurationProperty(*, borrow_limit=None, strategy=None)
Bases:
object- Parameters:
borrow_limit (
Union[int,float,None]) – The maximum amount of compute capacity that can be borrowed. Use -1 for unlimited borrowing.strategy (
Optional[str]) – The resource sharing strategy.
- See:
- 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.cfn_property_mixins import aws_batch as batch quota_share_resource_sharing_configuration_property = batch.CfnQuotaSharePropsMixin.QuotaShareResourceSharingConfigurationProperty( borrow_limit=123, strategy="strategy" )
Attributes
- borrow_limit
The maximum amount of compute capacity that can be borrowed.
Use -1 for unlimited borrowing.