create_quota_share
async
¶
create_quota_share(
*,
config_overrides: Optional[AsyncBatchClientConfig] = 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.
Source code in docs_src/capo_batch/_services/async_batch.py
698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 | |