public static interface CreateModelRequest.Builder extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<CreateModelRequest.Builder,CreateModelRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateModelRequest.Builder |
containers(Collection<ContainerDefinition> containers)
Specifies the containers in the inference pipeline.
|
CreateModelRequest.Builder |
containers(Consumer<ContainerDefinition.Builder>... containers)
Specifies the containers in the inference pipeline.
|
CreateModelRequest.Builder |
containers(ContainerDefinition... containers)
Specifies the containers in the inference pipeline.
|
CreateModelRequest.Builder |
enableNetworkIsolation(Boolean enableNetworkIsolation)
Isolates the model container.
|
CreateModelRequest.Builder |
executionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to access model artifacts and docker
image for deployment on ML compute instances or for batch transform jobs.
|
default CreateModelRequest.Builder |
inferenceExecutionConfig(Consumer<InferenceExecutionConfig.Builder> inferenceExecutionConfig)
Specifies details of how containers in a multi-container endpoint are called.
|
CreateModelRequest.Builder |
inferenceExecutionConfig(InferenceExecutionConfig inferenceExecutionConfig)
Specifies details of how containers in a multi-container endpoint are called.
|
CreateModelRequest.Builder |
modelName(String modelName)
The name of the new model.
|
CreateModelRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateModelRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
default CreateModelRequest.Builder |
primaryContainer(Consumer<ContainerDefinition.Builder> primaryContainer)
The location of the primary docker image containing inference code, associated artifacts, and custom
environment map that the inference code uses when the model is deployed for predictions.
|
CreateModelRequest.Builder |
primaryContainer(ContainerDefinition primaryContainer)
The location of the primary docker image containing inference code, associated artifacts, and custom
environment map that the inference code uses when the model is deployed for predictions.
|
CreateModelRequest.Builder |
tags(Collection<Tag> tags)
An array of key-value pairs.
|
CreateModelRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
An array of key-value pairs.
|
CreateModelRequest.Builder |
tags(Tag... tags)
An array of key-value pairs.
|
default CreateModelRequest.Builder |
vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
A VpcConfig object that specifies the VPC that you want your model to connect to.
|
CreateModelRequest.Builder |
vpcConfig(VpcConfig vpcConfig)
A VpcConfig object that specifies the VPC that you want your model to connect to.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateModelRequest.Builder modelName(String modelName)
The name of the new model.
modelName - The name of the new model.CreateModelRequest.Builder primaryContainer(ContainerDefinition primaryContainer)
The location of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions.
primaryContainer - The location of the primary docker image containing inference code, associated artifacts, and custom
environment map that the inference code uses when the model is deployed for predictions.default CreateModelRequest.Builder primaryContainer(Consumer<ContainerDefinition.Builder> primaryContainer)
The location of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions.
This is a convenience method that creates an instance of theContainerDefinition.Builder avoiding the
need to create one manually via ContainerDefinition.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to primaryContainer(ContainerDefinition).
primaryContainer - a consumer that will call methods on ContainerDefinition.BuilderprimaryContainer(ContainerDefinition)CreateModelRequest.Builder containers(Collection<ContainerDefinition> containers)
Specifies the containers in the inference pipeline.
containers - Specifies the containers in the inference pipeline.CreateModelRequest.Builder containers(ContainerDefinition... containers)
Specifies the containers in the inference pipeline.
containers - Specifies the containers in the inference pipeline.CreateModelRequest.Builder containers(Consumer<ContainerDefinition.Builder>... containers)
Specifies the containers in the inference pipeline.
This is a convenience method that creates an instance of theContainerDefinition.Builder avoiding the need to
create one manually via ContainerDefinition.builder()
.
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #containers(List.
containers - a consumer that will call methods on
ContainerDefinition.Builder#containers(java.util.Collection) CreateModelRequest.Builder inferenceExecutionConfig(InferenceExecutionConfig inferenceExecutionConfig)
Specifies details of how containers in a multi-container endpoint are called.
inferenceExecutionConfig - Specifies details of how containers in a multi-container endpoint are called.default CreateModelRequest.Builder inferenceExecutionConfig(Consumer<InferenceExecutionConfig.Builder> inferenceExecutionConfig)
Specifies details of how containers in a multi-container endpoint are called.
This is a convenience method that creates an instance of theInferenceExecutionConfig.Builder
avoiding the need to create one manually via InferenceExecutionConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to inferenceExecutionConfig(InferenceExecutionConfig).
inferenceExecutionConfig - a consumer that will call methods on InferenceExecutionConfig.BuilderinferenceExecutionConfig(InferenceExecutionConfig)CreateModelRequest.Builder executionRoleArn(String executionRoleArn)
The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to access model artifacts and docker image for deployment on ML compute instances or for batch transform jobs. Deploying on ML compute instances is part of model hosting. For more information, see SageMaker Roles.
To be able to pass this role to SageMaker, the caller of this API must have the iam:PassRole
permission.
executionRoleArn - The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to access model artifacts and
docker image for deployment on ML compute instances or for batch transform jobs. Deploying on ML
compute instances is part of model hosting. For more information, see SageMaker Roles.
To be able to pass this role to SageMaker, the caller of this API must have the
iam:PassRole permission.
CreateModelRequest.Builder tags(Collection<Tag> tags)
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
tags - An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in
different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services
Resources.CreateModelRequest.Builder tags(Tag... tags)
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
tags - An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in
different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services
Resources.CreateModelRequest.Builder tags(Consumer<Tag.Builder>... tags)
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one manually
via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) CreateModelRequest.Builder vpcConfig(VpcConfig vpcConfig)
A VpcConfig object that specifies the VPC that you want your model to connect to. Control access to
and from your model container by configuring the VPC. VpcConfig is used in hosting services and
in batch transform. For more information, see Protect Endpoints by Using an Amazon
Virtual Private Cloud and Protect Data in Batch Transform Jobs by
Using an Amazon Virtual Private Cloud.
vpcConfig - A VpcConfig object that specifies the VPC that you want your model to connect to. Control
access to and from your model container by configuring the VPC. VpcConfig is used in
hosting services and in batch transform. For more information, see Protect Endpoints by Using an
Amazon Virtual Private Cloud and Protect Data in Batch Transform
Jobs by Using an Amazon Virtual Private Cloud.default CreateModelRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
A VpcConfig object that specifies the VPC that you want your model to connect to. Control access to
and from your model container by configuring the VPC. VpcConfig is used in hosting services and
in batch transform. For more information, see Protect Endpoints by Using an Amazon
Virtual Private Cloud and Protect Data in Batch Transform Jobs by
Using an Amazon Virtual Private Cloud.
VpcConfig.Builder avoiding the need to
create one manually via VpcConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to vpcConfig(VpcConfig).
vpcConfig - a consumer that will call methods on VpcConfig.BuildervpcConfig(VpcConfig)CreateModelRequest.Builder enableNetworkIsolation(Boolean enableNetworkIsolation)
Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
enableNetworkIsolation - Isolates the model container. No inbound or outbound network calls can be made to or from the model
container.CreateModelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateModelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.