create_quota_share
¶
create_quota_share(
*,
config_overrides: Optional[BatchClientConfig] = None,
quota_share_name: Optional[String] = None,
job_queue: Optional[String] = None,
capacity_limits: Optional[QuotaShareCapacityLimits] = None,
resource_sharing_configuration: Optional[
QuotaShareResourceSharingConfiguration
] = None,
preemption_configuration: Optional[QuotaSharePreemptionConfiguration] = None,
state: Optional[QuotaShareState] = None,
tags: Optional[TagrisTagsMap] = None,
) -> CreateQuotaShareResponse
Creates an Batch quota share. Each quota share operates as a virtual queue with a configured compute capacity, resource sharing strategy, and borrow limits.
Parameters:
-
quota_share_name(Optional[String], default:None) –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 (_).
-
job_queue(Optional[String], default:None) –The 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. -
capacity_limits(Optional[QuotaShareCapacityLimits], default:None) –A list that specifies the quantity and type of compute capacity allocated to the quota share.
-
resource_sharing_configuration(Optional[QuotaShareResourceSharingConfiguration], default:None) –Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
-
preemption_configuration(Optional[QuotaSharePreemptionConfiguration], default:None) –Specifies the preemption behavior for jobs in a quota share.
-
state(Optional[QuotaShareState], default:None) –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(Optional[TagrisTagsMap], default:None) –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. For more information, see Tagging your Batch resources in Batch User Guide.
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.