diff --git a/clients/client-sagemaker/src/commands/CreateImageVersionCommand.ts b/clients/client-sagemaker/src/commands/CreateImageVersionCommand.ts index 6fb675ad8cae..12e7f15284e2 100644 --- a/clients/client-sagemaker/src/commands/CreateImageVersionCommand.ts +++ b/clients/client-sagemaker/src/commands/CreateImageVersionCommand.ts @@ -11,8 +11,7 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { CreateImageVersionRequest } from "../models/models_0"; -import { CreateImageVersionResponse } from "../models/models_1"; +import { CreateImageVersionRequest, CreateImageVersionResponse } from "../models/models_1"; import { deserializeAws_json1_1CreateImageVersionCommand, serializeAws_json1_1CreateImageVersionCommand, diff --git a/clients/client-sagemaker/src/commands/ListTagsCommand.ts b/clients/client-sagemaker/src/commands/ListTagsCommand.ts index dc1e89d066e0..74c6b83eeb05 100644 --- a/clients/client-sagemaker/src/commands/ListTagsCommand.ts +++ b/clients/client-sagemaker/src/commands/ListTagsCommand.ts @@ -11,7 +11,8 @@ import { SerdeContext as __SerdeContext, } from "@aws-sdk/types"; -import { ListTagsInput, ListTagsOutput } from "../models/models_2"; +import { ListTagsInput } from "../models/models_2"; +import { ListTagsOutput } from "../models/models_3"; import { deserializeAws_json1_1ListTagsCommand, serializeAws_json1_1ListTagsCommand } from "../protocols/Aws_json1_1"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; diff --git a/clients/client-sagemaker/src/models/models_0.ts b/clients/client-sagemaker/src/models/models_0.ts index 92a246a20483..6da80a633537 100644 --- a/clients/client-sagemaker/src/models/models_0.ts +++ b/clients/client-sagemaker/src/models/models_0.ts @@ -4217,6 +4217,23 @@ export enum MetricSetSource { VALIDATION = "Validation", } +export enum AutoMLMetricExtendedEnum { + ACCURACY = "Accuracy", + AUC = "AUC", + BALANCED_ACCURACY = "BalancedAccuracy", + F1 = "F1", + F1_MACRO = "F1macro", + LogLoss = "LogLoss", + MAE = "MAE", + MSE = "MSE", + PRECISION = "Precision", + PRECISION_MACRO = "PrecisionMacro", + R2 = "R2", + RECALL = "Recall", + RECALL_MACRO = "RecallMacro", + RMSE = "RMSE", +} + /** *
Information about the metric for a candidate produced by an AutoML job.
*/ @@ -4235,6 +4252,11 @@ export interface MetricDatum { *The dataset split from which the AutoML job produced the metric.
*/ Set?: MetricSetSource | string; + + /** + *The name of the standard metric.
+ */ + StandardMetricName?: AutoMLMetricExtendedEnum | string; } export namespace MetricDatum { @@ -8990,7 +9012,18 @@ export namespace KernelGatewayAppSettings { /** *A collection of settings that apply to an RSessionGateway
app.
Specifies the ARN's of a SageMaker image and SageMaker image version, and the instance type that + * the version runs on.
+ */ + DefaultResourceSpec?: ResourceSpec; + + /** + *A list of custom SageMaker images that are configured to run as a RSession app.
+ */ + CustomImages?: CustomImage[]; +} export namespace RSessionAppSettings { /** @@ -11909,34 +11942,3 @@ export namespace CreateImageResponse { ...obj, }); } - -export interface CreateImageVersionRequest { - /** - *The registry path of the container image to use as the starting point for this - * version. The path is an Amazon Elastic Container Registry (ECR) URI in the following format:
- *
- *
- *
A unique ID. If not specified, the Amazon Web Services CLI and Amazon Web Services SDKs, such as the SDK for Python - * (Boto3), add a unique value to the call.
- */ - ClientToken?: string; - - /** - *The ImageName
of the Image
to create a version of.
The registry path of the container image to use as the starting point for this + * version. The path is an Amazon Elastic Container Registry (ECR) URI in the following format:
+ *
+ *
+ *
A unique ID. If not specified, the Amazon Web Services CLI and Amazon Web Services SDKs, such as the SDK for Python + * (Boto3), add a unique value to the call.
+ */ + ClientToken?: string; + + /** + *The ImageName
of the Image
to create a version of.
The Amazon Resource Name (ARN) of the image version.
@@ -11330,12 +11361,3 @@ export namespace LabelingJobOutput { ...obj, }); } - -export enum LabelingJobStatus { - COMPLETED = "Completed", - FAILED = "Failed", - INITIALIZING = "Initializing", - IN_PROGRESS = "InProgress", - STOPPED = "Stopped", - STOPPING = "Stopping", -} diff --git a/clients/client-sagemaker/src/models/models_2.ts b/clients/client-sagemaker/src/models/models_2.ts index 49397f4288c2..7b45b2fb6560 100644 --- a/clients/client-sagemaker/src/models/models_2.ts +++ b/clients/client-sagemaker/src/models/models_2.ts @@ -89,7 +89,6 @@ import { LabelingJobInputConfig, LabelingJobOutput, LabelingJobOutputConfig, - LabelingJobStatus, LabelingJobStoppingConditions, MemberDefinition, ModelArtifacts, @@ -138,6 +137,15 @@ import { TrialComponentStatus, } from "./models_1"; +export enum LabelingJobStatus { + COMPLETED = "Completed", + FAILED = "Failed", + INITIALIZING = "Initializing", + IN_PROGRESS = "InProgress", + STOPPED = "Stopped", + STOPPING = "Stopping", +} + export interface DescribeLabelingJobResponse { /** *The processing status of the labeling job.
@@ -10916,25 +10924,3 @@ export namespace ListTagsInput { ...obj, }); } - -export interface ListTagsOutput { - /** - *An array of Tag
objects, each with a tag key and a value.
If response is truncated, SageMaker includes a token in the response. You can use this - * token in your subsequent request to fetch next set of tokens.
- */ - NextToken?: string; -} - -export namespace ListTagsOutput { - /** - * @internal - */ - export const filterSensitiveLog = (obj: ListTagsOutput): any => ({ - ...obj, - }); -} diff --git a/clients/client-sagemaker/src/models/models_3.ts b/clients/client-sagemaker/src/models/models_3.ts index bbe8af02f752..2033a0241512 100644 --- a/clients/client-sagemaker/src/models/models_3.ts +++ b/clients/client-sagemaker/src/models/models_3.ts @@ -102,6 +102,28 @@ import { Workteam, } from "./models_2"; +export interface ListTagsOutput { + /** + *An array of Tag
objects, each with a tag key and a value.
If response is truncated, SageMaker includes a token in the response. You can use this + * token in your subsequent request to fetch next set of tokens.
+ */ + NextToken?: string; +} + +export namespace ListTagsOutput { + /** + * @internal + */ + export const filterSensitiveLog = (obj: ListTagsOutput): any => ({ + ...obj, + }); +} + export interface ListTrainingJobsRequest { /** *If the result of the previous ListTrainingJobs
request was truncated,
diff --git a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts
index 97e8640a849d..b25e74b711bd 100644
--- a/clients/client-sagemaker/src/protocols/Aws_json1_1.ts
+++ b/clients/client-sagemaker/src/protocols/Aws_json1_1.ts
@@ -769,7 +769,6 @@ import {
CreateHyperParameterTuningJobResponse,
CreateImageRequest,
CreateImageResponse,
- CreateImageVersionRequest,
CustomImage,
DataCaptureConfig,
DataCatalogConfig,
@@ -877,6 +876,7 @@ import {
VpcConfig,
} from "../models/models_0";
import {
+ CreateImageVersionRequest,
CreateImageVersionResponse,
CreateInferenceRecommendationsJobRequest,
CreateInferenceRecommendationsJobResponse,
@@ -1341,7 +1341,6 @@ import {
ListSubscribedWorkteamsRequest,
ListSubscribedWorkteamsResponse,
ListTagsInput,
- ListTagsOutput,
MetricData,
ModelMetadataFilter,
ModelMetadataSearchExpression,
@@ -1389,6 +1388,7 @@ import {
Workteam,
} from "../models/models_2";
import {
+ ListTagsOutput,
ListTrainingJobsForHyperParameterTuningJobRequest,
ListTrainingJobsForHyperParameterTuningJobResponse,
ListTrainingJobsRequest,
@@ -22365,7 +22365,14 @@ const serializeAws_json1_1RetryStrategy = (input: RetryStrategy, context: __Serd
};
const serializeAws_json1_1RSessionAppSettings = (input: RSessionAppSettings, context: __SerdeContext): any => {
- return {};
+ return {
+ ...(input.CustomImages !== undefined &&
+ input.CustomImages !== null && { CustomImages: serializeAws_json1_1CustomImages(input.CustomImages, context) }),
+ ...(input.DefaultResourceSpec !== undefined &&
+ input.DefaultResourceSpec !== null && {
+ DefaultResourceSpec: serializeAws_json1_1ResourceSpec(input.DefaultResourceSpec, context),
+ }),
+ };
};
const serializeAws_json1_1RStudioServerProAppSettings = (
@@ -30445,6 +30452,7 @@ const deserializeAws_json1_1MetricDatum = (output: any, context: __SerdeContext)
return {
MetricName: __expectString(output.MetricName),
Set: __expectString(output.Set),
+ StandardMetricName: __expectString(output.StandardMetricName),
Value: __limitedParseFloat32(output.Value),
} as any;
};
@@ -33070,7 +33078,16 @@ const deserializeAws_json1_1RetryStrategy = (output: any, context: __SerdeContex
};
const deserializeAws_json1_1RSessionAppSettings = (output: any, context: __SerdeContext): RSessionAppSettings => {
- return {} as any;
+ return {
+ CustomImages:
+ output.CustomImages !== undefined && output.CustomImages !== null
+ ? deserializeAws_json1_1CustomImages(output.CustomImages, context)
+ : undefined,
+ DefaultResourceSpec:
+ output.DefaultResourceSpec !== undefined && output.DefaultResourceSpec !== null
+ ? deserializeAws_json1_1ResourceSpec(output.DefaultResourceSpec, context)
+ : undefined,
+ } as any;
};
const deserializeAws_json1_1RStudioServerProAppSettings = (
diff --git a/codegen/sdk-codegen/aws-models/sagemaker.json b/codegen/sdk-codegen/aws-models/sagemaker.json
index 6c4fe0847ea7..35e0789cd405 100644
--- a/codegen/sdk-codegen/aws-models/sagemaker.json
+++ b/codegen/sdk-codegen/aws-models/sagemaker.json
@@ -2356,6 +2356,69 @@
]
}
},
+ "com.amazonaws.sagemaker#AutoMLMetricExtendedEnum": {
+ "type": "string",
+ "traits": {
+ "smithy.api#enum": [
+ {
+ "value": "Accuracy",
+ "name": "ACCURACY"
+ },
+ {
+ "value": "MSE",
+ "name": "MSE"
+ },
+ {
+ "value": "F1",
+ "name": "F1"
+ },
+ {
+ "value": "F1macro",
+ "name": "F1_MACRO"
+ },
+ {
+ "value": "AUC",
+ "name": "AUC"
+ },
+ {
+ "value": "RMSE",
+ "name": "RMSE"
+ },
+ {
+ "value": "MAE",
+ "name": "MAE"
+ },
+ {
+ "value": "R2",
+ "name": "R2"
+ },
+ {
+ "value": "BalancedAccuracy",
+ "name": "BALANCED_ACCURACY"
+ },
+ {
+ "value": "Precision",
+ "name": "PRECISION"
+ },
+ {
+ "value": "PrecisionMacro",
+ "name": "PRECISION_MACRO"
+ },
+ {
+ "value": "Recall",
+ "name": "RECALL"
+ },
+ {
+ "value": "RecallMacro",
+ "name": "RECALL_MACRO"
+ },
+ {
+ "value": "LogLoss",
+ "name": "LogLoss"
+ }
+ ]
+ }
+ },
"com.amazonaws.sagemaker#AutoMLNameContains": {
"type": "string",
"traits": {
@@ -27085,6 +27148,12 @@
"traits": {
"smithy.api#documentation": "
The dataset split from which the AutoML job produced the metric.
" } + }, + "StandardMetricName": { + "target": "com.amazonaws.sagemaker#AutoMLMetricExtendedEnum", + "traits": { + "smithy.api#documentation": "The name of the standard metric.
" + } } }, "traits": { @@ -33755,7 +33824,17 @@ }, "com.amazonaws.sagemaker#RSessionAppSettings": { "type": "structure", - "members": {}, + "members": { + "DefaultResourceSpec": { + "target": "com.amazonaws.sagemaker#ResourceSpec" + }, + "CustomImages": { + "target": "com.amazonaws.sagemaker#CustomImages", + "traits": { + "smithy.api#documentation": "A list of custom SageMaker images that are configured to run as a RSession app.
" + } + } + }, "traits": { "smithy.api#documentation": "A collection of settings that apply to an RSessionGateway
app.