@aws-sdk/client-sagemaker 3.233.0 → 3.234.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist-cjs/SageMaker.js +30 -0
  2. package/dist-cjs/commands/DescribeAlgorithmCommand.js +3 -3
  3. package/dist-cjs/commands/DescribeAppCommand.js +1 -2
  4. package/dist-cjs/commands/ListAliasesCommand.js +46 -0
  5. package/dist-cjs/commands/ListAssociationsCommand.js +2 -1
  6. package/dist-cjs/commands/ListAutoMLJobsCommand.js +3 -3
  7. package/dist-cjs/commands/ListCandidatesForAutoMLJobCommand.js +3 -3
  8. package/dist-cjs/commands/UpdateFeatureGroupCommand.js +2 -1
  9. package/dist-cjs/commands/UpdateFeatureMetadataCommand.js +2 -2
  10. package/dist-cjs/commands/UpdateHubCommand.js +3 -3
  11. package/dist-cjs/commands/UpdateImageCommand.js +1 -2
  12. package/dist-cjs/commands/UpdateImageVersionCommand.js +46 -0
  13. package/dist-cjs/commands/index.js +2 -0
  14. package/dist-cjs/models/models_1.js +25 -19
  15. package/dist-cjs/models/models_2.js +25 -25
  16. package/dist-cjs/models/models_3.js +26 -26
  17. package/dist-cjs/models/models_4.js +29 -1
  18. package/dist-cjs/pagination/ListAliasesPaginator.js +36 -0
  19. package/dist-cjs/pagination/index.js +1 -0
  20. package/dist-cjs/protocols/Aws_json1_1.js +177 -9
  21. package/dist-es/SageMaker.js +30 -0
  22. package/dist-es/commands/DescribeAlgorithmCommand.js +1 -1
  23. package/dist-es/commands/DescribeAppCommand.js +1 -2
  24. package/dist-es/commands/ListAliasesCommand.js +42 -0
  25. package/dist-es/commands/ListAssociationsCommand.js +2 -1
  26. package/dist-es/commands/ListAutoMLJobsCommand.js +1 -1
  27. package/dist-es/commands/ListCandidatesForAutoMLJobCommand.js +1 -1
  28. package/dist-es/commands/UpdateFeatureGroupCommand.js +2 -1
  29. package/dist-es/commands/UpdateFeatureMetadataCommand.js +1 -1
  30. package/dist-es/commands/UpdateHubCommand.js +1 -1
  31. package/dist-es/commands/UpdateImageCommand.js +1 -2
  32. package/dist-es/commands/UpdateImageVersionCommand.js +42 -0
  33. package/dist-es/commands/index.js +2 -0
  34. package/dist-es/models/models_1.js +18 -9
  35. package/dist-es/models/models_2.js +15 -15
  36. package/dist-es/models/models_3.js +15 -15
  37. package/dist-es/models/models_4.js +21 -0
  38. package/dist-es/pagination/ListAliasesPaginator.js +32 -0
  39. package/dist-es/pagination/index.js +1 -0
  40. package/dist-es/protocols/Aws_json1_1.js +164 -0
  41. package/dist-types/SageMaker.d.ts +14 -0
  42. package/dist-types/SageMakerClient.d.ts +4 -2
  43. package/dist-types/commands/DescribeAlgorithmCommand.d.ts +1 -1
  44. package/dist-types/commands/DescribeAppCommand.d.ts +1 -2
  45. package/dist-types/commands/ListAliasesCommand.d.ts +37 -0
  46. package/dist-types/commands/ListAssociationsCommand.d.ts +2 -1
  47. package/dist-types/commands/ListAutoMLJobsCommand.d.ts +1 -1
  48. package/dist-types/commands/ListCandidatesForAutoMLJobCommand.d.ts +1 -1
  49. package/dist-types/commands/UpdateFeatureGroupCommand.d.ts +2 -1
  50. package/dist-types/commands/UpdateFeatureMetadataCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdateHubCommand.d.ts +1 -1
  52. package/dist-types/commands/UpdateImageCommand.d.ts +1 -2
  53. package/dist-types/commands/UpdateImageVersionCommand.d.ts +37 -0
  54. package/dist-types/commands/index.d.ts +2 -0
  55. package/dist-types/models/models_1.d.ts +99 -94
  56. package/dist-types/models/models_2.d.ts +210 -134
  57. package/dist-types/models/models_3.d.ts +129 -97
  58. package/dist-types/models/models_4.d.ts +204 -3
  59. package/dist-types/pagination/ListAliasesPaginator.d.ts +4 -0
  60. package/dist-types/pagination/index.d.ts +1 -0
  61. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  62. package/dist-types/ts3.4/SageMaker.d.ts +34 -0
  63. package/dist-types/ts3.4/SageMakerClient.d.ts +12 -0
  64. package/dist-types/ts3.4/commands/DescribeAlgorithmCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/DescribeAppCommand.d.ts +1 -2
  66. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +34 -0
  67. package/dist-types/ts3.4/commands/ListAssociationsCommand.d.ts +2 -4
  68. package/dist-types/ts3.4/commands/ListAutoMLJobsCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/ListCandidatesForAutoMLJobCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/UpdateFeatureGroupCommand.d.ts +2 -4
  71. package/dist-types/ts3.4/commands/UpdateFeatureMetadataCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/UpdateHubCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/UpdateImageCommand.d.ts +1 -2
  74. package/dist-types/ts3.4/commands/UpdateImageVersionCommand.d.ts +38 -0
  75. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  76. package/dist-types/ts3.4/models/models_1.d.ts +25 -37
  77. package/dist-types/ts3.4/models/models_2.d.ts +64 -54
  78. package/dist-types/ts3.4/models/models_3.d.ts +56 -42
  79. package/dist-types/ts3.4/models/models_4.d.ts +74 -1
  80. package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +11 -0
  81. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  82. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  83. package/package.json +7 -7
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateImageVersionRequestFilterSensitiveLog, UpdateImageVersionResponseFilterSensitiveLog, } from "../models/models_4";
5
+ import { deserializeAws_json1_1UpdateImageVersionCommand, serializeAws_json1_1UpdateImageVersionCommand, } from "../protocols/Aws_json1_1";
6
+ export class UpdateImageVersionCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateImageVersionCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SageMakerClient";
25
+ const commandName = "UpdateImageVersionCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateImageVersionRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateImageVersionResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1UpdateImageVersionCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1UpdateImageVersionCommand(output, context);
41
+ }
42
+ }
@@ -169,6 +169,7 @@ export * from "./GetSearchSuggestionsCommand";
169
169
  export * from "./ImportHubContentCommand";
170
170
  export * from "./ListActionsCommand";
171
171
  export * from "./ListAlgorithmsCommand";
172
+ export * from "./ListAliasesCommand";
172
173
  export * from "./ListAppImageConfigsCommand";
173
174
  export * from "./ListAppsCommand";
174
175
  export * from "./ListArtifactsCommand";
@@ -279,6 +280,7 @@ export * from "./UpdateFeatureGroupCommand";
279
280
  export * from "./UpdateFeatureMetadataCommand";
280
281
  export * from "./UpdateHubCommand";
281
282
  export * from "./UpdateImageCommand";
283
+ export * from "./UpdateImageVersionCommand";
282
284
  export * from "./UpdateInferenceExperimentCommand";
283
285
  export * from "./UpdateModelCardCommand";
284
286
  export * from "./UpdateModelPackageCommand";
@@ -25,6 +25,24 @@ export var HyperParameterTuningJobWarmStartType;
25
25
  HyperParameterTuningJobWarmStartType["IDENTICAL_DATA_AND_ALGORITHM"] = "IdenticalDataAndAlgorithm";
26
26
  HyperParameterTuningJobWarmStartType["TRANSFER_LEARNING"] = "TransferLearning";
27
27
  })(HyperParameterTuningJobWarmStartType || (HyperParameterTuningJobWarmStartType = {}));
28
+ export var JobType;
29
+ (function (JobType) {
30
+ JobType["INFERENCE"] = "INFERENCE";
31
+ JobType["NOTEBOOK_KERNEL"] = "NOTEBOOK_KERNEL";
32
+ JobType["TRAINING"] = "TRAINING";
33
+ })(JobType || (JobType = {}));
34
+ export var Processor;
35
+ (function (Processor) {
36
+ Processor["CPU"] = "CPU";
37
+ Processor["GPU"] = "GPU";
38
+ })(Processor || (Processor = {}));
39
+ export var VendorGuidance;
40
+ (function (VendorGuidance) {
41
+ VendorGuidance["ARCHIVED"] = "ARCHIVED";
42
+ VendorGuidance["NOT_PROVIDED"] = "NOT_PROVIDED";
43
+ VendorGuidance["STABLE"] = "STABLE";
44
+ VendorGuidance["TO_BE_ARCHIVED"] = "TO_BE_ARCHIVED";
45
+ })(VendorGuidance || (VendorGuidance = {}));
28
46
  export var ModelInfrastructureType;
29
47
  (function (ModelInfrastructureType) {
30
48
  ModelInfrastructureType["REAL_TIME_INFERENCE"] = "RealTimeInference";
@@ -1061,12 +1079,3 @@ export const DescribeActionRequestFilterSensitiveLog = (obj) => ({
1061
1079
  export const DescribeActionResponseFilterSensitiveLog = (obj) => ({
1062
1080
  ...obj,
1063
1081
  });
1064
- export const DescribeAlgorithmInputFilterSensitiveLog = (obj) => ({
1065
- ...obj,
1066
- });
1067
- export const DescribeAlgorithmOutputFilterSensitiveLog = (obj) => ({
1068
- ...obj,
1069
- });
1070
- export const DescribeAppRequestFilterSensitiveLog = (obj) => ({
1071
- ...obj,
1072
- });
@@ -475,6 +475,15 @@ export var SortAssociationsBy;
475
475
  SortAssociationsBy["SOURCE_ARN"] = "SourceArn";
476
476
  SortAssociationsBy["SOURCE_TYPE"] = "SourceType";
477
477
  })(SortAssociationsBy || (SortAssociationsBy = {}));
478
+ export const DescribeAlgorithmInputFilterSensitiveLog = (obj) => ({
479
+ ...obj,
480
+ });
481
+ export const DescribeAlgorithmOutputFilterSensitiveLog = (obj) => ({
482
+ ...obj,
483
+ });
484
+ export const DescribeAppRequestFilterSensitiveLog = (obj) => ({
485
+ ...obj,
486
+ });
478
487
  export const DescribeAppResponseFilterSensitiveLog = (obj) => ({
479
488
  ...obj,
480
489
  });
@@ -1160,6 +1169,12 @@ export const ListAlgorithmsInputFilterSensitiveLog = (obj) => ({
1160
1169
  export const ListAlgorithmsOutputFilterSensitiveLog = (obj) => ({
1161
1170
  ...obj,
1162
1171
  });
1172
+ export const ListAliasesRequestFilterSensitiveLog = (obj) => ({
1173
+ ...obj,
1174
+ });
1175
+ export const ListAliasesResponseFilterSensitiveLog = (obj) => ({
1176
+ ...obj,
1177
+ });
1163
1178
  export const ListAppImageConfigsRequestFilterSensitiveLog = (obj) => ({
1164
1179
  ...obj,
1165
1180
  });
@@ -1181,18 +1196,3 @@ export const ListArtifactsResponseFilterSensitiveLog = (obj) => ({
1181
1196
  export const ListAssociationsRequestFilterSensitiveLog = (obj) => ({
1182
1197
  ...obj,
1183
1198
  });
1184
- export const ListAssociationsResponseFilterSensitiveLog = (obj) => ({
1185
- ...obj,
1186
- });
1187
- export const ListAutoMLJobsRequestFilterSensitiveLog = (obj) => ({
1188
- ...obj,
1189
- });
1190
- export const ListAutoMLJobsResponseFilterSensitiveLog = (obj) => ({
1191
- ...obj,
1192
- });
1193
- export const ListCandidatesForAutoMLJobRequestFilterSensitiveLog = (obj) => ({
1194
- ...obj,
1195
- });
1196
- export const ListCandidatesForAutoMLJobResponseFilterSensitiveLog = (obj) => ({
1197
- ...obj,
1198
- });
@@ -260,6 +260,21 @@ export var VariantPropertyType;
260
260
  VariantPropertyType["DesiredInstanceCount"] = "DesiredInstanceCount";
261
261
  VariantPropertyType["DesiredWeight"] = "DesiredWeight";
262
262
  })(VariantPropertyType || (VariantPropertyType = {}));
263
+ export const ListAssociationsResponseFilterSensitiveLog = (obj) => ({
264
+ ...obj,
265
+ });
266
+ export const ListAutoMLJobsRequestFilterSensitiveLog = (obj) => ({
267
+ ...obj,
268
+ });
269
+ export const ListAutoMLJobsResponseFilterSensitiveLog = (obj) => ({
270
+ ...obj,
271
+ });
272
+ export const ListCandidatesForAutoMLJobRequestFilterSensitiveLog = (obj) => ({
273
+ ...obj,
274
+ });
275
+ export const ListCandidatesForAutoMLJobResponseFilterSensitiveLog = (obj) => ({
276
+ ...obj,
277
+ });
263
278
  export const ListCodeRepositoriesInputFilterSensitiveLog = (obj) => ({
264
279
  ...obj,
265
280
  });
@@ -1011,18 +1026,3 @@ export const UpdateExperimentResponseFilterSensitiveLog = (obj) => ({
1011
1026
  export const UpdateFeatureGroupRequestFilterSensitiveLog = (obj) => ({
1012
1027
  ...obj,
1013
1028
  });
1014
- export const UpdateFeatureGroupResponseFilterSensitiveLog = (obj) => ({
1015
- ...obj,
1016
- });
1017
- export const UpdateFeatureMetadataRequestFilterSensitiveLog = (obj) => ({
1018
- ...obj,
1019
- });
1020
- export const UpdateHubRequestFilterSensitiveLog = (obj) => ({
1021
- ...obj,
1022
- });
1023
- export const UpdateHubResponseFilterSensitiveLog = (obj) => ({
1024
- ...obj,
1025
- });
1026
- export const UpdateImageRequestFilterSensitiveLog = (obj) => ({
1027
- ...obj,
1028
- });
@@ -1,8 +1,29 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
2
  import { OidcConfigFilterSensitiveLog, TrialComponentParameterValueFilterSensitiveLog, } from "./models_1";
3
+ export const UpdateFeatureGroupResponseFilterSensitiveLog = (obj) => ({
4
+ ...obj,
5
+ });
6
+ export const UpdateFeatureMetadataRequestFilterSensitiveLog = (obj) => ({
7
+ ...obj,
8
+ });
9
+ export const UpdateHubRequestFilterSensitiveLog = (obj) => ({
10
+ ...obj,
11
+ });
12
+ export const UpdateHubResponseFilterSensitiveLog = (obj) => ({
13
+ ...obj,
14
+ });
15
+ export const UpdateImageRequestFilterSensitiveLog = (obj) => ({
16
+ ...obj,
17
+ });
3
18
  export const UpdateImageResponseFilterSensitiveLog = (obj) => ({
4
19
  ...obj,
5
20
  });
21
+ export const UpdateImageVersionRequestFilterSensitiveLog = (obj) => ({
22
+ ...obj,
23
+ });
24
+ export const UpdateImageVersionResponseFilterSensitiveLog = (obj) => ({
25
+ ...obj,
26
+ });
6
27
  export const UpdateInferenceExperimentRequestFilterSensitiveLog = (obj) => ({
7
28
  ...obj,
8
29
  });
@@ -0,0 +1,32 @@
1
+ import { ListAliasesCommand } from "../commands/ListAliasesCommand";
2
+ import { SageMaker } from "../SageMaker";
3
+ import { SageMakerClient } from "../SageMakerClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListAliasesCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listAliases(input, ...args);
9
+ };
10
+ export async function* paginateListAliases(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof SageMaker) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof SageMakerClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected SageMaker | SageMakerClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListActionsPaginator";
3
3
  export * from "./ListAlgorithmsPaginator";
4
+ export * from "./ListAliasesPaginator";
4
5
  export * from "./ListAppImageConfigsPaginator";
5
6
  export * from "./ListAppsPaginator";
6
7
  export * from "./ListArtifactsPaginator";
@@ -1543,6 +1543,15 @@ export const serializeAws_json1_1ListAlgorithmsCommand = async (input, context)
1543
1543
  body = JSON.stringify(serializeAws_json1_1ListAlgorithmsInput(input, context));
1544
1544
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1545
1545
  };
1546
+ export const serializeAws_json1_1ListAliasesCommand = async (input, context) => {
1547
+ const headers = {
1548
+ "content-type": "application/x-amz-json-1.1",
1549
+ "x-amz-target": "SageMaker.ListAliases",
1550
+ };
1551
+ let body;
1552
+ body = JSON.stringify(serializeAws_json1_1ListAliasesRequest(input, context));
1553
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
1554
+ };
1546
1555
  export const serializeAws_json1_1ListAppImageConfigsCommand = async (input, context) => {
1547
1556
  const headers = {
1548
1557
  "content-type": "application/x-amz-json-1.1",
@@ -2533,6 +2542,15 @@ export const serializeAws_json1_1UpdateImageCommand = async (input, context) =>
2533
2542
  body = JSON.stringify(serializeAws_json1_1UpdateImageRequest(input, context));
2534
2543
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
2535
2544
  };
2545
+ export const serializeAws_json1_1UpdateImageVersionCommand = async (input, context) => {
2546
+ const headers = {
2547
+ "content-type": "application/x-amz-json-1.1",
2548
+ "x-amz-target": "SageMaker.UpdateImageVersion",
2549
+ };
2550
+ let body;
2551
+ body = JSON.stringify(serializeAws_json1_1UpdateImageVersionRequest(input, context));
2552
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
2553
+ };
2536
2554
  export const serializeAws_json1_1UpdateInferenceExperimentCommand = async (input, context) => {
2537
2555
  const headers = {
2538
2556
  "content-type": "application/x-amz-json-1.1",
@@ -8164,6 +8182,39 @@ const deserializeAws_json1_1ListAlgorithmsCommandError = async (output, context)
8164
8182
  errorCode,
8165
8183
  });
8166
8184
  };
8185
+ export const deserializeAws_json1_1ListAliasesCommand = async (output, context) => {
8186
+ if (output.statusCode >= 300) {
8187
+ return deserializeAws_json1_1ListAliasesCommandError(output, context);
8188
+ }
8189
+ const data = await parseBody(output.body, context);
8190
+ let contents = {};
8191
+ contents = deserializeAws_json1_1ListAliasesResponse(data, context);
8192
+ const response = {
8193
+ $metadata: deserializeMetadata(output),
8194
+ ...contents,
8195
+ };
8196
+ return Promise.resolve(response);
8197
+ };
8198
+ const deserializeAws_json1_1ListAliasesCommandError = async (output, context) => {
8199
+ const parsedOutput = {
8200
+ ...output,
8201
+ body: await parseErrorBody(output.body, context),
8202
+ };
8203
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8204
+ switch (errorCode) {
8205
+ case "ResourceNotFound":
8206
+ case "com.amazonaws.sagemaker#ResourceNotFound":
8207
+ throw await deserializeAws_json1_1ResourceNotFoundResponse(parsedOutput, context);
8208
+ default:
8209
+ const parsedBody = parsedOutput.body;
8210
+ throwDefaultError({
8211
+ output,
8212
+ parsedBody,
8213
+ exceptionCtor: __BaseException,
8214
+ errorCode,
8215
+ });
8216
+ }
8217
+ };
8167
8218
  export const deserializeAws_json1_1ListAppImageConfigsCommand = async (output, context) => {
8168
8219
  if (output.statusCode >= 300) {
8169
8220
  return deserializeAws_json1_1ListAppImageConfigsCommandError(output, context);
@@ -11431,6 +11482,42 @@ const deserializeAws_json1_1UpdateImageCommandError = async (output, context) =>
11431
11482
  });
11432
11483
  }
11433
11484
  };
11485
+ export const deserializeAws_json1_1UpdateImageVersionCommand = async (output, context) => {
11486
+ if (output.statusCode >= 300) {
11487
+ return deserializeAws_json1_1UpdateImageVersionCommandError(output, context);
11488
+ }
11489
+ const data = await parseBody(output.body, context);
11490
+ let contents = {};
11491
+ contents = deserializeAws_json1_1UpdateImageVersionResponse(data, context);
11492
+ const response = {
11493
+ $metadata: deserializeMetadata(output),
11494
+ ...contents,
11495
+ };
11496
+ return Promise.resolve(response);
11497
+ };
11498
+ const deserializeAws_json1_1UpdateImageVersionCommandError = async (output, context) => {
11499
+ const parsedOutput = {
11500
+ ...output,
11501
+ body: await parseErrorBody(output.body, context),
11502
+ };
11503
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11504
+ switch (errorCode) {
11505
+ case "ResourceInUse":
11506
+ case "com.amazonaws.sagemaker#ResourceInUse":
11507
+ throw await deserializeAws_json1_1ResourceInUseResponse(parsedOutput, context);
11508
+ case "ResourceNotFound":
11509
+ case "com.amazonaws.sagemaker#ResourceNotFound":
11510
+ throw await deserializeAws_json1_1ResourceNotFoundResponse(parsedOutput, context);
11511
+ default:
11512
+ const parsedBody = parsedOutput.body;
11513
+ throwDefaultError({
11514
+ output,
11515
+ parsedBody,
11516
+ exceptionCtor: __BaseException,
11517
+ errorCode,
11518
+ });
11519
+ }
11520
+ };
11434
11521
  export const deserializeAws_json1_1UpdateInferenceExperimentCommand = async (output, context) => {
11435
11522
  if (output.statusCode >= 300) {
11436
11523
  return deserializeAws_json1_1UpdateInferenceExperimentCommandError(output, context);
@@ -13088,9 +13175,17 @@ const serializeAws_json1_1CreateImageRequest = (input, context) => {
13088
13175
  };
13089
13176
  const serializeAws_json1_1CreateImageVersionRequest = (input, context) => {
13090
13177
  return {
13178
+ ...(input.Aliases != null && { Aliases: serializeAws_json1_1SageMakerImageVersionAliases(input.Aliases, context) }),
13091
13179
  ...(input.BaseImage != null && { BaseImage: input.BaseImage }),
13092
13180
  ClientToken: input.ClientToken ?? generateIdempotencyToken(),
13181
+ ...(input.Horovod != null && { Horovod: input.Horovod }),
13093
13182
  ...(input.ImageName != null && { ImageName: input.ImageName }),
13183
+ ...(input.JobType != null && { JobType: input.JobType }),
13184
+ ...(input.MLFramework != null && { MLFramework: input.MLFramework }),
13185
+ ...(input.Processor != null && { Processor: input.Processor }),
13186
+ ...(input.ProgrammingLang != null && { ProgrammingLang: input.ProgrammingLang }),
13187
+ ...(input.ReleaseNotes != null && { ReleaseNotes: input.ReleaseNotes }),
13188
+ ...(input.VendorGuidance != null && { VendorGuidance: input.VendorGuidance }),
13094
13189
  };
13095
13190
  };
13096
13191
  const serializeAws_json1_1CreateInferenceExperimentRequest = (input, context) => {
@@ -13938,6 +14033,7 @@ const serializeAws_json1_1DeleteImageRequest = (input, context) => {
13938
14033
  };
13939
14034
  const serializeAws_json1_1DeleteImageVersionRequest = (input, context) => {
13940
14035
  return {
14036
+ ...(input.Alias != null && { Alias: input.Alias }),
13941
14037
  ...(input.ImageName != null && { ImageName: input.ImageName }),
13942
14038
  ...(input.Version != null && { Version: input.Version }),
13943
14039
  };
@@ -14239,6 +14335,7 @@ const serializeAws_json1_1DescribeImageRequest = (input, context) => {
14239
14335
  };
14240
14336
  const serializeAws_json1_1DescribeImageVersionRequest = (input, context) => {
14241
14337
  return {
14338
+ ...(input.Alias != null && { Alias: input.Alias }),
14242
14339
  ...(input.ImageName != null && { ImageName: input.ImageName }),
14243
14340
  ...(input.Version != null && { Version: input.Version }),
14244
14341
  };
@@ -15337,6 +15434,15 @@ const serializeAws_json1_1ListAlgorithmsInput = (input, context) => {
15337
15434
  ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
15338
15435
  };
15339
15436
  };
15437
+ const serializeAws_json1_1ListAliasesRequest = (input, context) => {
15438
+ return {
15439
+ ...(input.Alias != null && { Alias: input.Alias }),
15440
+ ...(input.ImageName != null && { ImageName: input.ImageName }),
15441
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
15442
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
15443
+ ...(input.Version != null && { Version: input.Version }),
15444
+ };
15445
+ };
15340
15446
  const serializeAws_json1_1ListAppImageConfigsRequest = (input, context) => {
15341
15447
  return {
15342
15448
  ...(input.CreationTimeAfter != null && { CreationTimeAfter: Math.round(input.CreationTimeAfter.getTime() / 1000) }),
@@ -17646,6 +17752,13 @@ const serializeAws_json1_1S3StorageConfig = (input, context) => {
17646
17752
  ...(input.S3Uri != null && { S3Uri: input.S3Uri }),
17647
17753
  };
17648
17754
  };
17755
+ const serializeAws_json1_1SageMakerImageVersionAliases = (input, context) => {
17756
+ return input
17757
+ .filter((e) => e != null)
17758
+ .map((entry) => {
17759
+ return entry;
17760
+ });
17761
+ };
17649
17762
  const serializeAws_json1_1ScheduleConfig = (input, context) => {
17650
17763
  return {
17651
17764
  ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
@@ -18354,6 +18467,26 @@ const serializeAws_json1_1UpdateImageRequest = (input, context) => {
18354
18467
  ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
18355
18468
  };
18356
18469
  };
18470
+ const serializeAws_json1_1UpdateImageVersionRequest = (input, context) => {
18471
+ return {
18472
+ ...(input.Alias != null && { Alias: input.Alias }),
18473
+ ...(input.AliasesToAdd != null && {
18474
+ AliasesToAdd: serializeAws_json1_1SageMakerImageVersionAliases(input.AliasesToAdd, context),
18475
+ }),
18476
+ ...(input.AliasesToDelete != null && {
18477
+ AliasesToDelete: serializeAws_json1_1SageMakerImageVersionAliases(input.AliasesToDelete, context),
18478
+ }),
18479
+ ...(input.Horovod != null && { Horovod: input.Horovod }),
18480
+ ...(input.ImageName != null && { ImageName: input.ImageName }),
18481
+ ...(input.JobType != null && { JobType: input.JobType }),
18482
+ ...(input.MLFramework != null && { MLFramework: input.MLFramework }),
18483
+ ...(input.Processor != null && { Processor: input.Processor }),
18484
+ ...(input.ProgrammingLang != null && { ProgrammingLang: input.ProgrammingLang }),
18485
+ ...(input.ReleaseNotes != null && { ReleaseNotes: input.ReleaseNotes }),
18486
+ ...(input.VendorGuidance != null && { VendorGuidance: input.VendorGuidance }),
18487
+ ...(input.Version != null && { Version: input.Version }),
18488
+ };
18489
+ };
18357
18490
  const serializeAws_json1_1UpdateInferenceExperimentRequest = (input, context) => {
18358
18491
  return {
18359
18492
  ...(input.DataStorageConfig != null && {
@@ -21130,12 +21263,19 @@ const deserializeAws_json1_1DescribeImageVersionResponse = (output, context) =>
21130
21263
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
21131
21264
  : undefined,
21132
21265
  FailureReason: __expectString(output.FailureReason),
21266
+ Horovod: __expectBoolean(output.Horovod),
21133
21267
  ImageArn: __expectString(output.ImageArn),
21134
21268
  ImageVersionArn: __expectString(output.ImageVersionArn),
21135
21269
  ImageVersionStatus: __expectString(output.ImageVersionStatus),
21270
+ JobType: __expectString(output.JobType),
21136
21271
  LastModifiedTime: output.LastModifiedTime != null
21137
21272
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
21138
21273
  : undefined,
21274
+ MLFramework: __expectString(output.MLFramework),
21275
+ Processor: __expectString(output.Processor),
21276
+ ProgrammingLang: __expectString(output.ProgrammingLang),
21277
+ ReleaseNotes: __expectString(output.ReleaseNotes),
21278
+ VendorGuidance: __expectString(output.VendorGuidance),
21139
21279
  Version: __expectInt32(output.Version),
21140
21280
  };
21141
21281
  };
@@ -23898,6 +24038,14 @@ const deserializeAws_json1_1ListAlgorithmsOutput = (output, context) => {
23898
24038
  NextToken: __expectString(output.NextToken),
23899
24039
  };
23900
24040
  };
24041
+ const deserializeAws_json1_1ListAliasesResponse = (output, context) => {
24042
+ return {
24043
+ NextToken: __expectString(output.NextToken),
24044
+ SageMakerImageVersionAliases: output.SageMakerImageVersionAliases != null
24045
+ ? deserializeAws_json1_1SageMakerImageVersionAliases(output.SageMakerImageVersionAliases, context)
24046
+ : undefined,
24047
+ };
24048
+ };
23901
24049
  const deserializeAws_json1_1ListAppImageConfigsResponse = (output, context) => {
23902
24050
  return {
23903
24051
  AppImageConfigs: output.AppImageConfigs != null
@@ -26829,6 +26977,17 @@ const deserializeAws_json1_1S3StorageConfig = (output, context) => {
26829
26977
  S3Uri: __expectString(output.S3Uri),
26830
26978
  };
26831
26979
  };
26980
+ const deserializeAws_json1_1SageMakerImageVersionAliases = (output, context) => {
26981
+ const retVal = (output || [])
26982
+ .filter((e) => e != null)
26983
+ .map((entry) => {
26984
+ if (entry === null) {
26985
+ return null;
26986
+ }
26987
+ return __expectString(entry);
26988
+ });
26989
+ return retVal;
26990
+ };
26832
26991
  const deserializeAws_json1_1ScheduleConfig = (output, context) => {
26833
26992
  return {
26834
26993
  ScheduleExpression: __expectString(output.ScheduleExpression),
@@ -27851,6 +28010,11 @@ const deserializeAws_json1_1UpdateImageResponse = (output, context) => {
27851
28010
  ImageArn: __expectString(output.ImageArn),
27852
28011
  };
27853
28012
  };
28013
+ const deserializeAws_json1_1UpdateImageVersionResponse = (output, context) => {
28014
+ return {
28015
+ ImageVersionArn: __expectString(output.ImageVersionArn),
28016
+ };
28017
+ };
27854
28018
  const deserializeAws_json1_1UpdateInferenceExperimentResponse = (output, context) => {
27855
28019
  return {
27856
28020
  InferenceExperimentArn: __expectString(output.InferenceExperimentArn),
@@ -170,6 +170,7 @@ import { GetSearchSuggestionsCommandInput, GetSearchSuggestionsCommandOutput } f
170
170
  import { ImportHubContentCommandInput, ImportHubContentCommandOutput } from "./commands/ImportHubContentCommand";
171
171
  import { ListActionsCommandInput, ListActionsCommandOutput } from "./commands/ListActionsCommand";
172
172
  import { ListAlgorithmsCommandInput, ListAlgorithmsCommandOutput } from "./commands/ListAlgorithmsCommand";
173
+ import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand";
173
174
  import { ListAppImageConfigsCommandInput, ListAppImageConfigsCommandOutput } from "./commands/ListAppImageConfigsCommand";
174
175
  import { ListAppsCommandInput, ListAppsCommandOutput } from "./commands/ListAppsCommand";
175
176
  import { ListArtifactsCommandInput, ListArtifactsCommandOutput } from "./commands/ListArtifactsCommand";
@@ -280,6 +281,7 @@ import { UpdateFeatureGroupCommandInput, UpdateFeatureGroupCommandOutput } from
280
281
  import { UpdateFeatureMetadataCommandInput, UpdateFeatureMetadataCommandOutput } from "./commands/UpdateFeatureMetadataCommand";
281
282
  import { UpdateHubCommandInput, UpdateHubCommandOutput } from "./commands/UpdateHubCommand";
282
283
  import { UpdateImageCommandInput, UpdateImageCommandOutput } from "./commands/UpdateImageCommand";
284
+ import { UpdateImageVersionCommandInput, UpdateImageVersionCommandOutput } from "./commands/UpdateImageVersionCommand";
283
285
  import { UpdateInferenceExperimentCommandInput, UpdateInferenceExperimentCommandOutput } from "./commands/UpdateInferenceExperimentCommand";
284
286
  import { UpdateModelCardCommandInput, UpdateModelCardCommandOutput } from "./commands/UpdateModelCardCommand";
285
287
  import { UpdateModelPackageCommandInput, UpdateModelPackageCommandOutput } from "./commands/UpdateModelPackageCommand";
@@ -2079,6 +2081,12 @@ export declare class SageMaker extends SageMakerClient {
2079
2081
  listAlgorithms(args: ListAlgorithmsCommandInput, options?: __HttpHandlerOptions): Promise<ListAlgorithmsCommandOutput>;
2080
2082
  listAlgorithms(args: ListAlgorithmsCommandInput, cb: (err: any, data?: ListAlgorithmsCommandOutput) => void): void;
2081
2083
  listAlgorithms(args: ListAlgorithmsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAlgorithmsCommandOutput) => void): void;
2084
+ /**
2085
+ * <p>Lists the aliases of a specified image or image version.</p>
2086
+ */
2087
+ listAliases(args: ListAliasesCommandInput, options?: __HttpHandlerOptions): Promise<ListAliasesCommandOutput>;
2088
+ listAliases(args: ListAliasesCommandInput, cb: (err: any, data?: ListAliasesCommandOutput) => void): void;
2089
+ listAliases(args: ListAliasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAliasesCommandOutput) => void): void;
2082
2090
  /**
2083
2091
  * <p>Lists the AppImageConfigs in your account and their properties. The list can be
2084
2092
  * filtered by creation time or modified time, and whether the AppImageConfig name contains
@@ -2898,6 +2906,12 @@ export declare class SageMaker extends SageMakerClient {
2898
2906
  updateImage(args: UpdateImageCommandInput, options?: __HttpHandlerOptions): Promise<UpdateImageCommandOutput>;
2899
2907
  updateImage(args: UpdateImageCommandInput, cb: (err: any, data?: UpdateImageCommandOutput) => void): void;
2900
2908
  updateImage(args: UpdateImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateImageCommandOutput) => void): void;
2909
+ /**
2910
+ * <p>Updates the properties of a SageMaker image version.</p>
2911
+ */
2912
+ updateImageVersion(args: UpdateImageVersionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateImageVersionCommandOutput>;
2913
+ updateImageVersion(args: UpdateImageVersionCommandInput, cb: (err: any, data?: UpdateImageVersionCommandOutput) => void): void;
2914
+ updateImageVersion(args: UpdateImageVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateImageVersionCommandOutput) => void): void;
2901
2915
  /**
2902
2916
  * <p>
2903
2917
  * Updates an inference experiment that you created. The status of the inference experiment has to be either