@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonSageMakerAsync extends AbstractAmazonSageMaker implements AmazonSageMakerAsync
AmazonSageMakerAsync
. Convenient method forms pass through to the corresponding
overload that takes a request object and an AsyncHandler
, which throws an
UnsupportedOperationException
.ENDPOINT_PREFIX
addTags, createEndpoint, createEndpointConfig, createModel, createNotebookInstance, createPresignedNotebookInstanceUrl, createTrainingJob, deleteEndpoint, deleteEndpointConfig, deleteModel, deleteNotebookInstance, deleteTags, describeEndpoint, describeEndpointConfig, describeModel, describeNotebookInstance, describeTrainingJob, getCachedResponseMetadata, listEndpointConfigs, listEndpoints, listModels, listNotebookInstances, listTags, listTrainingJobs, shutdown, startNotebookInstance, stopNotebookInstance, stopTrainingJob, updateEndpoint, updateEndpointWeightsAndCapacities, updateNotebookInstance, waiters
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTags, createEndpoint, createEndpointConfig, createModel, createNotebookInstance, createPresignedNotebookInstanceUrl, createTrainingJob, deleteEndpoint, deleteEndpointConfig, deleteModel, deleteNotebookInstance, deleteTags, describeEndpoint, describeEndpointConfig, describeModel, describeNotebookInstance, describeTrainingJob, getCachedResponseMetadata, listEndpointConfigs, listEndpoints, listModels, listNotebookInstances, listTags, listTrainingJobs, shutdown, startNotebookInstance, stopNotebookInstance, stopTrainingJob, updateEndpoint, updateEndpointWeightsAndCapacities, updateNotebookInstance, waiters
public Future<AddTagsResult> addTagsAsync(AddTagsRequest request)
AmazonSageMakerAsync
Adds or overwrites one or more tags for the specified Amazon SageMaker resource. You can add tags to notebook instances, training jobs, models, endpoint configurations, and endpoints.
Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.
addTagsAsync
in interface AmazonSageMakerAsync
public Future<AddTagsResult> addTagsAsync(AddTagsRequest request, AsyncHandler<AddTagsRequest,AddTagsResult> asyncHandler)
AmazonSageMakerAsync
Adds or overwrites one or more tags for the specified Amazon SageMaker resource. You can add tags to notebook instances, training jobs, models, endpoint configurations, and endpoints.
Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.
addTagsAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateEndpointResult> createEndpointAsync(CreateEndpointRequest request)
AmazonSageMakerAsync
Creates an endpoint using the endpoint configuration specified in the request. Amazon SageMaker uses the endpoint to provision resources and deploy models. You create the endpoint configuration with the CreateEndpointConfig API.
Use this API only for hosting models using Amazon SageMaker hosting services.
The endpoint name must be unique within an AWS Region in your AWS account.
When it receives the request, Amazon SageMaker creates the endpoint, launches the resources (ML compute instances), and deploys the model(s) on them.
When Amazon SageMaker receives the request, it sets the endpoint status to Creating
. After it
creates the endpoint, it sets the status to InService
. Amazon SageMaker can then process incoming
requests for inferences. To check the status of an endpoint, use the DescribeEndpoint API.
For an example, see Exercise 1: Using the K-Means Algorithm Provided by Amazon SageMaker.
createEndpointAsync
in interface AmazonSageMakerAsync
public Future<CreateEndpointResult> createEndpointAsync(CreateEndpointRequest request, AsyncHandler<CreateEndpointRequest,CreateEndpointResult> asyncHandler)
AmazonSageMakerAsync
Creates an endpoint using the endpoint configuration specified in the request. Amazon SageMaker uses the endpoint to provision resources and deploy models. You create the endpoint configuration with the CreateEndpointConfig API.
Use this API only for hosting models using Amazon SageMaker hosting services.
The endpoint name must be unique within an AWS Region in your AWS account.
When it receives the request, Amazon SageMaker creates the endpoint, launches the resources (ML compute instances), and deploys the model(s) on them.
When Amazon SageMaker receives the request, it sets the endpoint status to Creating
. After it
creates the endpoint, it sets the status to InService
. Amazon SageMaker can then process incoming
requests for inferences. To check the status of an endpoint, use the DescribeEndpoint API.
For an example, see Exercise 1: Using the K-Means Algorithm Provided by Amazon SageMaker.
createEndpointAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateEndpointConfigResult> createEndpointConfigAsync(CreateEndpointConfigRequest request)
AmazonSageMakerAsync
Creates an endpoint configuration that Amazon SageMaker hosting services uses to deploy models. In the
configuration, you identify one or more models, created using the CreateModel
API, to deploy and the
resources that you want Amazon SageMaker to provision. Then you call the CreateEndpoint API.
Use this API only if you want to use Amazon SageMaker hosting services to deploy models into production.
In the request, you define one or more ProductionVariant
s, each of which identifies a model. Each
ProductionVariant
parameter also describes the resources that you want Amazon SageMaker to
provision. This includes the number and type of ML compute instances to deploy.
If you are hosting multiple models, you also assign a VariantWeight
to specify how much traffic you
want to allocate to each model. For example, suppose that you want to host two models, A and B, and you assign
traffic weight 2 for model A and 1 for model B. Amazon SageMaker distributes two-thirds of the traffic to Model
A, and one-third to model B.
createEndpointConfigAsync
in interface AmazonSageMakerAsync
public Future<CreateEndpointConfigResult> createEndpointConfigAsync(CreateEndpointConfigRequest request, AsyncHandler<CreateEndpointConfigRequest,CreateEndpointConfigResult> asyncHandler)
AmazonSageMakerAsync
Creates an endpoint configuration that Amazon SageMaker hosting services uses to deploy models. In the
configuration, you identify one or more models, created using the CreateModel
API, to deploy and the
resources that you want Amazon SageMaker to provision. Then you call the CreateEndpoint API.
Use this API only if you want to use Amazon SageMaker hosting services to deploy models into production.
In the request, you define one or more ProductionVariant
s, each of which identifies a model. Each
ProductionVariant
parameter also describes the resources that you want Amazon SageMaker to
provision. This includes the number and type of ML compute instances to deploy.
If you are hosting multiple models, you also assign a VariantWeight
to specify how much traffic you
want to allocate to each model. For example, suppose that you want to host two models, A and B, and you assign
traffic weight 2 for model A and 1 for model B. Amazon SageMaker distributes two-thirds of the traffic to Model
A, and one-third to model B.
createEndpointConfigAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateModelResult> createModelAsync(CreateModelRequest request)
AmazonSageMakerAsync
Creates a model in Amazon SageMaker. In the request, you name the model and describe one or more containers. For each container, you specify the docker image containing inference code, artifacts (from prior training), and custom environment map that the inference code uses when you deploy the model into production.
Use this API to create a model only if you want to use Amazon SageMaker hosting services. To host your model, you
create an endpoint configuration with the CreateEndpointConfig
API, and then create an endpoint with
the CreateEndpoint
API.
Amazon SageMaker then deploys all of the containers that you defined for the model in the hosting environment.
In the CreateModel
request, you must define a container with the PrimaryContainer
parameter.
In the request, you also provide an IAM role that Amazon SageMaker can assume to access model artifacts and docker image for deployment on ML compute hosting instances. In addition, you also use the IAM role to manage permissions the inference code needs. For example, if the inference code access any other AWS resources, you grant necessary permissions via this role.
createModelAsync
in interface AmazonSageMakerAsync
public Future<CreateModelResult> createModelAsync(CreateModelRequest request, AsyncHandler<CreateModelRequest,CreateModelResult> asyncHandler)
AmazonSageMakerAsync
Creates a model in Amazon SageMaker. In the request, you name the model and describe one or more containers. For each container, you specify the docker image containing inference code, artifacts (from prior training), and custom environment map that the inference code uses when you deploy the model into production.
Use this API to create a model only if you want to use Amazon SageMaker hosting services. To host your model, you
create an endpoint configuration with the CreateEndpointConfig
API, and then create an endpoint with
the CreateEndpoint
API.
Amazon SageMaker then deploys all of the containers that you defined for the model in the hosting environment.
In the CreateModel
request, you must define a container with the PrimaryContainer
parameter.
In the request, you also provide an IAM role that Amazon SageMaker can assume to access model artifacts and docker image for deployment on ML compute hosting instances. In addition, you also use the IAM role to manage permissions the inference code needs. For example, if the inference code access any other AWS resources, you grant necessary permissions via this role.
createModelAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateNotebookInstanceResult> createNotebookInstanceAsync(CreateNotebookInstanceRequest request)
AmazonSageMakerAsync
Creates an Amazon SageMaker notebook instance. A notebook instance is an ML compute instance running on a Jupyter notebook.
In a CreateNotebookInstance
request, you specify the type of ML compute instance that you want to
run. Amazon SageMaker launches the instance, installs common libraries that you can use to explore datasets for
model training, and attaches an ML storage volume to the notebook instance.
Amazon SageMaker also provides a set of example notebooks. Each notebook demonstrates how to use Amazon SageMaker with a specific an algorithm or with a machine learning framework.
After receiving the request, Amazon SageMaker does the following:
Creates a network interface in the Amazon SageMaker VPC.
(Option) If you specified SubnetId
, creates a network interface in your own VPC, which is inferred
from the subnet ID that you provide in the input. When creating this network interface, Amazon SageMaker attaches
the security group that you specified in the request to the network interface that it creates in your VPC.
Launches an EC2 instance of the type specified in the request in the Amazon SageMaker VPC. If you specified
SubnetId
of your VPC, Amazon SageMaker specifies both network interfaces when launching this
instance. This enables inbound traffic from your own VPC to the notebook instance, assuming that the security
groups allow it.
After creating the notebook instance, Amazon SageMaker returns its Amazon Resource Name (ARN).
After Amazon SageMaker creates the notebook instance, you can connect to the Jupyter server and work in Jupyter notebooks. For example, you can write code to explore a dataset that you can use for model training, train a model, host models by creating Amazon SageMaker endpoints, and validate hosted models.
For more information, see How It Works.
createNotebookInstanceAsync
in interface AmazonSageMakerAsync
public Future<CreateNotebookInstanceResult> createNotebookInstanceAsync(CreateNotebookInstanceRequest request, AsyncHandler<CreateNotebookInstanceRequest,CreateNotebookInstanceResult> asyncHandler)
AmazonSageMakerAsync
Creates an Amazon SageMaker notebook instance. A notebook instance is an ML compute instance running on a Jupyter notebook.
In a CreateNotebookInstance
request, you specify the type of ML compute instance that you want to
run. Amazon SageMaker launches the instance, installs common libraries that you can use to explore datasets for
model training, and attaches an ML storage volume to the notebook instance.
Amazon SageMaker also provides a set of example notebooks. Each notebook demonstrates how to use Amazon SageMaker with a specific an algorithm or with a machine learning framework.
After receiving the request, Amazon SageMaker does the following:
Creates a network interface in the Amazon SageMaker VPC.
(Option) If you specified SubnetId
, creates a network interface in your own VPC, which is inferred
from the subnet ID that you provide in the input. When creating this network interface, Amazon SageMaker attaches
the security group that you specified in the request to the network interface that it creates in your VPC.
Launches an EC2 instance of the type specified in the request in the Amazon SageMaker VPC. If you specified
SubnetId
of your VPC, Amazon SageMaker specifies both network interfaces when launching this
instance. This enables inbound traffic from your own VPC to the notebook instance, assuming that the security
groups allow it.
After creating the notebook instance, Amazon SageMaker returns its Amazon Resource Name (ARN).
After Amazon SageMaker creates the notebook instance, you can connect to the Jupyter server and work in Jupyter notebooks. For example, you can write code to explore a dataset that you can use for model training, train a model, host models by creating Amazon SageMaker endpoints, and validate hosted models.
For more information, see How It Works.
createNotebookInstanceAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreatePresignedNotebookInstanceUrlResult> createPresignedNotebookInstanceUrlAsync(CreatePresignedNotebookInstanceUrlRequest request)
AmazonSageMakerAsync
Returns a URL that you can use to connect to the Juypter server from a notebook instance. In the Amazon SageMaker
console, when you choose Open
next to a notebook instance, Amazon SageMaker opens a new tab showing
the Jupyter server home page from the notebook instance. The console uses this API to get the URL and show the
page.
createPresignedNotebookInstanceUrlAsync
in interface AmazonSageMakerAsync
public Future<CreatePresignedNotebookInstanceUrlResult> createPresignedNotebookInstanceUrlAsync(CreatePresignedNotebookInstanceUrlRequest request, AsyncHandler<CreatePresignedNotebookInstanceUrlRequest,CreatePresignedNotebookInstanceUrlResult> asyncHandler)
AmazonSageMakerAsync
Returns a URL that you can use to connect to the Juypter server from a notebook instance. In the Amazon SageMaker
console, when you choose Open
next to a notebook instance, Amazon SageMaker opens a new tab showing
the Jupyter server home page from the notebook instance. The console uses this API to get the URL and show the
page.
createPresignedNotebookInstanceUrlAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateTrainingJobResult> createTrainingJobAsync(CreateTrainingJobRequest request)
AmazonSageMakerAsync
Starts a model training job. After training completes, Amazon SageMaker saves the resulting model artifacts to an Amazon S3 location that you specify.
If you choose to host your model using Amazon SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts in a deep learning service other than Amazon SageMaker, provided that you know how to use them for inferences.
In the request body, you provide the following:
AlgorithmSpecification
- Identifies the training algorithm to use.
HyperParameters
- Specify these algorithm-specific parameters to influence the quality of the final
model. For a list of hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms.
InputDataConfig
- Describes the training dataset and the Amazon S3 location where it is stored.
OutputDataConfig
- Identifies the Amazon S3 location where you want Amazon SageMaker to save the
results of model training.
ResourceConfig
- Identifies the resources, ML compute instances, and ML storage volumes to deploy
for model training. In distributed training, you specify more than one instance.
RoleARN
- The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform tasks on your
behalf during model training. You must grant this role the necessary permissions so that Amazon SageMaker can
successfully complete model training.
StoppingCondition
- Sets a duration for training. Use this parameter to cap model training costs.
For more information about Amazon SageMaker, see How It Works.
createTrainingJobAsync
in interface AmazonSageMakerAsync
public Future<CreateTrainingJobResult> createTrainingJobAsync(CreateTrainingJobRequest request, AsyncHandler<CreateTrainingJobRequest,CreateTrainingJobResult> asyncHandler)
AmazonSageMakerAsync
Starts a model training job. After training completes, Amazon SageMaker saves the resulting model artifacts to an Amazon S3 location that you specify.
If you choose to host your model using Amazon SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts in a deep learning service other than Amazon SageMaker, provided that you know how to use them for inferences.
In the request body, you provide the following:
AlgorithmSpecification
- Identifies the training algorithm to use.
HyperParameters
- Specify these algorithm-specific parameters to influence the quality of the final
model. For a list of hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms.
InputDataConfig
- Describes the training dataset and the Amazon S3 location where it is stored.
OutputDataConfig
- Identifies the Amazon S3 location where you want Amazon SageMaker to save the
results of model training.
ResourceConfig
- Identifies the resources, ML compute instances, and ML storage volumes to deploy
for model training. In distributed training, you specify more than one instance.
RoleARN
- The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform tasks on your
behalf during model training. You must grant this role the necessary permissions so that Amazon SageMaker can
successfully complete model training.
StoppingCondition
- Sets a duration for training. Use this parameter to cap model training costs.
For more information about Amazon SageMaker, see How It Works.
createTrainingJobAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteEndpointResult> deleteEndpointAsync(DeleteEndpointRequest request)
AmazonSageMakerAsync
Deletes an endpoint. Amazon SageMaker frees up all of the resources that were deployed when the endpoint was created.
deleteEndpointAsync
in interface AmazonSageMakerAsync
public Future<DeleteEndpointResult> deleteEndpointAsync(DeleteEndpointRequest request, AsyncHandler<DeleteEndpointRequest,DeleteEndpointResult> asyncHandler)
AmazonSageMakerAsync
Deletes an endpoint. Amazon SageMaker frees up all of the resources that were deployed when the endpoint was created.
deleteEndpointAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteEndpointConfigResult> deleteEndpointConfigAsync(DeleteEndpointConfigRequest request)
AmazonSageMakerAsync
Deletes an endpoint configuration. The DeleteEndpoingConfig
API deletes only the specified
configuration. It does not delete endpoints created using the configuration.
deleteEndpointConfigAsync
in interface AmazonSageMakerAsync
public Future<DeleteEndpointConfigResult> deleteEndpointConfigAsync(DeleteEndpointConfigRequest request, AsyncHandler<DeleteEndpointConfigRequest,DeleteEndpointConfigResult> asyncHandler)
AmazonSageMakerAsync
Deletes an endpoint configuration. The DeleteEndpoingConfig
API deletes only the specified
configuration. It does not delete endpoints created using the configuration.
deleteEndpointConfigAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteModelResult> deleteModelAsync(DeleteModelRequest request)
AmazonSageMakerAsync
Deletes a model. The DeleteModel
API deletes only the model entry that was created in Amazon
SageMaker when you called the CreateModel API. It does not
delete model artifacts, inference code, or the IAM role that you specified when creating the model.
deleteModelAsync
in interface AmazonSageMakerAsync
public Future<DeleteModelResult> deleteModelAsync(DeleteModelRequest request, AsyncHandler<DeleteModelRequest,DeleteModelResult> asyncHandler)
AmazonSageMakerAsync
Deletes a model. The DeleteModel
API deletes only the model entry that was created in Amazon
SageMaker when you called the CreateModel API. It does not
delete model artifacts, inference code, or the IAM role that you specified when creating the model.
deleteModelAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteNotebookInstanceResult> deleteNotebookInstanceAsync(DeleteNotebookInstanceRequest request)
AmazonSageMakerAsync
Deletes an Amazon SageMaker notebook instance. Before you can delete a notebook instance, you must call the
StopNotebookInstance
API.
When you delete a notebook instance, you lose all of your data. Amazon SageMaker removes the ML compute instance, and deletes the ML storage volume and the network interface associated with the notebook instance.
deleteNotebookInstanceAsync
in interface AmazonSageMakerAsync
public Future<DeleteNotebookInstanceResult> deleteNotebookInstanceAsync(DeleteNotebookInstanceRequest request, AsyncHandler<DeleteNotebookInstanceRequest,DeleteNotebookInstanceResult> asyncHandler)
AmazonSageMakerAsync
Deletes an Amazon SageMaker notebook instance. Before you can delete a notebook instance, you must call the
StopNotebookInstance
API.
When you delete a notebook instance, you lose all of your data. Amazon SageMaker removes the ML compute instance, and deletes the ML storage volume and the network interface associated with the notebook instance.
deleteNotebookInstanceAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteTagsResult> deleteTagsAsync(DeleteTagsRequest request)
AmazonSageMakerAsync
Deletes the specified tags from an Amazon SageMaker resource.
To list a resource's tags, use the ListTags
API.
deleteTagsAsync
in interface AmazonSageMakerAsync
public Future<DeleteTagsResult> deleteTagsAsync(DeleteTagsRequest request, AsyncHandler<DeleteTagsRequest,DeleteTagsResult> asyncHandler)
AmazonSageMakerAsync
Deletes the specified tags from an Amazon SageMaker resource.
To list a resource's tags, use the ListTags
API.
deleteTagsAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeEndpointResult> describeEndpointAsync(DescribeEndpointRequest request)
AmazonSageMakerAsync
Returns the description of an endpoint.
describeEndpointAsync
in interface AmazonSageMakerAsync
public Future<DescribeEndpointResult> describeEndpointAsync(DescribeEndpointRequest request, AsyncHandler<DescribeEndpointRequest,DescribeEndpointResult> asyncHandler)
AmazonSageMakerAsync
Returns the description of an endpoint.
describeEndpointAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeEndpointConfigResult> describeEndpointConfigAsync(DescribeEndpointConfigRequest request)
AmazonSageMakerAsync
Returns the description of an endpoint configuration created using the CreateEndpointConfig
API.
describeEndpointConfigAsync
in interface AmazonSageMakerAsync
public Future<DescribeEndpointConfigResult> describeEndpointConfigAsync(DescribeEndpointConfigRequest request, AsyncHandler<DescribeEndpointConfigRequest,DescribeEndpointConfigResult> asyncHandler)
AmazonSageMakerAsync
Returns the description of an endpoint configuration created using the CreateEndpointConfig
API.
describeEndpointConfigAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeModelResult> describeModelAsync(DescribeModelRequest request)
AmazonSageMakerAsync
Describes a model that you created using the CreateModel
API.
describeModelAsync
in interface AmazonSageMakerAsync
public Future<DescribeModelResult> describeModelAsync(DescribeModelRequest request, AsyncHandler<DescribeModelRequest,DescribeModelResult> asyncHandler)
AmazonSageMakerAsync
Describes a model that you created using the CreateModel
API.
describeModelAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeNotebookInstanceResult> describeNotebookInstanceAsync(DescribeNotebookInstanceRequest request)
AmazonSageMakerAsync
Returns information about a notebook instance.
describeNotebookInstanceAsync
in interface AmazonSageMakerAsync
public Future<DescribeNotebookInstanceResult> describeNotebookInstanceAsync(DescribeNotebookInstanceRequest request, AsyncHandler<DescribeNotebookInstanceRequest,DescribeNotebookInstanceResult> asyncHandler)
AmazonSageMakerAsync
Returns information about a notebook instance.
describeNotebookInstanceAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeTrainingJobResult> describeTrainingJobAsync(DescribeTrainingJobRequest request)
AmazonSageMakerAsync
Returns information about a training job.
describeTrainingJobAsync
in interface AmazonSageMakerAsync
public Future<DescribeTrainingJobResult> describeTrainingJobAsync(DescribeTrainingJobRequest request, AsyncHandler<DescribeTrainingJobRequest,DescribeTrainingJobResult> asyncHandler)
AmazonSageMakerAsync
Returns information about a training job.
describeTrainingJobAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListEndpointConfigsResult> listEndpointConfigsAsync(ListEndpointConfigsRequest request)
AmazonSageMakerAsync
Lists endpoint configurations.
listEndpointConfigsAsync
in interface AmazonSageMakerAsync
public Future<ListEndpointConfigsResult> listEndpointConfigsAsync(ListEndpointConfigsRequest request, AsyncHandler<ListEndpointConfigsRequest,ListEndpointConfigsResult> asyncHandler)
AmazonSageMakerAsync
Lists endpoint configurations.
listEndpointConfigsAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListEndpointsResult> listEndpointsAsync(ListEndpointsRequest request)
AmazonSageMakerAsync
Lists endpoints.
listEndpointsAsync
in interface AmazonSageMakerAsync
public Future<ListEndpointsResult> listEndpointsAsync(ListEndpointsRequest request, AsyncHandler<ListEndpointsRequest,ListEndpointsResult> asyncHandler)
AmazonSageMakerAsync
Lists endpoints.
listEndpointsAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListModelsResult> listModelsAsync(ListModelsRequest request)
AmazonSageMakerAsync
Lists models created with the CreateModel API.
listModelsAsync
in interface AmazonSageMakerAsync
public Future<ListModelsResult> listModelsAsync(ListModelsRequest request, AsyncHandler<ListModelsRequest,ListModelsResult> asyncHandler)
AmazonSageMakerAsync
Lists models created with the CreateModel API.
listModelsAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListNotebookInstancesResult> listNotebookInstancesAsync(ListNotebookInstancesRequest request)
AmazonSageMakerAsync
Returns a list of the Amazon SageMaker notebook instances in the requester's account in an AWS Region.
listNotebookInstancesAsync
in interface AmazonSageMakerAsync
public Future<ListNotebookInstancesResult> listNotebookInstancesAsync(ListNotebookInstancesRequest request, AsyncHandler<ListNotebookInstancesRequest,ListNotebookInstancesResult> asyncHandler)
AmazonSageMakerAsync
Returns a list of the Amazon SageMaker notebook instances in the requester's account in an AWS Region.
listNotebookInstancesAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsResult> listTagsAsync(ListTagsRequest request)
AmazonSageMakerAsync
Returns the tags for the specified Amazon SageMaker resource.
listTagsAsync
in interface AmazonSageMakerAsync
public Future<ListTagsResult> listTagsAsync(ListTagsRequest request, AsyncHandler<ListTagsRequest,ListTagsResult> asyncHandler)
AmazonSageMakerAsync
Returns the tags for the specified Amazon SageMaker resource.
listTagsAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTrainingJobsResult> listTrainingJobsAsync(ListTrainingJobsRequest request)
AmazonSageMakerAsync
Lists training jobs.
listTrainingJobsAsync
in interface AmazonSageMakerAsync
public Future<ListTrainingJobsResult> listTrainingJobsAsync(ListTrainingJobsRequest request, AsyncHandler<ListTrainingJobsRequest,ListTrainingJobsResult> asyncHandler)
AmazonSageMakerAsync
Lists training jobs.
listTrainingJobsAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartNotebookInstanceResult> startNotebookInstanceAsync(StartNotebookInstanceRequest request)
AmazonSageMakerAsync
Launches an ML compute instance with the latest version of the libraries and attaches your ML storage volume.
After configuring the notebook instance, Amazon SageMaker sets the notebook instance status to
InService
. A notebook instance's status must be InService
before you can connect to
your Jupyter notebook.
startNotebookInstanceAsync
in interface AmazonSageMakerAsync
public Future<StartNotebookInstanceResult> startNotebookInstanceAsync(StartNotebookInstanceRequest request, AsyncHandler<StartNotebookInstanceRequest,StartNotebookInstanceResult> asyncHandler)
AmazonSageMakerAsync
Launches an ML compute instance with the latest version of the libraries and attaches your ML storage volume.
After configuring the notebook instance, Amazon SageMaker sets the notebook instance status to
InService
. A notebook instance's status must be InService
before you can connect to
your Jupyter notebook.
startNotebookInstanceAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopNotebookInstanceResult> stopNotebookInstanceAsync(StopNotebookInstanceRequest request)
AmazonSageMakerAsync
Terminates the ML compute instance. Before terminating the instance, Amazon SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves the ML storage volume.
To access data on the ML storage volume for a notebook instance that has been terminated, call the
StartNotebookInstance
API. StartNotebookInstance
launches another ML compute instance,
configures it, and attaches the preserved ML storage volume so you can continue your work.
stopNotebookInstanceAsync
in interface AmazonSageMakerAsync
public Future<StopNotebookInstanceResult> stopNotebookInstanceAsync(StopNotebookInstanceRequest request, AsyncHandler<StopNotebookInstanceRequest,StopNotebookInstanceResult> asyncHandler)
AmazonSageMakerAsync
Terminates the ML compute instance. Before terminating the instance, Amazon SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves the ML storage volume.
To access data on the ML storage volume for a notebook instance that has been terminated, call the
StartNotebookInstance
API. StartNotebookInstance
launches another ML compute instance,
configures it, and attaches the preserved ML storage volume so you can continue your work.
stopNotebookInstanceAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopTrainingJobResult> stopTrainingJobAsync(StopTrainingJobRequest request)
AmazonSageMakerAsync
Stops a training job. To stop a job, Amazon SageMaker sends the algorithm the SIGTERM
signal, which
delays job termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts,
so the results of the training is not lost.
Training algorithms provided by Amazon SageMaker save the intermediate results of a model training job. This intermediate data is a valid model artifact. You can use the model artifacts that are saved when Amazon SageMaker stops a training job to create a model.
When it receives a StopTrainingJob
request, Amazon SageMaker changes the status of the job to
Stopping
. After Amazon SageMaker stops the job, it sets the status to Stopped
.
stopTrainingJobAsync
in interface AmazonSageMakerAsync
public Future<StopTrainingJobResult> stopTrainingJobAsync(StopTrainingJobRequest request, AsyncHandler<StopTrainingJobRequest,StopTrainingJobResult> asyncHandler)
AmazonSageMakerAsync
Stops a training job. To stop a job, Amazon SageMaker sends the algorithm the SIGTERM
signal, which
delays job termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts,
so the results of the training is not lost.
Training algorithms provided by Amazon SageMaker save the intermediate results of a model training job. This intermediate data is a valid model artifact. You can use the model artifacts that are saved when Amazon SageMaker stops a training job to create a model.
When it receives a StopTrainingJob
request, Amazon SageMaker changes the status of the job to
Stopping
. After Amazon SageMaker stops the job, it sets the status to Stopped
.
stopTrainingJobAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateEndpointResult> updateEndpointAsync(UpdateEndpointRequest request)
AmazonSageMakerAsync
Deploys the new EndpointConfig
specified in the request, switches to using newly created endpoint,
and then deletes resources provisioned for the endpoint using the previous EndpointConfig
(there is
no availability loss).
When Amazon SageMaker receives the request, it sets the endpoint status to Updating
. After updating
the endpoint, it sets the status to InService
. To check the status of an endpoint, use the DescribeEndpoint API.
updateEndpointAsync
in interface AmazonSageMakerAsync
public Future<UpdateEndpointResult> updateEndpointAsync(UpdateEndpointRequest request, AsyncHandler<UpdateEndpointRequest,UpdateEndpointResult> asyncHandler)
AmazonSageMakerAsync
Deploys the new EndpointConfig
specified in the request, switches to using newly created endpoint,
and then deletes resources provisioned for the endpoint using the previous EndpointConfig
(there is
no availability loss).
When Amazon SageMaker receives the request, it sets the endpoint status to Updating
. After updating
the endpoint, it sets the status to InService
. To check the status of an endpoint, use the DescribeEndpoint API.
updateEndpointAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateEndpointWeightsAndCapacitiesResult> updateEndpointWeightsAndCapacitiesAsync(UpdateEndpointWeightsAndCapacitiesRequest request)
AmazonSageMakerAsync
Updates variant weight of one or more variants associated with an existing endpoint, or capacity of one variant
associated with an existing endpoint. When it receives the request, Amazon SageMaker sets the endpoint status to
Updating
. After updating the endpoint, it sets the status to InService
. To check the
status of an endpoint, use the DescribeEndpoint API.
updateEndpointWeightsAndCapacitiesAsync
in interface AmazonSageMakerAsync
public Future<UpdateEndpointWeightsAndCapacitiesResult> updateEndpointWeightsAndCapacitiesAsync(UpdateEndpointWeightsAndCapacitiesRequest request, AsyncHandler<UpdateEndpointWeightsAndCapacitiesRequest,UpdateEndpointWeightsAndCapacitiesResult> asyncHandler)
AmazonSageMakerAsync
Updates variant weight of one or more variants associated with an existing endpoint, or capacity of one variant
associated with an existing endpoint. When it receives the request, Amazon SageMaker sets the endpoint status to
Updating
. After updating the endpoint, it sets the status to InService
. To check the
status of an endpoint, use the DescribeEndpoint API.
updateEndpointWeightsAndCapacitiesAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateNotebookInstanceResult> updateNotebookInstanceAsync(UpdateNotebookInstanceRequest request)
AmazonSageMakerAsync
Updates a notebook instance. NotebookInstance updates include upgrading or downgrading the ML compute instance used for your notebook instance to accommodate changes in your workload requirements. You can also update the VPC security groups.
updateNotebookInstanceAsync
in interface AmazonSageMakerAsync
public Future<UpdateNotebookInstanceResult> updateNotebookInstanceAsync(UpdateNotebookInstanceRequest request, AsyncHandler<UpdateNotebookInstanceRequest,UpdateNotebookInstanceResult> asyncHandler)
AmazonSageMakerAsync
Updates a notebook instance. NotebookInstance updates include upgrading or downgrading the ML compute instance used for your notebook instance to accommodate changes in your workload requirements. You can also update the VPC security groups.
updateNotebookInstanceAsync
in interface AmazonSageMakerAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.