create_global_inference_gateway
async
¶
create_global_inference_gateway(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
name: Optional[GlobalInferenceGatewayName] = None,
routing: Optional[GlobalInferenceGatewayRouting] = None,
execution_role_arn: Optional[GlobalInferenceGatewayExecutionRoleArn] = None,
gateways: Optional[GlobalInferenceGatewayMembers] = None,
client_token: Optional[GlobalInferenceGatewayClientToken] = None,
tags: Optional[TagList] = None,
) -> CreateGlobalInferenceGatewayResponse
Creates a global inference gateway. This operation is asynchronous: the global inference gateway starts in the CREATING status. To check its status, call DescribeGlobalInferenceGateway until the status is ACTIVE or FAILED. The operation fails with ResourceInUse if the name is already in use, or if one of the in-cluster inference gateways in Gateways already belongs to another global inference gateway.
Parameters:
-
name(Optional[GlobalInferenceGatewayName], default:None) –The name of the global inference gateway. The name must be unique in your account in the current Region, and is case-sensitive. The name can't be exactly 12 lowercase letters or digits, because the global inference gateway ID uses that format.
-
routing(Optional[GlobalInferenceGatewayRouting], default:None) –The routing configuration of the global inference gateway. If you omit it, the global inference gateway uses default routing weights.
-
execution_role_arn(Optional[GlobalInferenceGatewayExecutionRoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role that the global inference gateway assumes to access your SageMaker HyperPod clusters. The role must be in your account and partition, and you must have
iam:PassRolepermission for it. You can't change the role after you create the global inference gateway. -
gateways(Optional[GlobalInferenceGatewayMembers], default:None) –The 1 to 10 in-cluster inference gateways to add to the global inference gateway. A global inference gateway must always have at least one in-cluster inference gateway, so
RemoveInferenceGatewaycan't remove the last one. -
client_token(Optional[GlobalInferenceGatewayClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. An idempotent operation completes no more than one time. If you don't specify a client token, the Amazon Web Services SDKs and the Amazon Web Services CLI generate one for you.
-
tags(Optional[TagList], default:None) –Custom tags for managing the global inference gateway as an Amazon Web Services resource. You can add tags to your global inference gateway in the same way you add them in other Amazon Web Services services that support tagging. For more information about tagging Amazon Web Services resources, see Tagging your Amazon Web Services resources in the Tagging Amazon Web Services Resources User Guide.
The global inference gateway doesn't return tags in its responses. To read the tags, use
ListTags.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 | |