CfnLimitPropsMixin
- class aws_cdk.mixins_preview.aws_deadline.mixins.CfnLimitPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a limit that manages the distribution of shared resources, such as floating licenses.
A limit can throttle work assignments, help manage workloads, and track current usage. Before you use a limit, you must associate the limit with one or more queues.
You must add the
amountRequirementNameto a step in a job template to declare the limit requirement.- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-deadline-limit.html
- CloudformationResource:
AWS::Deadline::Limit
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_deadline import mixins as deadline_mixins cfn_limit_props_mixin = deadline_mixins.CfnLimitPropsMixin(deadline_mixins.CfnLimitMixinProps( amount_requirement_name="amountRequirementName", description="description", display_name="displayName", farm_id="farmId", max_count=123 ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Deadline::Limit.- Parameters:
props (
Union[CfnLimitMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['amountRequirementName', 'description', 'displayName', 'farmId', 'maxCount']
Static Methods
- classmethod is_mixin(x)
(experimental) 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.- Stability:
experimental