Interface CreateGlobalInferenceGatewayRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateGlobalInferenceGatewayRequest.Builder,,CreateGlobalInferenceGatewayRequest> SageMakerRequest.Builder,SdkBuilder<CreateGlobalInferenceGatewayRequest.Builder,,CreateGlobalInferenceGatewayRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateGlobalInferenceGatewayRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.executionRoleArn(String executionRoleArn) The Amazon Resource Name (ARN) of the IAM role that the global inference gateway assumes to access your SageMaker HyperPod clusters.gateways(Collection<GlobalInferenceGatewayMember> gateways) The 1 to 10 in-cluster inference gateways to add to the global inference gateway.gateways(Consumer<GlobalInferenceGatewayMember.Builder>... gateways) The 1 to 10 in-cluster inference gateways to add to the global inference gateway.gateways(GlobalInferenceGatewayMember... gateways) The 1 to 10 in-cluster inference gateways to add to the global inference gateway.The name of the global inference gateway.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The routing configuration of the global inference gateway.routing(GlobalInferenceGatewayRouting routing) The routing configuration of the global inference gateway.tags(Collection<Tag> tags) Custom tags for managing the global inference gateway as an Amazon Web Services resource.tags(Consumer<Tag.Builder>... tags) Custom tags for managing the global inference gateway as an Amazon Web Services resource.Custom tags for managing the global inference gateway as an Amazon Web Services resource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
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.
- Parameters:
name- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routing
The routing configuration of the global inference gateway. If you omit it, the global inference gateway uses default routing weights.
- Parameters:
routing- The routing configuration of the global inference gateway. If you omit it, the global inference gateway uses default routing weights.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routing
default CreateGlobalInferenceGatewayRequest.Builder routing(Consumer<GlobalInferenceGatewayRouting.Builder> routing) The routing configuration of the global inference gateway. If you omit it, the global inference gateway uses default routing weights.
This is a convenience method that creates an instance of theGlobalInferenceGatewayRouting.Builderavoiding the need to create one manually viaGlobalInferenceGatewayRouting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torouting(GlobalInferenceGatewayRouting).- Parameters:
routing- a consumer that will call methods onGlobalInferenceGatewayRouting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionRoleArn
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.- Parameters:
executionRoleArn- 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 haveiam:PassRolepermission for it. You can't change the role after you create the global inference gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gateways
CreateGlobalInferenceGatewayRequest.Builder gateways(Collection<GlobalInferenceGatewayMember> gateways) 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.- Parameters:
gateways- 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, soRemoveInferenceGatewaycan't remove the last one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gateways
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.- Parameters:
gateways- 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, soRemoveInferenceGatewaycan't remove the last one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gateways
CreateGlobalInferenceGatewayRequest.Builder gateways(Consumer<GlobalInferenceGatewayMember.Builder>... gateways) 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
This is a convenience method that creates an instance of theRemoveInferenceGatewaycan't remove the last one.GlobalInferenceGatewayMember.Builderavoiding the need to create one manually viaGlobalInferenceGatewayMember.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togateways(List<GlobalInferenceGatewayMember>).- Parameters:
gateways- a consumer that will call methods onGlobalInferenceGatewayMember.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
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.
- Parameters:
clientToken- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
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.- Parameters:
tags- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
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.- Parameters:
tags- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
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
This is a convenience method that creates an instance of theListTags.Tag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateGlobalInferenceGatewayRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateGlobalInferenceGatewayRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-