All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.sagemaker.AmazonSageMakerClient Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.sagemaker;

import org.w3c.dom.*;

import java.net.*;
import java.util.*;

import javax.annotation.Generated;

import org.apache.commons.logging.*;

import com.amazonaws.*;
import com.amazonaws.annotation.SdkInternalApi;
import com.amazonaws.auth.*;

import com.amazonaws.handlers.*;
import com.amazonaws.http.*;
import com.amazonaws.internal.*;
import com.amazonaws.internal.auth.*;
import com.amazonaws.metrics.*;
import com.amazonaws.regions.*;
import com.amazonaws.transform.*;
import com.amazonaws.util.*;
import com.amazonaws.protocol.json.*;
import com.amazonaws.util.AWSRequestMetrics.Field;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.client.AwsSyncClientParams;
import com.amazonaws.client.builder.AdvancedConfig;

import com.amazonaws.services.sagemaker.AmazonSageMakerClientBuilder;
import com.amazonaws.services.sagemaker.waiters.AmazonSageMakerWaiters;

import com.amazonaws.AmazonServiceException;

import com.amazonaws.services.sagemaker.model.*;

import com.amazonaws.services.sagemaker.model.transform.*;

/**
 * Client for accessing SageMaker. All service calls made using this client are blocking, and will not return until the
 * service call completes.
 * 

*

* Provides APIs for creating and managing SageMaker resources. *

*

* Other Resources: *

* */ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonSageMakerClient extends AmazonWebServiceClient implements AmazonSageMaker { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AmazonSageMaker.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "sagemaker"; private volatile AmazonSageMakerWaiters waiters; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory( new JsonClientMetadata() .withProtocolVersion("1.1") .withSupportsCbor(false) .withSupportsIon(false) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceInUse").withExceptionUnmarshaller( com.amazonaws.services.sagemaker.model.transform.ResourceInUseExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.sagemaker.model.transform.ConflictExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFound").withExceptionUnmarshaller( com.amazonaws.services.sagemaker.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceLimitExceeded").withExceptionUnmarshaller( com.amazonaws.services.sagemaker.model.transform.ResourceLimitExceededExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.sagemaker.model.AmazonSageMakerException.class)); public static AmazonSageMakerClientBuilder builder() { return AmazonSageMakerClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on SageMaker using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AmazonSageMakerClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on SageMaker using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AmazonSageMakerClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly setEndpoint("sagemaker.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/sagemaker/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/sagemaker/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *

* Creates an association between the source and the destination. A source can be associated with multiple * destinations, and a destination can be associated with multiple sources. An association is a lineage tracking * entity. For more information, see Amazon SageMaker ML Lineage * Tracking. *

* * @param addAssociationRequest * @return Result of the AddAssociation operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.AddAssociation * @see AWS API * Documentation */ @Override public AddAssociationResult addAssociation(AddAssociationRequest request) { request = beforeClientExecution(request); return executeAddAssociation(request); } @SdkInternalApi final AddAssociationResult executeAddAssociation(AddAssociationRequest addAssociationRequest) { ExecutionContext executionContext = createExecutionContext(addAssociationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AddAssociationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(addAssociationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AddAssociation"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new AddAssociationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Adds or overwrites one or more tags for the specified 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 Amazon Web Services Tagging * Strategies. *

* *

* 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 *

*
*

* Tags that you add to a SageMaker Domain or User Profile by calling this API are also added to any Apps that the * Domain or User Profile launches after you call this API, but not to Apps that the Domain or User Profile launched * before you called this API. To make sure that the tags associated with a Domain or User Profile are also added to * all Apps that the Domain or User Profile launches, add the tags when you first create the Domain or User Profile * by specifying them in the Tags parameter of CreateDomain or CreateUserProfile. *

*
* * @param addTagsRequest * @return Result of the AddTags operation returned by the service. * @sample AmazonSageMaker.AddTags * @see AWS API * Documentation */ @Override public AddTagsResult addTags(AddTagsRequest request) { request = beforeClientExecution(request); return executeAddTags(request); } @SdkInternalApi final AddTagsResult executeAddTags(AddTagsRequest addTagsRequest) { ExecutionContext executionContext = createExecutionContext(addTagsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AddTagsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(addTagsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AddTags"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new AddTagsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param associateTrialComponentRequest * @return Result of the AssociateTrialComponent operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.AssociateTrialComponent * @see AWS API Documentation */ @Override public AssociateTrialComponentResult associateTrialComponent(AssociateTrialComponentRequest request) { request = beforeClientExecution(request); return executeAssociateTrialComponent(request); } @SdkInternalApi final AssociateTrialComponentResult executeAssociateTrialComponent(AssociateTrialComponentRequest associateTrialComponentRequest) { ExecutionContext executionContext = createExecutionContext(associateTrialComponentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new AssociateTrialComponentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(associateTrialComponentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateTrialComponent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new AssociateTrialComponentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* This action batch describes a list of versioned model packages *

* * @param batchDescribeModelPackageRequest * @return Result of the BatchDescribeModelPackage operation returned by the service. * @sample AmazonSageMaker.BatchDescribeModelPackage * @see AWS API Documentation */ @Override public BatchDescribeModelPackageResult batchDescribeModelPackage(BatchDescribeModelPackageRequest request) { request = beforeClientExecution(request); return executeBatchDescribeModelPackage(request); } @SdkInternalApi final BatchDescribeModelPackageResult executeBatchDescribeModelPackage(BatchDescribeModelPackageRequest batchDescribeModelPackageRequest) { ExecutionContext executionContext = createExecutionContext(batchDescribeModelPackageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new BatchDescribeModelPackageRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(batchDescribeModelPackageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "BatchDescribeModelPackage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new BatchDescribeModelPackageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an action. An action is a lineage tracking entity that represents an action or activity. For * example, a model deployment or an HPO job. Generally, an action involves at least one input or output artifact. * For more information, see Amazon * SageMaker ML Lineage Tracking. *

* * @param createActionRequest * @return Result of the CreateAction operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateAction * @see AWS API * Documentation */ @Override public CreateActionResult createAction(CreateActionRequest request) { request = beforeClientExecution(request); return executeCreateAction(request); } @SdkInternalApi final CreateActionResult executeCreateAction(CreateActionRequest createActionRequest) { ExecutionContext executionContext = createExecutionContext(createActionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateActionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createActionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateActionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Create a machine learning algorithm that you can use in SageMaker and list in the Amazon Web Services * Marketplace. *

* * @param createAlgorithmRequest * @return Result of the CreateAlgorithm operation returned by the service. * @sample AmazonSageMaker.CreateAlgorithm * @see AWS API * Documentation */ @Override public CreateAlgorithmResult createAlgorithm(CreateAlgorithmRequest request) { request = beforeClientExecution(request); return executeCreateAlgorithm(request); } @SdkInternalApi final CreateAlgorithmResult executeCreateAlgorithm(CreateAlgorithmRequest createAlgorithmRequest) { ExecutionContext executionContext = createExecutionContext(createAlgorithmRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAlgorithmRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAlgorithmRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAlgorithm"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAlgorithmResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a running app for the specified UserProfile. This operation is automatically invoked by Amazon SageMaker * upon access to the associated Domain, and when new kernel configurations are selected by the user. A user may * have multiple Apps active simultaneously. *

* * @param createAppRequest * @return Result of the CreateApp operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateApp * @see AWS API * Documentation */ @Override public CreateAppResult createApp(CreateAppRequest request) { request = beforeClientExecution(request); return executeCreateApp(request); } @SdkInternalApi final CreateAppResult executeCreateApp(CreateAppRequest createAppRequest) { ExecutionContext executionContext = createExecutionContext(createAppRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAppRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAppRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateApp"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAppResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a configuration for running a SageMaker image as a KernelGateway app. The configuration specifies the * Amazon Elastic File System storage volume on the image, and a list of the kernels in the image. *

* * @param createAppImageConfigRequest * @return Result of the CreateAppImageConfig operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateAppImageConfig * @see AWS * API Documentation */ @Override public CreateAppImageConfigResult createAppImageConfig(CreateAppImageConfigRequest request) { request = beforeClientExecution(request); return executeCreateAppImageConfig(request); } @SdkInternalApi final CreateAppImageConfigResult executeCreateAppImageConfig(CreateAppImageConfigRequest createAppImageConfigRequest) { ExecutionContext executionContext = createExecutionContext(createAppImageConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAppImageConfigRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAppImageConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAppImageConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAppImageConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an artifact. An artifact is a lineage tracking entity that represents a URI addressable object or * data. Some examples are the S3 URI of a dataset and the ECR registry path of an image. For more information, see * Amazon SageMaker ML Lineage * Tracking. *

* * @param createArtifactRequest * @return Result of the CreateArtifact operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateArtifact * @see AWS API * Documentation */ @Override public CreateArtifactResult createArtifact(CreateArtifactRequest request) { request = beforeClientExecution(request); return executeCreateArtifact(request); } @SdkInternalApi final CreateArtifactResult executeCreateArtifact(CreateArtifactRequest createArtifactRequest) { ExecutionContext executionContext = createExecutionContext(createArtifactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateArtifactRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createArtifactRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateArtifact"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateArtifactResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Autopilot job also referred to as Autopilot experiment or AutoML job. *

* *

* We recommend using the new versions CreateAutoMLJobV2 * and * DescribeAutoMLJobV2, which offer backward compatibility. *

*

* CreateAutoMLJobV2 can manage tabular problem types identical to those of its previous version * CreateAutoMLJob, as well as time-series forecasting, non-tabular problem types such as image or text * classification, and text generation (LLMs fine-tuning). *

*

* Find guidelines about how to migrate a CreateAutoMLJob to CreateAutoMLJobV2 in Migrate a CreateAutoMLJob to CreateAutoMLJobV2. *

*
*

* You can find the best-performing model after you run an AutoML job by calling DescribeAutoMLJobV2 (recommended) or DescribeAutoMLJob. *

* * @param createAutoMLJobRequest * @return Result of the CreateAutoMLJob operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateAutoMLJob * @see AWS API * Documentation */ @Override public CreateAutoMLJobResult createAutoMLJob(CreateAutoMLJobRequest request) { request = beforeClientExecution(request); return executeCreateAutoMLJob(request); } @SdkInternalApi final CreateAutoMLJobResult executeCreateAutoMLJob(CreateAutoMLJobRequest createAutoMLJobRequest) { ExecutionContext executionContext = createExecutionContext(createAutoMLJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAutoMLJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAutoMLJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAutoMLJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAutoMLJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Autopilot job also referred to as Autopilot experiment or AutoML job V2. *

* *

* CreateAutoMLJobV2 * and * DescribeAutoMLJobV2 are new versions of CreateAutoMLJob and * DescribeAutoMLJob * which offer backward compatibility. *

*

* CreateAutoMLJobV2 can manage tabular problem types identical to those of its previous version * CreateAutoMLJob, as well as time-series forecasting, non-tabular problem types such as image or text * classification, and text generation (LLMs fine-tuning). *

*

* Find guidelines about how to migrate a CreateAutoMLJob to CreateAutoMLJobV2 in Migrate a CreateAutoMLJob to CreateAutoMLJobV2. *

*
*

* For the list of available problem types supported by CreateAutoMLJobV2, see AutoMLProblemTypeConfig. *

*

* You can find the best-performing model after you run an AutoML job V2 by calling DescribeAutoMLJobV2. *

* * @param createAutoMLJobV2Request * @return Result of the CreateAutoMLJobV2 operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateAutoMLJobV2 * @see AWS * API Documentation */ @Override public CreateAutoMLJobV2Result createAutoMLJobV2(CreateAutoMLJobV2Request request) { request = beforeClientExecution(request); return executeCreateAutoMLJobV2(request); } @SdkInternalApi final CreateAutoMLJobV2Result executeCreateAutoMLJobV2(CreateAutoMLJobV2Request createAutoMLJobV2Request) { ExecutionContext executionContext = createExecutionContext(createAutoMLJobV2Request); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAutoMLJobV2RequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAutoMLJobV2Request)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAutoMLJobV2"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAutoMLJobV2ResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a SageMaker HyperPod cluster. SageMaker HyperPod is a capability of SageMaker for creating and managing * persistent clusters for developing large machine learning models, such as large language models (LLMs) and * diffusion models. To learn more, see Amazon SageMaker HyperPod in * the Amazon SageMaker Developer Guide. *

* * @param createClusterRequest * @return Result of the CreateCluster operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateCluster * @see AWS API * Documentation */ @Override public CreateClusterResult createCluster(CreateClusterRequest request) { request = beforeClientExecution(request); return executeCreateCluster(request); } @SdkInternalApi final CreateClusterResult executeCreateCluster(CreateClusterRequest createClusterRequest) { ExecutionContext executionContext = createExecutionContext(createClusterRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateClusterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createClusterRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateCluster"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateClusterResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a Git repository as a resource in your 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 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 Amazon Web Services CodeCommit or * in any other Git repository. *

* * @param createCodeRepositoryRequest * @return Result of the CreateCodeRepository operation returned by the service. * @sample AmazonSageMaker.CreateCodeRepository * @see AWS * API Documentation */ @Override public CreateCodeRepositoryResult createCodeRepository(CreateCodeRepositoryRequest request) { request = beforeClientExecution(request); return executeCreateCodeRepository(request); } @SdkInternalApi final CreateCodeRepositoryResult executeCreateCodeRepository(CreateCodeRepositoryRequest createCodeRepositoryRequest) { ExecutionContext executionContext = createExecutionContext(createCodeRepositoryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateCodeRepositoryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createCodeRepositoryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateCodeRepository"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateCodeRepositoryResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 Amazon Web Services 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. *

* * @param createCompilationJobRequest * @return Result of the CreateCompilationJob operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateCompilationJob * @see AWS * API Documentation */ @Override public CreateCompilationJobResult createCompilationJob(CreateCompilationJobRequest request) { request = beforeClientExecution(request); return executeCreateCompilationJob(request); } @SdkInternalApi final CreateCompilationJobResult executeCreateCompilationJob(CreateCompilationJobRequest createCompilationJobRequest) { ExecutionContext executionContext = createExecutionContext(createCompilationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateCompilationJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createCompilationJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateCompilationJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateCompilationJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a context. A context is a lineage tracking entity that represents a logical grouping of other * tracking or experiment entities. Some examples are an endpoint and a model package. For more information, see Amazon SageMaker ML Lineage * Tracking. *

* * @param createContextRequest * @return Result of the CreateContext operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateContext * @see AWS API * Documentation */ @Override public CreateContextResult createContext(CreateContextRequest request) { request = beforeClientExecution(request); return executeCreateContext(request); } @SdkInternalApi final CreateContextResult executeCreateContext(CreateContextRequest createContextRequest) { ExecutionContext executionContext = createExecutionContext(createContextRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateContextRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createContextRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateContext"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateContextResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a definition for a job that monitors data quality and drift. For information about model monitor, see Amazon SageMaker Model Monitor. *

* * @param createDataQualityJobDefinitionRequest * @return Result of the CreateDataQualityJobDefinition operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateDataQualityJobDefinition * @see AWS API Documentation */ @Override public CreateDataQualityJobDefinitionResult createDataQualityJobDefinition(CreateDataQualityJobDefinitionRequest request) { request = beforeClientExecution(request); return executeCreateDataQualityJobDefinition(request); } @SdkInternalApi final CreateDataQualityJobDefinitionResult executeCreateDataQualityJobDefinition(CreateDataQualityJobDefinitionRequest createDataQualityJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(createDataQualityJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateDataQualityJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createDataQualityJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDataQualityJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateDataQualityJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a device fleet. *

* * @param createDeviceFleetRequest * @return Result of the CreateDeviceFleet operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateDeviceFleet * @see AWS * API Documentation */ @Override public CreateDeviceFleetResult createDeviceFleet(CreateDeviceFleetRequest request) { request = beforeClientExecution(request); return executeCreateDeviceFleet(request); } @SdkInternalApi final CreateDeviceFleetResult executeCreateDeviceFleet(CreateDeviceFleetRequest createDeviceFleetRequest) { ExecutionContext executionContext = createExecutionContext(createDeviceFleetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateDeviceFleetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createDeviceFleetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDeviceFleet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateDeviceFleetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a Domain. A domain consists of an associated Amazon Elastic File System volume, a list of * authorized users, and a variety of security, application, policy, and Amazon Virtual Private Cloud (VPC) * configurations. Users within a domain can share notebook files and other artifacts with each other. *

*

* EFS storage *

*

* When a domain is created, an EFS volume is created for use by all of the users within the domain. Each user * receives a private home directory within the EFS volume for notebooks, Git repositories, and data files. *

*

* SageMaker uses the Amazon Web Services Key Management Service (Amazon Web Services KMS) to encrypt the EFS volume * attached to the domain with an Amazon Web Services managed key by default. For more control, you can specify a * customer managed key. For more information, see Protect Data at Rest Using * Encryption. *

*

* VPC configuration *

*

* All traffic between the domain and the Amazon EFS volume is through the specified VPC and subnets. For other * traffic, you can specify the AppNetworkAccessType parameter. AppNetworkAccessType * corresponds to the network access type that you choose when you onboard to the domain. The following options are * available: *

*
    *
  • *

    * PublicInternetOnly - Non-EFS traffic goes through a VPC managed by Amazon SageMaker, which allows * internet access. This is the default value. *

    *
  • *
  • *

    * VpcOnly - All traffic is through the specified VPC and subnets. Internet access is disabled by * default. To allow internet access, you must specify a NAT gateway. *

    *

    * When internet access is disabled, you won't be able to run a Amazon SageMaker Studio notebook or to train or host * models unless your VPC has an interface endpoint to the SageMaker API and runtime or a NAT gateway and your * security groups allow outbound connections. *

    *
  • *
* *

* NFS traffic over TCP on port 2049 needs to be allowed in both inbound and outbound rules in order to launch a * Amazon SageMaker Studio app successfully. *

*
*

* For more information, see Connect Amazon * SageMaker Studio Notebooks to Resources in a VPC. *

* * @param createDomainRequest * @return Result of the CreateDomain operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateDomain * @see AWS API * Documentation */ @Override public CreateDomainResult createDomain(CreateDomainRequest request) { request = beforeClientExecution(request); return executeCreateDomain(request); } @SdkInternalApi final CreateDomainResult executeCreateDomain(CreateDomainRequest createDomainRequest) { ExecutionContext executionContext = createExecutionContext(createDomainRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createDomainRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDomain"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateDomainResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an edge deployment plan, consisting of multiple stages. Each stage may have a different deployment * configuration and devices. *

* * @param createEdgeDeploymentPlanRequest * @return Result of the CreateEdgeDeploymentPlan operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateEdgeDeploymentPlan * @see AWS API Documentation */ @Override public CreateEdgeDeploymentPlanResult createEdgeDeploymentPlan(CreateEdgeDeploymentPlanRequest request) { request = beforeClientExecution(request); return executeCreateEdgeDeploymentPlan(request); } @SdkInternalApi final CreateEdgeDeploymentPlanResult executeCreateEdgeDeploymentPlan(CreateEdgeDeploymentPlanRequest createEdgeDeploymentPlanRequest) { ExecutionContext executionContext = createExecutionContext(createEdgeDeploymentPlanRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEdgeDeploymentPlanRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createEdgeDeploymentPlanRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEdgeDeploymentPlan"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateEdgeDeploymentPlanResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a new stage in an existing edge deployment plan. *

* * @param createEdgeDeploymentStageRequest * @return Result of the CreateEdgeDeploymentStage operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateEdgeDeploymentStage * @see AWS API Documentation */ @Override public CreateEdgeDeploymentStageResult createEdgeDeploymentStage(CreateEdgeDeploymentStageRequest request) { request = beforeClientExecution(request); return executeCreateEdgeDeploymentStage(request); } @SdkInternalApi final CreateEdgeDeploymentStageResult executeCreateEdgeDeploymentStage(CreateEdgeDeploymentStageRequest createEdgeDeploymentStageRequest) { ExecutionContext executionContext = createExecutionContext(createEdgeDeploymentStageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEdgeDeploymentStageRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createEdgeDeploymentStageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEdgeDeploymentStage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateEdgeDeploymentStageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts a SageMaker Edge Manager model packaging job. Edge Manager will use the model artifacts from the Amazon * Simple Storage Service bucket that you specify. After the model has been packaged, Amazon SageMaker saves the * resulting artifacts to an S3 bucket that you specify. *

* * @param createEdgePackagingJobRequest * @return Result of the CreateEdgePackagingJob operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateEdgePackagingJob * @see AWS API Documentation */ @Override public CreateEdgePackagingJobResult createEdgePackagingJob(CreateEdgePackagingJobRequest request) { request = beforeClientExecution(request); return executeCreateEdgePackagingJob(request); } @SdkInternalApi final CreateEdgePackagingJobResult executeCreateEdgePackagingJob(CreateEdgePackagingJobRequest createEdgePackagingJobRequest) { ExecutionContext executionContext = createExecutionContext(createEdgePackagingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEdgePackagingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createEdgePackagingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEdgePackagingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateEdgePackagingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an endpoint using the endpoint configuration specified in the request. SageMaker uses the endpoint to * provision resources and deploy models. You create the endpoint configuration with the CreateEndpointConfig API. *

*

* Use this API to deploy models using SageMaker hosting services. *

* *

* You must not delete an EndpointConfig that is 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. *

*
*

* The endpoint name must be unique within an Amazon Web Services Region in your Amazon Web Services account. *

*

* When it receives the request, SageMaker creates the endpoint, launches the resources (ML compute instances), and * deploys the model(s) on them. *

* *

* When you call CreateEndpoint, a * load call is made to DynamoDB to verify that your endpoint configuration exists. When you read data from a * DynamoDB table supporting * Eventually Consistent Reads , the response might not reflect the results of a recently completed * write operation. The response might include some stale data. If the dependent entities are not yet in DynamoDB, * this causes a validation error. If you repeat your read request after a short time, the response should return * the latest data. So retry logic is recommended to handle these possible issues. We also recommend that customers * call * DescribeEndpointConfig before calling CreateEndpoint to * minimize the potential impact of a DynamoDB eventually consistent read. *

*
*

* When SageMaker receives the request, it sets the endpoint status to Creating. After it creates the * endpoint, it sets the status to InService. SageMaker can then process incoming requests for * inferences. To check the status of an endpoint, use the DescribeEndpoint * API. *

*

* If any of the models hosted at this endpoint get model data from an Amazon S3 location, SageMaker uses Amazon Web * Services Security Token Service to download model artifacts from the S3 path you provided. Amazon Web Services * STS is activated in your Amazon Web Services account by default. If you previously deactivated Amazon Web * Services STS for a region, you need to reactivate Amazon Web Services STS for that region. For more information, * see Activating * and Deactivating Amazon Web Services STS in an Amazon Web Services Region in the Amazon Web Services * Identity and Access Management User Guide. *

* *

* To add the IAM role policies for using this API operation, go to the IAM console, and choose Roles in the left navigation pane. Search * the IAM role that you want to grant access to use the CreateEndpoint and * * CreateEndpointConfig API operations, add the following policies to the role. *

*
    *
  • *

    * Option 1: For a full SageMaker access, search and attach the AmazonSageMakerFullAccess policy. *

    *
  • *
  • *

    * Option 2: For granting a limited access to an IAM role, paste the following Action elements manually into the * JSON file of the IAM role: *

    *

    * "Action": ["sagemaker:CreateEndpoint", "sagemaker:CreateEndpointConfig"] *

    *

    * "Resource": [ *

    *

    * "arn:aws:sagemaker:region:account-id:endpoint/endpointName" *

    *

    * "arn:aws:sagemaker:region:account-id:endpoint-config/endpointConfigName" *

    *

    * ] *

    *

    * For more information, see SageMaker API Permissions: * Actions, Permissions, and Resources Reference. *

    *
  • *
*
* * @param createEndpointRequest * @return Result of the CreateEndpoint operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateEndpoint * @see AWS API * Documentation */ @Override public CreateEndpointResult createEndpoint(CreateEndpointRequest request) { request = beforeClientExecution(request); return executeCreateEndpoint(request); } @SdkInternalApi final CreateEndpointResult executeCreateEndpoint(CreateEndpointRequest createEndpointRequest) { ExecutionContext executionContext = createExecutionContext(createEndpointRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEndpointRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createEndpointRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEndpoint"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateEndpointResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an endpoint configuration that 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 SageMaker to provision. Then you call the CreateEndpoint API. *

* *

* Use this API if you want to use SageMaker hosting services to deploy models into production. *

*
*

* In the request, you define a ProductionVariant, for each model that you want to deploy. Each * ProductionVariant parameter also describes the resources that you want 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. SageMaker distributes two-thirds of the traffic to Model A, and * one-third to model B. *

* *

* When you call CreateEndpoint, a * load call is made to DynamoDB to verify that your endpoint configuration exists. When you read data from a * DynamoDB table supporting * Eventually Consistent Reads , the response might not reflect the results of a recently completed * write operation. The response might include some stale data. If the dependent entities are not yet in DynamoDB, * this causes a validation error. If you repeat your read request after a short time, the response should return * the latest data. So retry logic is recommended to handle these possible issues. We also recommend that customers * call * DescribeEndpointConfig before calling CreateEndpoint to * minimize the potential impact of a DynamoDB eventually consistent read. *

*
* * @param createEndpointConfigRequest * @return Result of the CreateEndpointConfig operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateEndpointConfig * @see AWS * API Documentation */ @Override public CreateEndpointConfigResult createEndpointConfig(CreateEndpointConfigRequest request) { request = beforeClientExecution(request); return executeCreateEndpointConfig(request); } @SdkInternalApi final CreateEndpointConfigResult executeCreateEndpointConfig(CreateEndpointConfigRequest createEndpointConfigRequest) { ExecutionContext executionContext = createExecutionContext(createEndpointConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateEndpointConfigRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createEndpointConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateEndpointConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateEndpointConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a 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. *

* *

* In the Studio UI, trials are referred to as run groups and trial components are referred to as * runs. *

*
*

* 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 SageMaker Studio or the SageMaker Python SDK, all experiments, trials, and trial components are * automatically tracked, logged, and indexed. When you use the Amazon Web Services 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. *

* * @param createExperimentRequest * @return Result of the CreateExperiment operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateExperiment * @see AWS API * Documentation */ @Override public CreateExperimentResult createExperiment(CreateExperimentRequest request) { request = beforeClientExecution(request); return executeCreateExperiment(request); } @SdkInternalApi final CreateExperimentResult executeCreateExperiment(CreateExperimentRequest createExperimentRequest) { ExecutionContext executionContext = createExecutionContext(createExperimentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateExperimentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createExperimentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateExperiment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateExperimentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Create a new FeatureGroup. A FeatureGroup is a group of Features defined * in the FeatureStore to describe a Record. *

*

* The FeatureGroup defines the schema and features contained in the FeatureGroup. A * FeatureGroup definition is composed of a list of Features, a * RecordIdentifierFeatureName, an EventTimeFeatureName and configurations for its * OnlineStore and OfflineStore. Check Amazon Web Services service * quotas to see the FeatureGroups quota for your Amazon Web Services account. *

*

* Note that it can take approximately 10-15 minutes to provision an OnlineStore * FeatureGroup with the InMemory StorageType. *

* *

* You must include at least one of OnlineStoreConfig and OfflineStoreConfig to create a * FeatureGroup. *

*
* * @param createFeatureGroupRequest * @return Result of the CreateFeatureGroup operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateFeatureGroup * @see AWS * API Documentation */ @Override public CreateFeatureGroupResult createFeatureGroup(CreateFeatureGroupRequest request) { request = beforeClientExecution(request); return executeCreateFeatureGroup(request); } @SdkInternalApi final CreateFeatureGroupResult executeCreateFeatureGroup(CreateFeatureGroupRequest createFeatureGroupRequest) { ExecutionContext executionContext = createExecutionContext(createFeatureGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateFeatureGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createFeatureGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateFeatureGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateFeatureGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a flow definition. *

* * @param createFlowDefinitionRequest * @return Result of the CreateFlowDefinition operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateFlowDefinition * @see AWS * API Documentation */ @Override public CreateFlowDefinitionResult createFlowDefinition(CreateFlowDefinitionRequest request) { request = beforeClientExecution(request); return executeCreateFlowDefinition(request); } @SdkInternalApi final CreateFlowDefinitionResult executeCreateFlowDefinition(CreateFlowDefinitionRequest createFlowDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(createFlowDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateFlowDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createFlowDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateFlowDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateFlowDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Create a hub. *

* * @param createHubRequest * @return Result of the CreateHub operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateHub * @see AWS API * Documentation */ @Override public CreateHubResult createHub(CreateHubRequest request) { request = beforeClientExecution(request); return executeCreateHub(request); } @SdkInternalApi final CreateHubResult executeCreateHub(CreateHubRequest createHubRequest) { ExecutionContext executionContext = createExecutionContext(createHubRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateHubRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createHubRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateHub"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateHubResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Create a hub content reference in order to add a model in the JumpStart public hub to a private hub. *

* * @param createHubContentReferenceRequest * @return Result of the CreateHubContentReference operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateHubContentReference * @see AWS API Documentation */ @Override public CreateHubContentReferenceResult createHubContentReference(CreateHubContentReferenceRequest request) { request = beforeClientExecution(request); return executeCreateHubContentReference(request); } @SdkInternalApi final CreateHubContentReferenceResult executeCreateHubContentReference(CreateHubContentReferenceRequest createHubContentReferenceRequest) { ExecutionContext executionContext = createExecutionContext(createHubContentReferenceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateHubContentReferenceRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createHubContentReferenceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateHubContentReference"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateHubContentReferenceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param createHumanTaskUiRequest * @return Result of the CreateHumanTaskUi operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateHumanTaskUi * @see AWS * API Documentation */ @Override public CreateHumanTaskUiResult createHumanTaskUi(CreateHumanTaskUiRequest request) { request = beforeClientExecution(request); return executeCreateHumanTaskUi(request); } @SdkInternalApi final CreateHumanTaskUiResult executeCreateHumanTaskUi(CreateHumanTaskUiRequest createHumanTaskUiRequest) { ExecutionContext executionContext = createExecutionContext(createHumanTaskUiRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateHumanTaskUiRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createHumanTaskUiRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateHumanTaskUi"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateHumanTaskUiResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

*

* A hyperparameter tuning job automatically creates Amazon SageMaker experiments, trials, and trial components for * each training job that it runs. You can view these entities in Amazon SageMaker Studio. For more information, see * View * Experiments, Trials, and Trial Components. *

* *

* Do not include any security-sensitive information including account access IDs, secrets or tokens in any * hyperparameter field. If the use of security-sensitive credentials are detected, SageMaker will reject your * training job request and return an exception error. *

*
* * @param createHyperParameterTuningJobRequest * @return Result of the CreateHyperParameterTuningJob operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateHyperParameterTuningJob * @see AWS API Documentation */ @Override public CreateHyperParameterTuningJobResult createHyperParameterTuningJob(CreateHyperParameterTuningJobRequest request) { request = beforeClientExecution(request); return executeCreateHyperParameterTuningJob(request); } @SdkInternalApi final CreateHyperParameterTuningJobResult executeCreateHyperParameterTuningJob(CreateHyperParameterTuningJobRequest createHyperParameterTuningJobRequest) { ExecutionContext executionContext = createExecutionContext(createHyperParameterTuningJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateHyperParameterTuningJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createHyperParameterTuningJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateHyperParameterTuningJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateHyperParameterTuningJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a custom SageMaker image. A SageMaker image is a set of image versions. Each image version represents a * container image stored in Amazon ECR. For more information, see Bring your own SageMaker image. *

* * @param createImageRequest * @return Result of the CreateImage operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateImage * @see AWS API * Documentation */ @Override public CreateImageResult createImage(CreateImageRequest request) { request = beforeClientExecution(request); return executeCreateImage(request); } @SdkInternalApi final CreateImageResult executeCreateImage(CreateImageRequest createImageRequest) { ExecutionContext executionContext = createExecutionContext(createImageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateImageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createImageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateImage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateImageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a version of the SageMaker image specified by ImageName. The version represents the Amazon * ECR container image specified by BaseImage. *

* * @param createImageVersionRequest * @return Result of the CreateImageVersion operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.CreateImageVersion * @see AWS * API Documentation */ @Override public CreateImageVersionResult createImageVersion(CreateImageVersionRequest request) { request = beforeClientExecution(request); return executeCreateImageVersion(request); } @SdkInternalApi final CreateImageVersionResult executeCreateImageVersion(CreateImageVersionRequest createImageVersionRequest) { ExecutionContext executionContext = createExecutionContext(createImageVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateImageVersionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createImageVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateImageVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateImageVersionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an inference component, which is a SageMaker hosting object that you can use to deploy a model to an * endpoint. In the inference component settings, you specify the model, the endpoint, and how the model utilizes * the resources that the endpoint hosts. You can optimize resource utilization by tailoring how the required CPU * cores, accelerators, and memory are allocated. You can deploy multiple inference components to an endpoint, where * each inference component contains one model and the resource utilization needs for that individual model. After * you deploy an inference component, you can directly invoke the associated model when you use the InvokeEndpoint * API action. *

* * @param createInferenceComponentRequest * @return Result of the CreateInferenceComponent operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateInferenceComponent * @see AWS API Documentation */ @Override public CreateInferenceComponentResult createInferenceComponent(CreateInferenceComponentRequest request) { request = beforeClientExecution(request); return executeCreateInferenceComponent(request); } @SdkInternalApi final CreateInferenceComponentResult executeCreateInferenceComponent(CreateInferenceComponentRequest createInferenceComponentRequest) { ExecutionContext executionContext = createExecutionContext(createInferenceComponentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateInferenceComponentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createInferenceComponentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateInferenceComponent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateInferenceComponentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an inference experiment using the configurations specified in the request. *

*

* Use this API to setup and schedule an experiment to compare model variants on a Amazon SageMaker inference * endpoint. For more information about inference experiments, see Shadow tests. *

*

* Amazon SageMaker begins your experiment at the scheduled time and routes traffic to your endpoint's model * variants based on your specified configuration. *

*

* While the experiment is in progress or after it has concluded, you can view metrics that compare your model * variants. For more information, see View, monitor, and * edit shadow tests. *

* * @param createInferenceExperimentRequest * @return Result of the CreateInferenceExperiment operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateInferenceExperiment * @see AWS API Documentation */ @Override public CreateInferenceExperimentResult createInferenceExperiment(CreateInferenceExperimentRequest request) { request = beforeClientExecution(request); return executeCreateInferenceExperiment(request); } @SdkInternalApi final CreateInferenceExperimentResult executeCreateInferenceExperiment(CreateInferenceExperimentRequest createInferenceExperimentRequest) { ExecutionContext executionContext = createExecutionContext(createInferenceExperimentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateInferenceExperimentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createInferenceExperimentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateInferenceExperiment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateInferenceExperimentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts a recommendation job. You can create either an instance recommendation or load test job. *

* * @param createInferenceRecommendationsJobRequest * @return Result of the CreateInferenceRecommendationsJob operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateInferenceRecommendationsJob * @see AWS API Documentation */ @Override public CreateInferenceRecommendationsJobResult createInferenceRecommendationsJob(CreateInferenceRecommendationsJobRequest request) { request = beforeClientExecution(request); return executeCreateInferenceRecommendationsJob(request); } @SdkInternalApi final CreateInferenceRecommendationsJobResult executeCreateInferenceRecommendationsJob( CreateInferenceRecommendationsJobRequest createInferenceRecommendationsJobRequest) { ExecutionContext executionContext = createExecutionContext(createInferenceRecommendationsJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateInferenceRecommendationsJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createInferenceRecommendationsJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateInferenceRecommendationsJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateInferenceRecommendationsJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 Amazon Web Services 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. *

*

* You can use this operation to create a static labeling job or a streaming labeling job. A static labeling job * stops if all data objects in the input manifest file identified in ManifestS3Uri have been labeled. * A streaming labeling job runs perpetually until it is manually stopped, or remains idle for 10 days. You can send * new data objects to an active (InProgress) streaming labeling job in real time. To learn how to * create a static labeling job, see Create a Labeling Job * (API) in the Amazon SageMaker Developer Guide. To learn how to create a streaming labeling job, see Create a Streaming Labeling * Job. *

* * @param createLabelingJobRequest * @return Result of the CreateLabelingJob operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateLabelingJob * @see AWS * API Documentation */ @Override public CreateLabelingJobResult createLabelingJob(CreateLabelingJobRequest request) { request = beforeClientExecution(request); return executeCreateLabelingJob(request); } @SdkInternalApi final CreateLabelingJobResult executeCreateLabelingJob(CreateLabelingJobRequest createLabelingJobRequest) { ExecutionContext executionContext = createExecutionContext(createLabelingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateLabelingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createLabelingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateLabelingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateLabelingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an MLflow Tracking Server using a general purpose Amazon S3 bucket as the artifact store. For more * information, see Create an MLflow * Tracking Server. *

* * @param createMlflowTrackingServerRequest * @return Result of the CreateMlflowTrackingServer operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateMlflowTrackingServer * @see AWS API Documentation */ @Override public CreateMlflowTrackingServerResult createMlflowTrackingServer(CreateMlflowTrackingServerRequest request) { request = beforeClientExecution(request); return executeCreateMlflowTrackingServer(request); } @SdkInternalApi final CreateMlflowTrackingServerResult executeCreateMlflowTrackingServer(CreateMlflowTrackingServerRequest createMlflowTrackingServerRequest) { ExecutionContext executionContext = createExecutionContext(createMlflowTrackingServerRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateMlflowTrackingServerRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createMlflowTrackingServerRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateMlflowTrackingServer"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateMlflowTrackingServerResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a model in SageMaker. In the request, you name the model and describe a primary container. For the * primary container, you specify the Docker image that contains inference code, artifacts (from prior training), * and a 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 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. 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. * SageMaker uses your model and your dataset to get inferences which are then saved to a specified S3 location. *

*

* In the request, you also provide an IAM role that 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 Amazon * Web Services resources, you grant necessary permissions via this role. *

* * @param createModelRequest * @return Result of the CreateModel operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateModel * @see AWS API * Documentation */ @Override public CreateModelResult createModel(CreateModelRequest request) { request = beforeClientExecution(request); return executeCreateModel(request); } @SdkInternalApi final CreateModelResult executeCreateModel(CreateModelRequest createModelRequest) { ExecutionContext executionContext = createExecutionContext(createModelRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateModelRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createModelRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateModel"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateModelResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates the definition for a model bias job. *

* * @param createModelBiasJobDefinitionRequest * @return Result of the CreateModelBiasJobDefinition operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateModelBiasJobDefinition * @see AWS API Documentation */ @Override public CreateModelBiasJobDefinitionResult createModelBiasJobDefinition(CreateModelBiasJobDefinitionRequest request) { request = beforeClientExecution(request); return executeCreateModelBiasJobDefinition(request); } @SdkInternalApi final CreateModelBiasJobDefinitionResult executeCreateModelBiasJobDefinition(CreateModelBiasJobDefinitionRequest createModelBiasJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(createModelBiasJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateModelBiasJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createModelBiasJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateModelBiasJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateModelBiasJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Amazon SageMaker Model Card. *

*

* For information about how to use model cards, see Amazon SageMaker Model Card. *

* * @param createModelCardRequest * @return Result of the CreateModelCard operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.CreateModelCard * @see AWS API * Documentation */ @Override public CreateModelCardResult createModelCard(CreateModelCardRequest request) { request = beforeClientExecution(request); return executeCreateModelCard(request); } @SdkInternalApi final CreateModelCardResult executeCreateModelCard(CreateModelCardRequest createModelCardRequest) { ExecutionContext executionContext = createExecutionContext(createModelCardRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateModelCardRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createModelCardRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateModelCard"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateModelCardResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Amazon SageMaker Model Card export job. *

* * @param createModelCardExportJobRequest * @return Result of the CreateModelCardExportJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.CreateModelCardExportJob * @see AWS API Documentation */ @Override public CreateModelCardExportJobResult createModelCardExportJob(CreateModelCardExportJobRequest request) { request = beforeClientExecution(request); return executeCreateModelCardExportJob(request); } @SdkInternalApi final CreateModelCardExportJobResult executeCreateModelCardExportJob(CreateModelCardExportJobRequest createModelCardExportJobRequest) { ExecutionContext executionContext = createExecutionContext(createModelCardExportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateModelCardExportJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createModelCardExportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateModelCardExportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateModelCardExportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates the definition for a model explainability job. *

* * @param createModelExplainabilityJobDefinitionRequest * @return Result of the CreateModelExplainabilityJobDefinition operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateModelExplainabilityJobDefinition * @see AWS API Documentation */ @Override public CreateModelExplainabilityJobDefinitionResult createModelExplainabilityJobDefinition(CreateModelExplainabilityJobDefinitionRequest request) { request = beforeClientExecution(request); return executeCreateModelExplainabilityJobDefinition(request); } @SdkInternalApi final CreateModelExplainabilityJobDefinitionResult executeCreateModelExplainabilityJobDefinition( CreateModelExplainabilityJobDefinitionRequest createModelExplainabilityJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(createModelExplainabilityJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateModelExplainabilityJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createModelExplainabilityJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateModelExplainabilityJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateModelExplainabilityJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a model package that you can use to create SageMaker models or list on Amazon Web Services Marketplace, * or a versioned model that is part of a model group. Buyers can subscribe to model packages listed on Amazon Web * Services Marketplace to create models in 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 Amazon Web Services Marketplace, provide a value for * SourceAlgorithmSpecification. *

* *

* There are two types of model packages: *

*
    *
  • *

    * Versioned - a model that is part of a model group in the model registry. *

    *
  • *
  • *

    * Unversioned - a model package that is not part of a model group. *

    *
  • *
*
* * @param createModelPackageRequest * @return Result of the CreateModelPackage operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateModelPackage * @see AWS * API Documentation */ @Override public CreateModelPackageResult createModelPackage(CreateModelPackageRequest request) { request = beforeClientExecution(request); return executeCreateModelPackage(request); } @SdkInternalApi final CreateModelPackageResult executeCreateModelPackage(CreateModelPackageRequest createModelPackageRequest) { ExecutionContext executionContext = createExecutionContext(createModelPackageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateModelPackageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createModelPackageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateModelPackage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateModelPackageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a model group. A model group contains a group of model versions. *

* * @param createModelPackageGroupRequest * @return Result of the CreateModelPackageGroup operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateModelPackageGroup * @see AWS API Documentation */ @Override public CreateModelPackageGroupResult createModelPackageGroup(CreateModelPackageGroupRequest request) { request = beforeClientExecution(request); return executeCreateModelPackageGroup(request); } @SdkInternalApi final CreateModelPackageGroupResult executeCreateModelPackageGroup(CreateModelPackageGroupRequest createModelPackageGroupRequest) { ExecutionContext executionContext = createExecutionContext(createModelPackageGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateModelPackageGroupRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createModelPackageGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateModelPackageGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateModelPackageGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a definition for a job that monitors model quality and drift. For information about model monitor, see Amazon SageMaker Model Monitor. *

* * @param createModelQualityJobDefinitionRequest * @return Result of the CreateModelQualityJobDefinition operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateModelQualityJobDefinition * @see AWS API Documentation */ @Override public CreateModelQualityJobDefinitionResult createModelQualityJobDefinition(CreateModelQualityJobDefinitionRequest request) { request = beforeClientExecution(request); return executeCreateModelQualityJobDefinition(request); } @SdkInternalApi final CreateModelQualityJobDefinitionResult executeCreateModelQualityJobDefinition( CreateModelQualityJobDefinitionRequest createModelQualityJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(createModelQualityJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateModelQualityJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createModelQualityJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateModelQualityJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateModelQualityJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a schedule that regularly starts Amazon SageMaker Processing Jobs to monitor the data captured for an * Amazon SageMaker Endpoint. *

* * @param createMonitoringScheduleRequest * @return Result of the CreateMonitoringSchedule operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateMonitoringSchedule * @see AWS API Documentation */ @Override public CreateMonitoringScheduleResult createMonitoringSchedule(CreateMonitoringScheduleRequest request) { request = beforeClientExecution(request); return executeCreateMonitoringSchedule(request); } @SdkInternalApi final CreateMonitoringScheduleResult executeCreateMonitoringSchedule(CreateMonitoringScheduleRequest createMonitoringScheduleRequest) { ExecutionContext executionContext = createExecutionContext(createMonitoringScheduleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateMonitoringScheduleRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createMonitoringScheduleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateMonitoringSchedule"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateMonitoringScheduleResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an 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. * 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. *

*

* SageMaker also provides a set of example notebooks. Each notebook demonstrates how to use SageMaker with a * specific algorithm or with a machine learning framework. *

*

* After receiving the request, SageMaker does the following: *

*
    *
  1. *

    * Creates a network interface in the SageMaker VPC. *

    *
  2. *
  3. *

    * (Option) If you specified SubnetId, 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, SageMaker * attaches the security group that you specified in the request to the network interface that it creates in your * VPC. *

    *
  4. *
  5. *

    * Launches an EC2 instance of the type specified in the request in the SageMaker VPC. If you specified * SubnetId of your VPC, 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. *

    *
  6. *
*

* After creating the notebook instance, SageMaker returns its Amazon Resource Name (ARN). You can't change the name * of a notebook instance after you create it. *

*

* After 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 SageMaker endpoints, and validate hosted models. *

*

* For more information, see How It * Works. *

* * @param createNotebookInstanceRequest * @return Result of the CreateNotebookInstance operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateNotebookInstance * @see AWS API Documentation */ @Override public CreateNotebookInstanceResult createNotebookInstance(CreateNotebookInstanceRequest request) { request = beforeClientExecution(request); return executeCreateNotebookInstance(request); } @SdkInternalApi final CreateNotebookInstanceResult executeCreateNotebookInstance(CreateNotebookInstanceRequest createNotebookInstanceRequest) { ExecutionContext executionContext = createExecutionContext(createNotebookInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateNotebookInstanceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createNotebookInstanceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateNotebookInstance"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateNotebookInstanceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 Amazon CloudWatch Logs for notebook instance lifecycle configurations in log group * /aws/sagemaker/NotebookInstances in log stream * [notebook-instance-name]/[LifecycleConfigHook]. *

*

* 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. *

* * @param createNotebookInstanceLifecycleConfigRequest * @return Result of the CreateNotebookInstanceLifecycleConfig operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateNotebookInstanceLifecycleConfig * @see AWS API Documentation */ @Override public CreateNotebookInstanceLifecycleConfigResult createNotebookInstanceLifecycleConfig(CreateNotebookInstanceLifecycleConfigRequest request) { request = beforeClientExecution(request); return executeCreateNotebookInstanceLifecycleConfig(request); } @SdkInternalApi final CreateNotebookInstanceLifecycleConfigResult executeCreateNotebookInstanceLifecycleConfig( CreateNotebookInstanceLifecycleConfigRequest createNotebookInstanceLifecycleConfigRequest) { ExecutionContext executionContext = createExecutionContext(createNotebookInstanceLifecycleConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateNotebookInstanceLifecycleConfigRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createNotebookInstanceLifecycleConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateNotebookInstanceLifecycleConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateNotebookInstanceLifecycleConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a job that optimizes a model for inference performance. To create the job, you provide the location of a * source model, and you provide the settings for the optimization techniques that you want the job to apply. When * the job completes successfully, SageMaker uploads the new optimized model to the output destination that you * specify. *

*

* For more information about how to use this action, and about the supported optimization techniques, see Optimize model inference with Amazon * SageMaker. *

* * @param createOptimizationJobRequest * @return Result of the CreateOptimizationJob operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateOptimizationJob * @see AWS API Documentation */ @Override public CreateOptimizationJobResult createOptimizationJob(CreateOptimizationJobRequest request) { request = beforeClientExecution(request); return executeCreateOptimizationJob(request); } @SdkInternalApi final CreateOptimizationJobResult executeCreateOptimizationJob(CreateOptimizationJobRequest createOptimizationJobRequest) { ExecutionContext executionContext = createExecutionContext(createOptimizationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateOptimizationJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createOptimizationJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateOptimizationJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateOptimizationJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a pipeline using a JSON pipeline definition. *

* * @param createPipelineRequest * @return Result of the CreatePipeline operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.CreatePipeline * @see AWS API * Documentation */ @Override public CreatePipelineResult createPipeline(CreatePipelineRequest request) { request = beforeClientExecution(request); return executeCreatePipeline(request); } @SdkInternalApi final CreatePipelineResult executeCreatePipeline(CreatePipelineRequest createPipelineRequest) { ExecutionContext executionContext = createExecutionContext(createPipelineRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreatePipelineRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createPipelineRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreatePipeline"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreatePipelineResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a URL for a specified UserProfile in a Domain. When accessed in a web browser, the user will be * automatically signed in to the domain, and granted access to all of the Apps and files associated with the * Domain's Amazon Elastic File System volume. This operation can only be called when the authentication mode equals * IAM. *

*

* The IAM role or user passed to this API defines the permissions to access the app. Once the presigned URL is * created, no additional permission is required to access this URL. IAM authorization policies for this API are * also enforced for every HTTP request and WebSocket frame that attempts to connect to the app. *

*

* You can restrict access to this API and to the URL that it returns to a list of IP addresses, Amazon VPCs or * Amazon VPC Endpoints that you specify. For more information, see Connect to Amazon SageMaker * Studio Through an Interface VPC Endpoint . *

* *

* The URL that you get from a call to CreatePresignedDomainUrl has a default timeout of 5 minutes. You * can configure this value using ExpiresInSeconds. If you try to use the URL after the timeout limit * expires, you are directed to the Amazon Web Services console sign-in page. *

*
* * @param createPresignedDomainUrlRequest * @return Result of the CreatePresignedDomainUrl operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.CreatePresignedDomainUrl * @see AWS API Documentation */ @Override public CreatePresignedDomainUrlResult createPresignedDomainUrl(CreatePresignedDomainUrlRequest request) { request = beforeClientExecution(request); return executeCreatePresignedDomainUrl(request); } @SdkInternalApi final CreatePresignedDomainUrlResult executeCreatePresignedDomainUrl(CreatePresignedDomainUrlRequest createPresignedDomainUrlRequest) { ExecutionContext executionContext = createExecutionContext(createPresignedDomainUrlRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreatePresignedDomainUrlRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createPresignedDomainUrlRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreatePresignedDomainUrl"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreatePresignedDomainUrlResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a presigned URL that you can use to connect to the MLflow UI attached to your tracking server. For more * information, see Launch the * MLflow UI using a presigned URL. *

* * @param createPresignedMlflowTrackingServerUrlRequest * @return Result of the CreatePresignedMlflowTrackingServerUrl operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.CreatePresignedMlflowTrackingServerUrl * @see AWS API Documentation */ @Override public CreatePresignedMlflowTrackingServerUrlResult createPresignedMlflowTrackingServerUrl(CreatePresignedMlflowTrackingServerUrlRequest request) { request = beforeClientExecution(request); return executeCreatePresignedMlflowTrackingServerUrl(request); } @SdkInternalApi final CreatePresignedMlflowTrackingServerUrlResult executeCreatePresignedMlflowTrackingServerUrl( CreatePresignedMlflowTrackingServerUrlRequest createPresignedMlflowTrackingServerUrlRequest) { ExecutionContext executionContext = createExecutionContext(createPresignedMlflowTrackingServerUrlRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreatePresignedMlflowTrackingServerUrlRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createPresignedMlflowTrackingServerUrlRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreatePresignedMlflowTrackingServerUrl"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreatePresignedMlflowTrackingServerUrlResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a URL that you can use to connect to the Jupyter server from a notebook instance. In the SageMaker * console, when you choose Open next to a notebook instance, 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. *

*

* The IAM role or user used to call this API defines the permissions to access the notebook instance. Once the * presigned URL is created, no additional permission is required to access this URL. IAM authorization policies for * this API are also enforced for every HTTP request and WebSocket frame that attempts to connect to the notebook * instance. *

*

* 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. *

* *

* The URL that you get from a call to CreatePresignedNotebookInstanceUrl is valid only for 5 minutes. If you try to use the URL after the 5-minute * limit expires, you are directed to the Amazon Web Services console sign-in page. *

*
* * @param createPresignedNotebookInstanceUrlRequest * @return Result of the CreatePresignedNotebookInstanceUrl operation returned by the service. * @sample AmazonSageMaker.CreatePresignedNotebookInstanceUrl * @see AWS API Documentation */ @Override public CreatePresignedNotebookInstanceUrlResult createPresignedNotebookInstanceUrl(CreatePresignedNotebookInstanceUrlRequest request) { request = beforeClientExecution(request); return executeCreatePresignedNotebookInstanceUrl(request); } @SdkInternalApi final CreatePresignedNotebookInstanceUrlResult executeCreatePresignedNotebookInstanceUrl( CreatePresignedNotebookInstanceUrlRequest createPresignedNotebookInstanceUrlRequest) { ExecutionContext executionContext = createExecutionContext(createPresignedNotebookInstanceUrlRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreatePresignedNotebookInstanceUrlRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createPresignedNotebookInstanceUrlRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreatePresignedNotebookInstanceUrl"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreatePresignedNotebookInstanceUrlResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a processing job. *

* * @param createProcessingJobRequest * @return Result of the CreateProcessingJob operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.CreateProcessingJob * @see AWS * API Documentation */ @Override public CreateProcessingJobResult createProcessingJob(CreateProcessingJobRequest request) { request = beforeClientExecution(request); return executeCreateProcessingJob(request); } @SdkInternalApi final CreateProcessingJobResult executeCreateProcessingJob(CreateProcessingJobRequest createProcessingJobRequest) { ExecutionContext executionContext = createExecutionContext(createProcessingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateProcessingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createProcessingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateProcessingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateProcessingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a machine learning (ML) project that can contain one or more templates that set up an ML pipeline from * training to deploying an approved model. *

* * @param createProjectRequest * @return Result of the CreateProject operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateProject * @see AWS API * Documentation */ @Override public CreateProjectResult createProject(CreateProjectRequest request) { request = beforeClientExecution(request); return executeCreateProject(request); } @SdkInternalApi final CreateProjectResult executeCreateProject(CreateProjectRequest createProjectRequest) { ExecutionContext executionContext = createExecutionContext(createProjectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateProjectRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createProjectRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateProject"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateProjectResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a private space or a space used for real time collaboration in a domain. *

* * @param createSpaceRequest * @return Result of the CreateSpace operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateSpace * @see AWS API * Documentation */ @Override public CreateSpaceResult createSpace(CreateSpaceRequest request) { request = beforeClientExecution(request); return executeCreateSpace(request); } @SdkInternalApi final CreateSpaceResult executeCreateSpace(CreateSpaceRequest createSpaceRequest) { ExecutionContext executionContext = createExecutionContext(createSpaceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateSpaceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createSpaceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateSpace"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateSpaceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a new Amazon SageMaker Studio Lifecycle Configuration. *

* * @param createStudioLifecycleConfigRequest * @return Result of the CreateStudioLifecycleConfig operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateStudioLifecycleConfig * @see AWS API Documentation */ @Override public CreateStudioLifecycleConfigResult createStudioLifecycleConfig(CreateStudioLifecycleConfigRequest request) { request = beforeClientExecution(request); return executeCreateStudioLifecycleConfig(request); } @SdkInternalApi final CreateStudioLifecycleConfigResult executeCreateStudioLifecycleConfig(CreateStudioLifecycleConfigRequest createStudioLifecycleConfigRequest) { ExecutionContext executionContext = createExecutionContext(createStudioLifecycleConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateStudioLifecycleConfigRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createStudioLifecycleConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateStudioLifecycleConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateStudioLifecycleConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts a model training job. After training completes, SageMaker saves the resulting model artifacts to an Amazon * S3 location that you specify. *

*

* If you choose to host your model using 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 SageMaker, provided * that you know how to use them for inference. *

*

* 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 SageMaker, see Algorithms. *

    * *

    * Do not include any security-sensitive information including account access IDs, secrets or tokens in any * hyperparameter field. If the use of security-sensitive credentials are detected, SageMaker will reject your * training job request and return an exception error. *

    *
  • *
  • *

    * InputDataConfig - Describes the input required by the training job and the Amazon S3, EFS, or FSx * location where it is stored. *

    *
  • *
  • *

    * OutputDataConfig - Identifies the Amazon S3 bucket where you want 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 Name (ARN) that SageMaker assumes to perform tasks on your behalf * during model training. You must grant this role the necessary permissions so that 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 a managed spot training job has to * complete. *

    *
  • *
  • *

    * Environment - The environment variables to set in the Docker container. *

    *
  • *
  • *

    * RetryStrategy - The number of times to retry the job when the job fails due to an * InternalServerError. *

    *
  • *
*

* For more information about SageMaker, see How It Works. *

* * @param createTrainingJobRequest * @return Result of the CreateTrainingJob operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.CreateTrainingJob * @see AWS * API Documentation */ @Override public CreateTrainingJobResult createTrainingJob(CreateTrainingJobRequest request) { request = beforeClientExecution(request); return executeCreateTrainingJob(request); } @SdkInternalApi final CreateTrainingJobResult executeCreateTrainingJob(CreateTrainingJobRequest createTrainingJobRequest) { ExecutionContext executionContext = createExecutionContext(createTrainingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateTrainingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createTrainingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateTrainingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateTrainingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 Amazon Web * Services Region in an Amazon Web Services account. *

    *
  • *
  • *

    * ModelName - Identifies the model to use. ModelName must be the name of an existing * Amazon SageMaker model in the same Amazon Web Services Region and Amazon Web Services 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. *

* * @param createTransformJobRequest * @return Result of the CreateTransformJob operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.CreateTransformJob * @see AWS * API Documentation */ @Override public CreateTransformJobResult createTransformJob(CreateTransformJobRequest request) { request = beforeClientExecution(request); return executeCreateTransformJob(request); } @SdkInternalApi final CreateTransformJobResult executeCreateTransformJob(CreateTransformJobRequest createTransformJobRequest) { ExecutionContext executionContext = createExecutionContext(createTransformJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateTransformJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createTransformJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateTransformJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateTransformJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an 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 SageMaker experiment. *

*

* When you use SageMaker Studio or the SageMaker Python SDK, all experiments, trials, and trial components are * automatically tracked, logged, and indexed. When you use the Amazon Web Services 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. *

* * @param createTrialRequest * @return Result of the CreateTrial operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateTrial * @see AWS API * Documentation */ @Override public CreateTrialResult createTrial(CreateTrialRequest request) { request = beforeClientExecution(request); return executeCreateTrial(request); } @SdkInternalApi final CreateTrialResult executeCreateTrial(CreateTrialRequest createTrialRequest) { ExecutionContext executionContext = createExecutionContext(createTrialRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateTrialRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createTrialRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateTrial"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateTrialResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 SageMaker Studio or the SageMaker Python SDK, all experiments, trials, and trial components are * automatically tracked, logged, and indexed. When you use the Amazon Web Services 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. *

* * @param createTrialComponentRequest * @return Result of the CreateTrialComponent operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateTrialComponent * @see AWS * API Documentation */ @Override public CreateTrialComponentResult createTrialComponent(CreateTrialComponentRequest request) { request = beforeClientExecution(request); return executeCreateTrialComponent(request); } @SdkInternalApi final CreateTrialComponentResult executeCreateTrialComponent(CreateTrialComponentRequest createTrialComponentRequest) { ExecutionContext executionContext = createExecutionContext(createTrialComponentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateTrialComponentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createTrialComponentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateTrialComponent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateTrialComponentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a 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 when * a user onboards to a domain. If an administrator invites a person by email or imports them from IAM Identity * Center, a user profile is automatically created. A user profile is the primary holder of settings for an * individual user and has a reference to the user's private Amazon Elastic File System home directory. *

* * @param createUserProfileRequest * @return Result of the CreateUserProfile operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.CreateUserProfile * @see AWS * API Documentation */ @Override public CreateUserProfileResult createUserProfile(CreateUserProfileRequest request) { request = beforeClientExecution(request); return executeCreateUserProfile(request); } @SdkInternalApi final CreateUserProfileResult executeCreateUserProfile(CreateUserProfileRequest createUserProfileRequest) { ExecutionContext executionContext = createExecutionContext(createUserProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateUserProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createUserProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateUserProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateUserProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use this operation to create a workforce. This operation will return an error if a workforce already exists in * the Amazon Web Services Region that you specify. You can only create one workforce in each Amazon Web Services * Region per Amazon Web Services account. *

*

* If you want to create a new workforce in an Amazon Web Services Region where a workforce already exists, use the * DeleteWorkforce * API operation to delete the existing workforce and then use CreateWorkforce to create a new * workforce. *

*

* To create a private workforce using Amazon Cognito, you must specify a Cognito user pool in * CognitoConfig. You can also create an Amazon Cognito workforce using the Amazon SageMaker console. * For more information, see Create a Private * Workforce (Amazon Cognito). *

*

* To create a private workforce using your own OIDC Identity Provider (IdP), specify your IdP configuration in * OidcConfig. Your OIDC IdP must support groups because groups are used by Ground Truth and * Amazon A2I to create work teams. For more information, see Create a Private * Workforce (OIDC IdP). *

* * @param createWorkforceRequest * @return Result of the CreateWorkforce operation returned by the service. * @sample AmazonSageMaker.CreateWorkforce * @see AWS API * Documentation */ @Override public CreateWorkforceResult createWorkforce(CreateWorkforceRequest request) { request = beforeClientExecution(request); return executeCreateWorkforce(request); } @SdkInternalApi final CreateWorkforceResult executeCreateWorkforce(CreateWorkforceRequest createWorkforceRequest) { ExecutionContext executionContext = createExecutionContext(createWorkforceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateWorkforceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createWorkforceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateWorkforce"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateWorkforceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param createWorkteamRequest * @return Result of the CreateWorkteam operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.CreateWorkteam * @see AWS API * Documentation */ @Override public CreateWorkteamResult createWorkteam(CreateWorkteamRequest request) { request = beforeClientExecution(request); return executeCreateWorkteam(request); } @SdkInternalApi final CreateWorkteamResult executeCreateWorkteam(CreateWorkteamRequest createWorkteamRequest) { ExecutionContext executionContext = createExecutionContext(createWorkteamRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateWorkteamRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createWorkteamRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateWorkteam"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateWorkteamResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an action. *

* * @param deleteActionRequest * @return Result of the DeleteAction operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteAction * @see AWS API * Documentation */ @Override public DeleteActionResult deleteAction(DeleteActionRequest request) { request = beforeClientExecution(request); return executeDeleteAction(request); } @SdkInternalApi final DeleteActionResult executeDeleteAction(DeleteActionRequest deleteActionRequest) { ExecutionContext executionContext = createExecutionContext(deleteActionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteActionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteActionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteActionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Removes the specified algorithm from your account. *

* * @param deleteAlgorithmRequest * @return Result of the DeleteAlgorithm operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.DeleteAlgorithm * @see AWS API * Documentation */ @Override public DeleteAlgorithmResult deleteAlgorithm(DeleteAlgorithmRequest request) { request = beforeClientExecution(request); return executeDeleteAlgorithm(request); } @SdkInternalApi final DeleteAlgorithmResult executeDeleteAlgorithm(DeleteAlgorithmRequest deleteAlgorithmRequest) { ExecutionContext executionContext = createExecutionContext(deleteAlgorithmRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAlgorithmRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteAlgorithmRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAlgorithm"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAlgorithmResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Used to stop and delete an app. *

* * @param deleteAppRequest * @return Result of the DeleteApp operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteApp * @see AWS API * Documentation */ @Override public DeleteAppResult deleteApp(DeleteAppRequest request) { request = beforeClientExecution(request); return executeDeleteApp(request); } @SdkInternalApi final DeleteAppResult executeDeleteApp(DeleteAppRequest deleteAppRequest) { ExecutionContext executionContext = createExecutionContext(deleteAppRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAppRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteAppRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteApp"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAppResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an AppImageConfig. *

* * @param deleteAppImageConfigRequest * @return Result of the DeleteAppImageConfig operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteAppImageConfig * @see AWS * API Documentation */ @Override public DeleteAppImageConfigResult deleteAppImageConfig(DeleteAppImageConfigRequest request) { request = beforeClientExecution(request); return executeDeleteAppImageConfig(request); } @SdkInternalApi final DeleteAppImageConfigResult executeDeleteAppImageConfig(DeleteAppImageConfigRequest deleteAppImageConfigRequest) { ExecutionContext executionContext = createExecutionContext(deleteAppImageConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAppImageConfigRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteAppImageConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAppImageConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAppImageConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an artifact. Either ArtifactArn or Source must be specified. *

* * @param deleteArtifactRequest * @return Result of the DeleteArtifact operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteArtifact * @see AWS API * Documentation */ @Override public DeleteArtifactResult deleteArtifact(DeleteArtifactRequest request) { request = beforeClientExecution(request); return executeDeleteArtifact(request); } @SdkInternalApi final DeleteArtifactResult executeDeleteArtifact(DeleteArtifactRequest deleteArtifactRequest) { ExecutionContext executionContext = createExecutionContext(deleteArtifactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteArtifactRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteArtifactRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteArtifact"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteArtifactResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an association. *

* * @param deleteAssociationRequest * @return Result of the DeleteAssociation operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteAssociation * @see AWS * API Documentation */ @Override public DeleteAssociationResult deleteAssociation(DeleteAssociationRequest request) { request = beforeClientExecution(request); return executeDeleteAssociation(request); } @SdkInternalApi final DeleteAssociationResult executeDeleteAssociation(DeleteAssociationRequest deleteAssociationRequest) { ExecutionContext executionContext = createExecutionContext(deleteAssociationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAssociationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteAssociationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAssociation"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAssociationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delete a SageMaker HyperPod cluster. *

* * @param deleteClusterRequest * @return Result of the DeleteCluster operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.DeleteCluster * @see AWS API * Documentation */ @Override public DeleteClusterResult deleteCluster(DeleteClusterRequest request) { request = beforeClientExecution(request); return executeDeleteCluster(request); } @SdkInternalApi final DeleteClusterResult executeDeleteCluster(DeleteClusterRequest deleteClusterRequest) { ExecutionContext executionContext = createExecutionContext(deleteClusterRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteClusterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteClusterRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteCluster"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteClusterResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes the specified Git repository from your account. *

* * @param deleteCodeRepositoryRequest * @return Result of the DeleteCodeRepository operation returned by the service. * @sample AmazonSageMaker.DeleteCodeRepository * @see AWS * API Documentation */ @Override public DeleteCodeRepositoryResult deleteCodeRepository(DeleteCodeRepositoryRequest request) { request = beforeClientExecution(request); return executeDeleteCodeRepository(request); } @SdkInternalApi final DeleteCodeRepositoryResult executeDeleteCodeRepository(DeleteCodeRepositoryRequest deleteCodeRepositoryRequest) { ExecutionContext executionContext = createExecutionContext(deleteCodeRepositoryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteCodeRepositoryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteCodeRepositoryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteCodeRepository"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteCodeRepositoryResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes the specified compilation job. This action deletes only the compilation job resource in Amazon SageMaker. * It doesn't delete other resources that are related to that job, such as the model artifacts that the job creates, * the compilation logs in CloudWatch, the compiled model, or the IAM role. *

*

* You can delete a compilation job only if its current status is COMPLETED, FAILED, or * STOPPED. If the job status is STARTING or INPROGRESS, stop the job, and * then delete it after its status becomes STOPPED. *

* * @param deleteCompilationJobRequest * @return Result of the DeleteCompilationJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteCompilationJob * @see AWS * API Documentation */ @Override public DeleteCompilationJobResult deleteCompilationJob(DeleteCompilationJobRequest request) { request = beforeClientExecution(request); return executeDeleteCompilationJob(request); } @SdkInternalApi final DeleteCompilationJobResult executeDeleteCompilationJob(DeleteCompilationJobRequest deleteCompilationJobRequest) { ExecutionContext executionContext = createExecutionContext(deleteCompilationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteCompilationJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteCompilationJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteCompilationJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteCompilationJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an context. *

* * @param deleteContextRequest * @return Result of the DeleteContext operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteContext * @see AWS API * Documentation */ @Override public DeleteContextResult deleteContext(DeleteContextRequest request) { request = beforeClientExecution(request); return executeDeleteContext(request); } @SdkInternalApi final DeleteContextResult executeDeleteContext(DeleteContextRequest deleteContextRequest) { ExecutionContext executionContext = createExecutionContext(deleteContextRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteContextRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteContextRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteContext"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteContextResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a data quality monitoring job definition. *

* * @param deleteDataQualityJobDefinitionRequest * @return Result of the DeleteDataQualityJobDefinition operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteDataQualityJobDefinition * @see AWS API Documentation */ @Override public DeleteDataQualityJobDefinitionResult deleteDataQualityJobDefinition(DeleteDataQualityJobDefinitionRequest request) { request = beforeClientExecution(request); return executeDeleteDataQualityJobDefinition(request); } @SdkInternalApi final DeleteDataQualityJobDefinitionResult executeDeleteDataQualityJobDefinition(DeleteDataQualityJobDefinitionRequest deleteDataQualityJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(deleteDataQualityJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteDataQualityJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteDataQualityJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDataQualityJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDataQualityJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a fleet. *

* * @param deleteDeviceFleetRequest * @return Result of the DeleteDeviceFleet operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.DeleteDeviceFleet * @see AWS * API Documentation */ @Override public DeleteDeviceFleetResult deleteDeviceFleet(DeleteDeviceFleetRequest request) { request = beforeClientExecution(request); return executeDeleteDeviceFleet(request); } @SdkInternalApi final DeleteDeviceFleetResult executeDeleteDeviceFleet(DeleteDeviceFleetRequest deleteDeviceFleetRequest) { ExecutionContext executionContext = createExecutionContext(deleteDeviceFleetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteDeviceFleetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteDeviceFleetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDeviceFleet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDeviceFleetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Used to delete a domain. If you onboarded with IAM mode, you will need to delete your domain to onboard again * using IAM Identity Center. Use with caution. All of the members of the domain will lose access to their EFS * volume, including data, notebooks, and other artifacts. *

* * @param deleteDomainRequest * @return Result of the DeleteDomain operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteDomain * @see AWS API * Documentation */ @Override public DeleteDomainResult deleteDomain(DeleteDomainRequest request) { request = beforeClientExecution(request); return executeDeleteDomain(request); } @SdkInternalApi final DeleteDomainResult executeDeleteDomain(DeleteDomainRequest deleteDomainRequest) { ExecutionContext executionContext = createExecutionContext(deleteDomainRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteDomainRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDomain"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDomainResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an edge deployment plan if (and only if) all the stages in the plan are inactive or there are no stages * in the plan. *

* * @param deleteEdgeDeploymentPlanRequest * @return Result of the DeleteEdgeDeploymentPlan operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.DeleteEdgeDeploymentPlan * @see AWS API Documentation */ @Override public DeleteEdgeDeploymentPlanResult deleteEdgeDeploymentPlan(DeleteEdgeDeploymentPlanRequest request) { request = beforeClientExecution(request); return executeDeleteEdgeDeploymentPlan(request); } @SdkInternalApi final DeleteEdgeDeploymentPlanResult executeDeleteEdgeDeploymentPlan(DeleteEdgeDeploymentPlanRequest deleteEdgeDeploymentPlanRequest) { ExecutionContext executionContext = createExecutionContext(deleteEdgeDeploymentPlanRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEdgeDeploymentPlanRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteEdgeDeploymentPlanRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEdgeDeploymentPlan"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteEdgeDeploymentPlanResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delete a stage in an edge deployment plan if (and only if) the stage is inactive. *

* * @param deleteEdgeDeploymentStageRequest * @return Result of the DeleteEdgeDeploymentStage operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.DeleteEdgeDeploymentStage * @see AWS API Documentation */ @Override public DeleteEdgeDeploymentStageResult deleteEdgeDeploymentStage(DeleteEdgeDeploymentStageRequest request) { request = beforeClientExecution(request); return executeDeleteEdgeDeploymentStage(request); } @SdkInternalApi final DeleteEdgeDeploymentStageResult executeDeleteEdgeDeploymentStage(DeleteEdgeDeploymentStageRequest deleteEdgeDeploymentStageRequest) { ExecutionContext executionContext = createExecutionContext(deleteEdgeDeploymentStageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEdgeDeploymentStageRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteEdgeDeploymentStageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEdgeDeploymentStage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteEdgeDeploymentStageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an endpoint. SageMaker frees up all of the resources that were deployed when the endpoint was created. *

*

* SageMaker retires any custom KMS key grants associated with the endpoint, meaning you don't need to use the RevokeGrant API call. *

*

* When you delete your endpoint, SageMaker asynchronously deletes associated endpoint resources such as KMS key * grants. You might still see these resources in your account for a few minutes after deleting your endpoint. Do * not delete or revoke the permissions for your * ExecutionRoleArn * , otherwise SageMaker cannot delete these resources. *

* * @param deleteEndpointRequest * @return Result of the DeleteEndpoint operation returned by the service. * @sample AmazonSageMaker.DeleteEndpoint * @see AWS API * Documentation */ @Override public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest request) { request = beforeClientExecution(request); return executeDeleteEndpoint(request); } @SdkInternalApi final DeleteEndpointResult executeDeleteEndpoint(DeleteEndpointRequest deleteEndpointRequest) { ExecutionContext executionContext = createExecutionContext(deleteEndpointRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEndpointRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteEndpointRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEndpoint"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteEndpointResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an endpoint configuration. The DeleteEndpointConfig API deletes only the specified * configuration. It does not delete endpoints created using the configuration. *

*

* 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. If you * delete the EndpointConfig of an endpoint that is active or being created or updated you may lose * visibility into the instance type the endpoint is using. The endpoint must be deleted in order to stop incurring * charges. *

* * @param deleteEndpointConfigRequest * @return Result of the DeleteEndpointConfig operation returned by the service. * @sample AmazonSageMaker.DeleteEndpointConfig * @see AWS * API Documentation */ @Override public DeleteEndpointConfigResult deleteEndpointConfig(DeleteEndpointConfigRequest request) { request = beforeClientExecution(request); return executeDeleteEndpointConfig(request); } @SdkInternalApi final DeleteEndpointConfigResult executeDeleteEndpointConfig(DeleteEndpointConfigRequest deleteEndpointConfigRequest) { ExecutionContext executionContext = createExecutionContext(deleteEndpointConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteEndpointConfigRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteEndpointConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEndpointConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteEndpointConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an 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. *

* * @param deleteExperimentRequest * @return Result of the DeleteExperiment operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteExperiment * @see AWS API * Documentation */ @Override public DeleteExperimentResult deleteExperiment(DeleteExperimentRequest request) { request = beforeClientExecution(request); return executeDeleteExperiment(request); } @SdkInternalApi final DeleteExperimentResult executeDeleteExperiment(DeleteExperimentRequest deleteExperimentRequest) { ExecutionContext executionContext = createExecutionContext(deleteExperimentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteExperimentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteExperimentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteExperiment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteExperimentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delete the FeatureGroup and any data that was written to the OnlineStore of the * FeatureGroup. Data cannot be accessed from the OnlineStore immediately after * DeleteFeatureGroup is called. *

*

* Data written into the OfflineStore will not be deleted. The Amazon Web Services Glue database and * tables that are automatically created for your OfflineStore are not deleted. *

*

* Note that it can take approximately 10-15 minutes to delete an OnlineStore FeatureGroup * with the InMemory StorageType. *

* * @param deleteFeatureGroupRequest * @return Result of the DeleteFeatureGroup operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteFeatureGroup * @see AWS * API Documentation */ @Override public DeleteFeatureGroupResult deleteFeatureGroup(DeleteFeatureGroupRequest request) { request = beforeClientExecution(request); return executeDeleteFeatureGroup(request); } @SdkInternalApi final DeleteFeatureGroupResult executeDeleteFeatureGroup(DeleteFeatureGroupRequest deleteFeatureGroupRequest) { ExecutionContext executionContext = createExecutionContext(deleteFeatureGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteFeatureGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteFeatureGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteFeatureGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteFeatureGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes the specified flow definition. *

* * @param deleteFlowDefinitionRequest * @return Result of the DeleteFlowDefinition operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteFlowDefinition * @see AWS * API Documentation */ @Override public DeleteFlowDefinitionResult deleteFlowDefinition(DeleteFlowDefinitionRequest request) { request = beforeClientExecution(request); return executeDeleteFlowDefinition(request); } @SdkInternalApi final DeleteFlowDefinitionResult executeDeleteFlowDefinition(DeleteFlowDefinitionRequest deleteFlowDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(deleteFlowDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteFlowDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteFlowDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteFlowDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteFlowDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delete a hub. *

* * @param deleteHubRequest * @return Result of the DeleteHub operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteHub * @see AWS API * Documentation */ @Override public DeleteHubResult deleteHub(DeleteHubRequest request) { request = beforeClientExecution(request); return executeDeleteHub(request); } @SdkInternalApi final DeleteHubResult executeDeleteHub(DeleteHubRequest deleteHubRequest) { ExecutionContext executionContext = createExecutionContext(deleteHubRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteHubRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteHubRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteHub"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteHubResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delete the contents of a hub. *

* * @param deleteHubContentRequest * @return Result of the DeleteHubContent operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteHubContent * @see AWS API * Documentation */ @Override public DeleteHubContentResult deleteHubContent(DeleteHubContentRequest request) { request = beforeClientExecution(request); return executeDeleteHubContent(request); } @SdkInternalApi final DeleteHubContentResult executeDeleteHubContent(DeleteHubContentRequest deleteHubContentRequest) { ExecutionContext executionContext = createExecutionContext(deleteHubContentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteHubContentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteHubContentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteHubContent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteHubContentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delete a hub content reference in order to remove a model from a private hub. *

* * @param deleteHubContentReferenceRequest * @return Result of the DeleteHubContentReference operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteHubContentReference * @see AWS API Documentation */ @Override public DeleteHubContentReferenceResult deleteHubContentReference(DeleteHubContentReferenceRequest request) { request = beforeClientExecution(request); return executeDeleteHubContentReference(request); } @SdkInternalApi final DeleteHubContentReferenceResult executeDeleteHubContentReference(DeleteHubContentReferenceRequest deleteHubContentReferenceRequest) { ExecutionContext executionContext = createExecutionContext(deleteHubContentReferenceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteHubContentReferenceRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteHubContentReferenceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteHubContentReference"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteHubContentReferenceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use this operation to delete a human task user interface (worker task template). *

*

* To see a list of human task user interfaces (work task templates) in your account, use ListHumanTaskUis. * When you delete a worker task template, it no longer appears when you call ListHumanTaskUis. *

* * @param deleteHumanTaskUiRequest * @return Result of the DeleteHumanTaskUi operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteHumanTaskUi * @see AWS * API Documentation */ @Override public DeleteHumanTaskUiResult deleteHumanTaskUi(DeleteHumanTaskUiRequest request) { request = beforeClientExecution(request); return executeDeleteHumanTaskUi(request); } @SdkInternalApi final DeleteHumanTaskUiResult executeDeleteHumanTaskUi(DeleteHumanTaskUiRequest deleteHumanTaskUiRequest) { ExecutionContext executionContext = createExecutionContext(deleteHumanTaskUiRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteHumanTaskUiRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteHumanTaskUiRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteHumanTaskUi"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteHumanTaskUiResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a hyperparameter tuning job. The DeleteHyperParameterTuningJob API deletes only the tuning * job entry that was created in SageMaker when you called the CreateHyperParameterTuningJob API. It * does not delete training jobs, artifacts, or the IAM role that you specified when creating the model. *

* * @param deleteHyperParameterTuningJobRequest * @return Result of the DeleteHyperParameterTuningJob operation returned by the service. * @sample AmazonSageMaker.DeleteHyperParameterTuningJob * @see AWS API Documentation */ @Override public DeleteHyperParameterTuningJobResult deleteHyperParameterTuningJob(DeleteHyperParameterTuningJobRequest request) { request = beforeClientExecution(request); return executeDeleteHyperParameterTuningJob(request); } @SdkInternalApi final DeleteHyperParameterTuningJobResult executeDeleteHyperParameterTuningJob(DeleteHyperParameterTuningJobRequest deleteHyperParameterTuningJobRequest) { ExecutionContext executionContext = createExecutionContext(deleteHyperParameterTuningJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteHyperParameterTuningJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteHyperParameterTuningJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteHyperParameterTuningJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteHyperParameterTuningJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a SageMaker image and all versions of the image. The container images aren't deleted. *

* * @param deleteImageRequest * @return Result of the DeleteImage operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteImage * @see AWS API * Documentation */ @Override public DeleteImageResult deleteImage(DeleteImageRequest request) { request = beforeClientExecution(request); return executeDeleteImage(request); } @SdkInternalApi final DeleteImageResult executeDeleteImage(DeleteImageRequest deleteImageRequest) { ExecutionContext executionContext = createExecutionContext(deleteImageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteImageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteImageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteImage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteImageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a version of a SageMaker image. The container image the version represents isn't deleted. *

* * @param deleteImageVersionRequest * @return Result of the DeleteImageVersion operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteImageVersion * @see AWS * API Documentation */ @Override public DeleteImageVersionResult deleteImageVersion(DeleteImageVersionRequest request) { request = beforeClientExecution(request); return executeDeleteImageVersion(request); } @SdkInternalApi final DeleteImageVersionResult executeDeleteImageVersion(DeleteImageVersionRequest deleteImageVersionRequest) { ExecutionContext executionContext = createExecutionContext(deleteImageVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteImageVersionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteImageVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteImageVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteImageVersionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an inference component. *

* * @param deleteInferenceComponentRequest * @return Result of the DeleteInferenceComponent operation returned by the service. * @sample AmazonSageMaker.DeleteInferenceComponent * @see AWS API Documentation */ @Override public DeleteInferenceComponentResult deleteInferenceComponent(DeleteInferenceComponentRequest request) { request = beforeClientExecution(request); return executeDeleteInferenceComponent(request); } @SdkInternalApi final DeleteInferenceComponentResult executeDeleteInferenceComponent(DeleteInferenceComponentRequest deleteInferenceComponentRequest) { ExecutionContext executionContext = createExecutionContext(deleteInferenceComponentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteInferenceComponentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteInferenceComponentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteInferenceComponent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteInferenceComponentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an inference experiment. *

* *

* This operation does not delete your endpoint, variants, or any underlying resources. This operation only deletes * the metadata of your experiment. *

*
* * @param deleteInferenceExperimentRequest * @return Result of the DeleteInferenceExperiment operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteInferenceExperiment * @see AWS API Documentation */ @Override public DeleteInferenceExperimentResult deleteInferenceExperiment(DeleteInferenceExperimentRequest request) { request = beforeClientExecution(request); return executeDeleteInferenceExperiment(request); } @SdkInternalApi final DeleteInferenceExperimentResult executeDeleteInferenceExperiment(DeleteInferenceExperimentRequest deleteInferenceExperimentRequest) { ExecutionContext executionContext = createExecutionContext(deleteInferenceExperimentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteInferenceExperimentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteInferenceExperimentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteInferenceExperiment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteInferenceExperimentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an MLflow Tracking Server. For more information, see Clean up MLflow resources. *

* * @param deleteMlflowTrackingServerRequest * @return Result of the DeleteMlflowTrackingServer operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteMlflowTrackingServer * @see AWS API Documentation */ @Override public DeleteMlflowTrackingServerResult deleteMlflowTrackingServer(DeleteMlflowTrackingServerRequest request) { request = beforeClientExecution(request); return executeDeleteMlflowTrackingServer(request); } @SdkInternalApi final DeleteMlflowTrackingServerResult executeDeleteMlflowTrackingServer(DeleteMlflowTrackingServerRequest deleteMlflowTrackingServerRequest) { ExecutionContext executionContext = createExecutionContext(deleteMlflowTrackingServerRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteMlflowTrackingServerRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteMlflowTrackingServerRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteMlflowTrackingServer"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteMlflowTrackingServerResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a model. The DeleteModel API deletes only the model entry that was created in 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. *

* * @param deleteModelRequest * @return Result of the DeleteModel operation returned by the service. * @sample AmazonSageMaker.DeleteModel * @see AWS API * Documentation */ @Override public DeleteModelResult deleteModel(DeleteModelRequest request) { request = beforeClientExecution(request); return executeDeleteModel(request); } @SdkInternalApi final DeleteModelResult executeDeleteModel(DeleteModelRequest deleteModelRequest) { ExecutionContext executionContext = createExecutionContext(deleteModelRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteModelRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteModelRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteModel"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteModelResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an Amazon SageMaker model bias job definition. *

* * @param deleteModelBiasJobDefinitionRequest * @return Result of the DeleteModelBiasJobDefinition operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteModelBiasJobDefinition * @see AWS API Documentation */ @Override public DeleteModelBiasJobDefinitionResult deleteModelBiasJobDefinition(DeleteModelBiasJobDefinitionRequest request) { request = beforeClientExecution(request); return executeDeleteModelBiasJobDefinition(request); } @SdkInternalApi final DeleteModelBiasJobDefinitionResult executeDeleteModelBiasJobDefinition(DeleteModelBiasJobDefinitionRequest deleteModelBiasJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(deleteModelBiasJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteModelBiasJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteModelBiasJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteModelBiasJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteModelBiasJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an Amazon SageMaker Model Card. *

* * @param deleteModelCardRequest * @return Result of the DeleteModelCard operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.DeleteModelCard * @see AWS API * Documentation */ @Override public DeleteModelCardResult deleteModelCard(DeleteModelCardRequest request) { request = beforeClientExecution(request); return executeDeleteModelCard(request); } @SdkInternalApi final DeleteModelCardResult executeDeleteModelCard(DeleteModelCardRequest deleteModelCardRequest) { ExecutionContext executionContext = createExecutionContext(deleteModelCardRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteModelCardRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteModelCardRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteModelCard"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteModelCardResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an Amazon SageMaker model explainability job definition. *

* * @param deleteModelExplainabilityJobDefinitionRequest * @return Result of the DeleteModelExplainabilityJobDefinition operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteModelExplainabilityJobDefinition * @see AWS API Documentation */ @Override public DeleteModelExplainabilityJobDefinitionResult deleteModelExplainabilityJobDefinition(DeleteModelExplainabilityJobDefinitionRequest request) { request = beforeClientExecution(request); return executeDeleteModelExplainabilityJobDefinition(request); } @SdkInternalApi final DeleteModelExplainabilityJobDefinitionResult executeDeleteModelExplainabilityJobDefinition( DeleteModelExplainabilityJobDefinitionRequest deleteModelExplainabilityJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(deleteModelExplainabilityJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteModelExplainabilityJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteModelExplainabilityJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteModelExplainabilityJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteModelExplainabilityJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a model package. *

*

* A model package is used to create SageMaker models or list on Amazon Web Services Marketplace. Buyers can * subscribe to model packages listed on Amazon Web Services Marketplace to create models in SageMaker. *

* * @param deleteModelPackageRequest * @return Result of the DeleteModelPackage operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.DeleteModelPackage * @see AWS * API Documentation */ @Override public DeleteModelPackageResult deleteModelPackage(DeleteModelPackageRequest request) { request = beforeClientExecution(request); return executeDeleteModelPackage(request); } @SdkInternalApi final DeleteModelPackageResult executeDeleteModelPackage(DeleteModelPackageRequest deleteModelPackageRequest) { ExecutionContext executionContext = createExecutionContext(deleteModelPackageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteModelPackageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteModelPackageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteModelPackage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteModelPackageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes the specified model group. *

* * @param deleteModelPackageGroupRequest * @return Result of the DeleteModelPackageGroup operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.DeleteModelPackageGroup * @see AWS API Documentation */ @Override public DeleteModelPackageGroupResult deleteModelPackageGroup(DeleteModelPackageGroupRequest request) { request = beforeClientExecution(request); return executeDeleteModelPackageGroup(request); } @SdkInternalApi final DeleteModelPackageGroupResult executeDeleteModelPackageGroup(DeleteModelPackageGroupRequest deleteModelPackageGroupRequest) { ExecutionContext executionContext = createExecutionContext(deleteModelPackageGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteModelPackageGroupRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteModelPackageGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteModelPackageGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteModelPackageGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a model group resource policy. *

* * @param deleteModelPackageGroupPolicyRequest * @return Result of the DeleteModelPackageGroupPolicy operation returned by the service. * @sample AmazonSageMaker.DeleteModelPackageGroupPolicy * @see AWS API Documentation */ @Override public DeleteModelPackageGroupPolicyResult deleteModelPackageGroupPolicy(DeleteModelPackageGroupPolicyRequest request) { request = beforeClientExecution(request); return executeDeleteModelPackageGroupPolicy(request); } @SdkInternalApi final DeleteModelPackageGroupPolicyResult executeDeleteModelPackageGroupPolicy(DeleteModelPackageGroupPolicyRequest deleteModelPackageGroupPolicyRequest) { ExecutionContext executionContext = createExecutionContext(deleteModelPackageGroupPolicyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteModelPackageGroupPolicyRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteModelPackageGroupPolicyRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteModelPackageGroupPolicy"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteModelPackageGroupPolicyResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes the secified model quality monitoring job definition. *

* * @param deleteModelQualityJobDefinitionRequest * @return Result of the DeleteModelQualityJobDefinition operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteModelQualityJobDefinition * @see AWS API Documentation */ @Override public DeleteModelQualityJobDefinitionResult deleteModelQualityJobDefinition(DeleteModelQualityJobDefinitionRequest request) { request = beforeClientExecution(request); return executeDeleteModelQualityJobDefinition(request); } @SdkInternalApi final DeleteModelQualityJobDefinitionResult executeDeleteModelQualityJobDefinition( DeleteModelQualityJobDefinitionRequest deleteModelQualityJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(deleteModelQualityJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteModelQualityJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteModelQualityJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteModelQualityJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteModelQualityJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param deleteMonitoringScheduleRequest * @return Result of the DeleteMonitoringSchedule operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteMonitoringSchedule * @see AWS API Documentation */ @Override public DeleteMonitoringScheduleResult deleteMonitoringSchedule(DeleteMonitoringScheduleRequest request) { request = beforeClientExecution(request); return executeDeleteMonitoringSchedule(request); } @SdkInternalApi final DeleteMonitoringScheduleResult executeDeleteMonitoringSchedule(DeleteMonitoringScheduleRequest deleteMonitoringScheduleRequest) { ExecutionContext executionContext = createExecutionContext(deleteMonitoringScheduleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteMonitoringScheduleRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteMonitoringScheduleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteMonitoringSchedule"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteMonitoringScheduleResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an 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. SageMaker removes the ML compute instance, and * deletes the ML storage volume and the network interface associated with the notebook instance. *

*
* * @param deleteNotebookInstanceRequest * @return Result of the DeleteNotebookInstance operation returned by the service. * @sample AmazonSageMaker.DeleteNotebookInstance * @see AWS API Documentation */ @Override public DeleteNotebookInstanceResult deleteNotebookInstance(DeleteNotebookInstanceRequest request) { request = beforeClientExecution(request); return executeDeleteNotebookInstance(request); } @SdkInternalApi final DeleteNotebookInstanceResult executeDeleteNotebookInstance(DeleteNotebookInstanceRequest deleteNotebookInstanceRequest) { ExecutionContext executionContext = createExecutionContext(deleteNotebookInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteNotebookInstanceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteNotebookInstanceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteNotebookInstance"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteNotebookInstanceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a notebook instance lifecycle configuration. *

* * @param deleteNotebookInstanceLifecycleConfigRequest * @return Result of the DeleteNotebookInstanceLifecycleConfig operation returned by the service. * @sample AmazonSageMaker.DeleteNotebookInstanceLifecycleConfig * @see AWS API Documentation */ @Override public DeleteNotebookInstanceLifecycleConfigResult deleteNotebookInstanceLifecycleConfig(DeleteNotebookInstanceLifecycleConfigRequest request) { request = beforeClientExecution(request); return executeDeleteNotebookInstanceLifecycleConfig(request); } @SdkInternalApi final DeleteNotebookInstanceLifecycleConfigResult executeDeleteNotebookInstanceLifecycleConfig( DeleteNotebookInstanceLifecycleConfigRequest deleteNotebookInstanceLifecycleConfigRequest) { ExecutionContext executionContext = createExecutionContext(deleteNotebookInstanceLifecycleConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteNotebookInstanceLifecycleConfigRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteNotebookInstanceLifecycleConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteNotebookInstanceLifecycleConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteNotebookInstanceLifecycleConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an optimization job. *

* * @param deleteOptimizationJobRequest * @return Result of the DeleteOptimizationJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteOptimizationJob * @see AWS API Documentation */ @Override public DeleteOptimizationJobResult deleteOptimizationJob(DeleteOptimizationJobRequest request) { request = beforeClientExecution(request); return executeDeleteOptimizationJob(request); } @SdkInternalApi final DeleteOptimizationJobResult executeDeleteOptimizationJob(DeleteOptimizationJobRequest deleteOptimizationJobRequest) { ExecutionContext executionContext = createExecutionContext(deleteOptimizationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteOptimizationJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteOptimizationJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteOptimizationJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteOptimizationJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a pipeline if there are no running instances of the pipeline. To delete a pipeline, you must stop all * running instances of the pipeline using the StopPipelineExecution API. When you delete a pipeline, * all instances of the pipeline are deleted. *

* * @param deletePipelineRequest * @return Result of the DeletePipeline operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.DeletePipeline * @see AWS API * Documentation */ @Override public DeletePipelineResult deletePipeline(DeletePipelineRequest request) { request = beforeClientExecution(request); return executeDeletePipeline(request); } @SdkInternalApi final DeletePipelineResult executeDeletePipeline(DeletePipelineRequest deletePipelineRequest) { ExecutionContext executionContext = createExecutionContext(deletePipelineRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeletePipelineRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deletePipelineRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeletePipeline"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeletePipelineResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Delete the specified project. *

* * @param deleteProjectRequest * @return Result of the DeleteProject operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.DeleteProject * @see AWS API * Documentation */ @Override public DeleteProjectResult deleteProject(DeleteProjectRequest request) { request = beforeClientExecution(request); return executeDeleteProject(request); } @SdkInternalApi final DeleteProjectResult executeDeleteProject(DeleteProjectRequest deleteProjectRequest) { ExecutionContext executionContext = createExecutionContext(deleteProjectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteProjectRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteProjectRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteProject"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteProjectResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Used to delete a space. *

* * @param deleteSpaceRequest * @return Result of the DeleteSpace operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteSpace * @see AWS API * Documentation */ @Override public DeleteSpaceResult deleteSpace(DeleteSpaceRequest request) { request = beforeClientExecution(request); return executeDeleteSpace(request); } @SdkInternalApi final DeleteSpaceResult executeDeleteSpace(DeleteSpaceRequest deleteSpaceRequest) { ExecutionContext executionContext = createExecutionContext(deleteSpaceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteSpaceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteSpaceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteSpace"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteSpaceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes the Amazon SageMaker Studio Lifecycle Configuration. In order to delete the Lifecycle Configuration, * there must be no running apps using the Lifecycle Configuration. You must also remove the Lifecycle Configuration * from UserSettings in all Domains and UserProfiles. *

* * @param deleteStudioLifecycleConfigRequest * @return Result of the DeleteStudioLifecycleConfig operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.DeleteStudioLifecycleConfig * @see AWS API Documentation */ @Override public DeleteStudioLifecycleConfigResult deleteStudioLifecycleConfig(DeleteStudioLifecycleConfigRequest request) { request = beforeClientExecution(request); return executeDeleteStudioLifecycleConfig(request); } @SdkInternalApi final DeleteStudioLifecycleConfigResult executeDeleteStudioLifecycleConfig(DeleteStudioLifecycleConfigRequest deleteStudioLifecycleConfigRequest) { ExecutionContext executionContext = createExecutionContext(deleteStudioLifecycleConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteStudioLifecycleConfigRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteStudioLifecycleConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteStudioLifecycleConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteStudioLifecycleConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes the specified tags from an SageMaker resource. *

*

* To list a resource's tags, use the ListTags API. *

* *

* 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. *

*
*

* When you call this API to delete tags from a SageMaker Domain or User Profile, the deleted tags are not removed * from Apps that the SageMaker Domain or User Profile launched before you called this API. *

*
* * @param deleteTagsRequest * @return Result of the DeleteTags operation returned by the service. * @sample AmazonSageMaker.DeleteTags * @see AWS API * Documentation */ @Override public DeleteTagsResult deleteTags(DeleteTagsRequest request) { request = beforeClientExecution(request); return executeDeleteTags(request); } @SdkInternalApi final DeleteTagsResult executeDeleteTags(DeleteTagsRequest deleteTagsRequest) { ExecutionContext executionContext = createExecutionContext(deleteTagsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteTagsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteTagsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteTags"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteTagsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param deleteTrialRequest * @return Result of the DeleteTrial operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteTrial * @see AWS API * Documentation */ @Override public DeleteTrialResult deleteTrial(DeleteTrialRequest request) { request = beforeClientExecution(request); return executeDeleteTrial(request); } @SdkInternalApi final DeleteTrialResult executeDeleteTrial(DeleteTrialRequest deleteTrialRequest) { ExecutionContext executionContext = createExecutionContext(deleteTrialRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteTrialRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteTrialRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteTrial"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteTrialResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param deleteTrialComponentRequest * @return Result of the DeleteTrialComponent operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteTrialComponent * @see AWS * API Documentation */ @Override public DeleteTrialComponentResult deleteTrialComponent(DeleteTrialComponentRequest request) { request = beforeClientExecution(request); return executeDeleteTrialComponent(request); } @SdkInternalApi final DeleteTrialComponentResult executeDeleteTrialComponent(DeleteTrialComponentRequest deleteTrialComponentRequest) { ExecutionContext executionContext = createExecutionContext(deleteTrialComponentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteTrialComponentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteTrialComponentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteTrialComponent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteTrialComponentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes a user profile. When a user profile is deleted, the user loses access to their EFS volume, including * data, notebooks, and other artifacts. *

* * @param deleteUserProfileRequest * @return Result of the DeleteUserProfile operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DeleteUserProfile * @see AWS * API Documentation */ @Override public DeleteUserProfileResult deleteUserProfile(DeleteUserProfileRequest request) { request = beforeClientExecution(request); return executeDeleteUserProfile(request); } @SdkInternalApi final DeleteUserProfileResult executeDeleteUserProfile(DeleteUserProfileRequest deleteUserProfileRequest) { ExecutionContext executionContext = createExecutionContext(deleteUserProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteUserProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteUserProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteUserProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteUserProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use this operation to delete a workforce. *

*

* If you want to create a new workforce in an Amazon Web Services Region where a workforce already exists, use this * operation to delete the existing workforce and then use CreateWorkforce to * create a new workforce. *

* *

* If a private workforce contains one or more work teams, you must use the DeleteWorkteam * operation to delete all work teams before you delete the workforce. If you try to delete a workforce that * contains one or more work teams, you will receive a ResourceInUse error. *

*
* * @param deleteWorkforceRequest * @return Result of the DeleteWorkforce operation returned by the service. * @sample AmazonSageMaker.DeleteWorkforce * @see AWS API * Documentation */ @Override public DeleteWorkforceResult deleteWorkforce(DeleteWorkforceRequest request) { request = beforeClientExecution(request); return executeDeleteWorkforce(request); } @SdkInternalApi final DeleteWorkforceResult executeDeleteWorkforce(DeleteWorkforceRequest deleteWorkforceRequest) { ExecutionContext executionContext = createExecutionContext(deleteWorkforceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteWorkforceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteWorkforceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteWorkforce"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteWorkforceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an existing work team. This operation can't be undone. *

* * @param deleteWorkteamRequest * @return Result of the DeleteWorkteam operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.DeleteWorkteam * @see AWS API * Documentation */ @Override public DeleteWorkteamResult deleteWorkteam(DeleteWorkteamRequest request) { request = beforeClientExecution(request); return executeDeleteWorkteam(request); } @SdkInternalApi final DeleteWorkteamResult executeDeleteWorkteam(DeleteWorkteamRequest deleteWorkteamRequest) { ExecutionContext executionContext = createExecutionContext(deleteWorkteamRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteWorkteamRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteWorkteamRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteWorkteam"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteWorkteamResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deregisters the specified devices. After you deregister a device, you will need to re-register the devices. *

* * @param deregisterDevicesRequest * @return Result of the DeregisterDevices operation returned by the service. * @sample AmazonSageMaker.DeregisterDevices * @see AWS * API Documentation */ @Override public DeregisterDevicesResult deregisterDevices(DeregisterDevicesRequest request) { request = beforeClientExecution(request); return executeDeregisterDevices(request); } @SdkInternalApi final DeregisterDevicesResult executeDeregisterDevices(DeregisterDevicesRequest deregisterDevicesRequest) { ExecutionContext executionContext = createExecutionContext(deregisterDevicesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeregisterDevicesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deregisterDevicesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterDevices"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeregisterDevicesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes an action. *

* * @param describeActionRequest * @return Result of the DescribeAction operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeAction * @see AWS API * Documentation */ @Override public DescribeActionResult describeAction(DescribeActionRequest request) { request = beforeClientExecution(request); return executeDescribeAction(request); } @SdkInternalApi final DescribeActionResult executeDescribeAction(DescribeActionRequest describeActionRequest) { ExecutionContext executionContext = createExecutionContext(describeActionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeActionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeActionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeActionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a description of the specified algorithm that is in your account. *

* * @param describeAlgorithmRequest * @return Result of the DescribeAlgorithm operation returned by the service. * @sample AmazonSageMaker.DescribeAlgorithm * @see AWS * API Documentation */ @Override public DescribeAlgorithmResult describeAlgorithm(DescribeAlgorithmRequest request) { request = beforeClientExecution(request); return executeDescribeAlgorithm(request); } @SdkInternalApi final DescribeAlgorithmResult executeDescribeAlgorithm(DescribeAlgorithmRequest describeAlgorithmRequest) { ExecutionContext executionContext = createExecutionContext(describeAlgorithmRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAlgorithmRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeAlgorithmRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAlgorithm"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAlgorithmResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the app. *

* * @param describeAppRequest * @return Result of the DescribeApp operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeApp * @see AWS API * Documentation */ @Override public DescribeAppResult describeApp(DescribeAppRequest request) { request = beforeClientExecution(request); return executeDescribeApp(request); } @SdkInternalApi final DescribeAppResult executeDescribeApp(DescribeAppRequest describeAppRequest) { ExecutionContext executionContext = createExecutionContext(describeAppRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAppRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeAppRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeApp"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAppResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes an AppImageConfig. *

* * @param describeAppImageConfigRequest * @return Result of the DescribeAppImageConfig operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeAppImageConfig * @see AWS API Documentation */ @Override public DescribeAppImageConfigResult describeAppImageConfig(DescribeAppImageConfigRequest request) { request = beforeClientExecution(request); return executeDescribeAppImageConfig(request); } @SdkInternalApi final DescribeAppImageConfigResult executeDescribeAppImageConfig(DescribeAppImageConfigRequest describeAppImageConfigRequest) { ExecutionContext executionContext = createExecutionContext(describeAppImageConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAppImageConfigRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeAppImageConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAppImageConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAppImageConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes an artifact. *

* * @param describeArtifactRequest * @return Result of the DescribeArtifact operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeArtifact * @see AWS API * Documentation */ @Override public DescribeArtifactResult describeArtifact(DescribeArtifactRequest request) { request = beforeClientExecution(request); return executeDescribeArtifact(request); } @SdkInternalApi final DescribeArtifactResult executeDescribeArtifact(DescribeArtifactRequest describeArtifactRequest) { ExecutionContext executionContext = createExecutionContext(describeArtifactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeArtifactRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeArtifactRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeArtifact"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeArtifactResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about an AutoML job created by calling CreateAutoMLJob. *

* *

* AutoML jobs created by calling CreateAutoMLJobV2 * cannot be described by DescribeAutoMLJob. *

*
* * @param describeAutoMLJobRequest * @return Result of the DescribeAutoMLJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeAutoMLJob * @see AWS * API Documentation */ @Override public DescribeAutoMLJobResult describeAutoMLJob(DescribeAutoMLJobRequest request) { request = beforeClientExecution(request); return executeDescribeAutoMLJob(request); } @SdkInternalApi final DescribeAutoMLJobResult executeDescribeAutoMLJob(DescribeAutoMLJobRequest describeAutoMLJobRequest) { ExecutionContext executionContext = createExecutionContext(describeAutoMLJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAutoMLJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeAutoMLJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAutoMLJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAutoMLJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about an AutoML job created by calling CreateAutoMLJobV2 * or CreateAutoMLJob. *

* * @param describeAutoMLJobV2Request * @return Result of the DescribeAutoMLJobV2 operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeAutoMLJobV2 * @see AWS * API Documentation */ @Override public DescribeAutoMLJobV2Result describeAutoMLJobV2(DescribeAutoMLJobV2Request request) { request = beforeClientExecution(request); return executeDescribeAutoMLJobV2(request); } @SdkInternalApi final DescribeAutoMLJobV2Result executeDescribeAutoMLJobV2(DescribeAutoMLJobV2Request describeAutoMLJobV2Request) { ExecutionContext executionContext = createExecutionContext(describeAutoMLJobV2Request); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAutoMLJobV2RequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeAutoMLJobV2Request)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAutoMLJobV2"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAutoMLJobV2ResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves information of a SageMaker HyperPod cluster. *

* * @param describeClusterRequest * @return Result of the DescribeCluster operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeCluster * @see AWS API * Documentation */ @Override public DescribeClusterResult describeCluster(DescribeClusterRequest request) { request = beforeClientExecution(request); return executeDescribeCluster(request); } @SdkInternalApi final DescribeClusterResult executeDescribeCluster(DescribeClusterRequest describeClusterRequest) { ExecutionContext executionContext = createExecutionContext(describeClusterRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeClusterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeClusterRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeCluster"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeClusterResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves information of a node (also called a instance interchangeably) of a SageMaker HyperPod cluster. *

* * @param describeClusterNodeRequest * @return Result of the DescribeClusterNode operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeClusterNode * @see AWS * API Documentation */ @Override public DescribeClusterNodeResult describeClusterNode(DescribeClusterNodeRequest request) { request = beforeClientExecution(request); return executeDescribeClusterNode(request); } @SdkInternalApi final DescribeClusterNodeResult executeDescribeClusterNode(DescribeClusterNodeRequest describeClusterNodeRequest) { ExecutionContext executionContext = createExecutionContext(describeClusterNodeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeClusterNodeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeClusterNodeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeClusterNode"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeClusterNodeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets details about the specified Git repository. *

* * @param describeCodeRepositoryRequest * @return Result of the DescribeCodeRepository operation returned by the service. * @sample AmazonSageMaker.DescribeCodeRepository * @see AWS API Documentation */ @Override public DescribeCodeRepositoryResult describeCodeRepository(DescribeCodeRepositoryRequest request) { request = beforeClientExecution(request); return executeDescribeCodeRepository(request); } @SdkInternalApi final DescribeCodeRepositoryResult executeDescribeCodeRepository(DescribeCodeRepositoryRequest describeCodeRepositoryRequest) { ExecutionContext executionContext = createExecutionContext(describeCodeRepositoryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeCodeRepositoryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeCodeRepositoryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeCodeRepository"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeCodeRepositoryResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param describeCompilationJobRequest * @return Result of the DescribeCompilationJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeCompilationJob * @see AWS API Documentation */ @Override public DescribeCompilationJobResult describeCompilationJob(DescribeCompilationJobRequest request) { request = beforeClientExecution(request); return executeDescribeCompilationJob(request); } @SdkInternalApi final DescribeCompilationJobResult executeDescribeCompilationJob(DescribeCompilationJobRequest describeCompilationJobRequest) { ExecutionContext executionContext = createExecutionContext(describeCompilationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeCompilationJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeCompilationJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeCompilationJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeCompilationJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes a context. *

* * @param describeContextRequest * @return Result of the DescribeContext operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeContext * @see AWS API * Documentation */ @Override public DescribeContextResult describeContext(DescribeContextRequest request) { request = beforeClientExecution(request); return executeDescribeContext(request); } @SdkInternalApi final DescribeContextResult executeDescribeContext(DescribeContextRequest describeContextRequest) { ExecutionContext executionContext = createExecutionContext(describeContextRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeContextRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeContextRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeContext"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeContextResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the details of a data quality monitoring job definition. *

* * @param describeDataQualityJobDefinitionRequest * @return Result of the DescribeDataQualityJobDefinition operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeDataQualityJobDefinition * @see AWS API Documentation */ @Override public DescribeDataQualityJobDefinitionResult describeDataQualityJobDefinition(DescribeDataQualityJobDefinitionRequest request) { request = beforeClientExecution(request); return executeDescribeDataQualityJobDefinition(request); } @SdkInternalApi final DescribeDataQualityJobDefinitionResult executeDescribeDataQualityJobDefinition( DescribeDataQualityJobDefinitionRequest describeDataQualityJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(describeDataQualityJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDataQualityJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeDataQualityJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDataQualityJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDataQualityJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the device. *

* * @param describeDeviceRequest * @return Result of the DescribeDevice operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeDevice * @see AWS API * Documentation */ @Override public DescribeDeviceResult describeDevice(DescribeDeviceRequest request) { request = beforeClientExecution(request); return executeDescribeDevice(request); } @SdkInternalApi final DescribeDeviceResult executeDescribeDevice(DescribeDeviceRequest describeDeviceRequest) { ExecutionContext executionContext = createExecutionContext(describeDeviceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDeviceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeDeviceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDevice"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDeviceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* A description of the fleet the device belongs to. *

* * @param describeDeviceFleetRequest * @return Result of the DescribeDeviceFleet operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeDeviceFleet * @see AWS * API Documentation */ @Override public DescribeDeviceFleetResult describeDeviceFleet(DescribeDeviceFleetRequest request) { request = beforeClientExecution(request); return executeDescribeDeviceFleet(request); } @SdkInternalApi final DescribeDeviceFleetResult executeDescribeDeviceFleet(DescribeDeviceFleetRequest describeDeviceFleetRequest) { ExecutionContext executionContext = createExecutionContext(describeDeviceFleetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDeviceFleetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeDeviceFleetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDeviceFleet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDeviceFleetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* The description of the domain. *

* * @param describeDomainRequest * @return Result of the DescribeDomain operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeDomain * @see AWS API * Documentation */ @Override public DescribeDomainResult describeDomain(DescribeDomainRequest request) { request = beforeClientExecution(request); return executeDescribeDomain(request); } @SdkInternalApi final DescribeDomainResult executeDescribeDomain(DescribeDomainRequest describeDomainRequest) { ExecutionContext executionContext = createExecutionContext(describeDomainRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeDomainRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDomain"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDomainResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes an edge deployment plan with deployment status per stage. *

* * @param describeEdgeDeploymentPlanRequest * @return Result of the DescribeEdgeDeploymentPlan operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeEdgeDeploymentPlan * @see AWS API Documentation */ @Override public DescribeEdgeDeploymentPlanResult describeEdgeDeploymentPlan(DescribeEdgeDeploymentPlanRequest request) { request = beforeClientExecution(request); return executeDescribeEdgeDeploymentPlan(request); } @SdkInternalApi final DescribeEdgeDeploymentPlanResult executeDescribeEdgeDeploymentPlan(DescribeEdgeDeploymentPlanRequest describeEdgeDeploymentPlanRequest) { ExecutionContext executionContext = createExecutionContext(describeEdgeDeploymentPlanRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEdgeDeploymentPlanRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeEdgeDeploymentPlanRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEdgeDeploymentPlan"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeEdgeDeploymentPlanResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* A description of edge packaging jobs. *

* * @param describeEdgePackagingJobRequest * @return Result of the DescribeEdgePackagingJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeEdgePackagingJob * @see AWS API Documentation */ @Override public DescribeEdgePackagingJobResult describeEdgePackagingJob(DescribeEdgePackagingJobRequest request) { request = beforeClientExecution(request); return executeDescribeEdgePackagingJob(request); } @SdkInternalApi final DescribeEdgePackagingJobResult executeDescribeEdgePackagingJob(DescribeEdgePackagingJobRequest describeEdgePackagingJobRequest) { ExecutionContext executionContext = createExecutionContext(describeEdgePackagingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEdgePackagingJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeEdgePackagingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEdgePackagingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeEdgePackagingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns the description of an endpoint. *

* * @param describeEndpointRequest * @return Result of the DescribeEndpoint operation returned by the service. * @sample AmazonSageMaker.DescribeEndpoint * @see AWS API * Documentation */ @Override public DescribeEndpointResult describeEndpoint(DescribeEndpointRequest request) { request = beforeClientExecution(request); return executeDescribeEndpoint(request); } @SdkInternalApi final DescribeEndpointResult executeDescribeEndpoint(DescribeEndpointRequest describeEndpointRequest) { ExecutionContext executionContext = createExecutionContext(describeEndpointRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEndpointRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeEndpointRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEndpoint"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeEndpointResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns the description of an endpoint configuration created using the CreateEndpointConfig API. *

* * @param describeEndpointConfigRequest * @return Result of the DescribeEndpointConfig operation returned by the service. * @sample AmazonSageMaker.DescribeEndpointConfig * @see AWS API Documentation */ @Override public DescribeEndpointConfigResult describeEndpointConfig(DescribeEndpointConfigRequest request) { request = beforeClientExecution(request); return executeDescribeEndpointConfig(request); } @SdkInternalApi final DescribeEndpointConfigResult executeDescribeEndpointConfig(DescribeEndpointConfigRequest describeEndpointConfigRequest) { ExecutionContext executionContext = createExecutionContext(describeEndpointConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeEndpointConfigRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeEndpointConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEndpointConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeEndpointConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Provides a list of an experiment's properties. *

* * @param describeExperimentRequest * @return Result of the DescribeExperiment operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeExperiment * @see AWS * API Documentation */ @Override public DescribeExperimentResult describeExperiment(DescribeExperimentRequest request) { request = beforeClientExecution(request); return executeDescribeExperiment(request); } @SdkInternalApi final DescribeExperimentResult executeDescribeExperiment(DescribeExperimentRequest describeExperimentRequest) { ExecutionContext executionContext = createExecutionContext(describeExperimentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeExperimentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeExperimentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeExperiment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeExperimentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use this operation to describe a FeatureGroup. The response includes information on the creation * time, FeatureGroup name, the unique identifier for each FeatureGroup, and more. *

* * @param describeFeatureGroupRequest * @return Result of the DescribeFeatureGroup operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeFeatureGroup * @see AWS * API Documentation */ @Override public DescribeFeatureGroupResult describeFeatureGroup(DescribeFeatureGroupRequest request) { request = beforeClientExecution(request); return executeDescribeFeatureGroup(request); } @SdkInternalApi final DescribeFeatureGroupResult executeDescribeFeatureGroup(DescribeFeatureGroupRequest describeFeatureGroupRequest) { ExecutionContext executionContext = createExecutionContext(describeFeatureGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeFeatureGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeFeatureGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeFeatureGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeFeatureGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Shows the metadata for a feature within a feature group. *

* * @param describeFeatureMetadataRequest * @return Result of the DescribeFeatureMetadata operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeFeatureMetadata * @see AWS API Documentation */ @Override public DescribeFeatureMetadataResult describeFeatureMetadata(DescribeFeatureMetadataRequest request) { request = beforeClientExecution(request); return executeDescribeFeatureMetadata(request); } @SdkInternalApi final DescribeFeatureMetadataResult executeDescribeFeatureMetadata(DescribeFeatureMetadataRequest describeFeatureMetadataRequest) { ExecutionContext executionContext = createExecutionContext(describeFeatureMetadataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeFeatureMetadataRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeFeatureMetadataRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeFeatureMetadata"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeFeatureMetadataResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about the specified flow definition. *

* * @param describeFlowDefinitionRequest * @return Result of the DescribeFlowDefinition operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeFlowDefinition * @see AWS API Documentation */ @Override public DescribeFlowDefinitionResult describeFlowDefinition(DescribeFlowDefinitionRequest request) { request = beforeClientExecution(request); return executeDescribeFlowDefinition(request); } @SdkInternalApi final DescribeFlowDefinitionResult executeDescribeFlowDefinition(DescribeFlowDefinitionRequest describeFlowDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(describeFlowDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeFlowDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeFlowDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeFlowDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeFlowDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes a hub. *

* * @param describeHubRequest * @return Result of the DescribeHub operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeHub * @see AWS API * Documentation */ @Override public DescribeHubResult describeHub(DescribeHubRequest request) { request = beforeClientExecution(request); return executeDescribeHub(request); } @SdkInternalApi final DescribeHubResult executeDescribeHub(DescribeHubRequest describeHubRequest) { ExecutionContext executionContext = createExecutionContext(describeHubRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeHubRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeHubRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeHub"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeHubResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describe the content of a hub. *

* * @param describeHubContentRequest * @return Result of the DescribeHubContent operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeHubContent * @see AWS * API Documentation */ @Override public DescribeHubContentResult describeHubContent(DescribeHubContentRequest request) { request = beforeClientExecution(request); return executeDescribeHubContent(request); } @SdkInternalApi final DescribeHubContentResult executeDescribeHubContent(DescribeHubContentRequest describeHubContentRequest) { ExecutionContext executionContext = createExecutionContext(describeHubContentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeHubContentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeHubContentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeHubContent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeHubContentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about the requested human task user interface (worker task template). *

* * @param describeHumanTaskUiRequest * @return Result of the DescribeHumanTaskUi operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeHumanTaskUi * @see AWS * API Documentation */ @Override public DescribeHumanTaskUiResult describeHumanTaskUi(DescribeHumanTaskUiRequest request) { request = beforeClientExecution(request); return executeDescribeHumanTaskUi(request); } @SdkInternalApi final DescribeHumanTaskUiResult executeDescribeHumanTaskUi(DescribeHumanTaskUiRequest describeHumanTaskUiRequest) { ExecutionContext executionContext = createExecutionContext(describeHumanTaskUiRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeHumanTaskUiRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeHumanTaskUiRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeHumanTaskUi"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeHumanTaskUiResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a description of a hyperparameter tuning job, depending on the fields selected. These fields can include * the name, Amazon Resource Name (ARN), job status of your tuning job and more. *

* * @param describeHyperParameterTuningJobRequest * @return Result of the DescribeHyperParameterTuningJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeHyperParameterTuningJob * @see AWS API Documentation */ @Override public DescribeHyperParameterTuningJobResult describeHyperParameterTuningJob(DescribeHyperParameterTuningJobRequest request) { request = beforeClientExecution(request); return executeDescribeHyperParameterTuningJob(request); } @SdkInternalApi final DescribeHyperParameterTuningJobResult executeDescribeHyperParameterTuningJob( DescribeHyperParameterTuningJobRequest describeHyperParameterTuningJobRequest) { ExecutionContext executionContext = createExecutionContext(describeHyperParameterTuningJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeHyperParameterTuningJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeHyperParameterTuningJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeHyperParameterTuningJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeHyperParameterTuningJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes a SageMaker image. *

* * @param describeImageRequest * @return Result of the DescribeImage operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeImage * @see AWS API * Documentation */ @Override public DescribeImageResult describeImage(DescribeImageRequest request) { request = beforeClientExecution(request); return executeDescribeImage(request); } @SdkInternalApi final DescribeImageResult executeDescribeImage(DescribeImageRequest describeImageRequest) { ExecutionContext executionContext = createExecutionContext(describeImageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeImageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeImageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeImage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeImageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes a version of a SageMaker image. *

* * @param describeImageVersionRequest * @return Result of the DescribeImageVersion operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeImageVersion * @see AWS * API Documentation */ @Override public DescribeImageVersionResult describeImageVersion(DescribeImageVersionRequest request) { request = beforeClientExecution(request); return executeDescribeImageVersion(request); } @SdkInternalApi final DescribeImageVersionResult executeDescribeImageVersion(DescribeImageVersionRequest describeImageVersionRequest) { ExecutionContext executionContext = createExecutionContext(describeImageVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeImageVersionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeImageVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeImageVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeImageVersionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about an inference component. *

* * @param describeInferenceComponentRequest * @return Result of the DescribeInferenceComponent operation returned by the service. * @sample AmazonSageMaker.DescribeInferenceComponent * @see AWS API Documentation */ @Override public DescribeInferenceComponentResult describeInferenceComponent(DescribeInferenceComponentRequest request) { request = beforeClientExecution(request); return executeDescribeInferenceComponent(request); } @SdkInternalApi final DescribeInferenceComponentResult executeDescribeInferenceComponent(DescribeInferenceComponentRequest describeInferenceComponentRequest) { ExecutionContext executionContext = createExecutionContext(describeInferenceComponentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeInferenceComponentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeInferenceComponentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInferenceComponent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeInferenceComponentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns details about an inference experiment. *

* * @param describeInferenceExperimentRequest * @return Result of the DescribeInferenceExperiment operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeInferenceExperiment * @see AWS API Documentation */ @Override public DescribeInferenceExperimentResult describeInferenceExperiment(DescribeInferenceExperimentRequest request) { request = beforeClientExecution(request); return executeDescribeInferenceExperiment(request); } @SdkInternalApi final DescribeInferenceExperimentResult executeDescribeInferenceExperiment(DescribeInferenceExperimentRequest describeInferenceExperimentRequest) { ExecutionContext executionContext = createExecutionContext(describeInferenceExperimentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeInferenceExperimentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeInferenceExperimentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInferenceExperiment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeInferenceExperimentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Provides the results of the Inference Recommender job. One or more recommendation jobs are returned. *

* * @param describeInferenceRecommendationsJobRequest * @return Result of the DescribeInferenceRecommendationsJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeInferenceRecommendationsJob * @see AWS API Documentation */ @Override public DescribeInferenceRecommendationsJobResult describeInferenceRecommendationsJob(DescribeInferenceRecommendationsJobRequest request) { request = beforeClientExecution(request); return executeDescribeInferenceRecommendationsJob(request); } @SdkInternalApi final DescribeInferenceRecommendationsJobResult executeDescribeInferenceRecommendationsJob( DescribeInferenceRecommendationsJobRequest describeInferenceRecommendationsJobRequest) { ExecutionContext executionContext = createExecutionContext(describeInferenceRecommendationsJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeInferenceRecommendationsJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeInferenceRecommendationsJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInferenceRecommendationsJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeInferenceRecommendationsJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a labeling job. *

* * @param describeLabelingJobRequest * @return Result of the DescribeLabelingJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeLabelingJob * @see AWS * API Documentation */ @Override public DescribeLabelingJobResult describeLabelingJob(DescribeLabelingJobRequest request) { request = beforeClientExecution(request); return executeDescribeLabelingJob(request); } @SdkInternalApi final DescribeLabelingJobResult executeDescribeLabelingJob(DescribeLabelingJobRequest describeLabelingJobRequest) { ExecutionContext executionContext = createExecutionContext(describeLabelingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeLabelingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeLabelingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeLabelingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeLabelingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Provides a list of properties for the requested lineage group. For more information, see Cross-Account Lineage * Tracking in the Amazon SageMaker Developer Guide. *

* * @param describeLineageGroupRequest * @return Result of the DescribeLineageGroup operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeLineageGroup * @see AWS * API Documentation */ @Override public DescribeLineageGroupResult describeLineageGroup(DescribeLineageGroupRequest request) { request = beforeClientExecution(request); return executeDescribeLineageGroup(request); } @SdkInternalApi final DescribeLineageGroupResult executeDescribeLineageGroup(DescribeLineageGroupRequest describeLineageGroupRequest) { ExecutionContext executionContext = createExecutionContext(describeLineageGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeLineageGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeLineageGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeLineageGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeLineageGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about an MLflow Tracking Server. *

* * @param describeMlflowTrackingServerRequest * @return Result of the DescribeMlflowTrackingServer operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeMlflowTrackingServer * @see AWS API Documentation */ @Override public DescribeMlflowTrackingServerResult describeMlflowTrackingServer(DescribeMlflowTrackingServerRequest request) { request = beforeClientExecution(request); return executeDescribeMlflowTrackingServer(request); } @SdkInternalApi final DescribeMlflowTrackingServerResult executeDescribeMlflowTrackingServer(DescribeMlflowTrackingServerRequest describeMlflowTrackingServerRequest) { ExecutionContext executionContext = createExecutionContext(describeMlflowTrackingServerRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeMlflowTrackingServerRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeMlflowTrackingServerRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeMlflowTrackingServer"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeMlflowTrackingServerResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes a model that you created using the CreateModel API. *

* * @param describeModelRequest * @return Result of the DescribeModel operation returned by the service. * @sample AmazonSageMaker.DescribeModel * @see AWS API * Documentation */ @Override public DescribeModelResult describeModel(DescribeModelRequest request) { request = beforeClientExecution(request); return executeDescribeModel(request); } @SdkInternalApi final DescribeModelResult executeDescribeModel(DescribeModelRequest describeModelRequest) { ExecutionContext executionContext = createExecutionContext(describeModelRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeModelRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeModelRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeModel"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeModelResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a description of a model bias job definition. *

* * @param describeModelBiasJobDefinitionRequest * @return Result of the DescribeModelBiasJobDefinition operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeModelBiasJobDefinition * @see AWS API Documentation */ @Override public DescribeModelBiasJobDefinitionResult describeModelBiasJobDefinition(DescribeModelBiasJobDefinitionRequest request) { request = beforeClientExecution(request); return executeDescribeModelBiasJobDefinition(request); } @SdkInternalApi final DescribeModelBiasJobDefinitionResult executeDescribeModelBiasJobDefinition(DescribeModelBiasJobDefinitionRequest describeModelBiasJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(describeModelBiasJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeModelBiasJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeModelBiasJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeModelBiasJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeModelBiasJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the content, creation time, and security configuration of an Amazon SageMaker Model Card. *

* * @param describeModelCardRequest * @return Result of the DescribeModelCard operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeModelCard * @see AWS * API Documentation */ @Override public DescribeModelCardResult describeModelCard(DescribeModelCardRequest request) { request = beforeClientExecution(request); return executeDescribeModelCard(request); } @SdkInternalApi final DescribeModelCardResult executeDescribeModelCard(DescribeModelCardRequest describeModelCardRequest) { ExecutionContext executionContext = createExecutionContext(describeModelCardRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeModelCardRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeModelCardRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeModelCard"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeModelCardResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes an Amazon SageMaker Model Card export job. *

* * @param describeModelCardExportJobRequest * @return Result of the DescribeModelCardExportJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeModelCardExportJob * @see AWS API Documentation */ @Override public DescribeModelCardExportJobResult describeModelCardExportJob(DescribeModelCardExportJobRequest request) { request = beforeClientExecution(request); return executeDescribeModelCardExportJob(request); } @SdkInternalApi final DescribeModelCardExportJobResult executeDescribeModelCardExportJob(DescribeModelCardExportJobRequest describeModelCardExportJobRequest) { ExecutionContext executionContext = createExecutionContext(describeModelCardExportJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeModelCardExportJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeModelCardExportJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeModelCardExportJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeModelCardExportJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a description of a model explainability job definition. *

* * @param describeModelExplainabilityJobDefinitionRequest * @return Result of the DescribeModelExplainabilityJobDefinition operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeModelExplainabilityJobDefinition * @see AWS API Documentation */ @Override public DescribeModelExplainabilityJobDefinitionResult describeModelExplainabilityJobDefinition(DescribeModelExplainabilityJobDefinitionRequest request) { request = beforeClientExecution(request); return executeDescribeModelExplainabilityJobDefinition(request); } @SdkInternalApi final DescribeModelExplainabilityJobDefinitionResult executeDescribeModelExplainabilityJobDefinition( DescribeModelExplainabilityJobDefinitionRequest describeModelExplainabilityJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(describeModelExplainabilityJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeModelExplainabilityJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeModelExplainabilityJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeModelExplainabilityJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeModelExplainabilityJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a description of the specified model package, which is used to create SageMaker models or list them on * Amazon Web Services Marketplace. *

* *

* If you provided a KMS Key ID when you created your model package, you will see the KMS Decrypt API call in your * CloudTrail logs when you use this API. *

*
*

* To create models in SageMaker, buyers can subscribe to model packages listed on Amazon Web Services Marketplace. *

* * @param describeModelPackageRequest * @return Result of the DescribeModelPackage operation returned by the service. * @sample AmazonSageMaker.DescribeModelPackage * @see AWS * API Documentation */ @Override public DescribeModelPackageResult describeModelPackage(DescribeModelPackageRequest request) { request = beforeClientExecution(request); return executeDescribeModelPackage(request); } @SdkInternalApi final DescribeModelPackageResult executeDescribeModelPackage(DescribeModelPackageRequest describeModelPackageRequest) { ExecutionContext executionContext = createExecutionContext(describeModelPackageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeModelPackageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeModelPackageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeModelPackage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeModelPackageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a description for the specified model group. *

* * @param describeModelPackageGroupRequest * @return Result of the DescribeModelPackageGroup operation returned by the service. * @sample AmazonSageMaker.DescribeModelPackageGroup * @see AWS API Documentation */ @Override public DescribeModelPackageGroupResult describeModelPackageGroup(DescribeModelPackageGroupRequest request) { request = beforeClientExecution(request); return executeDescribeModelPackageGroup(request); } @SdkInternalApi final DescribeModelPackageGroupResult executeDescribeModelPackageGroup(DescribeModelPackageGroupRequest describeModelPackageGroupRequest) { ExecutionContext executionContext = createExecutionContext(describeModelPackageGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeModelPackageGroupRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeModelPackageGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeModelPackageGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeModelPackageGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a description of a model quality job definition. *

* * @param describeModelQualityJobDefinitionRequest * @return Result of the DescribeModelQualityJobDefinition operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeModelQualityJobDefinition * @see AWS API Documentation */ @Override public DescribeModelQualityJobDefinitionResult describeModelQualityJobDefinition(DescribeModelQualityJobDefinitionRequest request) { request = beforeClientExecution(request); return executeDescribeModelQualityJobDefinition(request); } @SdkInternalApi final DescribeModelQualityJobDefinitionResult executeDescribeModelQualityJobDefinition( DescribeModelQualityJobDefinitionRequest describeModelQualityJobDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(describeModelQualityJobDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeModelQualityJobDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeModelQualityJobDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeModelQualityJobDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeModelQualityJobDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the schedule for a monitoring job. *

* * @param describeMonitoringScheduleRequest * @return Result of the DescribeMonitoringSchedule operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeMonitoringSchedule * @see AWS API Documentation */ @Override public DescribeMonitoringScheduleResult describeMonitoringSchedule(DescribeMonitoringScheduleRequest request) { request = beforeClientExecution(request); return executeDescribeMonitoringSchedule(request); } @SdkInternalApi final DescribeMonitoringScheduleResult executeDescribeMonitoringSchedule(DescribeMonitoringScheduleRequest describeMonitoringScheduleRequest) { ExecutionContext executionContext = createExecutionContext(describeMonitoringScheduleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeMonitoringScheduleRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeMonitoringScheduleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeMonitoringSchedule"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeMonitoringScheduleResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about a notebook instance. *

* * @param describeNotebookInstanceRequest * @return Result of the DescribeNotebookInstance operation returned by the service. * @sample AmazonSageMaker.DescribeNotebookInstance * @see AWS API Documentation */ @Override public DescribeNotebookInstanceResult describeNotebookInstance(DescribeNotebookInstanceRequest request) { request = beforeClientExecution(request); return executeDescribeNotebookInstance(request); } @SdkInternalApi final DescribeNotebookInstanceResult executeDescribeNotebookInstance(DescribeNotebookInstanceRequest describeNotebookInstanceRequest) { ExecutionContext executionContext = createExecutionContext(describeNotebookInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeNotebookInstanceRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeNotebookInstanceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeNotebookInstance"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeNotebookInstanceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param describeNotebookInstanceLifecycleConfigRequest * @return Result of the DescribeNotebookInstanceLifecycleConfig operation returned by the service. * @sample AmazonSageMaker.DescribeNotebookInstanceLifecycleConfig * @see AWS API Documentation */ @Override public DescribeNotebookInstanceLifecycleConfigResult describeNotebookInstanceLifecycleConfig(DescribeNotebookInstanceLifecycleConfigRequest request) { request = beforeClientExecution(request); return executeDescribeNotebookInstanceLifecycleConfig(request); } @SdkInternalApi final DescribeNotebookInstanceLifecycleConfigResult executeDescribeNotebookInstanceLifecycleConfig( DescribeNotebookInstanceLifecycleConfigRequest describeNotebookInstanceLifecycleConfigRequest) { ExecutionContext executionContext = createExecutionContext(describeNotebookInstanceLifecycleConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeNotebookInstanceLifecycleConfigRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeNotebookInstanceLifecycleConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeNotebookInstanceLifecycleConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeNotebookInstanceLifecycleConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Provides the properties of the specified optimization job. *

* * @param describeOptimizationJobRequest * @return Result of the DescribeOptimizationJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeOptimizationJob * @see AWS API Documentation */ @Override public DescribeOptimizationJobResult describeOptimizationJob(DescribeOptimizationJobRequest request) { request = beforeClientExecution(request); return executeDescribeOptimizationJob(request); } @SdkInternalApi final DescribeOptimizationJobResult executeDescribeOptimizationJob(DescribeOptimizationJobRequest describeOptimizationJobRequest) { ExecutionContext executionContext = createExecutionContext(describeOptimizationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeOptimizationJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeOptimizationJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeOptimizationJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeOptimizationJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the details of a pipeline. *

* * @param describePipelineRequest * @return Result of the DescribePipeline operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribePipeline * @see AWS API * Documentation */ @Override public DescribePipelineResult describePipeline(DescribePipelineRequest request) { request = beforeClientExecution(request); return executeDescribePipeline(request); } @SdkInternalApi final DescribePipelineResult executeDescribePipeline(DescribePipelineRequest describePipelineRequest) { ExecutionContext executionContext = createExecutionContext(describePipelineRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribePipelineRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describePipelineRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePipeline"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribePipelineResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the details of an execution's pipeline definition. *

* * @param describePipelineDefinitionForExecutionRequest * @return Result of the DescribePipelineDefinitionForExecution operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribePipelineDefinitionForExecution * @see AWS API Documentation */ @Override public DescribePipelineDefinitionForExecutionResult describePipelineDefinitionForExecution(DescribePipelineDefinitionForExecutionRequest request) { request = beforeClientExecution(request); return executeDescribePipelineDefinitionForExecution(request); } @SdkInternalApi final DescribePipelineDefinitionForExecutionResult executeDescribePipelineDefinitionForExecution( DescribePipelineDefinitionForExecutionRequest describePipelineDefinitionForExecutionRequest) { ExecutionContext executionContext = createExecutionContext(describePipelineDefinitionForExecutionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribePipelineDefinitionForExecutionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describePipelineDefinitionForExecutionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePipelineDefinitionForExecution"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribePipelineDefinitionForExecutionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the details of a pipeline execution. *

* * @param describePipelineExecutionRequest * @return Result of the DescribePipelineExecution operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribePipelineExecution * @see AWS API Documentation */ @Override public DescribePipelineExecutionResult describePipelineExecution(DescribePipelineExecutionRequest request) { request = beforeClientExecution(request); return executeDescribePipelineExecution(request); } @SdkInternalApi final DescribePipelineExecutionResult executeDescribePipelineExecution(DescribePipelineExecutionRequest describePipelineExecutionRequest) { ExecutionContext executionContext = createExecutionContext(describePipelineExecutionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribePipelineExecutionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describePipelineExecutionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePipelineExecution"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribePipelineExecutionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a description of a processing job. *

* * @param describeProcessingJobRequest * @return Result of the DescribeProcessingJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeProcessingJob * @see AWS API Documentation */ @Override public DescribeProcessingJobResult describeProcessingJob(DescribeProcessingJobRequest request) { request = beforeClientExecution(request); return executeDescribeProcessingJob(request); } @SdkInternalApi final DescribeProcessingJobResult executeDescribeProcessingJob(DescribeProcessingJobRequest describeProcessingJobRequest) { ExecutionContext executionContext = createExecutionContext(describeProcessingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeProcessingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeProcessingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeProcessingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeProcessingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the details of a project. *

* * @param describeProjectRequest * @return Result of the DescribeProject operation returned by the service. * @sample AmazonSageMaker.DescribeProject * @see AWS API * Documentation */ @Override public DescribeProjectResult describeProject(DescribeProjectRequest request) { request = beforeClientExecution(request); return executeDescribeProject(request); } @SdkInternalApi final DescribeProjectResult executeDescribeProject(DescribeProjectRequest describeProjectRequest) { ExecutionContext executionContext = createExecutionContext(describeProjectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeProjectRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeProjectRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeProject"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeProjectResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the space. *

* * @param describeSpaceRequest * @return Result of the DescribeSpace operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeSpace * @see AWS API * Documentation */ @Override public DescribeSpaceResult describeSpace(DescribeSpaceRequest request) { request = beforeClientExecution(request); return executeDescribeSpace(request); } @SdkInternalApi final DescribeSpaceResult executeDescribeSpace(DescribeSpaceRequest describeSpaceRequest) { ExecutionContext executionContext = createExecutionContext(describeSpaceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeSpaceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeSpaceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeSpace"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeSpaceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the Amazon SageMaker Studio Lifecycle Configuration. *

* * @param describeStudioLifecycleConfigRequest * @return Result of the DescribeStudioLifecycleConfig operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeStudioLifecycleConfig * @see AWS API Documentation */ @Override public DescribeStudioLifecycleConfigResult describeStudioLifecycleConfig(DescribeStudioLifecycleConfigRequest request) { request = beforeClientExecution(request); return executeDescribeStudioLifecycleConfig(request); } @SdkInternalApi final DescribeStudioLifecycleConfigResult executeDescribeStudioLifecycleConfig(DescribeStudioLifecycleConfigRequest describeStudioLifecycleConfigRequest) { ExecutionContext executionContext = createExecutionContext(describeStudioLifecycleConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeStudioLifecycleConfigRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeStudioLifecycleConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeStudioLifecycleConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeStudioLifecycleConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a work team provided by a vendor. It returns details about the subscription with a vendor * in the Amazon Web Services Marketplace. *

* * @param describeSubscribedWorkteamRequest * @return Result of the DescribeSubscribedWorkteam operation returned by the service. * @sample AmazonSageMaker.DescribeSubscribedWorkteam * @see AWS API Documentation */ @Override public DescribeSubscribedWorkteamResult describeSubscribedWorkteam(DescribeSubscribedWorkteamRequest request) { request = beforeClientExecution(request); return executeDescribeSubscribedWorkteam(request); } @SdkInternalApi final DescribeSubscribedWorkteamResult executeDescribeSubscribedWorkteam(DescribeSubscribedWorkteamRequest describeSubscribedWorkteamRequest) { ExecutionContext executionContext = createExecutionContext(describeSubscribedWorkteamRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeSubscribedWorkteamRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeSubscribedWorkteamRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeSubscribedWorkteam"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeSubscribedWorkteamResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about a training job. *

*

* Some of the attributes below only appear if the training job successfully starts. If the training job fails, * TrainingJobStatus is Failed and, depending on the FailureReason, * attributes like TrainingStartTime, TrainingTimeInSeconds, TrainingEndTime, * and BillableTimeInSeconds may not be present in the response. *

* * @param describeTrainingJobRequest * @return Result of the DescribeTrainingJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeTrainingJob * @see AWS * API Documentation */ @Override public DescribeTrainingJobResult describeTrainingJob(DescribeTrainingJobRequest request) { request = beforeClientExecution(request); return executeDescribeTrainingJob(request); } @SdkInternalApi final DescribeTrainingJobResult executeDescribeTrainingJob(DescribeTrainingJobRequest describeTrainingJobRequest) { ExecutionContext executionContext = createExecutionContext(describeTrainingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeTrainingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeTrainingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeTrainingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeTrainingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about a transform job. *

* * @param describeTransformJobRequest * @return Result of the DescribeTransformJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeTransformJob * @see AWS * API Documentation */ @Override public DescribeTransformJobResult describeTransformJob(DescribeTransformJobRequest request) { request = beforeClientExecution(request); return executeDescribeTransformJob(request); } @SdkInternalApi final DescribeTransformJobResult executeDescribeTransformJob(DescribeTransformJobRequest describeTransformJobRequest) { ExecutionContext executionContext = createExecutionContext(describeTransformJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeTransformJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeTransformJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeTransformJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeTransformJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Provides a list of a trial's properties. *

* * @param describeTrialRequest * @return Result of the DescribeTrial operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeTrial * @see AWS API * Documentation */ @Override public DescribeTrialResult describeTrial(DescribeTrialRequest request) { request = beforeClientExecution(request); return executeDescribeTrial(request); } @SdkInternalApi final DescribeTrialResult executeDescribeTrial(DescribeTrialRequest describeTrialRequest) { ExecutionContext executionContext = createExecutionContext(describeTrialRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeTrialRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeTrialRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeTrial"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeTrialResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Provides a list of a trials component's properties. *

* * @param describeTrialComponentRequest * @return Result of the DescribeTrialComponent operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DescribeTrialComponent * @see AWS API Documentation */ @Override public DescribeTrialComponentResult describeTrialComponent(DescribeTrialComponentRequest request) { request = beforeClientExecution(request); return executeDescribeTrialComponent(request); } @SdkInternalApi final DescribeTrialComponentResult executeDescribeTrialComponent(DescribeTrialComponentRequest describeTrialComponentRequest) { ExecutionContext executionContext = createExecutionContext(describeTrialComponentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeTrialComponentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeTrialComponentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeTrialComponent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeTrialComponentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes a user profile. For more information, see CreateUserProfile. *

* * @param describeUserProfileRequest * @return Result of the DescribeUserProfile operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.DescribeUserProfile * @see AWS * API Documentation */ @Override public DescribeUserProfileResult describeUserProfile(DescribeUserProfileRequest request) { request = beforeClientExecution(request); return executeDescribeUserProfile(request); } @SdkInternalApi final DescribeUserProfileResult executeDescribeUserProfile(DescribeUserProfileRequest describeUserProfileRequest) { ExecutionContext executionContext = createExecutionContext(describeUserProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeUserProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeUserProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeUserProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeUserProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists private workforce information, including workforce name, Amazon Resource Name (ARN), and, if applicable, * allowed IP address ranges (CIDRs). Allowable IP address ranges * are the IP addresses that workers can use to access tasks. *

* *

* This operation applies only to private workforces. *

*
* * @param describeWorkforceRequest * @return Result of the DescribeWorkforce operation returned by the service. * @sample AmazonSageMaker.DescribeWorkforce * @see AWS * API Documentation */ @Override public DescribeWorkforceResult describeWorkforce(DescribeWorkforceRequest request) { request = beforeClientExecution(request); return executeDescribeWorkforce(request); } @SdkInternalApi final DescribeWorkforceResult executeDescribeWorkforce(DescribeWorkforceRequest describeWorkforceRequest) { ExecutionContext executionContext = createExecutionContext(describeWorkforceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeWorkforceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeWorkforceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeWorkforce"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeWorkforceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets information about a specific work team. You can see information such as the creation date, the last updated * date, membership information, and the work team's Amazon Resource Name (ARN). *

* * @param describeWorkteamRequest * @return Result of the DescribeWorkteam operation returned by the service. * @sample AmazonSageMaker.DescribeWorkteam * @see AWS API * Documentation */ @Override public DescribeWorkteamResult describeWorkteam(DescribeWorkteamRequest request) { request = beforeClientExecution(request); return executeDescribeWorkteam(request); } @SdkInternalApi final DescribeWorkteamResult executeDescribeWorkteam(DescribeWorkteamRequest describeWorkteamRequest) { ExecutionContext executionContext = createExecutionContext(describeWorkteamRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeWorkteamRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeWorkteamRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeWorkteam"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeWorkteamResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Disables using Service Catalog in SageMaker. Service Catalog is used to create SageMaker projects. *

* * @param disableSagemakerServicecatalogPortfolioRequest * @return Result of the DisableSagemakerServicecatalogPortfolio operation returned by the service. * @sample AmazonSageMaker.DisableSagemakerServicecatalogPortfolio * @see AWS API Documentation */ @Override public DisableSagemakerServicecatalogPortfolioResult disableSagemakerServicecatalogPortfolio(DisableSagemakerServicecatalogPortfolioRequest request) { request = beforeClientExecution(request); return executeDisableSagemakerServicecatalogPortfolio(request); } @SdkInternalApi final DisableSagemakerServicecatalogPortfolioResult executeDisableSagemakerServicecatalogPortfolio( DisableSagemakerServicecatalogPortfolioRequest disableSagemakerServicecatalogPortfolioRequest) { ExecutionContext executionContext = createExecutionContext(disableSagemakerServicecatalogPortfolioRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisableSagemakerServicecatalogPortfolioRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(disableSagemakerServicecatalogPortfolioRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisableSagemakerServicecatalogPortfolio"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DisableSagemakerServicecatalogPortfolioResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

*

* To get a list of the trials a component is associated with, use the Search API. Specify * ExperimentTrialComponent for the Resource parameter. The list appears in the response * under Results.TrialComponent.Parents. *

* * @param disassociateTrialComponentRequest * @return Result of the DisassociateTrialComponent operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.DisassociateTrialComponent * @see AWS API Documentation */ @Override public DisassociateTrialComponentResult disassociateTrialComponent(DisassociateTrialComponentRequest request) { request = beforeClientExecution(request); return executeDisassociateTrialComponent(request); } @SdkInternalApi final DisassociateTrialComponentResult executeDisassociateTrialComponent(DisassociateTrialComponentRequest disassociateTrialComponentRequest) { ExecutionContext executionContext = createExecutionContext(disassociateTrialComponentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DisassociateTrialComponentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(disassociateTrialComponentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateTrialComponent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DisassociateTrialComponentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Enables using Service Catalog in SageMaker. Service Catalog is used to create SageMaker projects. *

* * @param enableSagemakerServicecatalogPortfolioRequest * @return Result of the EnableSagemakerServicecatalogPortfolio operation returned by the service. * @sample AmazonSageMaker.EnableSagemakerServicecatalogPortfolio * @see AWS API Documentation */ @Override public EnableSagemakerServicecatalogPortfolioResult enableSagemakerServicecatalogPortfolio(EnableSagemakerServicecatalogPortfolioRequest request) { request = beforeClientExecution(request); return executeEnableSagemakerServicecatalogPortfolio(request); } @SdkInternalApi final EnableSagemakerServicecatalogPortfolioResult executeEnableSagemakerServicecatalogPortfolio( EnableSagemakerServicecatalogPortfolioRequest enableSagemakerServicecatalogPortfolioRequest) { ExecutionContext executionContext = createExecutionContext(enableSagemakerServicecatalogPortfolioRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new EnableSagemakerServicecatalogPortfolioRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(enableSagemakerServicecatalogPortfolioRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "EnableSagemakerServicecatalogPortfolio"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new EnableSagemakerServicecatalogPortfolioResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes a fleet. *

* * @param getDeviceFleetReportRequest * @return Result of the GetDeviceFleetReport operation returned by the service. * @sample AmazonSageMaker.GetDeviceFleetReport * @see AWS * API Documentation */ @Override public GetDeviceFleetReportResult getDeviceFleetReport(GetDeviceFleetReportRequest request) { request = beforeClientExecution(request); return executeGetDeviceFleetReport(request); } @SdkInternalApi final GetDeviceFleetReportResult executeGetDeviceFleetReport(GetDeviceFleetReportRequest getDeviceFleetReportRequest) { ExecutionContext executionContext = createExecutionContext(getDeviceFleetReportRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetDeviceFleetReportRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getDeviceFleetReportRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDeviceFleetReport"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetDeviceFleetReportResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* The resource policy for the lineage group. *

* * @param getLineageGroupPolicyRequest * @return Result of the GetLineageGroupPolicy operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.GetLineageGroupPolicy * @see AWS API Documentation */ @Override public GetLineageGroupPolicyResult getLineageGroupPolicy(GetLineageGroupPolicyRequest request) { request = beforeClientExecution(request); return executeGetLineageGroupPolicy(request); } @SdkInternalApi final GetLineageGroupPolicyResult executeGetLineageGroupPolicy(GetLineageGroupPolicyRequest getLineageGroupPolicyRequest) { ExecutionContext executionContext = createExecutionContext(getLineageGroupPolicyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetLineageGroupPolicyRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getLineageGroupPolicyRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetLineageGroupPolicy"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetLineageGroupPolicyResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a resource policy that manages access for a model group. For information about resource policies, see Identity-based * policies and resource-based policies in the Amazon Web Services Identity and Access Management User * Guide.. *

* * @param getModelPackageGroupPolicyRequest * @return Result of the GetModelPackageGroupPolicy operation returned by the service. * @sample AmazonSageMaker.GetModelPackageGroupPolicy * @see AWS API Documentation */ @Override public GetModelPackageGroupPolicyResult getModelPackageGroupPolicy(GetModelPackageGroupPolicyRequest request) { request = beforeClientExecution(request); return executeGetModelPackageGroupPolicy(request); } @SdkInternalApi final GetModelPackageGroupPolicyResult executeGetModelPackageGroupPolicy(GetModelPackageGroupPolicyRequest getModelPackageGroupPolicyRequest) { ExecutionContext executionContext = createExecutionContext(getModelPackageGroupPolicyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetModelPackageGroupPolicyRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(getModelPackageGroupPolicyRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetModelPackageGroupPolicy"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetModelPackageGroupPolicyResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the status of Service Catalog in SageMaker. Service Catalog is used to create SageMaker projects. *

* * @param getSagemakerServicecatalogPortfolioStatusRequest * @return Result of the GetSagemakerServicecatalogPortfolioStatus operation returned by the service. * @sample AmazonSageMaker.GetSagemakerServicecatalogPortfolioStatus * @see AWS API Documentation */ @Override public GetSagemakerServicecatalogPortfolioStatusResult getSagemakerServicecatalogPortfolioStatus(GetSagemakerServicecatalogPortfolioStatusRequest request) { request = beforeClientExecution(request); return executeGetSagemakerServicecatalogPortfolioStatus(request); } @SdkInternalApi final GetSagemakerServicecatalogPortfolioStatusResult executeGetSagemakerServicecatalogPortfolioStatus( GetSagemakerServicecatalogPortfolioStatusRequest getSagemakerServicecatalogPortfolioStatusRequest) { ExecutionContext executionContext = createExecutionContext(getSagemakerServicecatalogPortfolioStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetSagemakerServicecatalogPortfolioStatusRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(getSagemakerServicecatalogPortfolioStatusRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSagemakerServicecatalogPortfolioStatus"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetSagemakerServicecatalogPortfolioStatusResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts an Amazon SageMaker Inference Recommender autoscaling recommendation job. Returns recommendations for * autoscaling policies that you can apply to your SageMaker endpoint. *

* * @param getScalingConfigurationRecommendationRequest * @return Result of the GetScalingConfigurationRecommendation operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.GetScalingConfigurationRecommendation * @see AWS API Documentation */ @Override public GetScalingConfigurationRecommendationResult getScalingConfigurationRecommendation(GetScalingConfigurationRecommendationRequest request) { request = beforeClientExecution(request); return executeGetScalingConfigurationRecommendation(request); } @SdkInternalApi final GetScalingConfigurationRecommendationResult executeGetScalingConfigurationRecommendation( GetScalingConfigurationRecommendationRequest getScalingConfigurationRecommendationRequest) { ExecutionContext executionContext = createExecutionContext(getScalingConfigurationRecommendationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetScalingConfigurationRecommendationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(getScalingConfigurationRecommendationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetScalingConfigurationRecommendation"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetScalingConfigurationRecommendationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* An auto-complete API for the search functionality in the SageMaker console. It returns suggestions of possible * matches for the property name to use in Search queries. Provides suggestions for * HyperParameters, Tags, and Metrics. *

* * @param getSearchSuggestionsRequest * @return Result of the GetSearchSuggestions operation returned by the service. * @sample AmazonSageMaker.GetSearchSuggestions * @see AWS * API Documentation */ @Override public GetSearchSuggestionsResult getSearchSuggestions(GetSearchSuggestionsRequest request) { request = beforeClientExecution(request); return executeGetSearchSuggestions(request); } @SdkInternalApi final GetSearchSuggestionsResult executeGetSearchSuggestions(GetSearchSuggestionsRequest getSearchSuggestionsRequest) { ExecutionContext executionContext = createExecutionContext(getSearchSuggestionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetSearchSuggestionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getSearchSuggestionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSearchSuggestions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetSearchSuggestionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Import hub content. *

* * @param importHubContentRequest * @return Result of the ImportHubContent operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ImportHubContent * @see AWS API * Documentation */ @Override public ImportHubContentResult importHubContent(ImportHubContentRequest request) { request = beforeClientExecution(request); return executeImportHubContent(request); } @SdkInternalApi final ImportHubContentResult executeImportHubContent(ImportHubContentRequest importHubContentRequest) { ExecutionContext executionContext = createExecutionContext(importHubContentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ImportHubContentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(importHubContentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ImportHubContent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ImportHubContentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the actions in your account and their properties. *

* * @param listActionsRequest * @return Result of the ListActions operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListActions * @see AWS API * Documentation */ @Override public ListActionsResult listActions(ListActionsRequest request) { request = beforeClientExecution(request); return executeListActions(request); } @SdkInternalApi final ListActionsResult executeListActions(ListActionsRequest listActionsRequest) { ExecutionContext executionContext = createExecutionContext(listActionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListActionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listActionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListActions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListActionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the machine learning algorithms that have been created. *

* * @param listAlgorithmsRequest * @return Result of the ListAlgorithms operation returned by the service. * @sample AmazonSageMaker.ListAlgorithms * @see AWS API * Documentation */ @Override public ListAlgorithmsResult listAlgorithms(ListAlgorithmsRequest request) { request = beforeClientExecution(request); return executeListAlgorithms(request); } @SdkInternalApi final ListAlgorithmsResult executeListAlgorithms(ListAlgorithmsRequest listAlgorithmsRequest) { ExecutionContext executionContext = createExecutionContext(listAlgorithmsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAlgorithmsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAlgorithmsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAlgorithms"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAlgorithmsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the aliases of a specified image or image version. *

* * @param listAliasesRequest * @return Result of the ListAliases operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListAliases * @see AWS API * Documentation */ @Override public ListAliasesResult listAliases(ListAliasesRequest request) { request = beforeClientExecution(request); return executeListAliases(request); } @SdkInternalApi final ListAliasesResult executeListAliases(ListAliasesRequest listAliasesRequest) { ExecutionContext executionContext = createExecutionContext(listAliasesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAliasesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAliasesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAliases"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAliasesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the AppImageConfigs in your account and their properties. The list can be filtered by creation time or * modified time, and whether the AppImageConfig name contains a specified string. *

* * @param listAppImageConfigsRequest * @return Result of the ListAppImageConfigs operation returned by the service. * @sample AmazonSageMaker.ListAppImageConfigs * @see AWS * API Documentation */ @Override public ListAppImageConfigsResult listAppImageConfigs(ListAppImageConfigsRequest request) { request = beforeClientExecution(request); return executeListAppImageConfigs(request); } @SdkInternalApi final ListAppImageConfigsResult executeListAppImageConfigs(ListAppImageConfigsRequest listAppImageConfigsRequest) { ExecutionContext executionContext = createExecutionContext(listAppImageConfigsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAppImageConfigsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAppImageConfigsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAppImageConfigs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAppImageConfigsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists apps. *

* * @param listAppsRequest * @return Result of the ListApps operation returned by the service. * @sample AmazonSageMaker.ListApps * @see AWS API * Documentation */ @Override public ListAppsResult listApps(ListAppsRequest request) { request = beforeClientExecution(request); return executeListApps(request); } @SdkInternalApi final ListAppsResult executeListApps(ListAppsRequest listAppsRequest) { ExecutionContext executionContext = createExecutionContext(listAppsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAppsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAppsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListApps"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAppsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the artifacts in your account and their properties. *

* * @param listArtifactsRequest * @return Result of the ListArtifacts operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListArtifacts * @see AWS API * Documentation */ @Override public ListArtifactsResult listArtifacts(ListArtifactsRequest request) { request = beforeClientExecution(request); return executeListArtifacts(request); } @SdkInternalApi final ListArtifactsResult executeListArtifacts(ListArtifactsRequest listArtifactsRequest) { ExecutionContext executionContext = createExecutionContext(listArtifactsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListArtifactsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listArtifactsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListArtifacts"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListArtifactsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the associations in your account and their properties. *

* * @param listAssociationsRequest * @return Result of the ListAssociations operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListAssociations * @see AWS API * Documentation */ @Override public ListAssociationsResult listAssociations(ListAssociationsRequest request) { request = beforeClientExecution(request); return executeListAssociations(request); } @SdkInternalApi final ListAssociationsResult executeListAssociations(ListAssociationsRequest listAssociationsRequest) { ExecutionContext executionContext = createExecutionContext(listAssociationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAssociationsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAssociationsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAssociations"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAssociationsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Request a list of jobs. *

* * @param listAutoMLJobsRequest * @return Result of the ListAutoMLJobs operation returned by the service. * @sample AmazonSageMaker.ListAutoMLJobs * @see AWS API * Documentation */ @Override public ListAutoMLJobsResult listAutoMLJobs(ListAutoMLJobsRequest request) { request = beforeClientExecution(request); return executeListAutoMLJobs(request); } @SdkInternalApi final ListAutoMLJobsResult executeListAutoMLJobs(ListAutoMLJobsRequest listAutoMLJobsRequest) { ExecutionContext executionContext = createExecutionContext(listAutoMLJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAutoMLJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAutoMLJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAutoMLJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAutoMLJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* List the candidates created for the job. *

* * @param listCandidatesForAutoMLJobRequest * @return Result of the ListCandidatesForAutoMLJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListCandidatesForAutoMLJob * @see AWS API Documentation */ @Override public ListCandidatesForAutoMLJobResult listCandidatesForAutoMLJob(ListCandidatesForAutoMLJobRequest request) { request = beforeClientExecution(request); return executeListCandidatesForAutoMLJob(request); } @SdkInternalApi final ListCandidatesForAutoMLJobResult executeListCandidatesForAutoMLJob(ListCandidatesForAutoMLJobRequest listCandidatesForAutoMLJobRequest) { ExecutionContext executionContext = createExecutionContext(listCandidatesForAutoMLJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListCandidatesForAutoMLJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listCandidatesForAutoMLJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListCandidatesForAutoMLJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListCandidatesForAutoMLJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the list of instances (also called nodes interchangeably) in a SageMaker HyperPod cluster. *

* * @param listClusterNodesRequest * @return Result of the ListClusterNodes operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListClusterNodes * @see AWS API * Documentation */ @Override public ListClusterNodesResult listClusterNodes(ListClusterNodesRequest request) { request = beforeClientExecution(request); return executeListClusterNodes(request); } @SdkInternalApi final ListClusterNodesResult executeListClusterNodes(ListClusterNodesRequest listClusterNodesRequest) { ExecutionContext executionContext = createExecutionContext(listClusterNodesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListClusterNodesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listClusterNodesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListClusterNodes"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListClusterNodesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retrieves the list of SageMaker HyperPod clusters. *

* * @param listClustersRequest * @return Result of the ListClusters operation returned by the service. * @sample AmazonSageMaker.ListClusters * @see AWS API * Documentation */ @Override public ListClustersResult listClusters(ListClustersRequest request) { request = beforeClientExecution(request); return executeListClusters(request); } @SdkInternalApi final ListClustersResult executeListClusters(ListClustersRequest listClustersRequest) { ExecutionContext executionContext = createExecutionContext(listClustersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListClustersRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listClustersRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListClusters"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListClustersResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of the Git repositories in your account. *

* * @param listCodeRepositoriesRequest * @return Result of the ListCodeRepositories operation returned by the service. * @sample AmazonSageMaker.ListCodeRepositories * @see AWS * API Documentation */ @Override public ListCodeRepositoriesResult listCodeRepositories(ListCodeRepositoriesRequest request) { request = beforeClientExecution(request); return executeListCodeRepositories(request); } @SdkInternalApi final ListCodeRepositoriesResult executeListCodeRepositories(ListCodeRepositoriesRequest listCodeRepositoriesRequest) { ExecutionContext executionContext = createExecutionContext(listCodeRepositoriesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListCodeRepositoriesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listCodeRepositoriesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListCodeRepositories"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListCodeRepositoriesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param listCompilationJobsRequest * @return Result of the ListCompilationJobs operation returned by the service. * @sample AmazonSageMaker.ListCompilationJobs * @see AWS * API Documentation */ @Override public ListCompilationJobsResult listCompilationJobs(ListCompilationJobsRequest request) { request = beforeClientExecution(request); return executeListCompilationJobs(request); } @SdkInternalApi final ListCompilationJobsResult executeListCompilationJobs(ListCompilationJobsRequest listCompilationJobsRequest) { ExecutionContext executionContext = createExecutionContext(listCompilationJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListCompilationJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listCompilationJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListCompilationJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListCompilationJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the contexts in your account and their properties. *

* * @param listContextsRequest * @return Result of the ListContexts operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListContexts * @see AWS API * Documentation */ @Override public ListContextsResult listContexts(ListContextsRequest request) { request = beforeClientExecution(request); return executeListContexts(request); } @SdkInternalApi final ListContextsResult executeListContexts(ListContextsRequest listContextsRequest) { ExecutionContext executionContext = createExecutionContext(listContextsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListContextsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listContextsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListContexts"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListContextsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the data quality job definitions in your account. *

* * @param listDataQualityJobDefinitionsRequest * @return Result of the ListDataQualityJobDefinitions operation returned by the service. * @sample AmazonSageMaker.ListDataQualityJobDefinitions * @see AWS API Documentation */ @Override public ListDataQualityJobDefinitionsResult listDataQualityJobDefinitions(ListDataQualityJobDefinitionsRequest request) { request = beforeClientExecution(request); return executeListDataQualityJobDefinitions(request); } @SdkInternalApi final ListDataQualityJobDefinitionsResult executeListDataQualityJobDefinitions(ListDataQualityJobDefinitionsRequest listDataQualityJobDefinitionsRequest) { ExecutionContext executionContext = createExecutionContext(listDataQualityJobDefinitionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDataQualityJobDefinitionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listDataQualityJobDefinitionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDataQualityJobDefinitions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDataQualityJobDefinitionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a list of devices in the fleet. *

* * @param listDeviceFleetsRequest * @return Result of the ListDeviceFleets operation returned by the service. * @sample AmazonSageMaker.ListDeviceFleets * @see AWS API * Documentation */ @Override public ListDeviceFleetsResult listDeviceFleets(ListDeviceFleetsRequest request) { request = beforeClientExecution(request); return executeListDeviceFleets(request); } @SdkInternalApi final ListDeviceFleetsResult executeListDeviceFleets(ListDeviceFleetsRequest listDeviceFleetsRequest) { ExecutionContext executionContext = createExecutionContext(listDeviceFleetsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDeviceFleetsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDeviceFleetsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDeviceFleets"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDeviceFleetsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* A list of devices. *

* * @param listDevicesRequest * @return Result of the ListDevices operation returned by the service. * @sample AmazonSageMaker.ListDevices * @see AWS API * Documentation */ @Override public ListDevicesResult listDevices(ListDevicesRequest request) { request = beforeClientExecution(request); return executeListDevices(request); } @SdkInternalApi final ListDevicesResult executeListDevices(ListDevicesRequest listDevicesRequest) { ExecutionContext executionContext = createExecutionContext(listDevicesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDevicesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDevicesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDevices"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDevicesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the domains. *

* * @param listDomainsRequest * @return Result of the ListDomains operation returned by the service. * @sample AmazonSageMaker.ListDomains * @see AWS API * Documentation */ @Override public ListDomainsResult listDomains(ListDomainsRequest request) { request = beforeClientExecution(request); return executeListDomains(request); } @SdkInternalApi final ListDomainsResult executeListDomains(ListDomainsRequest listDomainsRequest) { ExecutionContext executionContext = createExecutionContext(listDomainsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDomainsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDomainsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDomains"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDomainsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all edge deployment plans. *

* * @param listEdgeDeploymentPlansRequest * @return Result of the ListEdgeDeploymentPlans operation returned by the service. * @sample AmazonSageMaker.ListEdgeDeploymentPlans * @see AWS API Documentation */ @Override public ListEdgeDeploymentPlansResult listEdgeDeploymentPlans(ListEdgeDeploymentPlansRequest request) { request = beforeClientExecution(request); return executeListEdgeDeploymentPlans(request); } @SdkInternalApi final ListEdgeDeploymentPlansResult executeListEdgeDeploymentPlans(ListEdgeDeploymentPlansRequest listEdgeDeploymentPlansRequest) { ExecutionContext executionContext = createExecutionContext(listEdgeDeploymentPlansRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEdgeDeploymentPlansRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listEdgeDeploymentPlansRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListEdgeDeploymentPlans"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListEdgeDeploymentPlansResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a list of edge packaging jobs. *

* * @param listEdgePackagingJobsRequest * @return Result of the ListEdgePackagingJobs operation returned by the service. * @sample AmazonSageMaker.ListEdgePackagingJobs * @see AWS API Documentation */ @Override public ListEdgePackagingJobsResult listEdgePackagingJobs(ListEdgePackagingJobsRequest request) { request = beforeClientExecution(request); return executeListEdgePackagingJobs(request); } @SdkInternalApi final ListEdgePackagingJobsResult executeListEdgePackagingJobs(ListEdgePackagingJobsRequest listEdgePackagingJobsRequest) { ExecutionContext executionContext = createExecutionContext(listEdgePackagingJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEdgePackagingJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listEdgePackagingJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListEdgePackagingJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListEdgePackagingJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists endpoint configurations. *

* * @param listEndpointConfigsRequest * @return Result of the ListEndpointConfigs operation returned by the service. * @sample AmazonSageMaker.ListEndpointConfigs * @see AWS * API Documentation */ @Override public ListEndpointConfigsResult listEndpointConfigs(ListEndpointConfigsRequest request) { request = beforeClientExecution(request); return executeListEndpointConfigs(request); } @SdkInternalApi final ListEndpointConfigsResult executeListEndpointConfigs(ListEndpointConfigsRequest listEndpointConfigsRequest) { ExecutionContext executionContext = createExecutionContext(listEndpointConfigsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEndpointConfigsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listEndpointConfigsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListEndpointConfigs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListEndpointConfigsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists endpoints. *

* * @param listEndpointsRequest * @return Result of the ListEndpoints operation returned by the service. * @sample AmazonSageMaker.ListEndpoints * @see AWS API * Documentation */ @Override public ListEndpointsResult listEndpoints(ListEndpointsRequest request) { request = beforeClientExecution(request); return executeListEndpoints(request); } @SdkInternalApi final ListEndpointsResult executeListEndpoints(ListEndpointsRequest listEndpointsRequest) { ExecutionContext executionContext = createExecutionContext(listEndpointsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListEndpointsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listEndpointsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListEndpoints"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListEndpointsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param listExperimentsRequest * @return Result of the ListExperiments operation returned by the service. * @sample AmazonSageMaker.ListExperiments * @see AWS API * Documentation */ @Override public ListExperimentsResult listExperiments(ListExperimentsRequest request) { request = beforeClientExecution(request); return executeListExperiments(request); } @SdkInternalApi final ListExperimentsResult executeListExperiments(ListExperimentsRequest listExperimentsRequest) { ExecutionContext executionContext = createExecutionContext(listExperimentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListExperimentsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listExperimentsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListExperiments"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListExperimentsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* List FeatureGroups based on given filter and order. *

* * @param listFeatureGroupsRequest * @return Result of the ListFeatureGroups operation returned by the service. * @sample AmazonSageMaker.ListFeatureGroups * @see AWS * API Documentation */ @Override public ListFeatureGroupsResult listFeatureGroups(ListFeatureGroupsRequest request) { request = beforeClientExecution(request); return executeListFeatureGroups(request); } @SdkInternalApi final ListFeatureGroupsResult executeListFeatureGroups(ListFeatureGroupsRequest listFeatureGroupsRequest) { ExecutionContext executionContext = createExecutionContext(listFeatureGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListFeatureGroupsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listFeatureGroupsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListFeatureGroups"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListFeatureGroupsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about the flow definitions in your account. *

* * @param listFlowDefinitionsRequest * @return Result of the ListFlowDefinitions operation returned by the service. * @sample AmazonSageMaker.ListFlowDefinitions * @see AWS * API Documentation */ @Override public ListFlowDefinitionsResult listFlowDefinitions(ListFlowDefinitionsRequest request) { request = beforeClientExecution(request); return executeListFlowDefinitions(request); } @SdkInternalApi final ListFlowDefinitionsResult executeListFlowDefinitions(ListFlowDefinitionsRequest listFlowDefinitionsRequest) { ExecutionContext executionContext = createExecutionContext(listFlowDefinitionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListFlowDefinitionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listFlowDefinitionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListFlowDefinitions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListFlowDefinitionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* List hub content versions. *

* * @param listHubContentVersionsRequest * @return Result of the ListHubContentVersions operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListHubContentVersions * @see AWS API Documentation */ @Override public ListHubContentVersionsResult listHubContentVersions(ListHubContentVersionsRequest request) { request = beforeClientExecution(request); return executeListHubContentVersions(request); } @SdkInternalApi final ListHubContentVersionsResult executeListHubContentVersions(ListHubContentVersionsRequest listHubContentVersionsRequest) { ExecutionContext executionContext = createExecutionContext(listHubContentVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListHubContentVersionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listHubContentVersionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListHubContentVersions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListHubContentVersionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* List the contents of a hub. *

* * @param listHubContentsRequest * @return Result of the ListHubContents operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListHubContents * @see AWS API * Documentation */ @Override public ListHubContentsResult listHubContents(ListHubContentsRequest request) { request = beforeClientExecution(request); return executeListHubContents(request); } @SdkInternalApi final ListHubContentsResult executeListHubContents(ListHubContentsRequest listHubContentsRequest) { ExecutionContext executionContext = createExecutionContext(listHubContentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListHubContentsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listHubContentsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListHubContents"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListHubContentsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* List all existing hubs. *

* * @param listHubsRequest * @return Result of the ListHubs operation returned by the service. * @sample AmazonSageMaker.ListHubs * @see AWS API * Documentation */ @Override public ListHubsResult listHubs(ListHubsRequest request) { request = beforeClientExecution(request); return executeListHubs(request); } @SdkInternalApi final ListHubsResult executeListHubs(ListHubsRequest listHubsRequest) { ExecutionContext executionContext = createExecutionContext(listHubsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListHubsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listHubsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListHubs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListHubsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns information about the human task user interfaces in your account. *

* * @param listHumanTaskUisRequest * @return Result of the ListHumanTaskUis operation returned by the service. * @sample AmazonSageMaker.ListHumanTaskUis * @see AWS API * Documentation */ @Override public ListHumanTaskUisResult listHumanTaskUis(ListHumanTaskUisRequest request) { request = beforeClientExecution(request); return executeListHumanTaskUis(request); } @SdkInternalApi final ListHumanTaskUisResult executeListHumanTaskUis(ListHumanTaskUisRequest listHumanTaskUisRequest) { ExecutionContext executionContext = createExecutionContext(listHumanTaskUisRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListHumanTaskUisRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listHumanTaskUisRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListHumanTaskUis"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListHumanTaskUisResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of HyperParameterTuningJobSummary objects that describe the hyperparameter tuning jobs launched in your * account. *

* * @param listHyperParameterTuningJobsRequest * @return Result of the ListHyperParameterTuningJobs operation returned by the service. * @sample AmazonSageMaker.ListHyperParameterTuningJobs * @see AWS API Documentation */ @Override public ListHyperParameterTuningJobsResult listHyperParameterTuningJobs(ListHyperParameterTuningJobsRequest request) { request = beforeClientExecution(request); return executeListHyperParameterTuningJobs(request); } @SdkInternalApi final ListHyperParameterTuningJobsResult executeListHyperParameterTuningJobs(ListHyperParameterTuningJobsRequest listHyperParameterTuningJobsRequest) { ExecutionContext executionContext = createExecutionContext(listHyperParameterTuningJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListHyperParameterTuningJobsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listHyperParameterTuningJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListHyperParameterTuningJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListHyperParameterTuningJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the versions of a specified image and their properties. The list can be filtered by creation time or * modified time. *

* * @param listImageVersionsRequest * @return Result of the ListImageVersions operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListImageVersions * @see AWS * API Documentation */ @Override public ListImageVersionsResult listImageVersions(ListImageVersionsRequest request) { request = beforeClientExecution(request); return executeListImageVersions(request); } @SdkInternalApi final ListImageVersionsResult executeListImageVersions(ListImageVersionsRequest listImageVersionsRequest) { ExecutionContext executionContext = createExecutionContext(listImageVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListImageVersionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listImageVersionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListImageVersions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListImageVersionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the images in your account and their properties. The list can be filtered by creation time or modified * time, and whether the image name contains a specified string. *

* * @param listImagesRequest * @return Result of the ListImages operation returned by the service. * @sample AmazonSageMaker.ListImages * @see AWS API * Documentation */ @Override public ListImagesResult listImages(ListImagesRequest request) { request = beforeClientExecution(request); return executeListImages(request); } @SdkInternalApi final ListImagesResult executeListImages(ListImagesRequest listImagesRequest) { ExecutionContext executionContext = createExecutionContext(listImagesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListImagesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listImagesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListImages"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListImagesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the inference components in your account and their properties. *

* * @param listInferenceComponentsRequest * @return Result of the ListInferenceComponents operation returned by the service. * @sample AmazonSageMaker.ListInferenceComponents * @see AWS API Documentation */ @Override public ListInferenceComponentsResult listInferenceComponents(ListInferenceComponentsRequest request) { request = beforeClientExecution(request); return executeListInferenceComponents(request); } @SdkInternalApi final ListInferenceComponentsResult executeListInferenceComponents(ListInferenceComponentsRequest listInferenceComponentsRequest) { ExecutionContext executionContext = createExecutionContext(listInferenceComponentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListInferenceComponentsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listInferenceComponentsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListInferenceComponents"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListInferenceComponentsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns the list of all inference experiments. *

* * @param listInferenceExperimentsRequest * @return Result of the ListInferenceExperiments operation returned by the service. * @sample AmazonSageMaker.ListInferenceExperiments * @see AWS API Documentation */ @Override public ListInferenceExperimentsResult listInferenceExperiments(ListInferenceExperimentsRequest request) { request = beforeClientExecution(request); return executeListInferenceExperiments(request); } @SdkInternalApi final ListInferenceExperimentsResult executeListInferenceExperiments(ListInferenceExperimentsRequest listInferenceExperimentsRequest) { ExecutionContext executionContext = createExecutionContext(listInferenceExperimentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListInferenceExperimentsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listInferenceExperimentsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListInferenceExperiments"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListInferenceExperimentsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a list of the subtasks for an Inference Recommender job. *

*

* The supported subtasks are benchmarks, which evaluate the performance of your model on different instance types. *

* * @param listInferenceRecommendationsJobStepsRequest * @return Result of the ListInferenceRecommendationsJobSteps operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListInferenceRecommendationsJobSteps * @see AWS API Documentation */ @Override public ListInferenceRecommendationsJobStepsResult listInferenceRecommendationsJobSteps(ListInferenceRecommendationsJobStepsRequest request) { request = beforeClientExecution(request); return executeListInferenceRecommendationsJobSteps(request); } @SdkInternalApi final ListInferenceRecommendationsJobStepsResult executeListInferenceRecommendationsJobSteps( ListInferenceRecommendationsJobStepsRequest listInferenceRecommendationsJobStepsRequest) { ExecutionContext executionContext = createExecutionContext(listInferenceRecommendationsJobStepsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListInferenceRecommendationsJobStepsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listInferenceRecommendationsJobStepsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListInferenceRecommendationsJobSteps"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListInferenceRecommendationsJobStepsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists recommendation jobs that satisfy various filters. *

* * @param listInferenceRecommendationsJobsRequest * @return Result of the ListInferenceRecommendationsJobs operation returned by the service. * @sample AmazonSageMaker.ListInferenceRecommendationsJobs * @see AWS API Documentation */ @Override public ListInferenceRecommendationsJobsResult listInferenceRecommendationsJobs(ListInferenceRecommendationsJobsRequest request) { request = beforeClientExecution(request); return executeListInferenceRecommendationsJobs(request); } @SdkInternalApi final ListInferenceRecommendationsJobsResult executeListInferenceRecommendationsJobs( ListInferenceRecommendationsJobsRequest listInferenceRecommendationsJobsRequest) { ExecutionContext executionContext = createExecutionContext(listInferenceRecommendationsJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListInferenceRecommendationsJobsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listInferenceRecommendationsJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListInferenceRecommendationsJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListInferenceRecommendationsJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of labeling jobs. *

* * @param listLabelingJobsRequest * @return Result of the ListLabelingJobs operation returned by the service. * @sample AmazonSageMaker.ListLabelingJobs * @see AWS API * Documentation */ @Override public ListLabelingJobsResult listLabelingJobs(ListLabelingJobsRequest request) { request = beforeClientExecution(request); return executeListLabelingJobs(request); } @SdkInternalApi final ListLabelingJobsResult executeListLabelingJobs(ListLabelingJobsRequest listLabelingJobsRequest) { ExecutionContext executionContext = createExecutionContext(listLabelingJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListLabelingJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listLabelingJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListLabelingJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListLabelingJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of labeling jobs assigned to a specified work team. *

* * @param listLabelingJobsForWorkteamRequest * @return Result of the ListLabelingJobsForWorkteam operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListLabelingJobsForWorkteam * @see AWS API Documentation */ @Override public ListLabelingJobsForWorkteamResult listLabelingJobsForWorkteam(ListLabelingJobsForWorkteamRequest request) { request = beforeClientExecution(request); return executeListLabelingJobsForWorkteam(request); } @SdkInternalApi final ListLabelingJobsForWorkteamResult executeListLabelingJobsForWorkteam(ListLabelingJobsForWorkteamRequest listLabelingJobsForWorkteamRequest) { ExecutionContext executionContext = createExecutionContext(listLabelingJobsForWorkteamRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListLabelingJobsForWorkteamRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listLabelingJobsForWorkteamRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListLabelingJobsForWorkteam"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListLabelingJobsForWorkteamResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* A list of lineage groups shared with your Amazon Web Services account. For more information, see Cross-Account Lineage * Tracking in the Amazon SageMaker Developer Guide. *

* * @param listLineageGroupsRequest * @return Result of the ListLineageGroups operation returned by the service. * @sample AmazonSageMaker.ListLineageGroups * @see AWS * API Documentation */ @Override public ListLineageGroupsResult listLineageGroups(ListLineageGroupsRequest request) { request = beforeClientExecution(request); return executeListLineageGroups(request); } @SdkInternalApi final ListLineageGroupsResult executeListLineageGroups(ListLineageGroupsRequest listLineageGroupsRequest) { ExecutionContext executionContext = createExecutionContext(listLineageGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListLineageGroupsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listLineageGroupsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListLineageGroups"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListLineageGroupsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all MLflow Tracking Servers. *

* * @param listMlflowTrackingServersRequest * @return Result of the ListMlflowTrackingServers operation returned by the service. * @sample AmazonSageMaker.ListMlflowTrackingServers * @see AWS API Documentation */ @Override public ListMlflowTrackingServersResult listMlflowTrackingServers(ListMlflowTrackingServersRequest request) { request = beforeClientExecution(request); return executeListMlflowTrackingServers(request); } @SdkInternalApi final ListMlflowTrackingServersResult executeListMlflowTrackingServers(ListMlflowTrackingServersRequest listMlflowTrackingServersRequest) { ExecutionContext executionContext = createExecutionContext(listMlflowTrackingServersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListMlflowTrackingServersRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listMlflowTrackingServersRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListMlflowTrackingServers"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListMlflowTrackingServersResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists model bias jobs definitions that satisfy various filters. *

* * @param listModelBiasJobDefinitionsRequest * @return Result of the ListModelBiasJobDefinitions operation returned by the service. * @sample AmazonSageMaker.ListModelBiasJobDefinitions * @see AWS API Documentation */ @Override public ListModelBiasJobDefinitionsResult listModelBiasJobDefinitions(ListModelBiasJobDefinitionsRequest request) { request = beforeClientExecution(request); return executeListModelBiasJobDefinitions(request); } @SdkInternalApi final ListModelBiasJobDefinitionsResult executeListModelBiasJobDefinitions(ListModelBiasJobDefinitionsRequest listModelBiasJobDefinitionsRequest) { ExecutionContext executionContext = createExecutionContext(listModelBiasJobDefinitionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListModelBiasJobDefinitionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listModelBiasJobDefinitionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListModelBiasJobDefinitions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListModelBiasJobDefinitionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* List the export jobs for the Amazon SageMaker Model Card. *

* * @param listModelCardExportJobsRequest * @return Result of the ListModelCardExportJobs operation returned by the service. * @sample AmazonSageMaker.ListModelCardExportJobs * @see AWS API Documentation */ @Override public ListModelCardExportJobsResult listModelCardExportJobs(ListModelCardExportJobsRequest request) { request = beforeClientExecution(request); return executeListModelCardExportJobs(request); } @SdkInternalApi final ListModelCardExportJobsResult executeListModelCardExportJobs(ListModelCardExportJobsRequest listModelCardExportJobsRequest) { ExecutionContext executionContext = createExecutionContext(listModelCardExportJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListModelCardExportJobsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listModelCardExportJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListModelCardExportJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListModelCardExportJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* List existing versions of an Amazon SageMaker Model Card. *

* * @param listModelCardVersionsRequest * @return Result of the ListModelCardVersions operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListModelCardVersions * @see AWS API Documentation */ @Override public ListModelCardVersionsResult listModelCardVersions(ListModelCardVersionsRequest request) { request = beforeClientExecution(request); return executeListModelCardVersions(request); } @SdkInternalApi final ListModelCardVersionsResult executeListModelCardVersions(ListModelCardVersionsRequest listModelCardVersionsRequest) { ExecutionContext executionContext = createExecutionContext(listModelCardVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListModelCardVersionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listModelCardVersionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListModelCardVersions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListModelCardVersionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* List existing model cards. *

* * @param listModelCardsRequest * @return Result of the ListModelCards operation returned by the service. * @sample AmazonSageMaker.ListModelCards * @see AWS API * Documentation */ @Override public ListModelCardsResult listModelCards(ListModelCardsRequest request) { request = beforeClientExecution(request); return executeListModelCards(request); } @SdkInternalApi final ListModelCardsResult executeListModelCards(ListModelCardsRequest listModelCardsRequest) { ExecutionContext executionContext = createExecutionContext(listModelCardsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListModelCardsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listModelCardsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListModelCards"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListModelCardsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists model explainability job definitions that satisfy various filters. *

* * @param listModelExplainabilityJobDefinitionsRequest * @return Result of the ListModelExplainabilityJobDefinitions operation returned by the service. * @sample AmazonSageMaker.ListModelExplainabilityJobDefinitions * @see AWS API Documentation */ @Override public ListModelExplainabilityJobDefinitionsResult listModelExplainabilityJobDefinitions(ListModelExplainabilityJobDefinitionsRequest request) { request = beforeClientExecution(request); return executeListModelExplainabilityJobDefinitions(request); } @SdkInternalApi final ListModelExplainabilityJobDefinitionsResult executeListModelExplainabilityJobDefinitions( ListModelExplainabilityJobDefinitionsRequest listModelExplainabilityJobDefinitionsRequest) { ExecutionContext executionContext = createExecutionContext(listModelExplainabilityJobDefinitionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListModelExplainabilityJobDefinitionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listModelExplainabilityJobDefinitionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListModelExplainabilityJobDefinitions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListModelExplainabilityJobDefinitionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the domain, framework, task, and model name of standard machine learning models found in common model zoos. *

* * @param listModelMetadataRequest * @return Result of the ListModelMetadata operation returned by the service. * @sample AmazonSageMaker.ListModelMetadata * @see AWS * API Documentation */ @Override public ListModelMetadataResult listModelMetadata(ListModelMetadataRequest request) { request = beforeClientExecution(request); return executeListModelMetadata(request); } @SdkInternalApi final ListModelMetadataResult executeListModelMetadata(ListModelMetadataRequest listModelMetadataRequest) { ExecutionContext executionContext = createExecutionContext(listModelMetadataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListModelMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listModelMetadataRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListModelMetadata"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListModelMetadataResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of the model groups in your Amazon Web Services account. *

* * @param listModelPackageGroupsRequest * @return Result of the ListModelPackageGroups operation returned by the service. * @sample AmazonSageMaker.ListModelPackageGroups * @see AWS API Documentation */ @Override public ListModelPackageGroupsResult listModelPackageGroups(ListModelPackageGroupsRequest request) { request = beforeClientExecution(request); return executeListModelPackageGroups(request); } @SdkInternalApi final ListModelPackageGroupsResult executeListModelPackageGroups(ListModelPackageGroupsRequest listModelPackageGroupsRequest) { ExecutionContext executionContext = createExecutionContext(listModelPackageGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListModelPackageGroupsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listModelPackageGroupsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListModelPackageGroups"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListModelPackageGroupsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the model packages that have been created. *

* * @param listModelPackagesRequest * @return Result of the ListModelPackages operation returned by the service. * @sample AmazonSageMaker.ListModelPackages * @see AWS * API Documentation */ @Override public ListModelPackagesResult listModelPackages(ListModelPackagesRequest request) { request = beforeClientExecution(request); return executeListModelPackages(request); } @SdkInternalApi final ListModelPackagesResult executeListModelPackages(ListModelPackagesRequest listModelPackagesRequest) { ExecutionContext executionContext = createExecutionContext(listModelPackagesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListModelPackagesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listModelPackagesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListModelPackages"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListModelPackagesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of model quality monitoring job definitions in your account. *

* * @param listModelQualityJobDefinitionsRequest * @return Result of the ListModelQualityJobDefinitions operation returned by the service. * @sample AmazonSageMaker.ListModelQualityJobDefinitions * @see AWS API Documentation */ @Override public ListModelQualityJobDefinitionsResult listModelQualityJobDefinitions(ListModelQualityJobDefinitionsRequest request) { request = beforeClientExecution(request); return executeListModelQualityJobDefinitions(request); } @SdkInternalApi final ListModelQualityJobDefinitionsResult executeListModelQualityJobDefinitions(ListModelQualityJobDefinitionsRequest listModelQualityJobDefinitionsRequest) { ExecutionContext executionContext = createExecutionContext(listModelQualityJobDefinitionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListModelQualityJobDefinitionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listModelQualityJobDefinitionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListModelQualityJobDefinitions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListModelQualityJobDefinitionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists models created with the CreateModel API. *

* * @param listModelsRequest * @return Result of the ListModels operation returned by the service. * @sample AmazonSageMaker.ListModels * @see AWS API * Documentation */ @Override public ListModelsResult listModels(ListModelsRequest request) { request = beforeClientExecution(request); return executeListModels(request); } @SdkInternalApi final ListModelsResult executeListModels(ListModelsRequest listModelsRequest) { ExecutionContext executionContext = createExecutionContext(listModelsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListModelsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listModelsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListModels"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListModelsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of past alerts in a model monitoring schedule. *

* * @param listMonitoringAlertHistoryRequest * @return Result of the ListMonitoringAlertHistory operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListMonitoringAlertHistory * @see AWS API Documentation */ @Override public ListMonitoringAlertHistoryResult listMonitoringAlertHistory(ListMonitoringAlertHistoryRequest request) { request = beforeClientExecution(request); return executeListMonitoringAlertHistory(request); } @SdkInternalApi final ListMonitoringAlertHistoryResult executeListMonitoringAlertHistory(ListMonitoringAlertHistoryRequest listMonitoringAlertHistoryRequest) { ExecutionContext executionContext = createExecutionContext(listMonitoringAlertHistoryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListMonitoringAlertHistoryRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listMonitoringAlertHistoryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListMonitoringAlertHistory"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListMonitoringAlertHistoryResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets the alerts for a single monitoring schedule. *

* * @param listMonitoringAlertsRequest * @return Result of the ListMonitoringAlerts operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListMonitoringAlerts * @see AWS * API Documentation */ @Override public ListMonitoringAlertsResult listMonitoringAlerts(ListMonitoringAlertsRequest request) { request = beforeClientExecution(request); return executeListMonitoringAlerts(request); } @SdkInternalApi final ListMonitoringAlertsResult executeListMonitoringAlerts(ListMonitoringAlertsRequest listMonitoringAlertsRequest) { ExecutionContext executionContext = createExecutionContext(listMonitoringAlertsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListMonitoringAlertsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listMonitoringAlertsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListMonitoringAlerts"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListMonitoringAlertsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns list of all monitoring job executions. *

* * @param listMonitoringExecutionsRequest * @return Result of the ListMonitoringExecutions operation returned by the service. * @sample AmazonSageMaker.ListMonitoringExecutions * @see AWS API Documentation */ @Override public ListMonitoringExecutionsResult listMonitoringExecutions(ListMonitoringExecutionsRequest request) { request = beforeClientExecution(request); return executeListMonitoringExecutions(request); } @SdkInternalApi final ListMonitoringExecutionsResult executeListMonitoringExecutions(ListMonitoringExecutionsRequest listMonitoringExecutionsRequest) { ExecutionContext executionContext = createExecutionContext(listMonitoringExecutionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListMonitoringExecutionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listMonitoringExecutionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListMonitoringExecutions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListMonitoringExecutionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns list of all monitoring schedules. *

* * @param listMonitoringSchedulesRequest * @return Result of the ListMonitoringSchedules operation returned by the service. * @sample AmazonSageMaker.ListMonitoringSchedules * @see AWS API Documentation */ @Override public ListMonitoringSchedulesResult listMonitoringSchedules(ListMonitoringSchedulesRequest request) { request = beforeClientExecution(request); return executeListMonitoringSchedules(request); } @SdkInternalApi final ListMonitoringSchedulesResult executeListMonitoringSchedules(ListMonitoringSchedulesRequest listMonitoringSchedulesRequest) { ExecutionContext executionContext = createExecutionContext(listMonitoringSchedulesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListMonitoringSchedulesRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listMonitoringSchedulesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListMonitoringSchedules"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListMonitoringSchedulesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists notebook instance lifestyle configurations created with the CreateNotebookInstanceLifecycleConfig API. *

* * @param listNotebookInstanceLifecycleConfigsRequest * @return Result of the ListNotebookInstanceLifecycleConfigs operation returned by the service. * @sample AmazonSageMaker.ListNotebookInstanceLifecycleConfigs * @see AWS API Documentation */ @Override public ListNotebookInstanceLifecycleConfigsResult listNotebookInstanceLifecycleConfigs(ListNotebookInstanceLifecycleConfigsRequest request) { request = beforeClientExecution(request); return executeListNotebookInstanceLifecycleConfigs(request); } @SdkInternalApi final ListNotebookInstanceLifecycleConfigsResult executeListNotebookInstanceLifecycleConfigs( ListNotebookInstanceLifecycleConfigsRequest listNotebookInstanceLifecycleConfigsRequest) { ExecutionContext executionContext = createExecutionContext(listNotebookInstanceLifecycleConfigsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListNotebookInstanceLifecycleConfigsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listNotebookInstanceLifecycleConfigsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListNotebookInstanceLifecycleConfigs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListNotebookInstanceLifecycleConfigsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns a list of the SageMaker notebook instances in the requester's account in an Amazon Web Services Region. *

* * @param listNotebookInstancesRequest * @return Result of the ListNotebookInstances operation returned by the service. * @sample AmazonSageMaker.ListNotebookInstances * @see AWS API Documentation */ @Override public ListNotebookInstancesResult listNotebookInstances(ListNotebookInstancesRequest request) { request = beforeClientExecution(request); return executeListNotebookInstances(request); } @SdkInternalApi final ListNotebookInstancesResult executeListNotebookInstances(ListNotebookInstancesRequest listNotebookInstancesRequest) { ExecutionContext executionContext = createExecutionContext(listNotebookInstancesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListNotebookInstancesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listNotebookInstancesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListNotebookInstances"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListNotebookInstancesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the optimization jobs in your account and their properties. *

* * @param listOptimizationJobsRequest * @return Result of the ListOptimizationJobs operation returned by the service. * @sample AmazonSageMaker.ListOptimizationJobs * @see AWS * API Documentation */ @Override public ListOptimizationJobsResult listOptimizationJobs(ListOptimizationJobsRequest request) { request = beforeClientExecution(request); return executeListOptimizationJobs(request); } @SdkInternalApi final ListOptimizationJobsResult executeListOptimizationJobs(ListOptimizationJobsRequest listOptimizationJobsRequest) { ExecutionContext executionContext = createExecutionContext(listOptimizationJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListOptimizationJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listOptimizationJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListOptimizationJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListOptimizationJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of PipeLineExecutionStep objects. *

* * @param listPipelineExecutionStepsRequest * @return Result of the ListPipelineExecutionSteps operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListPipelineExecutionSteps * @see AWS API Documentation */ @Override public ListPipelineExecutionStepsResult listPipelineExecutionSteps(ListPipelineExecutionStepsRequest request) { request = beforeClientExecution(request); return executeListPipelineExecutionSteps(request); } @SdkInternalApi final ListPipelineExecutionStepsResult executeListPipelineExecutionSteps(ListPipelineExecutionStepsRequest listPipelineExecutionStepsRequest) { ExecutionContext executionContext = createExecutionContext(listPipelineExecutionStepsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListPipelineExecutionStepsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listPipelineExecutionStepsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListPipelineExecutionSteps"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListPipelineExecutionStepsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of the pipeline executions. *

* * @param listPipelineExecutionsRequest * @return Result of the ListPipelineExecutions operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListPipelineExecutions * @see AWS API Documentation */ @Override public ListPipelineExecutionsResult listPipelineExecutions(ListPipelineExecutionsRequest request) { request = beforeClientExecution(request); return executeListPipelineExecutions(request); } @SdkInternalApi final ListPipelineExecutionsResult executeListPipelineExecutions(ListPipelineExecutionsRequest listPipelineExecutionsRequest) { ExecutionContext executionContext = createExecutionContext(listPipelineExecutionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListPipelineExecutionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listPipelineExecutionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListPipelineExecutions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListPipelineExecutionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of parameters for a pipeline execution. *

* * @param listPipelineParametersForExecutionRequest * @return Result of the ListPipelineParametersForExecution operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListPipelineParametersForExecution * @see AWS API Documentation */ @Override public ListPipelineParametersForExecutionResult listPipelineParametersForExecution(ListPipelineParametersForExecutionRequest request) { request = beforeClientExecution(request); return executeListPipelineParametersForExecution(request); } @SdkInternalApi final ListPipelineParametersForExecutionResult executeListPipelineParametersForExecution( ListPipelineParametersForExecutionRequest listPipelineParametersForExecutionRequest) { ExecutionContext executionContext = createExecutionContext(listPipelineParametersForExecutionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListPipelineParametersForExecutionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listPipelineParametersForExecutionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListPipelineParametersForExecution"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListPipelineParametersForExecutionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of pipelines. *

* * @param listPipelinesRequest * @return Result of the ListPipelines operation returned by the service. * @sample AmazonSageMaker.ListPipelines * @see AWS API * Documentation */ @Override public ListPipelinesResult listPipelines(ListPipelinesRequest request) { request = beforeClientExecution(request); return executeListPipelines(request); } @SdkInternalApi final ListPipelinesResult executeListPipelines(ListPipelinesRequest listPipelinesRequest) { ExecutionContext executionContext = createExecutionContext(listPipelinesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListPipelinesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listPipelinesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListPipelines"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListPipelinesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists processing jobs that satisfy various filters. *

* * @param listProcessingJobsRequest * @return Result of the ListProcessingJobs operation returned by the service. * @sample AmazonSageMaker.ListProcessingJobs * @see AWS * API Documentation */ @Override public ListProcessingJobsResult listProcessingJobs(ListProcessingJobsRequest request) { request = beforeClientExecution(request); return executeListProcessingJobs(request); } @SdkInternalApi final ListProcessingJobsResult executeListProcessingJobs(ListProcessingJobsRequest listProcessingJobsRequest) { ExecutionContext executionContext = createExecutionContext(listProcessingJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListProcessingJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listProcessingJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListProcessingJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListProcessingJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of the projects in an Amazon Web Services account. *

* * @param listProjectsRequest * @return Result of the ListProjects operation returned by the service. * @sample AmazonSageMaker.ListProjects * @see AWS API * Documentation */ @Override public ListProjectsResult listProjects(ListProjectsRequest request) { request = beforeClientExecution(request); return executeListProjects(request); } @SdkInternalApi final ListProjectsResult executeListProjects(ListProjectsRequest listProjectsRequest) { ExecutionContext executionContext = createExecutionContext(listProjectsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListProjectsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listProjectsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListProjects"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListProjectsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists Amazon SageMaker Catalogs based on given filters and orders. The maximum number of * ResourceCatalogs viewable is 1000. *

* * @param listResourceCatalogsRequest * @return Result of the ListResourceCatalogs operation returned by the service. * @sample AmazonSageMaker.ListResourceCatalogs * @see AWS * API Documentation */ @Override public ListResourceCatalogsResult listResourceCatalogs(ListResourceCatalogsRequest request) { request = beforeClientExecution(request); return executeListResourceCatalogs(request); } @SdkInternalApi final ListResourceCatalogsResult executeListResourceCatalogs(ListResourceCatalogsRequest listResourceCatalogsRequest) { ExecutionContext executionContext = createExecutionContext(listResourceCatalogsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListResourceCatalogsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listResourceCatalogsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListResourceCatalogs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListResourceCatalogsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists spaces. *

* * @param listSpacesRequest * @return Result of the ListSpaces operation returned by the service. * @sample AmazonSageMaker.ListSpaces * @see AWS API * Documentation */ @Override public ListSpacesResult listSpaces(ListSpacesRequest request) { request = beforeClientExecution(request); return executeListSpaces(request); } @SdkInternalApi final ListSpacesResult executeListSpaces(ListSpacesRequest listSpacesRequest) { ExecutionContext executionContext = createExecutionContext(listSpacesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListSpacesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listSpacesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListSpaces"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListSpacesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists devices allocated to the stage, containing detailed device information and deployment status. *

* * @param listStageDevicesRequest * @return Result of the ListStageDevices operation returned by the service. * @sample AmazonSageMaker.ListStageDevices * @see AWS API * Documentation */ @Override public ListStageDevicesResult listStageDevices(ListStageDevicesRequest request) { request = beforeClientExecution(request); return executeListStageDevices(request); } @SdkInternalApi final ListStageDevicesResult executeListStageDevices(ListStageDevicesRequest listStageDevicesRequest) { ExecutionContext executionContext = createExecutionContext(listStageDevicesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListStageDevicesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listStageDevicesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListStageDevices"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListStageDevicesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the Amazon SageMaker Studio Lifecycle Configurations in your Amazon Web Services Account. *

* * @param listStudioLifecycleConfigsRequest * @return Result of the ListStudioLifecycleConfigs operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.ListStudioLifecycleConfigs * @see AWS API Documentation */ @Override public ListStudioLifecycleConfigsResult listStudioLifecycleConfigs(ListStudioLifecycleConfigsRequest request) { request = beforeClientExecution(request); return executeListStudioLifecycleConfigs(request); } @SdkInternalApi final ListStudioLifecycleConfigsResult executeListStudioLifecycleConfigs(ListStudioLifecycleConfigsRequest listStudioLifecycleConfigsRequest) { ExecutionContext executionContext = createExecutionContext(listStudioLifecycleConfigsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListStudioLifecycleConfigsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listStudioLifecycleConfigsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListStudioLifecycleConfigs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListStudioLifecycleConfigsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of the work teams that you are subscribed to in the Amazon Web Services Marketplace. The list may be * empty if no work team satisfies the filter specified in the NameContains parameter. *

* * @param listSubscribedWorkteamsRequest * @return Result of the ListSubscribedWorkteams operation returned by the service. * @sample AmazonSageMaker.ListSubscribedWorkteams * @see AWS API Documentation */ @Override public ListSubscribedWorkteamsResult listSubscribedWorkteams(ListSubscribedWorkteamsRequest request) { request = beforeClientExecution(request); return executeListSubscribedWorkteams(request); } @SdkInternalApi final ListSubscribedWorkteamsResult executeListSubscribedWorkteams(ListSubscribedWorkteamsRequest listSubscribedWorkteamsRequest) { ExecutionContext executionContext = createExecutionContext(listSubscribedWorkteamsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListSubscribedWorkteamsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listSubscribedWorkteamsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListSubscribedWorkteams"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListSubscribedWorkteamsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Returns the tags for the specified SageMaker resource. *

* * @param listTagsRequest * @return Result of the ListTags operation returned by the service. * @sample AmazonSageMaker.ListTags * @see AWS API * Documentation */ @Override public ListTagsResult listTags(ListTagsRequest request) { request = beforeClientExecution(request); return executeListTags(request); } @SdkInternalApi final ListTagsResult executeListTags(ListTagsRequest listTagsRequest) { ExecutionContext executionContext = createExecutionContext(listTagsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTagsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTags"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists training jobs. *

* *

* When StatusEquals and MaxResults are set at the same time, the MaxResults * number of training jobs are first retrieved ignoring the StatusEquals parameter and then they are * filtered by the StatusEquals parameter, which is returned as a response. *

*

* For example, if ListTrainingJobs is invoked with the following parameters: *

*

* { ... MaxResults: 100, StatusEquals: InProgress ... } *

*

* First, 100 trainings jobs with any status, including those other than InProgress, are selected * (sorted according to the creation time, from the most current to the oldest). Next, those with a status of * InProgress are returned. *

*

* You can quickly test the API using the following Amazon Web Services CLI code. *

*

* aws sagemaker list-training-jobs --max-results 100 --status-equals InProgress *

*
* * @param listTrainingJobsRequest * @return Result of the ListTrainingJobs operation returned by the service. * @sample AmazonSageMaker.ListTrainingJobs * @see AWS API * Documentation */ @Override public ListTrainingJobsResult listTrainingJobs(ListTrainingJobsRequest request) { request = beforeClientExecution(request); return executeListTrainingJobs(request); } @SdkInternalApi final ListTrainingJobsResult executeListTrainingJobs(ListTrainingJobsRequest listTrainingJobsRequest) { ExecutionContext executionContext = createExecutionContext(listTrainingJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTrainingJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTrainingJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTrainingJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTrainingJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of TrainingJobSummary * objects that describe the training jobs that a hyperparameter tuning job launched. *

* * @param listTrainingJobsForHyperParameterTuningJobRequest * @return Result of the ListTrainingJobsForHyperParameterTuningJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListTrainingJobsForHyperParameterTuningJob * @see AWS API Documentation */ @Override public ListTrainingJobsForHyperParameterTuningJobResult listTrainingJobsForHyperParameterTuningJob(ListTrainingJobsForHyperParameterTuningJobRequest request) { request = beforeClientExecution(request); return executeListTrainingJobsForHyperParameterTuningJob(request); } @SdkInternalApi final ListTrainingJobsForHyperParameterTuningJobResult executeListTrainingJobsForHyperParameterTuningJob( ListTrainingJobsForHyperParameterTuningJobRequest listTrainingJobsForHyperParameterTuningJobRequest) { ExecutionContext executionContext = createExecutionContext(listTrainingJobsForHyperParameterTuningJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTrainingJobsForHyperParameterTuningJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listTrainingJobsForHyperParameterTuningJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTrainingJobsForHyperParameterTuningJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTrainingJobsForHyperParameterTuningJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists transform jobs. *

* * @param listTransformJobsRequest * @return Result of the ListTransformJobs operation returned by the service. * @sample AmazonSageMaker.ListTransformJobs * @see AWS * API Documentation */ @Override public ListTransformJobsResult listTransformJobs(ListTransformJobsRequest request) { request = beforeClientExecution(request); return executeListTransformJobs(request); } @SdkInternalApi final ListTransformJobsResult executeListTransformJobs(ListTransformJobsRequest listTransformJobsRequest) { ExecutionContext executionContext = createExecutionContext(listTransformJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTransformJobsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTransformJobsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTransformJobs"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTransformJobsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the trial components in your account. You can sort the list by trial component name or creation time. You * can filter the list to show only components that were created in a specific time range. You can also filter on * one of the following: *

*
    *
  • *

    * ExperimentName *

    *
  • *
  • *

    * SourceArn *

    *
  • *
  • *

    * TrialName *

    *
  • *
* * @param listTrialComponentsRequest * @return Result of the ListTrialComponents operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListTrialComponents * @see AWS * API Documentation */ @Override public ListTrialComponentsResult listTrialComponents(ListTrialComponentsRequest request) { request = beforeClientExecution(request); return executeListTrialComponents(request); } @SdkInternalApi final ListTrialComponentsResult executeListTrialComponents(ListTrialComponentsRequest listTrialComponentsRequest) { ExecutionContext executionContext = createExecutionContext(listTrialComponentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTrialComponentsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTrialComponentsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTrialComponents"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTrialComponentsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the trials in your account. Specify an experiment name to limit the list to the trials that are part of * that experiment. Specify a trial component name to limit the list to the trials that associated with that trial * component. 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. *

* * @param listTrialsRequest * @return Result of the ListTrials operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.ListTrials * @see AWS API * Documentation */ @Override public ListTrialsResult listTrials(ListTrialsRequest request) { request = beforeClientExecution(request); return executeListTrials(request); } @SdkInternalApi final ListTrialsResult executeListTrials(ListTrialsRequest listTrialsRequest) { ExecutionContext executionContext = createExecutionContext(listTrialsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTrialsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTrialsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTrials"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTrialsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists user profiles. *

* * @param listUserProfilesRequest * @return Result of the ListUserProfiles operation returned by the service. * @sample AmazonSageMaker.ListUserProfiles * @see AWS API * Documentation */ @Override public ListUserProfilesResult listUserProfiles(ListUserProfilesRequest request) { request = beforeClientExecution(request); return executeListUserProfiles(request); } @SdkInternalApi final ListUserProfilesResult executeListUserProfiles(ListUserProfilesRequest listUserProfilesRequest) { ExecutionContext executionContext = createExecutionContext(listUserProfilesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListUserProfilesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listUserProfilesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListUserProfiles"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListUserProfilesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use this operation to list all private and vendor workforces in an Amazon Web Services Region. Note that you can * only have one private workforce per Amazon Web Services Region. *

* * @param listWorkforcesRequest * @return Result of the ListWorkforces operation returned by the service. * @sample AmazonSageMaker.ListWorkforces * @see AWS API * Documentation */ @Override public ListWorkforcesResult listWorkforces(ListWorkforcesRequest request) { request = beforeClientExecution(request); return executeListWorkforces(request); } @SdkInternalApi final ListWorkforcesResult executeListWorkforces(ListWorkforcesRequest listWorkforcesRequest) { ExecutionContext executionContext = createExecutionContext(listWorkforcesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListWorkforcesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listWorkforcesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListWorkforces"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListWorkforcesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Gets a list of private 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. *

* * @param listWorkteamsRequest * @return Result of the ListWorkteams operation returned by the service. * @sample AmazonSageMaker.ListWorkteams * @see AWS API * Documentation */ @Override public ListWorkteamsResult listWorkteams(ListWorkteamsRequest request) { request = beforeClientExecution(request); return executeListWorkteams(request); } @SdkInternalApi final ListWorkteamsResult executeListWorkteams(ListWorkteamsRequest listWorkteamsRequest) { ExecutionContext executionContext = createExecutionContext(listWorkteamsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListWorkteamsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listWorkteamsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListWorkteams"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListWorkteamsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Adds a resouce policy to control access to a model group. For information about resoure policies, see Identity-based * policies and resource-based policies in the Amazon Web Services Identity and Access Management User * Guide.. *

* * @param putModelPackageGroupPolicyRequest * @return Result of the PutModelPackageGroupPolicy operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.PutModelPackageGroupPolicy * @see AWS API Documentation */ @Override public PutModelPackageGroupPolicyResult putModelPackageGroupPolicy(PutModelPackageGroupPolicyRequest request) { request = beforeClientExecution(request); return executePutModelPackageGroupPolicy(request); } @SdkInternalApi final PutModelPackageGroupPolicyResult executePutModelPackageGroupPolicy(PutModelPackageGroupPolicyRequest putModelPackageGroupPolicyRequest) { ExecutionContext executionContext = createExecutionContext(putModelPackageGroupPolicyRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new PutModelPackageGroupPolicyRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(putModelPackageGroupPolicyRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutModelPackageGroupPolicy"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new PutModelPackageGroupPolicyResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use this action to inspect your lineage and discover relationships between entities. For more information, see Querying Lineage * Entities in the Amazon SageMaker Developer Guide. *

* * @param queryLineageRequest * @return Result of the QueryLineage operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.QueryLineage * @see AWS API * Documentation */ @Override public QueryLineageResult queryLineage(QueryLineageRequest request) { request = beforeClientExecution(request); return executeQueryLineage(request); } @SdkInternalApi final QueryLineageResult executeQueryLineage(QueryLineageRequest queryLineageRequest) { ExecutionContext executionContext = createExecutionContext(queryLineageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new QueryLineageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(queryLineageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "QueryLineage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new QueryLineageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Register devices. *

* * @param registerDevicesRequest * @return Result of the RegisterDevices operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.RegisterDevices * @see AWS API * Documentation */ @Override public RegisterDevicesResult registerDevices(RegisterDevicesRequest request) { request = beforeClientExecution(request); return executeRegisterDevices(request); } @SdkInternalApi final RegisterDevicesResult executeRegisterDevices(RegisterDevicesRequest registerDevicesRequest) { ExecutionContext executionContext = createExecutionContext(registerDevicesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RegisterDevicesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(registerDevicesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterDevices"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RegisterDevicesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Renders the UI template so that you can preview the worker's experience. *

* * @param renderUiTemplateRequest * @return Result of the RenderUiTemplate operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.RenderUiTemplate * @see AWS API * Documentation */ @Override public RenderUiTemplateResult renderUiTemplate(RenderUiTemplateRequest request) { request = beforeClientExecution(request); return executeRenderUiTemplate(request); } @SdkInternalApi final RenderUiTemplateResult executeRenderUiTemplate(RenderUiTemplateRequest renderUiTemplateRequest) { ExecutionContext executionContext = createExecutionContext(renderUiTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RenderUiTemplateRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(renderUiTemplateRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RenderUiTemplate"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RenderUiTemplateResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Retry the execution of the pipeline. *

* * @param retryPipelineExecutionRequest * @return Result of the RetryPipelineExecution operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.RetryPipelineExecution * @see AWS API Documentation */ @Override public RetryPipelineExecutionResult retryPipelineExecution(RetryPipelineExecutionRequest request) { request = beforeClientExecution(request); return executeRetryPipelineExecution(request); } @SdkInternalApi final RetryPipelineExecutionResult executeRetryPipelineExecution(RetryPipelineExecutionRequest retryPipelineExecutionRequest) { ExecutionContext executionContext = createExecutionContext(retryPipelineExecutionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RetryPipelineExecutionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(retryPipelineExecutionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RetryPipelineExecution"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RetryPipelineExecutionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Finds SageMaker resources that match a search query. Matching resources are returned as a list of * SearchRecord 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: numeric, text, Boolean, and timestamp. *

* *

* The Search API may provide access to otherwise restricted data. See Amazon SageMaker API * Permissions: Actions, Permissions, and Resources Reference for more information. *

*
* * @param searchRequest * @return Result of the Search operation returned by the service. * @sample AmazonSageMaker.Search * @see AWS API * Documentation */ @Override public SearchResult search(SearchRequest request) { request = beforeClientExecution(request); return executeSearch(request); } @SdkInternalApi final SearchResult executeSearch(SearchRequest searchRequest) { ExecutionContext executionContext = createExecutionContext(searchRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "Search"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Notifies the pipeline that the execution of a callback step failed, along with a message describing why. When a * callback step is run, the pipeline generates a callback token and includes the token in a message sent to Amazon * Simple Queue Service (Amazon SQS). *

* * @param sendPipelineExecutionStepFailureRequest * @return Result of the SendPipelineExecutionStepFailure operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.SendPipelineExecutionStepFailure * @see AWS API Documentation */ @Override public SendPipelineExecutionStepFailureResult sendPipelineExecutionStepFailure(SendPipelineExecutionStepFailureRequest request) { request = beforeClientExecution(request); return executeSendPipelineExecutionStepFailure(request); } @SdkInternalApi final SendPipelineExecutionStepFailureResult executeSendPipelineExecutionStepFailure( SendPipelineExecutionStepFailureRequest sendPipelineExecutionStepFailureRequest) { ExecutionContext executionContext = createExecutionContext(sendPipelineExecutionStepFailureRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SendPipelineExecutionStepFailureRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(sendPipelineExecutionStepFailureRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SendPipelineExecutionStepFailure"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SendPipelineExecutionStepFailureResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Notifies the pipeline that the execution of a callback step succeeded and provides a list of the step's output * parameters. When a callback step is run, the pipeline generates a callback token and includes the token in a * message sent to Amazon Simple Queue Service (Amazon SQS). *

* * @param sendPipelineExecutionStepSuccessRequest * @return Result of the SendPipelineExecutionStepSuccess operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.SendPipelineExecutionStepSuccess * @see AWS API Documentation */ @Override public SendPipelineExecutionStepSuccessResult sendPipelineExecutionStepSuccess(SendPipelineExecutionStepSuccessRequest request) { request = beforeClientExecution(request); return executeSendPipelineExecutionStepSuccess(request); } @SdkInternalApi final SendPipelineExecutionStepSuccessResult executeSendPipelineExecutionStepSuccess( SendPipelineExecutionStepSuccessRequest sendPipelineExecutionStepSuccessRequest) { ExecutionContext executionContext = createExecutionContext(sendPipelineExecutionStepSuccessRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SendPipelineExecutionStepSuccessRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(sendPipelineExecutionStepSuccessRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SendPipelineExecutionStepSuccess"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SendPipelineExecutionStepSuccessResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts a stage in an edge deployment plan. *

* * @param startEdgeDeploymentStageRequest * @return Result of the StartEdgeDeploymentStage operation returned by the service. * @sample AmazonSageMaker.StartEdgeDeploymentStage * @see AWS API Documentation */ @Override public StartEdgeDeploymentStageResult startEdgeDeploymentStage(StartEdgeDeploymentStageRequest request) { request = beforeClientExecution(request); return executeStartEdgeDeploymentStage(request); } @SdkInternalApi final StartEdgeDeploymentStageResult executeStartEdgeDeploymentStage(StartEdgeDeploymentStageRequest startEdgeDeploymentStageRequest) { ExecutionContext executionContext = createExecutionContext(startEdgeDeploymentStageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartEdgeDeploymentStageRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(startEdgeDeploymentStageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartEdgeDeploymentStage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartEdgeDeploymentStageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts an inference experiment. *

* * @param startInferenceExperimentRequest * @return Result of the StartInferenceExperiment operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StartInferenceExperiment * @see AWS API Documentation */ @Override public StartInferenceExperimentResult startInferenceExperiment(StartInferenceExperimentRequest request) { request = beforeClientExecution(request); return executeStartInferenceExperiment(request); } @SdkInternalApi final StartInferenceExperimentResult executeStartInferenceExperiment(StartInferenceExperimentRequest startInferenceExperimentRequest) { ExecutionContext executionContext = createExecutionContext(startInferenceExperimentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartInferenceExperimentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(startInferenceExperimentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartInferenceExperiment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartInferenceExperimentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Programmatically start an MLflow Tracking Server. *

* * @param startMlflowTrackingServerRequest * @return Result of the StartMlflowTrackingServer operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.StartMlflowTrackingServer * @see AWS API Documentation */ @Override public StartMlflowTrackingServerResult startMlflowTrackingServer(StartMlflowTrackingServerRequest request) { request = beforeClientExecution(request); return executeStartMlflowTrackingServer(request); } @SdkInternalApi final StartMlflowTrackingServerResult executeStartMlflowTrackingServer(StartMlflowTrackingServerRequest startMlflowTrackingServerRequest) { ExecutionContext executionContext = createExecutionContext(startMlflowTrackingServerRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartMlflowTrackingServerRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(startMlflowTrackingServerRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartMlflowTrackingServer"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartMlflowTrackingServerResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts a previously stopped monitoring schedule. *

* *

* By default, when you successfully create a new schedule, the status of a monitoring schedule is * scheduled. *

*
* * @param startMonitoringScheduleRequest * @return Result of the StartMonitoringSchedule operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StartMonitoringSchedule * @see AWS API Documentation */ @Override public StartMonitoringScheduleResult startMonitoringSchedule(StartMonitoringScheduleRequest request) { request = beforeClientExecution(request); return executeStartMonitoringSchedule(request); } @SdkInternalApi final StartMonitoringScheduleResult executeStartMonitoringSchedule(StartMonitoringScheduleRequest startMonitoringScheduleRequest) { ExecutionContext executionContext = createExecutionContext(startMonitoringScheduleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartMonitoringScheduleRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(startMonitoringScheduleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartMonitoringSchedule"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartMonitoringScheduleResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Launches an ML compute instance with the latest version of the libraries and attaches your ML storage volume. * After configuring the notebook instance, SageMaker sets the notebook instance status to InService. A * notebook instance's status must be InService before you can connect to your Jupyter notebook. *

* * @param startNotebookInstanceRequest * @return Result of the StartNotebookInstance operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.StartNotebookInstance * @see AWS API Documentation */ @Override public StartNotebookInstanceResult startNotebookInstance(StartNotebookInstanceRequest request) { request = beforeClientExecution(request); return executeStartNotebookInstance(request); } @SdkInternalApi final StartNotebookInstanceResult executeStartNotebookInstance(StartNotebookInstanceRequest startNotebookInstanceRequest) { ExecutionContext executionContext = createExecutionContext(startNotebookInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartNotebookInstanceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(startNotebookInstanceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartNotebookInstance"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartNotebookInstanceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Starts a pipeline execution. *

* * @param startPipelineExecutionRequest * @return Result of the StartPipelineExecution operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.StartPipelineExecution * @see AWS API Documentation */ @Override public StartPipelineExecutionResult startPipelineExecution(StartPipelineExecutionRequest request) { request = beforeClientExecution(request); return executeStartPipelineExecution(request); } @SdkInternalApi final StartPipelineExecutionResult executeStartPipelineExecution(StartPipelineExecutionRequest startPipelineExecutionRequest) { ExecutionContext executionContext = createExecutionContext(startPipelineExecutionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StartPipelineExecutionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(startPipelineExecutionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartPipelineExecution"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StartPipelineExecutionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* A method for forcing a running job to shut down. *

* * @param stopAutoMLJobRequest * @return Result of the StopAutoMLJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopAutoMLJob * @see AWS API * Documentation */ @Override public StopAutoMLJobResult stopAutoMLJob(StopAutoMLJobRequest request) { request = beforeClientExecution(request); return executeStopAutoMLJob(request); } @SdkInternalApi final StopAutoMLJobResult executeStopAutoMLJob(StopAutoMLJobRequest stopAutoMLJobRequest) { ExecutionContext executionContext = createExecutionContext(stopAutoMLJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopAutoMLJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopAutoMLJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopAutoMLJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopAutoMLJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 * CompilationJobStatus of the job to Stopping. After Amazon SageMaker stops the job, it * sets the CompilationJobStatus to Stopped. *

* * @param stopCompilationJobRequest * @return Result of the StopCompilationJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopCompilationJob * @see AWS * API Documentation */ @Override public StopCompilationJobResult stopCompilationJob(StopCompilationJobRequest request) { request = beforeClientExecution(request); return executeStopCompilationJob(request); } @SdkInternalApi final StopCompilationJobResult executeStopCompilationJob(StopCompilationJobRequest stopCompilationJobRequest) { ExecutionContext executionContext = createExecutionContext(stopCompilationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopCompilationJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopCompilationJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopCompilationJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopCompilationJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Stops a stage in an edge deployment plan. *

* * @param stopEdgeDeploymentStageRequest * @return Result of the StopEdgeDeploymentStage operation returned by the service. * @sample AmazonSageMaker.StopEdgeDeploymentStage * @see AWS API Documentation */ @Override public StopEdgeDeploymentStageResult stopEdgeDeploymentStage(StopEdgeDeploymentStageRequest request) { request = beforeClientExecution(request); return executeStopEdgeDeploymentStage(request); } @SdkInternalApi final StopEdgeDeploymentStageResult executeStopEdgeDeploymentStage(StopEdgeDeploymentStageRequest stopEdgeDeploymentStageRequest) { ExecutionContext executionContext = createExecutionContext(stopEdgeDeploymentStageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopEdgeDeploymentStageRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(stopEdgeDeploymentStageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopEdgeDeploymentStage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopEdgeDeploymentStageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Request to stop an edge packaging job. *

* * @param stopEdgePackagingJobRequest * @return Result of the StopEdgePackagingJob operation returned by the service. * @sample AmazonSageMaker.StopEdgePackagingJob * @see AWS * API Documentation */ @Override public StopEdgePackagingJobResult stopEdgePackagingJob(StopEdgePackagingJobRequest request) { request = beforeClientExecution(request); return executeStopEdgePackagingJob(request); } @SdkInternalApi final StopEdgePackagingJobResult executeStopEdgePackagingJob(StopEdgePackagingJobRequest stopEdgePackagingJobRequest) { ExecutionContext executionContext = createExecutionContext(stopEdgePackagingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopEdgePackagingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopEdgePackagingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopEdgePackagingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopEdgePackagingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param stopHyperParameterTuningJobRequest * @return Result of the StopHyperParameterTuningJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopHyperParameterTuningJob * @see AWS API Documentation */ @Override public StopHyperParameterTuningJobResult stopHyperParameterTuningJob(StopHyperParameterTuningJobRequest request) { request = beforeClientExecution(request); return executeStopHyperParameterTuningJob(request); } @SdkInternalApi final StopHyperParameterTuningJobResult executeStopHyperParameterTuningJob(StopHyperParameterTuningJobRequest stopHyperParameterTuningJobRequest) { ExecutionContext executionContext = createExecutionContext(stopHyperParameterTuningJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopHyperParameterTuningJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(stopHyperParameterTuningJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopHyperParameterTuningJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopHyperParameterTuningJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Stops an inference experiment. *

* * @param stopInferenceExperimentRequest * @return Result of the StopInferenceExperiment operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopInferenceExperiment * @see AWS API Documentation */ @Override public StopInferenceExperimentResult stopInferenceExperiment(StopInferenceExperimentRequest request) { request = beforeClientExecution(request); return executeStopInferenceExperiment(request); } @SdkInternalApi final StopInferenceExperimentResult executeStopInferenceExperiment(StopInferenceExperimentRequest stopInferenceExperimentRequest) { ExecutionContext executionContext = createExecutionContext(stopInferenceExperimentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopInferenceExperimentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(stopInferenceExperimentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopInferenceExperiment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopInferenceExperimentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Stops an Inference Recommender job. *

* * @param stopInferenceRecommendationsJobRequest * @return Result of the StopInferenceRecommendationsJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopInferenceRecommendationsJob * @see AWS API Documentation */ @Override public StopInferenceRecommendationsJobResult stopInferenceRecommendationsJob(StopInferenceRecommendationsJobRequest request) { request = beforeClientExecution(request); return executeStopInferenceRecommendationsJob(request); } @SdkInternalApi final StopInferenceRecommendationsJobResult executeStopInferenceRecommendationsJob( StopInferenceRecommendationsJobRequest stopInferenceRecommendationsJobRequest) { ExecutionContext executionContext = createExecutionContext(stopInferenceRecommendationsJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopInferenceRecommendationsJobRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(stopInferenceRecommendationsJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopInferenceRecommendationsJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopInferenceRecommendationsJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param stopLabelingJobRequest * @return Result of the StopLabelingJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopLabelingJob * @see AWS API * Documentation */ @Override public StopLabelingJobResult stopLabelingJob(StopLabelingJobRequest request) { request = beforeClientExecution(request); return executeStopLabelingJob(request); } @SdkInternalApi final StopLabelingJobResult executeStopLabelingJob(StopLabelingJobRequest stopLabelingJobRequest) { ExecutionContext executionContext = createExecutionContext(stopLabelingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopLabelingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopLabelingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopLabelingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopLabelingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Programmatically stop an MLflow Tracking Server. *

* * @param stopMlflowTrackingServerRequest * @return Result of the StopMlflowTrackingServer operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.StopMlflowTrackingServer * @see AWS API Documentation */ @Override public StopMlflowTrackingServerResult stopMlflowTrackingServer(StopMlflowTrackingServerRequest request) { request = beforeClientExecution(request); return executeStopMlflowTrackingServer(request); } @SdkInternalApi final StopMlflowTrackingServerResult executeStopMlflowTrackingServer(StopMlflowTrackingServerRequest stopMlflowTrackingServerRequest) { ExecutionContext executionContext = createExecutionContext(stopMlflowTrackingServerRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopMlflowTrackingServerRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(stopMlflowTrackingServerRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopMlflowTrackingServer"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopMlflowTrackingServerResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Stops a previously started monitoring schedule. *

* * @param stopMonitoringScheduleRequest * @return Result of the StopMonitoringSchedule operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopMonitoringSchedule * @see AWS API Documentation */ @Override public StopMonitoringScheduleResult stopMonitoringSchedule(StopMonitoringScheduleRequest request) { request = beforeClientExecution(request); return executeStopMonitoringSchedule(request); } @SdkInternalApi final StopMonitoringScheduleResult executeStopMonitoringSchedule(StopMonitoringScheduleRequest stopMonitoringScheduleRequest) { ExecutionContext executionContext = createExecutionContext(stopMonitoringScheduleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopMonitoringScheduleRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopMonitoringScheduleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopMonitoringSchedule"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopMonitoringScheduleResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Terminates the ML compute instance. Before terminating the instance, SageMaker disconnects the ML storage volume * from it. SageMaker preserves the ML storage volume. 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. *

* * @param stopNotebookInstanceRequest * @return Result of the StopNotebookInstance operation returned by the service. * @sample AmazonSageMaker.StopNotebookInstance * @see AWS * API Documentation */ @Override public StopNotebookInstanceResult stopNotebookInstance(StopNotebookInstanceRequest request) { request = beforeClientExecution(request); return executeStopNotebookInstance(request); } @SdkInternalApi final StopNotebookInstanceResult executeStopNotebookInstance(StopNotebookInstanceRequest stopNotebookInstanceRequest) { ExecutionContext executionContext = createExecutionContext(stopNotebookInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopNotebookInstanceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopNotebookInstanceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopNotebookInstance"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopNotebookInstanceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Ends a running inference optimization job. *

* * @param stopOptimizationJobRequest * @return Result of the StopOptimizationJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopOptimizationJob * @see AWS * API Documentation */ @Override public StopOptimizationJobResult stopOptimizationJob(StopOptimizationJobRequest request) { request = beforeClientExecution(request); return executeStopOptimizationJob(request); } @SdkInternalApi final StopOptimizationJobResult executeStopOptimizationJob(StopOptimizationJobRequest stopOptimizationJobRequest) { ExecutionContext executionContext = createExecutionContext(stopOptimizationJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopOptimizationJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopOptimizationJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopOptimizationJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopOptimizationJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Stops a pipeline execution. *

*

* Callback Step *

*

* A pipeline execution won't stop while a callback step is running. When you call * StopPipelineExecution on a pipeline execution with a running callback step, SageMaker Pipelines * sends an additional Amazon SQS message to the specified SQS queue. The body of the SQS message contains a * "Status" field which is set to "Stopping". *

*

* You should add logic to your Amazon SQS message consumer to take any needed action (for example, resource * cleanup) upon receipt of the message followed by a call to SendPipelineExecutionStepSuccess or * SendPipelineExecutionStepFailure. *

*

* Only when SageMaker Pipelines receives one of these calls will it stop the pipeline execution. *

*

* Lambda Step *

*

* A pipeline execution can't be stopped while a lambda step is running because the Lambda function invoked by the * lambda step can't be stopped. If you attempt to stop the execution while the Lambda function is running, the * pipeline waits for the Lambda function to finish or until the timeout is hit, whichever occurs first, and then * stops. If the Lambda function finishes, the pipeline execution status is Stopped. If the timeout is * hit the pipeline execution status is Failed. *

* * @param stopPipelineExecutionRequest * @return Result of the StopPipelineExecution operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.StopPipelineExecution * @see AWS API Documentation */ @Override public StopPipelineExecutionResult stopPipelineExecution(StopPipelineExecutionRequest request) { request = beforeClientExecution(request); return executeStopPipelineExecution(request); } @SdkInternalApi final StopPipelineExecutionResult executeStopPipelineExecution(StopPipelineExecutionRequest stopPipelineExecutionRequest) { ExecutionContext executionContext = createExecutionContext(stopPipelineExecutionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopPipelineExecutionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopPipelineExecutionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopPipelineExecution"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopPipelineExecutionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Stops a processing job. *

* * @param stopProcessingJobRequest * @return Result of the StopProcessingJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopProcessingJob * @see AWS * API Documentation */ @Override public StopProcessingJobResult stopProcessingJob(StopProcessingJobRequest request) { request = beforeClientExecution(request); return executeStopProcessingJob(request); } @SdkInternalApi final StopProcessingJobResult executeStopProcessingJob(StopProcessingJobRequest stopProcessingJobRequest) { ExecutionContext executionContext = createExecutionContext(stopProcessingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopProcessingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopProcessingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopProcessingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopProcessingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Stops a training job. To stop a job, 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, SageMaker changes the status of the job to * Stopping. After SageMaker stops the job, it sets the status to Stopped. *

* * @param stopTrainingJobRequest * @return Result of the StopTrainingJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopTrainingJob * @see AWS API * Documentation */ @Override public StopTrainingJobResult stopTrainingJob(StopTrainingJobRequest request) { request = beforeClientExecution(request); return executeStopTrainingJob(request); } @SdkInternalApi final StopTrainingJobResult executeStopTrainingJob(StopTrainingJobRequest stopTrainingJobRequest) { ExecutionContext executionContext = createExecutionContext(stopTrainingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopTrainingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopTrainingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopTrainingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopTrainingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Stops a batch 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 batch transform job before it is completed, Amazon SageMaker doesn't store the job's output in Amazon S3. *

* * @param stopTransformJobRequest * @return Result of the StopTransformJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.StopTransformJob * @see AWS API * Documentation */ @Override public StopTransformJobResult stopTransformJob(StopTransformJobRequest request) { request = beforeClientExecution(request); return executeStopTransformJob(request); } @SdkInternalApi final StopTransformJobResult executeStopTransformJob(StopTransformJobRequest stopTransformJobRequest) { ExecutionContext executionContext = createExecutionContext(stopTransformJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new StopTransformJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(stopTransformJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopTransformJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new StopTransformJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an action. *

* * @param updateActionRequest * @return Result of the UpdateAction operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateAction * @see AWS API * Documentation */ @Override public UpdateActionResult updateAction(UpdateActionRequest request) { request = beforeClientExecution(request); return executeUpdateAction(request); } @SdkInternalApi final UpdateActionResult executeUpdateAction(UpdateActionRequest updateActionRequest) { ExecutionContext executionContext = createExecutionContext(updateActionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateActionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateActionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateActionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the properties of an AppImageConfig. *

* * @param updateAppImageConfigRequest * @return Result of the UpdateAppImageConfig operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateAppImageConfig * @see AWS * API Documentation */ @Override public UpdateAppImageConfigResult updateAppImageConfig(UpdateAppImageConfigRequest request) { request = beforeClientExecution(request); return executeUpdateAppImageConfig(request); } @SdkInternalApi final UpdateAppImageConfigResult executeUpdateAppImageConfig(UpdateAppImageConfigRequest updateAppImageConfigRequest) { ExecutionContext executionContext = createExecutionContext(updateAppImageConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateAppImageConfigRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateAppImageConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAppImageConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateAppImageConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an artifact. *

* * @param updateArtifactRequest * @return Result of the UpdateArtifact operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateArtifact * @see AWS API * Documentation */ @Override public UpdateArtifactResult updateArtifact(UpdateArtifactRequest request) { request = beforeClientExecution(request); return executeUpdateArtifact(request); } @SdkInternalApi final UpdateArtifactResult executeUpdateArtifact(UpdateArtifactRequest updateArtifactRequest) { ExecutionContext executionContext = createExecutionContext(updateArtifactRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateArtifactRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateArtifactRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateArtifact"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateArtifactResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a SageMaker HyperPod cluster. *

* * @param updateClusterRequest * @return Result of the UpdateCluster operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.UpdateCluster * @see AWS API * Documentation */ @Override public UpdateClusterResult updateCluster(UpdateClusterRequest request) { request = beforeClientExecution(request); return executeUpdateCluster(request); } @SdkInternalApi final UpdateClusterResult executeUpdateCluster(UpdateClusterRequest updateClusterRequest) { ExecutionContext executionContext = createExecutionContext(updateClusterRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateClusterRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateClusterRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateCluster"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateClusterResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the platform software of a SageMaker HyperPod cluster for security patching. To learn how to use this * API, see Update the SageMaker HyperPod platform software of a cluster. *

* * @param updateClusterSoftwareRequest * @return Result of the UpdateClusterSoftware operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.UpdateClusterSoftware * @see AWS API Documentation */ @Override public UpdateClusterSoftwareResult updateClusterSoftware(UpdateClusterSoftwareRequest request) { request = beforeClientExecution(request); return executeUpdateClusterSoftware(request); } @SdkInternalApi final UpdateClusterSoftwareResult executeUpdateClusterSoftware(UpdateClusterSoftwareRequest updateClusterSoftwareRequest) { ExecutionContext executionContext = createExecutionContext(updateClusterSoftwareRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateClusterSoftwareRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateClusterSoftwareRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateClusterSoftware"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateClusterSoftwareResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the specified Git repository with the specified values. *

* * @param updateCodeRepositoryRequest * @return Result of the UpdateCodeRepository operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.UpdateCodeRepository * @see AWS * API Documentation */ @Override public UpdateCodeRepositoryResult updateCodeRepository(UpdateCodeRepositoryRequest request) { request = beforeClientExecution(request); return executeUpdateCodeRepository(request); } @SdkInternalApi final UpdateCodeRepositoryResult executeUpdateCodeRepository(UpdateCodeRepositoryRequest updateCodeRepositoryRequest) { ExecutionContext executionContext = createExecutionContext(updateCodeRepositoryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateCodeRepositoryRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateCodeRepositoryRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateCodeRepository"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateCodeRepositoryResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a context. *

* * @param updateContextRequest * @return Result of the UpdateContext operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateContext * @see AWS API * Documentation */ @Override public UpdateContextResult updateContext(UpdateContextRequest request) { request = beforeClientExecution(request); return executeUpdateContext(request); } @SdkInternalApi final UpdateContextResult executeUpdateContext(UpdateContextRequest updateContextRequest) { ExecutionContext executionContext = createExecutionContext(updateContextRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateContextRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateContextRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateContext"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateContextResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a fleet of devices. *

* * @param updateDeviceFleetRequest * @return Result of the UpdateDeviceFleet operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @sample AmazonSageMaker.UpdateDeviceFleet * @see AWS * API Documentation */ @Override public UpdateDeviceFleetResult updateDeviceFleet(UpdateDeviceFleetRequest request) { request = beforeClientExecution(request); return executeUpdateDeviceFleet(request); } @SdkInternalApi final UpdateDeviceFleetResult executeUpdateDeviceFleet(UpdateDeviceFleetRequest updateDeviceFleetRequest) { ExecutionContext executionContext = createExecutionContext(updateDeviceFleetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDeviceFleetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDeviceFleetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDeviceFleet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDeviceFleetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates one or more devices in a fleet. *

* * @param updateDevicesRequest * @return Result of the UpdateDevices operation returned by the service. * @sample AmazonSageMaker.UpdateDevices * @see AWS API * Documentation */ @Override public UpdateDevicesResult updateDevices(UpdateDevicesRequest request) { request = beforeClientExecution(request); return executeUpdateDevices(request); } @SdkInternalApi final UpdateDevicesResult executeUpdateDevices(UpdateDevicesRequest updateDevicesRequest) { ExecutionContext executionContext = createExecutionContext(updateDevicesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDevicesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDevicesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDevices"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDevicesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the default settings for new user profiles in the domain. *

* * @param updateDomainRequest * @return Result of the UpdateDomain operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateDomain * @see AWS API * Documentation */ @Override public UpdateDomainResult updateDomain(UpdateDomainRequest request) { request = beforeClientExecution(request); return executeUpdateDomain(request); } @SdkInternalApi final UpdateDomainResult executeUpdateDomain(UpdateDomainRequest updateDomainRequest) { ExecutionContext executionContext = createExecutionContext(updateDomainRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDomainRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDomainRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDomain"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDomainResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deploys the EndpointConfig specified in the request to a new fleet of instances. SageMaker shifts * endpoint traffic to the new instances with the updated endpoint configuration and then deletes the old instances * using the previous EndpointConfig (there is no availability loss). For more information about how to * control the update and traffic shifting process, see Update models in * production. *

*

* When 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. *

* *

* 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. *

*

* If you delete the EndpointConfig of an endpoint that is active or being created or updated you may * lose visibility into the instance type the endpoint is using. The endpoint must be deleted in order to stop * incurring charges. *

*
* * @param updateEndpointRequest * @return Result of the UpdateEndpoint operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.UpdateEndpoint * @see AWS API * Documentation */ @Override public UpdateEndpointResult updateEndpoint(UpdateEndpointRequest request) { request = beforeClientExecution(request); return executeUpdateEndpoint(request); } @SdkInternalApi final UpdateEndpointResult executeUpdateEndpoint(UpdateEndpointRequest updateEndpointRequest) { ExecutionContext executionContext = createExecutionContext(updateEndpointRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateEndpointRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateEndpointRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateEndpoint"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateEndpointResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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, 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. *

* * @param updateEndpointWeightsAndCapacitiesRequest * @return Result of the UpdateEndpointWeightsAndCapacities operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.UpdateEndpointWeightsAndCapacities * @see AWS API Documentation */ @Override public UpdateEndpointWeightsAndCapacitiesResult updateEndpointWeightsAndCapacities(UpdateEndpointWeightsAndCapacitiesRequest request) { request = beforeClientExecution(request); return executeUpdateEndpointWeightsAndCapacities(request); } @SdkInternalApi final UpdateEndpointWeightsAndCapacitiesResult executeUpdateEndpointWeightsAndCapacities( UpdateEndpointWeightsAndCapacitiesRequest updateEndpointWeightsAndCapacitiesRequest) { ExecutionContext executionContext = createExecutionContext(updateEndpointWeightsAndCapacitiesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateEndpointWeightsAndCapacitiesRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateEndpointWeightsAndCapacitiesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateEndpointWeightsAndCapacities"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateEndpointWeightsAndCapacitiesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Adds, updates, or removes the description of an experiment. Updates the display name of an experiment. *

* * @param updateExperimentRequest * @return Result of the UpdateExperiment operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateExperiment * @see AWS API * Documentation */ @Override public UpdateExperimentResult updateExperiment(UpdateExperimentRequest request) { request = beforeClientExecution(request); return executeUpdateExperiment(request); } @SdkInternalApi final UpdateExperimentResult executeUpdateExperiment(UpdateExperimentRequest updateExperimentRequest) { ExecutionContext executionContext = createExecutionContext(updateExperimentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateExperimentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateExperimentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateExperiment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateExperimentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the feature group by either adding features or updating the online store configuration. Use one of the * following request parameters at a time while using the UpdateFeatureGroup API. *

*

* You can add features for your feature group using the FeatureAdditions request parameter. Features * cannot be removed from a feature group. *

*

* You can update the online store configuration by using the OnlineStoreConfig request parameter. If a * TtlDuration is specified, the default TtlDuration applies for all records added to the * feature group after the feature group is updated. If a record level TtlDuration exists from * using the PutRecord API, the record level TtlDuration applies to that record instead of * the default TtlDuration. To remove the default TtlDuration from an existing feature * group, use the UpdateFeatureGroup API and set the TtlDuration Unit and * Value to null. *

* * @param updateFeatureGroupRequest * @return Result of the UpdateFeatureGroup operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.UpdateFeatureGroup * @see AWS * API Documentation */ @Override public UpdateFeatureGroupResult updateFeatureGroup(UpdateFeatureGroupRequest request) { request = beforeClientExecution(request); return executeUpdateFeatureGroup(request); } @SdkInternalApi final UpdateFeatureGroupResult executeUpdateFeatureGroup(UpdateFeatureGroupRequest updateFeatureGroupRequest) { ExecutionContext executionContext = createExecutionContext(updateFeatureGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateFeatureGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateFeatureGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateFeatureGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateFeatureGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the description and parameters of the feature group. *

* * @param updateFeatureMetadataRequest * @return Result of the UpdateFeatureMetadata operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateFeatureMetadata * @see AWS API Documentation */ @Override public UpdateFeatureMetadataResult updateFeatureMetadata(UpdateFeatureMetadataRequest request) { request = beforeClientExecution(request); return executeUpdateFeatureMetadata(request); } @SdkInternalApi final UpdateFeatureMetadataResult executeUpdateFeatureMetadata(UpdateFeatureMetadataRequest updateFeatureMetadataRequest) { ExecutionContext executionContext = createExecutionContext(updateFeatureMetadataRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateFeatureMetadataRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateFeatureMetadataRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateFeatureMetadata"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateFeatureMetadataResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Update a hub. *

* * @param updateHubRequest * @return Result of the UpdateHub operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateHub * @see AWS API * Documentation */ @Override public UpdateHubResult updateHub(UpdateHubRequest request) { request = beforeClientExecution(request); return executeUpdateHub(request); } @SdkInternalApi final UpdateHubResult executeUpdateHub(UpdateHubRequest updateHubRequest) { ExecutionContext executionContext = createExecutionContext(updateHubRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateHubRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateHubRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateHub"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateHubResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the properties of a SageMaker image. To change the image's tags, use the AddTags and DeleteTags APIs. *

* * @param updateImageRequest * @return Result of the UpdateImage operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateImage * @see AWS API * Documentation */ @Override public UpdateImageResult updateImage(UpdateImageRequest request) { request = beforeClientExecution(request); return executeUpdateImage(request); } @SdkInternalApi final UpdateImageResult executeUpdateImage(UpdateImageRequest updateImageRequest) { ExecutionContext executionContext = createExecutionContext(updateImageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateImageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateImageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateImage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateImageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the properties of a SageMaker image version. *

* * @param updateImageVersionRequest * @return Result of the UpdateImageVersion operation returned by the service. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateImageVersion * @see AWS * API Documentation */ @Override public UpdateImageVersionResult updateImageVersion(UpdateImageVersionRequest request) { request = beforeClientExecution(request); return executeUpdateImageVersion(request); } @SdkInternalApi final UpdateImageVersionResult executeUpdateImageVersion(UpdateImageVersionRequest updateImageVersionRequest) { ExecutionContext executionContext = createExecutionContext(updateImageVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateImageVersionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateImageVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateImageVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateImageVersionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an inference component. *

* * @param updateInferenceComponentRequest * @return Result of the UpdateInferenceComponent operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.UpdateInferenceComponent * @see AWS API Documentation */ @Override public UpdateInferenceComponentResult updateInferenceComponent(UpdateInferenceComponentRequest request) { request = beforeClientExecution(request); return executeUpdateInferenceComponent(request); } @SdkInternalApi final UpdateInferenceComponentResult executeUpdateInferenceComponent(UpdateInferenceComponentRequest updateInferenceComponentRequest) { ExecutionContext executionContext = createExecutionContext(updateInferenceComponentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateInferenceComponentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateInferenceComponentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateInferenceComponent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateInferenceComponentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Runtime settings for a model that is deployed with an inference component. *

* * @param updateInferenceComponentRuntimeConfigRequest * @return Result of the UpdateInferenceComponentRuntimeConfig operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.UpdateInferenceComponentRuntimeConfig * @see AWS API Documentation */ @Override public UpdateInferenceComponentRuntimeConfigResult updateInferenceComponentRuntimeConfig(UpdateInferenceComponentRuntimeConfigRequest request) { request = beforeClientExecution(request); return executeUpdateInferenceComponentRuntimeConfig(request); } @SdkInternalApi final UpdateInferenceComponentRuntimeConfigResult executeUpdateInferenceComponentRuntimeConfig( UpdateInferenceComponentRuntimeConfigRequest updateInferenceComponentRuntimeConfigRequest) { ExecutionContext executionContext = createExecutionContext(updateInferenceComponentRuntimeConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateInferenceComponentRuntimeConfigRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateInferenceComponentRuntimeConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateInferenceComponentRuntimeConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateInferenceComponentRuntimeConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an inference experiment that you created. The status of the inference experiment has to be either * Created, Running. For more information on the status of an inference experiment, see * DescribeInferenceExperiment. *

* * @param updateInferenceExperimentRequest * @return Result of the UpdateInferenceExperiment operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateInferenceExperiment * @see AWS API Documentation */ @Override public UpdateInferenceExperimentResult updateInferenceExperiment(UpdateInferenceExperimentRequest request) { request = beforeClientExecution(request); return executeUpdateInferenceExperiment(request); } @SdkInternalApi final UpdateInferenceExperimentResult executeUpdateInferenceExperiment(UpdateInferenceExperimentRequest updateInferenceExperimentRequest) { ExecutionContext executionContext = createExecutionContext(updateInferenceExperimentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateInferenceExperimentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateInferenceExperimentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateInferenceExperiment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateInferenceExperimentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates properties of an existing MLflow Tracking Server. *

* * @param updateMlflowTrackingServerRequest * @return Result of the UpdateMlflowTrackingServer operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.UpdateMlflowTrackingServer * @see AWS API Documentation */ @Override public UpdateMlflowTrackingServerResult updateMlflowTrackingServer(UpdateMlflowTrackingServerRequest request) { request = beforeClientExecution(request); return executeUpdateMlflowTrackingServer(request); } @SdkInternalApi final UpdateMlflowTrackingServerResult executeUpdateMlflowTrackingServer(UpdateMlflowTrackingServerRequest updateMlflowTrackingServerRequest) { ExecutionContext executionContext = createExecutionContext(updateMlflowTrackingServerRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateMlflowTrackingServerRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateMlflowTrackingServerRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateMlflowTrackingServer"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateMlflowTrackingServerResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Update an Amazon SageMaker Model Card. *

* *

* You cannot update both model card content and model card status in a single call. *

*
* * @param updateModelCardRequest * @return Result of the UpdateModelCard operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.UpdateModelCard * @see AWS API * Documentation */ @Override public UpdateModelCardResult updateModelCard(UpdateModelCardRequest request) { request = beforeClientExecution(request); return executeUpdateModelCard(request); } @SdkInternalApi final UpdateModelCardResult executeUpdateModelCard(UpdateModelCardRequest updateModelCardRequest) { ExecutionContext executionContext = createExecutionContext(updateModelCardRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateModelCardRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateModelCardRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateModelCard"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateModelCardResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a versioned model. *

* * @param updateModelPackageRequest * @return Result of the UpdateModelPackage operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.UpdateModelPackage * @see AWS * API Documentation */ @Override public UpdateModelPackageResult updateModelPackage(UpdateModelPackageRequest request) { request = beforeClientExecution(request); return executeUpdateModelPackage(request); } @SdkInternalApi final UpdateModelPackageResult executeUpdateModelPackage(UpdateModelPackageRequest updateModelPackageRequest) { ExecutionContext executionContext = createExecutionContext(updateModelPackageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateModelPackageRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateModelPackageRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateModelPackage"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateModelPackageResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Update the parameters of a model monitor alert. *

* * @param updateMonitoringAlertRequest * @return Result of the UpdateMonitoringAlert operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateMonitoringAlert * @see AWS API Documentation */ @Override public UpdateMonitoringAlertResult updateMonitoringAlert(UpdateMonitoringAlertRequest request) { request = beforeClientExecution(request); return executeUpdateMonitoringAlert(request); } @SdkInternalApi final UpdateMonitoringAlertResult executeUpdateMonitoringAlert(UpdateMonitoringAlertRequest updateMonitoringAlertRequest) { ExecutionContext executionContext = createExecutionContext(updateMonitoringAlertRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateMonitoringAlertRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateMonitoringAlertRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateMonitoringAlert"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateMonitoringAlertResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a previously created schedule. *

* * @param updateMonitoringScheduleRequest * @return Result of the UpdateMonitoringSchedule operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateMonitoringSchedule * @see AWS API Documentation */ @Override public UpdateMonitoringScheduleResult updateMonitoringSchedule(UpdateMonitoringScheduleRequest request) { request = beforeClientExecution(request); return executeUpdateMonitoringSchedule(request); } @SdkInternalApi final UpdateMonitoringScheduleResult executeUpdateMonitoringSchedule(UpdateMonitoringScheduleRequest updateMonitoringScheduleRequest) { ExecutionContext executionContext = createExecutionContext(updateMonitoringScheduleRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateMonitoringScheduleRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateMonitoringScheduleRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateMonitoringSchedule"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateMonitoringScheduleResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. *

* * @param updateNotebookInstanceRequest * @return Result of the UpdateNotebookInstance operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.UpdateNotebookInstance * @see AWS API Documentation */ @Override public UpdateNotebookInstanceResult updateNotebookInstance(UpdateNotebookInstanceRequest request) { request = beforeClientExecution(request); return executeUpdateNotebookInstance(request); } @SdkInternalApi final UpdateNotebookInstanceResult executeUpdateNotebookInstance(UpdateNotebookInstanceRequest updateNotebookInstanceRequest) { ExecutionContext executionContext = createExecutionContext(updateNotebookInstanceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateNotebookInstanceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateNotebookInstanceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateNotebookInstance"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateNotebookInstanceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig API. *

* * @param updateNotebookInstanceLifecycleConfigRequest * @return Result of the UpdateNotebookInstanceLifecycleConfig operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.UpdateNotebookInstanceLifecycleConfig * @see AWS API Documentation */ @Override public UpdateNotebookInstanceLifecycleConfigResult updateNotebookInstanceLifecycleConfig(UpdateNotebookInstanceLifecycleConfigRequest request) { request = beforeClientExecution(request); return executeUpdateNotebookInstanceLifecycleConfig(request); } @SdkInternalApi final UpdateNotebookInstanceLifecycleConfigResult executeUpdateNotebookInstanceLifecycleConfig( UpdateNotebookInstanceLifecycleConfigRequest updateNotebookInstanceLifecycleConfigRequest) { ExecutionContext executionContext = createExecutionContext(updateNotebookInstanceLifecycleConfigRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateNotebookInstanceLifecycleConfigRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateNotebookInstanceLifecycleConfigRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateNotebookInstanceLifecycleConfig"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateNotebookInstanceLifecycleConfigResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a pipeline. *

* * @param updatePipelineRequest * @return Result of the UpdatePipeline operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.UpdatePipeline * @see AWS API * Documentation */ @Override public UpdatePipelineResult updatePipeline(UpdatePipelineRequest request) { request = beforeClientExecution(request); return executeUpdatePipeline(request); } @SdkInternalApi final UpdatePipelineResult executeUpdatePipeline(UpdatePipelineRequest updatePipelineRequest) { ExecutionContext executionContext = createExecutionContext(updatePipelineRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdatePipelineRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updatePipelineRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdatePipeline"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdatePipelineResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a pipeline execution. *

* * @param updatePipelineExecutionRequest * @return Result of the UpdatePipelineExecution operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.UpdatePipelineExecution * @see AWS API Documentation */ @Override public UpdatePipelineExecutionResult updatePipelineExecution(UpdatePipelineExecutionRequest request) { request = beforeClientExecution(request); return executeUpdatePipelineExecution(request); } @SdkInternalApi final UpdatePipelineExecutionResult executeUpdatePipelineExecution(UpdatePipelineExecutionRequest updatePipelineExecutionRequest) { ExecutionContext executionContext = createExecutionContext(updatePipelineExecutionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdatePipelineExecutionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updatePipelineExecutionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdatePipelineExecution"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdatePipelineExecutionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a machine learning (ML) project that is created from a template that sets up an ML pipeline from training * to deploying an approved model. *

* *

* You must not update a project that is in use. If you update the * ServiceCatalogProvisioningUpdateDetails of a project that is active or being created, or updated, * you may lose resources already created by the project. *

*
* * @param updateProjectRequest * @return Result of the UpdateProject operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.UpdateProject * @see AWS API * Documentation */ @Override public UpdateProjectResult updateProject(UpdateProjectRequest request) { request = beforeClientExecution(request); return executeUpdateProject(request); } @SdkInternalApi final UpdateProjectResult executeUpdateProject(UpdateProjectRequest updateProjectRequest) { ExecutionContext executionContext = createExecutionContext(updateProjectRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateProjectRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateProjectRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateProject"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateProjectResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the settings of a space. *

* * @param updateSpaceRequest * @return Result of the UpdateSpace operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateSpace * @see AWS API * Documentation */ @Override public UpdateSpaceResult updateSpace(UpdateSpaceRequest request) { request = beforeClientExecution(request); return executeUpdateSpace(request); } @SdkInternalApi final UpdateSpaceResult executeUpdateSpace(UpdateSpaceRequest updateSpaceRequest) { ExecutionContext executionContext = createExecutionContext(updateSpaceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateSpaceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateSpaceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateSpace"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateSpaceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Update a model training job to request a new Debugger profiling configuration or to change warm pool retention * length. *

* * @param updateTrainingJobRequest * @return Result of the UpdateTrainingJob operation returned by the service. * @throws ResourceNotFoundException * Resource being access is not found. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.UpdateTrainingJob * @see AWS * API Documentation */ @Override public UpdateTrainingJobResult updateTrainingJob(UpdateTrainingJobRequest request) { request = beforeClientExecution(request); return executeUpdateTrainingJob(request); } @SdkInternalApi final UpdateTrainingJobResult executeUpdateTrainingJob(UpdateTrainingJobRequest updateTrainingJobRequest) { ExecutionContext executionContext = createExecutionContext(updateTrainingJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateTrainingJobRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateTrainingJobRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateTrainingJob"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateTrainingJobResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the display name of a trial. *

* * @param updateTrialRequest * @return Result of the UpdateTrial operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateTrial * @see AWS API * Documentation */ @Override public UpdateTrialResult updateTrial(UpdateTrialRequest request) { request = beforeClientExecution(request); return executeUpdateTrial(request); } @SdkInternalApi final UpdateTrialResult executeUpdateTrial(UpdateTrialRequest updateTrialRequest) { ExecutionContext executionContext = createExecutionContext(updateTrialRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateTrialRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateTrialRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateTrial"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateTrialResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates one or more properties of a trial component. *

* * @param updateTrialComponentRequest * @return Result of the UpdateTrialComponent operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateTrialComponent * @see AWS * API Documentation */ @Override public UpdateTrialComponentResult updateTrialComponent(UpdateTrialComponentRequest request) { request = beforeClientExecution(request); return executeUpdateTrialComponent(request); } @SdkInternalApi final UpdateTrialComponentResult executeUpdateTrialComponent(UpdateTrialComponentRequest updateTrialComponentRequest) { ExecutionContext executionContext = createExecutionContext(updateTrialComponentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateTrialComponentRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateTrialComponentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateTrialComponent"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateTrialComponentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a user profile. *

* * @param updateUserProfileRequest * @return Result of the UpdateUserProfile operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @throws ResourceInUseException * Resource being accessed is in use. * @throws ResourceNotFoundException * Resource being access is not found. * @sample AmazonSageMaker.UpdateUserProfile * @see AWS * API Documentation */ @Override public UpdateUserProfileResult updateUserProfile(UpdateUserProfileRequest request) { request = beforeClientExecution(request); return executeUpdateUserProfile(request); } @SdkInternalApi final UpdateUserProfileResult executeUpdateUserProfile(UpdateUserProfileRequest updateUserProfileRequest) { ExecutionContext executionContext = createExecutionContext(updateUserProfileRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateUserProfileRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateUserProfileRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateUserProfile"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateUserProfileResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use this operation to update your workforce. You can use this operation to require that workers use specific IP * addresses to work on tasks and to update your OpenID Connect (OIDC) Identity Provider (IdP) workforce * configuration. *

*

* The worker portal is now supported in VPC and public internet. *

*

* Use SourceIpConfig to restrict worker access to tasks to a specific range of IP addresses. You * specify allowed IP addresses by creating a list of up to ten CIDRs. By default, a workforce isn't * restricted to specific IP addresses. If you specify a range of IP addresses, workers who attempt to access tasks * using any IP address outside the specified range are denied and get a Not Found error message on the * worker portal. *

*

* To restrict access to all the workers in public internet, add the SourceIpConfig CIDR value as * "10.0.0.0/16". *

* *

* Amazon SageMaker does not support Source Ip restriction for worker portals in VPC. *

*
*

* Use OidcConfig to update the configuration of a workforce created using your own OIDC IdP. *

* *

* You can only update your OIDC IdP configuration when there are no work teams associated with your workforce. You * can delete work teams using the DeleteWorkteam * operation. *

*
*

* After restricting access to a range of IP addresses or updating your OIDC IdP configuration with this operation, * you can view details about your update workforce using the DescribeWorkforce * operation. *

* *

* This operation only applies to private workforces. *

*
* * @param updateWorkforceRequest * @return Result of the UpdateWorkforce operation returned by the service. * @throws ConflictException * There was a conflict when you attempted to modify a SageMaker entity such as an Experiment * or Artifact. * @sample AmazonSageMaker.UpdateWorkforce * @see AWS API * Documentation */ @Override public UpdateWorkforceResult updateWorkforce(UpdateWorkforceRequest request) { request = beforeClientExecution(request); return executeUpdateWorkforce(request); } @SdkInternalApi final UpdateWorkforceResult executeUpdateWorkforce(UpdateWorkforceRequest updateWorkforceRequest) { ExecutionContext executionContext = createExecutionContext(updateWorkforceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateWorkforceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateWorkforceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateWorkforce"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateWorkforceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an existing work team with new member definitions or description. *

* * @param updateWorkteamRequest * @return Result of the UpdateWorkteam operation returned by the service. * @throws ResourceLimitExceededException * You have exceeded an SageMaker resource limit. For example, you might have too many training jobs * created. * @sample AmazonSageMaker.UpdateWorkteam * @see AWS API * Documentation */ @Override public UpdateWorkteamResult updateWorkteam(UpdateWorkteamRequest request) { request = beforeClientExecution(request); return executeUpdateWorkteam(request); } @SdkInternalApi final UpdateWorkteamResult executeUpdateWorkteam(UpdateWorkteamRequest updateWorkteamRequest) { ExecutionContext executionContext = createExecutionContext(updateWorkteamRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateWorkteamRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateWorkteamRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "SageMaker"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateWorkteam"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateWorkteamResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** * Returns additional metadata for a previously executed successful, request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. *

* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing the request. * * @param request * The originally executed request * * @return The response metadata for the specified request, or null if none is available. */ public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) { return client.getResponseMetadataForRequest(request); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return invoke(request, responseHandler, executionContext, null, null); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI cachedEndpoint, URI uriFromEndpointTrait) { executionContext.setCredentialsProvider(CredentialUtils.getCredentialsProvider(request.getOriginalRequest(), awsCredentialsProvider)); return doInvoke(request, responseHandler, executionContext, cachedEndpoint, uriFromEndpointTrait); } /** * Invoke with no authentication. Credentials are not required and any credentials set on the client or request will * be ignored for this operation. **/ private Response anonymousInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return doInvoke(request, responseHandler, executionContext, null, null); } /** * Invoke the request using the http client. Assumes credentials (or lack thereof) have been configured in the * ExecutionContext beforehand. **/ private Response doInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) { if (discoveredEndpoint != null) { request.setEndpoint(discoveredEndpoint); request.getOriginalRequest().getRequestClientOptions().appendUserAgent("endpoint-discovery"); } else if (uriFromEndpointTrait != null) { request.setEndpoint(uriFromEndpointTrait); } else { request.setEndpoint(endpoint); } request.setTimeOffset(timeOffset); HttpResponseHandler errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata()); return client.execute(request, responseHandler, errorResponseHandler, executionContext); } @com.amazonaws.annotation.SdkInternalApi static com.amazonaws.protocol.json.SdkJsonProtocolFactory getProtocolFactory() { return protocolFactory; } @Override public AmazonSageMakerWaiters waiters() { if (waiters == null) { synchronized (this) { if (waiters == null) { waiters = new AmazonSageMakerWaiters(this); } } } return waiters; } @Override public void shutdown() { super.shutdown(); if (waiters != null) { waiters.shutdown(); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy