Class: Aws::SageMaker::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::SageMaker::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-sagemaker/client.rb
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#add_tags(params = {}) ⇒ Types::AddTagsOutput
Adds or overwrites one or more tags for the specified Amazon SageMaker resource.
-
#associate_trial_component(params = {}) ⇒ Types::AssociateTrialComponentResponse
Associates a trial component with a trial.
-
#create_algorithm(params = {}) ⇒ Types::CreateAlgorithmOutput
Create a machine learning algorithm that you can use in Amazon SageMaker and list in the AWS Marketplace.
-
#create_app(params = {}) ⇒ Types::CreateAppResponse
Creates a running App for the specified UserProfile.
-
#create_auto_ml_job(params = {}) ⇒ Types::CreateAutoMLJobResponse
Creates an AutoPilot job.
-
#create_code_repository(params = {}) ⇒ Types::CreateCodeRepositoryOutput
Creates a Git repository as a resource in your Amazon SageMaker account.
-
#create_compilation_job(params = {}) ⇒ Types::CreateCompilationJobResponse
Starts a model compilation job.
-
#create_domain(params = {}) ⇒ Types::CreateDomainResponse
Creates a Domain for Amazon SageMaker Amazon SageMaker Studio (Studio), which can be accessed by end-users in a web browser.
-
#create_endpoint(params = {}) ⇒ Types::CreateEndpointOutput
Creates an endpoint using the endpoint configuration specified in the request.
-
#create_endpoint_config(params = {}) ⇒ Types::CreateEndpointConfigOutput
Creates an endpoint configuration that Amazon SageMaker hosting services uses to deploy models.
-
#create_experiment(params = {}) ⇒ Types::CreateExperimentResponse
Creates an Amazon SageMaker experiment.
-
#create_flow_definition(params = {}) ⇒ Types::CreateFlowDefinitionResponse
Creates a flow definition.
-
#create_human_task_ui(params = {}) ⇒ Types::CreateHumanTaskUiResponse
Defines the settings you will use for the human review workflow user interface.
-
#create_hyper_parameter_tuning_job(params = {}) ⇒ Types::CreateHyperParameterTuningJobResponse
Starts a hyperparameter tuning job.
-
#create_labeling_job(params = {}) ⇒ Types::CreateLabelingJobResponse
Creates a job that uses workers to label the data objects in your input dataset.
-
#create_model(params = {}) ⇒ Types::CreateModelOutput
Creates a model in Amazon SageMaker.
-
#create_model_package(params = {}) ⇒ Types::CreateModelPackageOutput
Creates a model package that you can use to create Amazon SageMaker models or list on AWS Marketplace.
-
#create_monitoring_schedule(params = {}) ⇒ Types::CreateMonitoringScheduleResponse
Creates a schedule that regularly starts Amazon SageMaker Processing Jobs to monitor the data captured for an Amazon SageMaker Endoint.
-
#create_notebook_instance(params = {}) ⇒ Types::CreateNotebookInstanceOutput
Creates an Amazon SageMaker notebook instance.
-
#create_notebook_instance_lifecycle_config(params = {}) ⇒ Types::CreateNotebookInstanceLifecycleConfigOutput
Creates a lifecycle configuration that you can associate with a notebook instance.
-
#create_presigned_domain_url(params = {}) ⇒ Types::CreatePresignedDomainUrlResponse
Creates a URL for a specified UserProfile in a Domain.
-
#create_presigned_notebook_instance_url(params = {}) ⇒ Types::CreatePresignedNotebookInstanceUrlOutput
Returns a URL that you can use to connect to the Jupyter server from a notebook instance.
-
#create_processing_job(params = {}) ⇒ Types::CreateProcessingJobResponse
Creates a processing job.
-
#create_training_job(params = {}) ⇒ Types::CreateTrainingJobResponse
Starts a model training job.
-
#create_transform_job(params = {}) ⇒ Types::CreateTransformJobResponse
Starts a transform job.
-
#create_trial(params = {}) ⇒ Types::CreateTrialResponse
Creates an Amazon SageMaker trial.
-
#create_trial_component(params = {}) ⇒ Types::CreateTrialComponentResponse
Creates a *trial component*, which is a stage of a machine learning trial.
-
#create_user_profile(params = {}) ⇒ Types::CreateUserProfileResponse
Creates a new user profile.
-
#create_workteam(params = {}) ⇒ Types::CreateWorkteamResponse
Creates a new work team for labeling your data.
-
#delete_algorithm(params = {}) ⇒ Struct
Removes the specified algorithm from your account.
-
#delete_app(params = {}) ⇒ Struct
Used to stop and delete an app.
-
#delete_code_repository(params = {}) ⇒ Struct
Deletes the specified Git repository from your account.
-
#delete_domain(params = {}) ⇒ Struct
Used to delete a domain.
-
#delete_endpoint(params = {}) ⇒ Struct
Deletes an endpoint.
-
#delete_endpoint_config(params = {}) ⇒ Struct
Deletes an endpoint configuration.
-
#delete_experiment(params = {}) ⇒ Types::DeleteExperimentResponse
Deletes an Amazon SageMaker experiment.
-
#delete_flow_definition(params = {}) ⇒ Struct
Deletes the specified flow definition.
-
#delete_model(params = {}) ⇒ Struct
Deletes a model.
-
#delete_model_package(params = {}) ⇒ Struct
Deletes a model package.
-
#delete_monitoring_schedule(params = {}) ⇒ Struct
Deletes a monitoring schedule.
-
#delete_notebook_instance(params = {}) ⇒ Struct
Deletes an Amazon SageMaker notebook instance.
-
#delete_notebook_instance_lifecycle_config(params = {}) ⇒ Struct
Deletes a notebook instance lifecycle configuration.
-
#delete_tags(params = {}) ⇒ Struct
Deletes the specified tags from an Amazon SageMaker resource.
-
#delete_trial(params = {}) ⇒ Types::DeleteTrialResponse
Deletes the specified trial.
-
#delete_trial_component(params = {}) ⇒ Types::DeleteTrialComponentResponse
Deletes the specified trial component.
-
#delete_user_profile(params = {}) ⇒ Struct
Deletes a user profile.
-
#delete_workteam(params = {}) ⇒ Types::DeleteWorkteamResponse
Deletes an existing work team.
-
#describe_algorithm(params = {}) ⇒ Types::DescribeAlgorithmOutput
Returns a description of the specified algorithm that is in your account.
-
#describe_app(params = {}) ⇒ Types::DescribeAppResponse
Describes the app.
-
#describe_auto_ml_job(params = {}) ⇒ Types::DescribeAutoMLJobResponse
Returns information about an Amazon SageMaker job.
-
#describe_code_repository(params = {}) ⇒ Types::DescribeCodeRepositoryOutput
Gets details about the specified Git repository.
-
#describe_compilation_job(params = {}) ⇒ Types::DescribeCompilationJobResponse
Returns information about a model compilation job.
-
#describe_domain(params = {}) ⇒ Types::DescribeDomainResponse
The desciption of the domain.
-
#describe_endpoint(params = {}) ⇒ Types::DescribeEndpointOutput
Returns the description of an endpoint.
-
#describe_endpoint_config(params = {}) ⇒ Types::DescribeEndpointConfigOutput
Returns the description of an endpoint configuration created using the ‘CreateEndpointConfig` API.
-
#describe_experiment(params = {}) ⇒ Types::DescribeExperimentResponse
Provides a list of an experiment’s properties.
-
#describe_flow_definition(params = {}) ⇒ Types::DescribeFlowDefinitionResponse
Returns information about the specified flow definition.
-
#describe_human_task_ui(params = {}) ⇒ Types::DescribeHumanTaskUiResponse
Returns information about the requested human task user interface.
-
#describe_hyper_parameter_tuning_job(params = {}) ⇒ Types::DescribeHyperParameterTuningJobResponse
Gets a description of a hyperparameter tuning job.
-
#describe_labeling_job(params = {}) ⇒ Types::DescribeLabelingJobResponse
Gets information about a labeling job.
-
#describe_model(params = {}) ⇒ Types::DescribeModelOutput
Describes a model that you created using the ‘CreateModel` API.
-
#describe_model_package(params = {}) ⇒ Types::DescribeModelPackageOutput
Returns a description of the specified model package, which is used to create Amazon SageMaker models or list them on AWS Marketplace.
-
#describe_monitoring_schedule(params = {}) ⇒ Types::DescribeMonitoringScheduleResponse
Describes the schedule for a monitoring job.
-
#describe_notebook_instance(params = {}) ⇒ Types::DescribeNotebookInstanceOutput
Returns information about a notebook instance.
-
#describe_notebook_instance_lifecycle_config(params = {}) ⇒ Types::DescribeNotebookInstanceLifecycleConfigOutput
Returns a description of a notebook instance lifecycle configuration.
-
#describe_processing_job(params = {}) ⇒ Types::DescribeProcessingJobResponse
Returns a description of a processing job.
-
#describe_subscribed_workteam(params = {}) ⇒ Types::DescribeSubscribedWorkteamResponse
Gets information about a work team provided by a vendor.
-
#describe_training_job(params = {}) ⇒ Types::DescribeTrainingJobResponse
Returns information about a training job.
-
#describe_transform_job(params = {}) ⇒ Types::DescribeTransformJobResponse
Returns information about a transform job.
-
#describe_trial(params = {}) ⇒ Types::DescribeTrialResponse
Provides a list of a trial’s properties.
-
#describe_trial_component(params = {}) ⇒ Types::DescribeTrialComponentResponse
Provides a list of a trials component’s properties.
-
#describe_user_profile(params = {}) ⇒ Types::DescribeUserProfileResponse
Describes the user profile.
-
#describe_workteam(params = {}) ⇒ Types::DescribeWorkteamResponse
Gets information about a specific work team.
-
#disassociate_trial_component(params = {}) ⇒ Types::DisassociateTrialComponentResponse
Disassociates a trial component from a trial.
-
#get_search_suggestions(params = {}) ⇒ Types::GetSearchSuggestionsResponse
An auto-complete API for the search functionality in the Amazon SageMaker console.
-
#list_algorithms(params = {}) ⇒ Types::ListAlgorithmsOutput
Lists the machine learning algorithms that have been created.
-
#list_apps(params = {}) ⇒ Types::ListAppsResponse
Lists apps.
-
#list_auto_ml_jobs(params = {}) ⇒ Types::ListAutoMLJobsResponse
Request a list of jobs.
-
#list_candidates_for_auto_ml_job(params = {}) ⇒ Types::ListCandidatesForAutoMLJobResponse
List the Candidates created for the job.
-
#list_code_repositories(params = {}) ⇒ Types::ListCodeRepositoriesOutput
Gets a list of the Git repositories in your account.
-
#list_compilation_jobs(params = {}) ⇒ Types::ListCompilationJobsResponse
Lists model compilation jobs that satisfy various filters.
-
#list_domains(params = {}) ⇒ Types::ListDomainsResponse
Lists the domains.
-
#list_endpoint_configs(params = {}) ⇒ Types::ListEndpointConfigsOutput
Lists endpoint configurations.
-
#list_endpoints(params = {}) ⇒ Types::ListEndpointsOutput
Lists endpoints.
-
#list_experiments(params = {}) ⇒ Types::ListExperimentsResponse
Lists all the experiments in your account.
-
#list_flow_definitions(params = {}) ⇒ Types::ListFlowDefinitionsResponse
Returns information about the flow definitions in your account.
-
#list_human_task_uis(params = {}) ⇒ Types::ListHumanTaskUisResponse
Returns information about the human task user interfaces in your account.
-
#list_hyper_parameter_tuning_jobs(params = {}) ⇒ Types::ListHyperParameterTuningJobsResponse
Gets a list of HyperParameterTuningJobSummary objects that describe the hyperparameter tuning jobs launched in your account.
-
#list_labeling_jobs(params = {}) ⇒ Types::ListLabelingJobsResponse
Gets a list of labeling jobs.
-
#list_labeling_jobs_for_workteam(params = {}) ⇒ Types::ListLabelingJobsForWorkteamResponse
Gets a list of labeling jobs assigned to a specified work team.
-
#list_model_packages(params = {}) ⇒ Types::ListModelPackagesOutput
Lists the model packages that have been created.
-
#list_models(params = {}) ⇒ Types::ListModelsOutput
Lists models created with the [CreateModel] API.
-
#list_monitoring_executions(params = {}) ⇒ Types::ListMonitoringExecutionsResponse
Returns list of all monitoring job executions.
-
#list_monitoring_schedules(params = {}) ⇒ Types::ListMonitoringSchedulesResponse
Returns list of all monitoring schedules.
-
#list_notebook_instance_lifecycle_configs(params = {}) ⇒ Types::ListNotebookInstanceLifecycleConfigsOutput
Lists notebook instance lifestyle configurations created with the CreateNotebookInstanceLifecycleConfig API.
-
#list_notebook_instances(params = {}) ⇒ Types::ListNotebookInstancesOutput
Returns a list of the Amazon SageMaker notebook instances in the requester’s account in an AWS Region.
-
#list_processing_jobs(params = {}) ⇒ Types::ListProcessingJobsResponse
Lists processing jobs that satisfy various filters.
-
#list_subscribed_workteams(params = {}) ⇒ Types::ListSubscribedWorkteamsResponse
Gets a list of the work teams that you are subscribed to in the AWS Marketplace.
-
#list_tags(params = {}) ⇒ Types::ListTagsOutput
Returns the tags for the specified Amazon SageMaker resource.
-
#list_training_jobs(params = {}) ⇒ Types::ListTrainingJobsResponse
Lists training jobs.
-
#list_training_jobs_for_hyper_parameter_tuning_job(params = {}) ⇒ Types::ListTrainingJobsForHyperParameterTuningJobResponse
Gets a list of TrainingJobSummary objects that describe the training jobs that a hyperparameter tuning job launched.
-
#list_transform_jobs(params = {}) ⇒ Types::ListTransformJobsResponse
Lists transform jobs.
-
#list_trial_components(params = {}) ⇒ Types::ListTrialComponentsResponse
Lists the trial components in your account.
-
#list_trials(params = {}) ⇒ Types::ListTrialsResponse
Lists the trials in your account.
-
#list_user_profiles(params = {}) ⇒ Types::ListUserProfilesResponse
Lists user profiles.
-
#list_workteams(params = {}) ⇒ Types::ListWorkteamsResponse
Gets a list of work teams that you have defined in a region.
-
#render_ui_template(params = {}) ⇒ Types::RenderUiTemplateResponse
Renders the UI template so that you can preview the worker’s experience.
-
#search(params = {}) ⇒ Types::SearchResponse
Finds Amazon SageMaker resources that match a search query.
-
#start_monitoring_schedule(params = {}) ⇒ Struct
Starts a previously stopped monitoring schedule.
-
#start_notebook_instance(params = {}) ⇒ Struct
Launches an ML compute instance with the latest version of the libraries and attaches your ML storage volume.
-
#stop_auto_ml_job(params = {}) ⇒ Struct
A method for forcing the termination of a running job.
-
#stop_compilation_job(params = {}) ⇒ Struct
Stops a model compilation job.
-
#stop_hyper_parameter_tuning_job(params = {}) ⇒ Struct
Stops a running hyperparameter tuning job and all running training jobs that the tuning job launched.
-
#stop_labeling_job(params = {}) ⇒ Struct
Stops a running labeling job.
-
#stop_monitoring_schedule(params = {}) ⇒ Struct
Stops a previously started monitoring schedule.
-
#stop_notebook_instance(params = {}) ⇒ Struct
Terminates the ML compute instance.
-
#stop_processing_job(params = {}) ⇒ Struct
Stops a processing job.
-
#stop_training_job(params = {}) ⇒ Struct
Stops a training job.
-
#stop_transform_job(params = {}) ⇒ Struct
Stops a transform job.
-
#update_code_repository(params = {}) ⇒ Types::UpdateCodeRepositoryOutput
Updates the specified Git repository with the specified values.
-
#update_domain(params = {}) ⇒ Types::UpdateDomainResponse
Updates a domain.
-
#update_endpoint(params = {}) ⇒ Types::UpdateEndpointOutput
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).
-
#update_endpoint_weights_and_capacities(params = {}) ⇒ Types::UpdateEndpointWeightsAndCapacitiesOutput
Updates variant weight of one or more variants associated with an existing endpoint, or capacity of one variant associated with an existing endpoint.
-
#update_experiment(params = {}) ⇒ Types::UpdateExperimentResponse
Adds, updates, or removes the description of an experiment.
-
#update_monitoring_schedule(params = {}) ⇒ Types::UpdateMonitoringScheduleResponse
Updates a previously created schedule.
-
#update_notebook_instance(params = {}) ⇒ Struct
Updates a notebook instance.
-
#update_notebook_instance_lifecycle_config(params = {}) ⇒ Struct
Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig API.
-
#update_trial(params = {}) ⇒ Types::UpdateTrialResponse
Updates the display name of a trial.
-
#update_trial_component(params = {}) ⇒ Types::UpdateTrialComponentResponse
Updates one or more properties of a trial component.
-
#update_user_profile(params = {}) ⇒ Types::UpdateUserProfileResponse
Updates a user profile.
-
#update_workteam(params = {}) ⇒ Types::UpdateWorkteamResponse
Updates an existing work team with new member definitions or description.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
261 262 263 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 261 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10216 10217 10218 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 10216 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10219 10220 10221 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 10219 def errors_module Errors end |
Instance Method Details
#add_tags(params = {}) ⇒ Types::AddTagsOutput
Adds or overwrites one or more tags for the specified Amazon SageMaker resource. You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, 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 For more information, see [AWS Tagging Strategies].
<note markdown=“1”> Tags that you add to a hyperparameter tuning job by calling this API are also added to any training jobs that the hyperparameter tuning job launches after you call this API, but not to training jobs that the hyperparameter tuning job launched before you called this API. To make sure that the tags associated with a hyperparameter tuning job are also added to all training jobs that the hyperparameter tuning job launches, add the tags when you first create the tuning job by specifying them in the ‘Tags` parameter of CreateHyperParameterTuningJob
</note>
[1]: aws.amazon.com/answers/account-management/aws-tagging-strategies/
326 327 328 329 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 326 def (params = {}, = {}) req = build_request(:add_tags, params) req.send_request() end |
#associate_trial_component(params = {}) ⇒ Types::AssociateTrialComponentResponse
Associates a trial component with a trial. A trial component can be associated with multiple trials. To disassociate a trial component from a trial, call the DisassociateTrialComponent API.
362 363 364 365 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 362 def associate_trial_component(params = {}, = {}) req = build_request(:associate_trial_component, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 10067 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-sagemaker' context[:gem_version] = '1.48.0' Seahorse::Client::Request.new(handlers, context) end |
#create_algorithm(params = {}) ⇒ Types::CreateAlgorithmOutput
Create a machine learning algorithm that you can use in Amazon SageMaker and list in the AWS Marketplace.
591 592 593 594 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 591 def create_algorithm(params = {}, = {}) req = build_request(:create_algorithm, params) req.send_request() end |
#create_app(params = {}) ⇒ Types::CreateAppResponse
Creates a running App for the specified UserProfile. Supported Apps are JupyterServer and KernelGateway. This operation is automatically invoked by Amazon SageMaker Amazon SageMaker Studio (Studio) upon access to the associated Studio Domain, and when new kernel configurations are selected by the user. A user may have multiple Apps active simultaneously. Apps will automatically terminate and be deleted when stopped from within Studio, or when the DeleteApp API is manually called. UserProfiles are limited to 5 concurrently running Apps at a time.
656 657 658 659 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 656 def create_app(params = {}, = {}) req = build_request(:create_app, params) req.send_request() end |
#create_auto_ml_job(params = {}) ⇒ Types::CreateAutoMLJobResponse
Creates an AutoPilot job.
761 762 763 764 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 761 def create_auto_ml_job(params = {}, = {}) req = build_request(:create_auto_ml_job, params) req.send_request() end |
#create_code_repository(params = {}) ⇒ Types::CreateCodeRepositoryOutput
Creates a Git repository as a resource in your Amazon SageMaker account. You can associate the repository with notebook instances so that you can use Git source control for the notebooks you create. The Git repository is a resource in your Amazon SageMaker account, so it can be associated with more than one notebook instance, and it persists independently from the lifecycle of any notebook instances it is associated with.
The repository can be hosted either in [AWS CodeCommit] or in any other Git repository.
[1]: docs.aws.amazon.com/codecommit/latest/userguide/welcome.html
813 814 815 816 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 813 def create_code_repository(params = {}, = {}) req = build_request(:create_code_repository, params) req.send_request() end |
#create_compilation_job(params = {}) ⇒ Types::CreateCompilationJobResponse
Starts a model compilation job. After the model has been compiled, Amazon SageMaker saves the resulting model artifacts to an Amazon Simple Storage Service (Amazon S3) bucket 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 with AWS IoT Greengrass. In that case, deploy them as an ML resource.
In the request body, you provide the following:
-
A name for the compilation job
-
Information about the input model artifacts
-
The output location for the compiled model and the device (target) that the model runs on
-
‘The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker assumes to perform the model compilation job`
You can also provide a ‘Tag` to track the model compilation job’s resource use and costs. The response body contains the ‘CompilationJobArn` for the compiled job.
To stop a model compilation job, use StopCompilationJob. To get information about a particular model compilation job, use DescribeCompilationJob. To get information about multiple model compilation jobs, use ListCompilationJobs.
921 922 923 924 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 921 def create_compilation_job(params = {}, = {}) req = build_request(:create_compilation_job, params) req.send_request() end |
#create_domain(params = {}) ⇒ Types::CreateDomainResponse
Creates a Domain for Amazon SageMaker Amazon SageMaker Studio (Studio), which can be accessed by end-users in a web browser. A Domain has an associated directory, list of authorized users, and a variety of security, application, policies, and Amazon Virtual Private Cloud configurations. An AWS account is limited to one Domain, per region. Users within a domain can share notebook files and other artifacts with each other. When a Domain is created, an Amazon Elastic File System (EFS) is also created for use by all of the users within the Domain. Each user receives a private home directory within the EFS for notebooks, Git repositories, and data files.
1017 1018 1019 1020 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 1017 def create_domain(params = {}, = {}) req = build_request(:create_domain, params) req.send_request() end |
#create_endpoint(params = {}) ⇒ Types::CreateEndpointOutput
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][1
-
API.
<note markdown=“1”> Use this API only for hosting models using Amazon SageMaker hosting services.
You must not delete an `EndpointConfig` in use by an endpoint that is
live or while the ‘UpdateEndpoint` or `CreateEndpoint` operations are being performed on the endpoint. To update an endpoint, you must create a new `EndpointConfig`.
</note>
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][2
-
API.
For an example, see [Exercise 1: Using the K-Means Algorithm Provided by Amazon SageMaker].
If any of the models hosted at this endpoint get model data from an Amazon S3 location, Amazon SageMaker uses AWS Security Token Service to download model artifacts from the S3 path you provided. AWS STS is activated in your IAM user account by default. If you previously deactivated AWS STS for a region, you need to reactivate AWS STS for that region. For more information, see [Activating and Deactivating AWS STS in an AWS Region] in the *AWS Identity and Access Management User Guide*.
[1]: docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html [2]: docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html [3]: docs.aws.amazon.com/sagemaker/latest/dg/ex1.html [4]: docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html
1115 1116 1117 1118 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 1115 def create_endpoint(params = {}, = {}) req = build_request(:create_endpoint, params) req.send_request() end |
#create_endpoint_config(params = {}) ⇒ Types::CreateEndpointConfigOutput
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.
<note markdown=“1”> Use this API only if you want to use Amazon SageMaker hosting services to deploy models into production.
</note>
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.
[1]: docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html
1248 1249 1250 1251 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 1248 def create_endpoint_config(params = {}, = {}) req = build_request(:create_endpoint_config, params) req.send_request() end |
#create_experiment(params = {}) ⇒ Types::CreateExperimentResponse
Creates an Amazon SageMaker experiment. An experiment is a collection of trials that are observed, compared and evaluated as a group. A trial is a set of steps, called *trial components*, that produce a machine learning model.
The goal of an experiment is to determine the components that produce the best model. Multiple trials are performed, each one isolating and measuring the impact of a change to one or more inputs, while keeping the remaining inputs constant.
When you use Amazon SageMaker Studio or the Amazon SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the AWS SDK for Python (Boto), you must use the logging APIs provided by the SDK.
You can add tags to experiments, trials, trial components and then use the Search API to search for the tags.
To add a description to an experiment, specify the optional ‘Description` parameter. To add a description later, or to change the description, call the UpdateExperiment API.
To get a list of all your experiments, call the ListExperiments API. To view an experiment’s properties, call the DescribeExperiment API. To get a list of all the trials associated with an experiment, call the ListTrials API. To create a trial call the CreateTrial API.
1322 1323 1324 1325 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 1322 def create_experiment(params = {}, = {}) req = build_request(:create_experiment, params) req.send_request() end |
#create_flow_definition(params = {}) ⇒ Types::CreateFlowDefinitionResponse
Creates a flow definition.
1408 1409 1410 1411 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 1408 def create_flow_definition(params = {}, = {}) req = build_request(:create_flow_definition, params) req.send_request() end |
#create_human_task_ui(params = {}) ⇒ Types::CreateHumanTaskUiResponse
Defines the settings you will use for the human review workflow user interface. Reviewers will see a three-panel interface with an instruction area, the item to review, and an input area.
1455 1456 1457 1458 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 1455 def create_human_task_ui(params = {}, = {}) req = build_request(:create_human_task_ui, params) req.send_request() end |
#create_hyper_parameter_tuning_job(params = {}) ⇒ Types::CreateHyperParameterTuningJobResponse
Starts a hyperparameter tuning job. A hyperparameter tuning job finds the best version of a model by running many training jobs on your dataset using the algorithm you choose and values for hyperparameters within ranges that you specify. It then chooses the hyperparameter values that result in a model that performs the best, as measured by an objective metric that you choose.
1789 1790 1791 1792 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 1789 def create_hyper_parameter_tuning_job(params = {}, = {}) req = build_request(:create_hyper_parameter_tuning_job, params) req.send_request() end |
#create_labeling_job(params = {}) ⇒ Types::CreateLabelingJobResponse
Creates a job that uses workers to label the data objects in your input dataset. You can use the labeled data to train machine learning models.
You can select your workforce from one of three providers:
-
A private workforce that you create. It can include employees, contractors, and outside experts. Use a private workforce when want the data to stay within your organization or when a specific set of skills is required.
-
One or more vendors that you select from the AWS Marketplace. Vendors provide expertise in specific areas.
-
The Amazon Mechanical Turk workforce. This is the largest workforce, but it should only be used for public data or data that has been stripped of any personally identifiable information.
You can also use *automated data labeling* to reduce the number of data objects that need to be labeled by a human. Automated data labeling uses *active learning* to determine if a data object can be labeled by machine or if it needs to be sent to a human worker. For more information, see [Using Automated Data Labeling].
The data objects to be labeled are contained in an Amazon S3 bucket. You create a *manifest file* that describes the location of each object. For more information, see [Using Input and Output Data].
The output can be used as the manifest file for another labeling job or as training data for your machine learning models.
[1]: docs.aws.amazon.com/sagemaker/latest/dg/sms-automated-labeling.html [2]: docs.aws.amazon.com/sagemaker/latest/dg/sms-data.html
1992 1993 1994 1995 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 1992 def create_labeling_job(params = {}, = {}) req = build_request(:create_labeling_job, params) req.send_request() end |
#create_model(params = {}) ⇒ Types::CreateModelOutput
Creates a model in Amazon SageMaker. In the request, you name the model and describe a primary container. For the primary 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 for predictions.
Use this API to create a model if you want to use Amazon SageMaker hosting services or run a batch transform job.
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.
To run a batch transform using your model, you start a job with the ‘CreateTransformJob` API. Amazon SageMaker uses your model and your dataset to get inferences which are then saved to a specified S3 location.
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 or for batch transform jobs. 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.
2137 2138 2139 2140 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 2137 def create_model(params = {}, = {}) req = build_request(:create_model, params) req.send_request() end |
#create_model_package(params = {}) ⇒ Types::CreateModelPackageOutput
Creates a model package that you can use to create Amazon SageMaker models or list on AWS Marketplace. Buyers can subscribe to model packages listed on AWS Marketplace to create models in Amazon SageMaker.
To create a model package by specifying a Docker container that contains your inference code and the Amazon S3 location of your model artifacts, provide values for ‘InferenceSpecification`. To create a model from an algorithm resource that you created or subscribed to in AWS Marketplace, provide a value for `SourceAlgorithmSpecification`.
2264 2265 2266 2267 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 2264 def create_model_package(params = {}, = {}) req = build_request(:create_model_package, params) req.send_request() end |
#create_monitoring_schedule(params = {}) ⇒ Types::CreateMonitoringScheduleResponse
Creates a schedule that regularly starts Amazon SageMaker Processing Jobs to monitor the data captured for an Amazon SageMaker Endoint.
2376 2377 2378 2379 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 2376 def create_monitoring_schedule(params = {}, = {}) req = build_request(:create_monitoring_schedule, params) req.send_request() end |
#create_notebook_instance(params = {}) ⇒ Types::CreateNotebookInstanceOutput
Creates an Amazon SageMaker notebook instance. A notebook instance is a machine learning (ML) compute instance running on a Jupyter notebook.
In a ‘CreateNotebookInstance` request, 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 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`, Amazon SageMaker 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). You can’t change the name of a notebook instance after you create it.
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].
[1]: docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html
2588 2589 2590 2591 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 2588 def create_notebook_instance(params = {}, = {}) req = build_request(:create_notebook_instance, params) req.send_request() end |
#create_notebook_instance_lifecycle_config(params = {}) ⇒ Types::CreateNotebookInstanceLifecycleConfigOutput
Creates a lifecycle configuration that you can associate with a notebook instance. A *lifecycle configuration* is a collection of shell scripts that run when you create or start a notebook instance.
Each lifecycle configuration script has a limit of 16384 characters.
The value of the ‘$PATH` environment variable that is available to both scripts is `/sbin:bin:/usr/sbin:/usr/bin`.
View CloudWatch Logs for notebook instance lifecycle configurations in log group ‘/aws/sagemaker/NotebookInstances` in log stream `[notebook-instance-name]/`.
Lifecycle configuration scripts cannot run for longer than 5 minutes. If a script runs for longer than 5 minutes, it fails and the notebook instance is not created or started.
For information about notebook instance lifestyle configurations, see [Step 2.1: (Optional) Customize a Notebook Instance].
[1]: docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html
2657 2658 2659 2660 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 2657 def create_notebook_instance_lifecycle_config(params = {}, = {}) req = build_request(:create_notebook_instance_lifecycle_config, params) req.send_request() end |
#create_presigned_domain_url(params = {}) ⇒ Types::CreatePresignedDomainUrlResponse
Creates a URL for a specified UserProfile in a Domain. When accessed in a web browser, the user will be automatically signed in to Amazon SageMaker Amazon SageMaker Studio (Studio), and granted access to all of the Apps and files associated with that Amazon Elastic File System (EFS). This operation can only be called when AuthMode equals IAM.
2697 2698 2699 2700 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 2697 def create_presigned_domain_url(params = {}, = {}) req = build_request(:create_presigned_domain_url, params) req.send_request() end |
#create_presigned_notebook_instance_url(params = {}) ⇒ Types::CreatePresignedNotebookInstanceUrlOutput
Returns a URL that you can use to connect to the Jupyter 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.
IAM authorization policies for this API are also enforced for every HTTP request and WebSocket frame that attempts to connect to the notebook instance.For example, you can restrict access to this API and to the URL that it returns to a list of IP addresses that you specify. Use the ‘NotIpAddress` condition operator and the `aws:SourceIP` condition context key to specify the list of IP addresses that you want to have access to the notebook instance. For more information, see [Limit Access to a Notebook Instance by IP Address].
<note markdown=“1”> The URL that you get from a call to is valid only for 5 minutes. If you try to use the URL after the 5-minute limit expires, you are directed to the AWS console sign-in page.
</note>
[1]: docs.aws.amazon.com/sagemaker/latest/dg/security_iam_id-based-policy-examples.html#nbi-ip-filter
2752 2753 2754 2755 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 2752 def create_presigned_notebook_instance_url(params = {}, = {}) req = build_request(:create_presigned_notebook_instance_url, params) req.send_request() end |
#create_processing_job(params = {}) ⇒ Types::CreateProcessingJobResponse
Creates a processing job.
2887 2888 2889 2890 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 2887 def create_processing_job(params = {}, = {}) req = build_request(:create_processing_job, params) req.send_request() end |
#create_training_job(params = {}) ⇒ Types::CreateTrainingJobResponse
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 machine 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 enable the estimation of model parameters during training. Hyperparameters can be tuned to optimize this learning process. For a list of hyperparameters for each training algorithm provided by Amazon SageMaker, see [Algorithms].
-
‘InputDataConfig` - Describes the training dataset and the Amazon S3, EFS, or FSx location where it is stored.
-
‘OutputDataConfig` - Identifies the Amazon S3 bucket 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.
-
‘EnableManagedSpotTraining` - Optimize the cost of training machine learning models by up to 80% by using Amazon EC2 Spot instances. For more information, see [Managed Spot Training].
-
‘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` - To help cap training costs, use `MaxRuntimeInSeconds` to set a time limit for training. Use `MaxWaitTimeInSeconds` to specify how long you are willing to wait for a managed spot training job to complete.
For more information about Amazon SageMaker, see [How It Works].
[1]: docs.aws.amazon.com/sagemaker/latest/dg/algos.html [2]: docs.aws.amazon.com/sagemaker/latest/dg/model-managed-spot-training.html [3]: docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html
3244 3245 3246 3247 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3244 def create_training_job(params = {}, = {}) req = build_request(:create_training_job, params) req.send_request() end |
#create_transform_job(params = {}) ⇒ Types::CreateTransformJobResponse
Starts a transform job. A transform job uses a trained model to get inferences on a dataset and saves these results to an Amazon S3 location that you specify.
To perform batch transformations, you create a transform job and use the data that you have readily available.
In the request body, you provide the following:
-
‘TransformJobName` - Identifies the transform job. The name must be unique within an AWS Region in an AWS account.
-
‘ModelName` - Identifies the model to use. `ModelName` must be the name of an existing Amazon SageMaker model in the same AWS Region and AWS account. For information on creating a model, see CreateModel.
-
‘TransformInput` - Describes the dataset to be transformed and the Amazon S3 location where it is stored.
-
‘TransformOutput` - Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.
-
‘TransformResources` - Identifies the ML compute instances for the transform job.
For more information about how batch transformation works, see [Batch Transform].
[1]: docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html
3439 3440 3441 3442 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3439 def create_transform_job(params = {}, = {}) req = build_request(:create_transform_job, params) req.send_request() end |
#create_trial(params = {}) ⇒ Types::CreateTrialResponse
Creates an Amazon SageMaker trial. A trial is a set of steps called *trial components* that produce a machine learning model. A trial is part of a single Amazon SageMaker experiment.
When you use Amazon SageMaker Studio or the Amazon SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the AWS SDK for Python (Boto), you must use the logging APIs provided by the SDK.
You can add tags to a trial and then use the Search API to search for the tags.
To get a list of all your trials, call the ListTrials API. To view a trial’s properties, call the DescribeTrial API. To create a trial component, call the CreateTrialComponent API.
3501 3502 3503 3504 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3501 def create_trial(params = {}, = {}) req = build_request(:create_trial, params) req.send_request() end |
#create_trial_component(params = {}) ⇒ Types::CreateTrialComponentResponse
Creates a *trial component*, which is a stage of a machine learning trial. A trial is composed of one or more trial components. A trial component can be used in multiple trials.
Trial components include pre-processing jobs, training jobs, and batch transform jobs.
When you use Amazon SageMaker Studio or the Amazon SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the AWS SDK for Python (Boto), you must use the logging APIs provided by the SDK.
You can add tags to a trial component and then use the Search API to search for the tags.
<note markdown=“1”> You can create a trial component through a direct call to the ‘CreateTrialComponent` API. However, you can’t specify the ‘Source` property of the component in the request, therefore, the component isn’t associated with an Amazon SageMaker job. You must use Amazon SageMaker Studio, the Amazon SageMaker Python SDK, or the AWS SDK for Python (Boto) to create the component with a valid ‘Source` property.
</note>
3619 3620 3621 3622 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3619 def create_trial_component(params = {}, = {}) req = build_request(:create_trial_component, params) req.send_request() end |
#create_user_profile(params = {}) ⇒ Types::CreateUserProfileResponse
Creates a new user profile. A user profile represents a single user within a Domain, and is the main way to reference a “person” for the purposes of sharing, reporting and other user-oriented features. This entity is created during on-boarding. If an administrator invites a person by email or imports them from SSO, a new UserProfile is automatically created. This entity is the primary holder of settings for an individual user and has a reference to the user’s private Amazon Elastic File System (EFS) home directory.
3712 3713 3714 3715 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3712 def create_user_profile(params = {}, = {}) req = build_request(:create_user_profile, params) req.send_request() end |
#create_workteam(params = {}) ⇒ Types::CreateWorkteamResponse
Creates a new work team for labeling your data. A work team is defined by one or more Amazon Cognito user pools. You must first create the user pools before you can create a work team.
You cannot create more than 25 work teams in an account and region.
3793 3794 3795 3796 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3793 def create_workteam(params = {}, = {}) req = build_request(:create_workteam, params) req.send_request() end |
#delete_algorithm(params = {}) ⇒ Struct
Removes the specified algorithm from your account.
3815 3816 3817 3818 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3815 def delete_algorithm(params = {}, = {}) req = build_request(:delete_algorithm, params) req.send_request() end |
#delete_app(params = {}) ⇒ Struct
Used to stop and delete an app.
3849 3850 3851 3852 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3849 def delete_app(params = {}, = {}) req = build_request(:delete_app, params) req.send_request() end |
#delete_code_repository(params = {}) ⇒ Struct
Deletes the specified Git repository from your account.
3871 3872 3873 3874 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3871 def delete_code_repository(params = {}, = {}) req = build_request(:delete_code_repository, params) req.send_request() end |
#delete_domain(params = {}) ⇒ Struct
Used to delete a domain. If you on-boarded with IAM mode, you will need to delete your domain to on-board again using SSO. Use with caution. All of the members of the domain will lose access to their EFS volume, including data, notebooks, and other artifacts.
3904 3905 3906 3907 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3904 def delete_domain(params = {}, = {}) req = build_request(:delete_domain, params) req.send_request() end |
#delete_endpoint(params = {}) ⇒ Struct
Deletes an endpoint. Amazon SageMaker frees up all of the resources that were deployed when the endpoint was created.
Amazon SageMaker retires any custom KMS key grants associated with the endpoint, meaning you don’t need to use the [RevokeGrant] API call.
[1]: docs.aws.amazon.com/kms/latest/APIReference/API_RevokeGrant.html
3935 3936 3937 3938 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3935 def delete_endpoint(params = {}, = {}) req = build_request(:delete_endpoint, params) req.send_request() end |
#delete_endpoint_config(params = {}) ⇒ Struct
Deletes an endpoint configuration. The ‘DeleteEndpointConfig` API deletes only the specified configuration. It does not delete endpoints created using the configuration.
3959 3960 3961 3962 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3959 def delete_endpoint_config(params = {}, = {}) req = build_request(:delete_endpoint_config, params) req.send_request() end |
#delete_experiment(params = {}) ⇒ Types::DeleteExperimentResponse
Deletes an Amazon SageMaker experiment. All trials associated with the experiment must be deleted first. Use the ListTrials API to get a list of the trials associated with the experiment.
3989 3990 3991 3992 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 3989 def delete_experiment(params = {}, = {}) req = build_request(:delete_experiment, params) req.send_request() end |
#delete_flow_definition(params = {}) ⇒ Struct
Deletes the specified flow definition.
4011 4012 4013 4014 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4011 def delete_flow_definition(params = {}, = {}) req = build_request(:delete_flow_definition, params) req.send_request() end |
#delete_model(params = {}) ⇒ Struct
Deletes a model. The ‘DeleteModel` API deletes only the model entry that was created in Amazon SageMaker when you called the
- CreateModel][1
-
API. It does not delete model artifacts, inference
code, or the IAM role that you specified when creating the model.
[1]: docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html
4040 4041 4042 4043 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4040 def delete_model(params = {}, = {}) req = build_request(:delete_model, params) req.send_request() end |
#delete_model_package(params = {}) ⇒ Struct
Deletes a model package.
A model package is used to create Amazon SageMaker models or list on AWS Marketplace. Buyers can subscribe to model packages listed on AWS Marketplace to create models in Amazon SageMaker.
4067 4068 4069 4070 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4067 def delete_model_package(params = {}, = {}) req = build_request(:delete_model_package, params) req.send_request() end |
#delete_monitoring_schedule(params = {}) ⇒ Struct
Deletes a monitoring schedule. Also stops the schedule had not already been stopped. This does not delete the job execution history of the monitoring schedule.
4091 4092 4093 4094 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4091 def delete_monitoring_schedule(params = {}, = {}) req = build_request(:delete_monitoring_schedule, params) req.send_request() end |
#delete_notebook_instance(params = {}) ⇒ Struct
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.
4119 4120 4121 4122 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4119 def delete_notebook_instance(params = {}, = {}) req = build_request(:delete_notebook_instance, params) req.send_request() end |
#delete_notebook_instance_lifecycle_config(params = {}) ⇒ Struct
Deletes a notebook instance lifecycle configuration.
4141 4142 4143 4144 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4141 def delete_notebook_instance_lifecycle_config(params = {}, = {}) req = build_request(:delete_notebook_instance_lifecycle_config, params) req.send_request() end |
#delete_tags(params = {}) ⇒ Struct
Deletes the specified tags from an Amazon SageMaker resource.
To list a resource’s tags, use the ‘ListTags` API.
<note markdown=“1”> When you call this API to delete tags from a hyperparameter tuning job, the deleted tags are not removed from training jobs that the hyperparameter tuning job launched before you called this API.
</note>
4176 4177 4178 4179 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4176 def (params = {}, = {}) req = build_request(:delete_tags, params) req.send_request() end |
#delete_trial(params = {}) ⇒ Types::DeleteTrialResponse
Deletes the specified trial. All trial components that make up the trial must be deleted first. Use the DescribeTrialComponent API to get the list of trial components.
4206 4207 4208 4209 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4206 def delete_trial(params = {}, = {}) req = build_request(:delete_trial, params) req.send_request() end |
#delete_trial_component(params = {}) ⇒ Types::DeleteTrialComponentResponse
Deletes the specified trial component. A trial component must be disassociated from all trials before the trial component can be deleted. To disassociate a trial component from a trial, call the DisassociateTrialComponent API.
4237 4238 4239 4240 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4237 def delete_trial_component(params = {}, = {}) req = build_request(:delete_trial_component, params) req.send_request() end |
#delete_user_profile(params = {}) ⇒ Struct
Deletes a user profile.
4263 4264 4265 4266 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4263 def delete_user_profile(params = {}, = {}) req = build_request(:delete_user_profile, params) req.send_request() end |
#delete_workteam(params = {}) ⇒ Types::DeleteWorkteamResponse
Deletes an existing work team. This operation can’t be undone.
4291 4292 4293 4294 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4291 def delete_workteam(params = {}, = {}) req = build_request(:delete_workteam, params) req.send_request() end |
#describe_algorithm(params = {}) ⇒ Types::DescribeAlgorithmOutput
Returns a description of the specified algorithm that is in your account.
4439 4440 4441 4442 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4439 def describe_algorithm(params = {}, = {}) req = build_request(:describe_algorithm, params) req.send_request() end |
#describe_app(params = {}) ⇒ Types::DescribeAppResponse
Describes the app.
4500 4501 4502 4503 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4500 def describe_app(params = {}, = {}) req = build_request(:describe_app, params) req.send_request() end |
#describe_auto_ml_job(params = {}) ⇒ Types::DescribeAutoMLJobResponse
Returns information about an Amazon SageMaker job.
4598 4599 4600 4601 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4598 def describe_auto_ml_job(params = {}, = {}) req = build_request(:describe_auto_ml_job, params) req.send_request() end |
#describe_code_repository(params = {}) ⇒ Types::DescribeCodeRepositoryOutput
Gets details about the specified Git repository.
4636 4637 4638 4639 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4636 def describe_code_repository(params = {}, = {}) req = build_request(:describe_code_repository, params) req.send_request() end |
#describe_compilation_job(params = {}) ⇒ Types::DescribeCompilationJobResponse
Returns information about a model compilation job.
To create a model compilation job, use CreateCompilationJob. To get information about multiple model compilation jobs, use ListCompilationJobs.
4696 4697 4698 4699 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4696 def describe_compilation_job(params = {}, = {}) req = build_request(:describe_compilation_job, params) req.send_request() end |
#describe_domain(params = {}) ⇒ Types::DescribeDomainResponse
The desciption of the domain.
4764 4765 4766 4767 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4764 def describe_domain(params = {}, = {}) req = build_request(:describe_domain, params) req.send_request() end |
#describe_endpoint(params = {}) ⇒ Types::DescribeEndpointOutput
Returns the description of an endpoint.
4821 4822 4823 4824 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4821 def describe_endpoint(params = {}, = {}) req = build_request(:describe_endpoint, params) req.send_request() end |
#describe_endpoint_config(params = {}) ⇒ Types::DescribeEndpointConfigOutput
Returns the description of an endpoint configuration created using the ‘CreateEndpointConfig` API.
4875 4876 4877 4878 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4875 def describe_endpoint_config(params = {}, = {}) req = build_request(:describe_endpoint_config, params) req.send_request() end |
#describe_experiment(params = {}) ⇒ Types::DescribeExperimentResponse
Provides a list of an experiment’s properties.
4924 4925 4926 4927 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4924 def describe_experiment(params = {}, = {}) req = build_request(:describe_experiment, params) req.send_request() end |
#describe_flow_definition(params = {}) ⇒ Types::DescribeFlowDefinitionResponse
Returns information about the specified flow definition.
4981 4982 4983 4984 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 4981 def describe_flow_definition(params = {}, = {}) req = build_request(:describe_flow_definition, params) req.send_request() end |
#describe_human_task_ui(params = {}) ⇒ Types::DescribeHumanTaskUiResponse
Returns information about the requested human task user interface.
5016 5017 5018 5019 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5016 def describe_human_task_ui(params = {}, = {}) req = build_request(:describe_human_task_ui, params) req.send_request() end |
#describe_hyper_parameter_tuning_job(params = {}) ⇒ Types::DescribeHyperParameterTuningJobResponse
Gets a description of a hyperparameter tuning job.
5245 5246 5247 5248 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5245 def describe_hyper_parameter_tuning_job(params = {}, = {}) req = build_request(:describe_hyper_parameter_tuning_job, params) req.send_request() end |
#describe_labeling_job(params = {}) ⇒ Types::DescribeLabelingJobResponse
Gets information about a labeling job.
5334 5335 5336 5337 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5334 def describe_labeling_job(params = {}, = {}) req = build_request(:describe_labeling_job, params) req.send_request() end |
#describe_model(params = {}) ⇒ Types::DescribeModelOutput
Describes a model that you created using the ‘CreateModel` API.
5392 5393 5394 5395 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5392 def describe_model(params = {}, = {}) req = build_request(:describe_model, params) req.send_request() end |
#describe_model_package(params = {}) ⇒ Types::DescribeModelPackageOutput
Returns a description of the specified model package, which is used to create Amazon SageMaker models or list them on AWS Marketplace.
To create models in Amazon SageMaker, buyers can subscribe to model packages listed on AWS Marketplace.
5483 5484 5485 5486 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5483 def describe_model_package(params = {}, = {}) req = build_request(:describe_model_package, params) req.send_request() end |
#describe_monitoring_schedule(params = {}) ⇒ Types::DescribeMonitoringScheduleResponse
Describes the schedule for a monitoring job.
5566 5567 5568 5569 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5566 def describe_monitoring_schedule(params = {}, = {}) req = build_request(:describe_monitoring_schedule, params) req.send_request() end |
#describe_notebook_instance(params = {}) ⇒ Types::DescribeNotebookInstanceOutput
Returns information about a notebook instance.
5635 5636 5637 5638 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5635 def describe_notebook_instance(params = {}, = {}) req = build_request(:describe_notebook_instance, params) req.send_request() end |
#describe_notebook_instance_lifecycle_config(params = {}) ⇒ Types::DescribeNotebookInstanceLifecycleConfigOutput
Returns a description of a notebook instance lifecycle configuration.
For information about notebook instance lifestyle configurations, see [Step 2.1: (Optional) Customize a Notebook Instance].
[1]: docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html
5682 5683 5684 5685 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5682 def describe_notebook_instance_lifecycle_config(params = {}, = {}) req = build_request(:describe_notebook_instance_lifecycle_config, params) req.send_request() end |
#describe_processing_job(params = {}) ⇒ Types::DescribeProcessingJobResponse
Returns a description of a processing job.
5777 5778 5779 5780 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5777 def describe_processing_job(params = {}, = {}) req = build_request(:describe_processing_job, params) req.send_request() end |
#describe_subscribed_workteam(params = {}) ⇒ Types::DescribeSubscribedWorkteamResponse
Gets information about a work team provided by a vendor. It returns details about the subscription with a vendor in the AWS Marketplace.
5811 5812 5813 5814 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5811 def describe_subscribed_workteam(params = {}, = {}) req = build_request(:describe_subscribed_workteam, params) req.send_request() end |
#describe_training_job(params = {}) ⇒ Types::DescribeTrainingJobResponse
Returns information about a training job.
5966 5967 5968 5969 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 5966 def describe_training_job(params = {}, = {}) req = build_request(:describe_training_job, params) req.send_request() end |
#describe_transform_job(params = {}) ⇒ Types::DescribeTransformJobResponse
Returns information about a transform job.
6044 6045 6046 6047 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6044 def describe_transform_job(params = {}, = {}) req = build_request(:describe_transform_job, params) req.send_request() end |
#describe_trial(params = {}) ⇒ Types::DescribeTrialResponse
Provides a list of a trial’s properties.
6093 6094 6095 6096 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6093 def describe_trial(params = {}, = {}) req = build_request(:describe_trial, params) req.send_request() end |
#describe_trial_component(params = {}) ⇒ Types::DescribeTrialComponentResponse
Provides a list of a trials component’s properties.
6170 6171 6172 6173 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6170 def describe_trial_component(params = {}, = {}) req = build_request(:describe_trial_component, params) req.send_request() end |
#describe_user_profile(params = {}) ⇒ Types::DescribeUserProfileResponse
Describes the user profile.
6233 6234 6235 6236 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6233 def describe_user_profile(params = {}, = {}) req = build_request(:describe_user_profile, params) req.send_request() end |
#describe_workteam(params = {}) ⇒ Types::DescribeWorkteamResponse
Gets information about a specific work team. You can see information such as the create date, the last updated date, membership information, and the work team’s Amazon Resource Name (ARN).
6275 6276 6277 6278 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6275 def describe_workteam(params = {}, = {}) req = build_request(:describe_workteam, params) req.send_request() end |
#disassociate_trial_component(params = {}) ⇒ Types::DisassociateTrialComponentResponse
Disassociates a trial component from a trial. This doesn’t effect other trials the component is associated with. Before you can delete a component, you must disassociate the component from all trials it is associated with. To associate a trial component with a trial, call the AssociateTrialComponent API.
6313 6314 6315 6316 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6313 def disassociate_trial_component(params = {}, = {}) req = build_request(:disassociate_trial_component, params) req.send_request() end |
#get_search_suggestions(params = {}) ⇒ Types::GetSearchSuggestionsResponse
An auto-complete API for the search functionality in the Amazon SageMaker console. It returns suggestions of possible matches for the property name to use in ‘Search` queries. Provides suggestions for `HyperParameters`, `Tags`, and `Metrics`.
6354 6355 6356 6357 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6354 def get_search_suggestions(params = {}, = {}) req = build_request(:get_search_suggestions, params) req.send_request() end |
#list_algorithms(params = {}) ⇒ Types::ListAlgorithmsOutput
Lists the machine learning algorithms that have been created.
6419 6420 6421 6422 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6419 def list_algorithms(params = {}, = {}) req = build_request(:list_algorithms, params) req.send_request() end |
#list_apps(params = {}) ⇒ Types::ListAppsResponse
Lists apps.
6477 6478 6479 6480 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6477 def list_apps(params = {}, = {}) req = build_request(:list_apps, params) req.send_request() end |
#list_auto_ml_jobs(params = {}) ⇒ Types::ListAutoMLJobsResponse
Request a list of jobs.
6553 6554 6555 6556 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6553 def list_auto_ml_jobs(params = {}, = {}) req = build_request(:list_auto_ml_jobs, params) req.send_request() end |
#list_candidates_for_auto_ml_job(params = {}) ⇒ Types::ListCandidatesForAutoMLJobResponse
List the Candidates created for the job.
6627 6628 6629 6630 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6627 def list_candidates_for_auto_ml_job(params = {}, = {}) req = build_request(:list_candidates_for_auto_ml_job, params) req.send_request() end |
#list_code_repositories(params = {}) ⇒ Types::ListCodeRepositoriesOutput
Gets a list of the Git repositories in your account.
6703 6704 6705 6706 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6703 def list_code_repositories(params = {}, = {}) req = build_request(:list_code_repositories, params) req.send_request() end |
#list_compilation_jobs(params = {}) ⇒ Types::ListCompilationJobsResponse
Lists model compilation jobs that satisfy various filters.
To create a model compilation job, use CreateCompilationJob. To get information about a particular model compilation job you have created, use DescribeCompilationJob.
6790 6791 6792 6793 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6790 def list_compilation_jobs(params = {}, = {}) req = build_request(:list_compilation_jobs, params) req.send_request() end |
#list_domains(params = {}) ⇒ Types::ListDomainsResponse
Lists the domains.
6832 6833 6834 6835 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6832 def list_domains(params = {}, = {}) req = build_request(:list_domains, params) req.send_request() end |
#list_endpoint_configs(params = {}) ⇒ Types::ListEndpointConfigsOutput
Lists endpoint configurations.
6894 6895 6896 6897 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6894 def list_endpoint_configs(params = {}, = {}) req = build_request(:list_endpoint_configs, params) req.send_request() end |
#list_endpoints(params = {}) ⇒ Types::ListEndpointsOutput
Lists endpoints.
6972 6973 6974 6975 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 6972 def list_endpoints(params = {}, = {}) req = build_request(:list_endpoints, params) req.send_request() end |
#list_experiments(params = {}) ⇒ Types::ListExperimentsResponse
Lists all the experiments in your account. The list can be filtered to show only experiments that were created in a specific time range. The list can be sorted by experiment name or creation time.
7036 7037 7038 7039 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7036 def list_experiments(params = {}, = {}) req = build_request(:list_experiments, params) req.send_request() end |
#list_flow_definitions(params = {}) ⇒ Types::ListFlowDefinitionsResponse
Returns information about the flow definitions in your account.
7093 7094 7095 7096 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7093 def list_flow_definitions(params = {}, = {}) req = build_request(:list_flow_definitions, params) req.send_request() end |
#list_human_task_uis(params = {}) ⇒ Types::ListHumanTaskUisResponse
Returns information about the human task user interfaces in your account.
7149 7150 7151 7152 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7149 def list_human_task_uis(params = {}, = {}) req = build_request(:list_human_task_uis, params) req.send_request() end |
#list_hyper_parameter_tuning_jobs(params = {}) ⇒ Types::ListHyperParameterTuningJobsResponse
Gets a list of HyperParameterTuningJobSummary objects that describe the hyperparameter tuning jobs launched in your account.
7240 7241 7242 7243 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7240 def list_hyper_parameter_tuning_jobs(params = {}, = {}) req = build_request(:list_hyper_parameter_tuning_jobs, params) req.send_request() end |
#list_labeling_jobs(params = {}) ⇒ Types::ListLabelingJobsResponse
Gets a list of labeling jobs.
7333 7334 7335 7336 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7333 def list_labeling_jobs(params = {}, = {}) req = build_request(:list_labeling_jobs, params) req.send_request() end |
#list_labeling_jobs_for_workteam(params = {}) ⇒ Types::ListLabelingJobsForWorkteamResponse
Gets a list of labeling jobs assigned to a specified work team.
7406 7407 7408 7409 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7406 def list_labeling_jobs_for_workteam(params = {}, = {}) req = build_request(:list_labeling_jobs_for_workteam, params) req.send_request() end |
#list_model_packages(params = {}) ⇒ Types::ListModelPackagesOutput
Lists the model packages that have been created.
7471 7472 7473 7474 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7471 def list_model_packages(params = {}, = {}) req = build_request(:list_model_packages, params) req.send_request() end |
#list_models(params = {}) ⇒ Types::ListModelsOutput
Lists models created with the [CreateModel] API.
[1]: docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html
7537 7538 7539 7540 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7537 def list_models(params = {}, = {}) req = build_request(:list_models, params) req.send_request() end |
#list_monitoring_executions(params = {}) ⇒ Types::ListMonitoringExecutionsResponse
Returns list of all monitoring job executions.
7627 7628 7629 7630 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7627 def list_monitoring_executions(params = {}, = {}) req = build_request(:list_monitoring_executions, params) req.send_request() end |
#list_monitoring_schedules(params = {}) ⇒ Types::ListMonitoringSchedulesResponse
Returns list of all monitoring schedules.
7713 7714 7715 7716 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7713 def list_monitoring_schedules(params = {}, = {}) req = build_request(:list_monitoring_schedules, params) req.send_request() end |
#list_notebook_instance_lifecycle_configs(params = {}) ⇒ Types::ListNotebookInstanceLifecycleConfigsOutput
Lists notebook instance lifestyle configurations created with the CreateNotebookInstanceLifecycleConfig API.
7788 7789 7790 7791 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7788 def list_notebook_instance_lifecycle_configs(params = {}, = {}) req = build_request(:list_notebook_instance_lifecycle_configs, params) req.send_request() end |
#list_notebook_instances(params = {}) ⇒ Types::ListNotebookInstancesOutput
Returns a list of the Amazon SageMaker notebook instances in the requester’s account in an AWS Region.
7900 7901 7902 7903 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7900 def list_notebook_instances(params = {}, = {}) req = build_request(:list_notebook_instances, params) req.send_request() end |
#list_processing_jobs(params = {}) ⇒ Types::ListProcessingJobsResponse
Lists processing jobs that satisfy various filters.
7981 7982 7983 7984 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 7981 def list_processing_jobs(params = {}, = {}) req = build_request(:list_processing_jobs, params) req.send_request() end |
#list_subscribed_workteams(params = {}) ⇒ Types::ListSubscribedWorkteamsResponse
Gets a list of the work teams that you are subscribed to in the AWS Marketplace. The list may be empty if no work team satisfies the filter specified in the ‘NameContains` parameter.
8030 8031 8032 8033 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8030 def list_subscribed_workteams(params = {}, = {}) req = build_request(:list_subscribed_workteams, params) req.send_request() end |
#list_tags(params = {}) ⇒ Types::ListTagsOutput
Returns the tags for the specified Amazon SageMaker resource.
8073 8074 8075 8076 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8073 def (params = {}, = {}) req = build_request(:list_tags, params) req.send_request() end |
#list_training_jobs(params = {}) ⇒ Types::ListTrainingJobsResponse
Lists training jobs.
8152 8153 8154 8155 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8152 def list_training_jobs(params = {}, = {}) req = build_request(:list_training_jobs, params) req.send_request() end |
#list_training_jobs_for_hyper_parameter_tuning_job(params = {}) ⇒ Types::ListTrainingJobsForHyperParameterTuningJobResponse
Gets a list of TrainingJobSummary objects that describe the training jobs that a hyperparameter tuning job launched.
8225 8226 8227 8228 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8225 def list_training_jobs_for_hyper_parameter_tuning_job(params = {}, = {}) req = build_request(:list_training_jobs_for_hyper_parameter_tuning_job, params) req.send_request() end |
#list_transform_jobs(params = {}) ⇒ Types::ListTransformJobsResponse
Lists transform jobs.
8306 8307 8308 8309 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8306 def list_transform_jobs(params = {}, = {}) req = build_request(:list_transform_jobs, params) req.send_request() end |
#list_trial_components(params = {}) ⇒ Types::ListTrialComponentsResponse
Lists the trial components in your account. You can filter the list to show only components that were created in a specific time range. You can sort the list by trial component name or creation time.
8385 8386 8387 8388 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8385 def list_trial_components(params = {}, = {}) req = build_request(:list_trial_components, params) req.send_request() end |
#list_trials(params = {}) ⇒ Types::ListTrialsResponse
Lists the trials in your account. Specify an experiment name to limit the list to the trials that are part of that experiment. The list can be filtered to show only trials that were created in a specific time range. The list can be sorted by trial name or creation time.
8452 8453 8454 8455 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8452 def list_trials(params = {}, = {}) req = build_request(:list_trials, params) req.send_request() end |
#list_user_profiles(params = {}) ⇒ Types::ListUserProfilesResponse
Lists user profiles.
8509 8510 8511 8512 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8509 def list_user_profiles(params = {}, = {}) req = build_request(:list_user_profiles, params) req.send_request() end |
#list_workteams(params = {}) ⇒ Types::ListWorkteamsResponse
Gets a list of work teams that you have defined in a region. The list may be empty if no work team satisfies the filter specified in the ‘NameContains` parameter.
8574 8575 8576 8577 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8574 def list_workteams(params = {}, = {}) req = build_request(:list_workteams, params) req.send_request() end |
#render_ui_template(params = {}) ⇒ Types::RenderUiTemplateResponse
Renders the UI template so that you can preview the worker’s experience.
8620 8621 8622 8623 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8620 def render_ui_template(params = {}, = {}) req = build_request(:render_ui_template, params) req.send_request() end |
#search(params = {}) ⇒ Types::SearchResponse
Finds Amazon SageMaker resources that match a search query. Matching resource objects are returned as a list of ‘SearchResult` objects in the response. You can sort the search results by any resource property in a ascending or descending order.
You can query against the following value types: numerical, text, Booleans, and timestamps.
8995 8996 8997 8998 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 8995 def search(params = {}, = {}) req = build_request(:search, params) req.send_request() end |
#start_monitoring_schedule(params = {}) ⇒ Struct
Starts a previously stopped monitoring schedule.
<note markdown=“1”> New monitoring schedules are immediately started after creation.
</note>
9021 9022 9023 9024 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9021 def start_monitoring_schedule(params = {}, = {}) req = build_request(:start_monitoring_schedule, params) req.send_request() end |
#start_notebook_instance(params = {}) ⇒ Struct
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.
9047 9048 9049 9050 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9047 def start_notebook_instance(params = {}, = {}) req = build_request(:start_notebook_instance, params) req.send_request() end |
#stop_auto_ml_job(params = {}) ⇒ Struct
A method for forcing the termination of a running job.
9069 9070 9071 9072 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9069 def stop_auto_ml_job(params = {}, = {}) req = build_request(:stop_auto_ml_job, params) req.send_request() end |
#stop_compilation_job(params = {}) ⇒ Struct
Stops a model compilation job.
To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This gracefully shuts the job down. If the job hasn’t stopped, it sends the SIGKILL signal.
When it receives a ‘StopCompilationJob` request, Amazon SageMaker changes the CompilationJobSummary$CompilationJobStatus of the job to `Stopping`. After Amazon SageMaker stops the job, it sets the CompilationJobSummary$CompilationJobStatus to `Stopped`.
9100 9101 9102 9103 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9100 def stop_compilation_job(params = {}, = {}) req = build_request(:stop_compilation_job, params) req.send_request() end |
#stop_hyper_parameter_tuning_job(params = {}) ⇒ Struct
Stops a running hyperparameter tuning job and all running training jobs that the tuning job launched.
All model artifacts output from the training jobs are stored in Amazon Simple Storage Service (Amazon S3). All data that the training jobs write to Amazon CloudWatch Logs are still available in CloudWatch. After the tuning job moves to the ‘Stopped` state, it releases all reserved resources for the tuning job.
9129 9130 9131 9132 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9129 def stop_hyper_parameter_tuning_job(params = {}, = {}) req = build_request(:stop_hyper_parameter_tuning_job, params) req.send_request() end |
#stop_labeling_job(params = {}) ⇒ Struct
Stops a running labeling job. A job that is stopped cannot be restarted. Any results obtained before the job is stopped are placed in the Amazon S3 output bucket.
9153 9154 9155 9156 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9153 def stop_labeling_job(params = {}, = {}) req = build_request(:stop_labeling_job, params) req.send_request() end |
#stop_monitoring_schedule(params = {}) ⇒ Struct
Stops a previously started monitoring schedule.
9175 9176 9177 9178 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9175 def stop_monitoring_schedule(params = {}, = {}) req = build_request(:stop_monitoring_schedule, params) req.send_request() end |
#stop_notebook_instance(params = {}) ⇒ Struct
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. Amazon SageMaker stops charging you for the ML compute instance when you call ‘StopNotebookInstance`.
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.
9207 9208 9209 9210 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9207 def stop_notebook_instance(params = {}, = {}) req = build_request(:stop_notebook_instance, params) req.send_request() end |
#stop_processing_job(params = {}) ⇒ Struct
Stops a processing job.
9229 9230 9231 9232 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9229 def stop_processing_job(params = {}, = {}) req = build_request(:stop_processing_job, params) req.send_request() end |
#stop_training_job(params = {}) ⇒ Struct
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.
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`.
9258 9259 9260 9261 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9258 def stop_training_job(params = {}, = {}) req = build_request(:stop_training_job, params) req.send_request() end |
#stop_transform_job(params = {}) ⇒ Struct
Stops a transform job.
When Amazon SageMaker receives a ‘StopTransformJob` request, the status of the job changes to `Stopping`. After Amazon SageMaker stops the job, the status is set to `Stopped`. When you stop a transform job before it is completed, Amazon SageMaker doesn’t store the job’s output in Amazon S3.
9286 9287 9288 9289 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9286 def stop_transform_job(params = {}, = {}) req = build_request(:stop_transform_job, params) req.send_request() end |
#update_code_repository(params = {}) ⇒ Types::UpdateCodeRepositoryOutput
Updates the specified Git repository with the specified values.
9326 9327 9328 9329 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9326 def update_code_repository(params = {}, = {}) req = build_request(:update_code_repository, params) req.send_request() end |
#update_domain(params = {}) ⇒ Types::UpdateDomainResponse
Updates a domain. Changes will impact all of the people in the domain.
9384 9385 9386 9387 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9384 def update_domain(params = {}, = {}) req = build_request(:update_domain, params) req.send_request() end |
#update_endpoint(params = {}) ⇒ Types::UpdateEndpointOutput
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][1
-
API.
<note markdown=“1”> You must not delete an ‘EndpointConfig` in use by an endpoint that is live or while the `UpdateEndpoint` or `CreateEndpoint` operations are being performed on the endpoint. To update an endpoint, you must create a new `EndpointConfig`.
</note>
[1]: docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html
9435 9436 9437 9438 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9435 def update_endpoint(params = {}, = {}) req = build_request(:update_endpoint, params) req.send_request() end |
#update_endpoint_weights_and_capacities(params = {}) ⇒ Types::UpdateEndpointWeightsAndCapacitiesOutput
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.
[1]: docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html
9482 9483 9484 9485 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9482 def update_endpoint_weights_and_capacities(params = {}, = {}) req = build_request(:update_endpoint_weights_and_capacities, params) req.send_request() end |
#update_experiment(params = {}) ⇒ Types::UpdateExperimentResponse
Adds, updates, or removes the description of an experiment. Updates the display name of an experiment.
9521 9522 9523 9524 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9521 def update_experiment(params = {}, = {}) req = build_request(:update_experiment, params) req.send_request() end |
#update_monitoring_schedule(params = {}) ⇒ Types::UpdateMonitoringScheduleResponse
Updates a previously created schedule.
9620 9621 9622 9623 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9620 def update_monitoring_schedule(params = {}, = {}) req = build_request(:update_monitoring_schedule, params) req.send_request() end |
#update_notebook_instance(params = {}) ⇒ Struct
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.
9765 9766 9767 9768 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9765 def update_notebook_instance(params = {}, = {}) req = build_request(:update_notebook_instance, params) req.send_request() end |
#update_notebook_instance_lifecycle_config(params = {}) ⇒ Struct
Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig API.
9807 9808 9809 9810 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9807 def update_notebook_instance_lifecycle_config(params = {}, = {}) req = build_request(:update_notebook_instance_lifecycle_config, params) req.send_request() end |
#update_trial(params = {}) ⇒ Types::UpdateTrialResponse
Updates the display name of a trial.
9840 9841 9842 9843 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9840 def update_trial(params = {}, = {}) req = build_request(:update_trial, params) req.send_request() end |
#update_trial_component(params = {}) ⇒ Types::UpdateTrialComponentResponse
Updates one or more properties of a trial component.
9931 9932 9933 9934 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9931 def update_trial_component(params = {}, = {}) req = build_request(:update_trial_component, params) req.send_request() end |
#update_user_profile(params = {}) ⇒ Types::UpdateUserProfileResponse
Updates a user profile.
9993 9994 9995 9996 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 9993 def update_user_profile(params = {}, = {}) req = build_request(:update_user_profile, params) req.send_request() end |
#update_workteam(params = {}) ⇒ Types::UpdateWorkteamResponse
Updates an existing work team with new member definitions or description.
10058 10059 10060 10061 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 10058 def update_workteam(params = {}, = {}) req = build_request(:update_workteam, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
## Basic Usage
A waiter will call an API operation until:
-
It is successful
-
It enters a terminal state
-
It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
## Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
## Callbacks
You can be notified before each polling attempt and before each delay. If you throw ‘:success` or `:failure` from these callbacks, it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
## Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
## Valid Waiters
The following table lists the valid waiter names, the operations they call, and the default ‘:delay` and `:max_attempts` values.
| waiter_name | params | :delay | :max_attempts | | ———————————– | —————————– | ——– | ————- | | endpoint_deleted | #describe_endpoint | 30 | 60 | | endpoint_in_service | #describe_endpoint | 30 | 120 | | notebook_instance_deleted | #describe_notebook_instance | 30 | 60 | | notebook_instance_in_service | #describe_notebook_instance | 30 | 60 | | notebook_instance_stopped | #describe_notebook_instance | 30 | 60 | | processing_job_completed_or_stopped | #describe_processing_job | 60 | 60 | | training_job_completed_or_stopped | #describe_training_job | 120 | 180 | | transform_job_completed_or_stopped | #describe_transform_job | 60 | 60 |
10175 10176 10177 10178 10179 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 10175 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10183 10184 10185 |
# File 'lib/aws-sdk-sagemaker/client.rb', line 10183 def waiter_names waiters.keys end |