create_global_inference_gateway
¶
create_global_inference_gateway(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 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 | |