CfnSchedulingPolicyProps
- class aws_cdk.aws_batch.CfnSchedulingPolicyProps(*, fairshare_policy=None, name=None, tags=None)
Bases:
object
Properties for defining a
CfnSchedulingPolicy
.- Parameters:
fairshare_policy (
Union
[IResolvable
,FairsharePolicyProperty
,Dict
[str
,Any
],None
]) – The fair share policy of the scheduling policy.name (
Optional
[str
]) – The name of the scheduling policy. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).tags (
Optional
[Mapping
[str
,str
]]) – The tags that you apply to the scheduling policy to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General Reference . These tags can be updated or removed using the TagResource and UntagResource API operations.
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_batch as batch cfn_scheduling_policy_props = batch.CfnSchedulingPolicyProps( fairshare_policy=batch.CfnSchedulingPolicy.FairsharePolicyProperty( compute_reservation=123, share_decay_seconds=123, share_distribution=[batch.CfnSchedulingPolicy.ShareAttributesProperty( share_identifier="shareIdentifier", weight_factor=123 )] ), name="name", tags={ "tags_key": "tags" } )
Attributes
The fair share policy of the scheduling policy.
- name
The name of the scheduling policy.
It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
- tags
The tags that you apply to the scheduling policy to help you categorize and organize your resources.
Each tag consists of a key and an optional value. For more information, see Tagging AWS Resources in AWS General Reference .
These tags can be updated or removed using the TagResource and UntagResource API operations.