create_scheduling_policy
async
¶
create_scheduling_policy(
*,
config_overrides: Optional[AsyncBatchClientConfig] = None,
name: Optional[String] = None,
quota_share_policy: Optional[QuotaSharePolicy] = None,
fairshare_policy: Optional[FairsharePolicy] = None,
tags: Optional[TagrisTagsMap] = None,
) -> CreateSchedulingPolicyResponse
Creates an Batch scheduling policy.
Parameters:
-
name(Optional[String], default:None) –The name of the fair-share scheduling policy. It can be up to 128 letters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
-
quota_share_policy(Optional[QuotaSharePolicy], default:None) –The quota share scheduling policy details. Only one of fairsharePolicy or quotaSharePolicy can be set. Once set, this policy type cannot be removed or changed to a fairSharePolicy.
-
fairshare_policy(Optional[FairsharePolicy], default:None) –The fair-share scheduling policy details. Only one of fairsharePolicy or quotaSharePolicy can be set. Once set, this policy type cannot be removed or changed to a quotaSharePolicy.
-
tags(Optional[TagrisTagsMap], default:None) –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 Amazon Web Services Resources in Amazon Web Services General Reference.
These tags can be updated or removed using the TagResource and UntagResource API operations.
Raises:
-
ClientException–These errors are usually caused by a client action. One example cause is using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier that's not valid.
-
ServerException–These errors are usually caused by a server issue.
-
UnknownServiceError–The service returned an error code this client does not model.