Skip to content

CreateGlobalInferenceGatewayRequest

Source code in docs_src/capo_sagemaker/types/create_global_inference_gateway_request.py
class CreateGlobalInferenceGatewayRequest(TypedDict, closed=True):
    name: NotRequired[
        "capo_sagemaker.types.global_inference_gateway_name.GlobalInferenceGatewayName"
    ]
    """<p>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.</p>"""
    routing: NotRequired[
        "capo_sagemaker.types.global_inference_gateway_routing.GlobalInferenceGatewayRouting"
    ]
    """The routing configuration of the global inference gateway. If you omit it, the global inference gateway uses default routing weights."""
    execution_role_arn: NotRequired[
        "capo_sagemaker.types.global_inference_gateway_execution_role_arn.GlobalInferenceGatewayExecutionRoleArn"
    ]
    """<p>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 <code>iam:PassRole</code> permission for it. You can't change the role after you create the global inference gateway.</p>"""
    gateways: NotRequired[
        "capo_sagemaker.types.global_inference_gateway_members.GlobalInferenceGatewayMembers"
    ]
    """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 `RemoveInferenceGateway` can't remove the last one."""
    client_token: NotRequired[
        "capo_sagemaker.types.global_inference_gateway_client_token.GlobalInferenceGatewayClientToken"
    ]
    """<p>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.</p>"""
    tags: NotRequired["capo_sagemaker.types.tag_list.TagList"]
    """<p>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 <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html">Tagging your Amazon Web Services resources</a> in the <i>Tagging Amazon Web Services Resources User Guide</i>.</p> <p>The global inference gateway doesn't return tags in its responses. To read the tags, use <code>ListTags</code>.</p>"""

client_token instance-attribute

client_token: NotRequired[GlobalInferenceGatewayClientToken]

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.

execution_role_arn instance-attribute

execution_role_arn: NotRequired[GlobalInferenceGatewayExecutionRoleArn]

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:PassRole permission for it. You can't change the role after you create the global inference gateway.

gateways instance-attribute

gateways: NotRequired[GlobalInferenceGatewayMembers]

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 RemoveInferenceGateway can't remove the last one.

name instance-attribute

name: NotRequired[GlobalInferenceGatewayName]

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 instance-attribute

routing: NotRequired[GlobalInferenceGatewayRouting]

The routing configuration of the global inference gateway. If you omit it, the global inference gateway uses default routing weights.

tags instance-attribute

tags: NotRequired[TagList]

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.