@aws-sdk/client-sagemaker 3.233.0 → 3.235.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 (90) 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/endpoint/ruleset.js +4 -375
  15. package/dist-cjs/models/models_0.js +8 -0
  16. package/dist-cjs/models/models_1.js +25 -19
  17. package/dist-cjs/models/models_2.js +25 -25
  18. package/dist-cjs/models/models_3.js +26 -26
  19. package/dist-cjs/models/models_4.js +29 -1
  20. package/dist-cjs/pagination/ListAliasesPaginator.js +36 -0
  21. package/dist-cjs/pagination/index.js +1 -0
  22. package/dist-cjs/protocols/Aws_json1_1.js +177 -9
  23. package/dist-es/SageMaker.js +30 -0
  24. package/dist-es/commands/DescribeAlgorithmCommand.js +1 -1
  25. package/dist-es/commands/DescribeAppCommand.js +1 -2
  26. package/dist-es/commands/ListAliasesCommand.js +42 -0
  27. package/dist-es/commands/ListAssociationsCommand.js +2 -1
  28. package/dist-es/commands/ListAutoMLJobsCommand.js +1 -1
  29. package/dist-es/commands/ListCandidatesForAutoMLJobCommand.js +1 -1
  30. package/dist-es/commands/UpdateFeatureGroupCommand.js +2 -1
  31. package/dist-es/commands/UpdateFeatureMetadataCommand.js +1 -1
  32. package/dist-es/commands/UpdateHubCommand.js +1 -1
  33. package/dist-es/commands/UpdateImageCommand.js +1 -2
  34. package/dist-es/commands/UpdateImageVersionCommand.js +42 -0
  35. package/dist-es/commands/index.js +2 -0
  36. package/dist-es/endpoint/ruleset.js +4 -375
  37. package/dist-es/models/models_0.js +8 -0
  38. package/dist-es/models/models_1.js +18 -9
  39. package/dist-es/models/models_2.js +15 -15
  40. package/dist-es/models/models_3.js +15 -15
  41. package/dist-es/models/models_4.js +21 -0
  42. package/dist-es/pagination/ListAliasesPaginator.js +32 -0
  43. package/dist-es/pagination/index.js +1 -0
  44. package/dist-es/protocols/Aws_json1_1.js +164 -0
  45. package/dist-types/SageMaker.d.ts +19 -1
  46. package/dist-types/SageMakerClient.d.ts +4 -2
  47. package/dist-types/commands/CreateExperimentCommand.d.ts +5 -1
  48. package/dist-types/commands/DescribeAlgorithmCommand.d.ts +1 -1
  49. package/dist-types/commands/DescribeAppCommand.d.ts +1 -2
  50. package/dist-types/commands/ListAliasesCommand.d.ts +37 -0
  51. package/dist-types/commands/ListAssociationsCommand.d.ts +2 -1
  52. package/dist-types/commands/ListAutoMLJobsCommand.d.ts +1 -1
  53. package/dist-types/commands/ListCandidatesForAutoMLJobCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateFeatureGroupCommand.d.ts +2 -1
  55. package/dist-types/commands/UpdateFeatureMetadataCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateHubCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateImageCommand.d.ts +1 -2
  58. package/dist-types/commands/UpdateImageVersionCommand.d.ts +37 -0
  59. package/dist-types/commands/index.d.ts +2 -0
  60. package/dist-types/models/models_0.d.ts +153 -61
  61. package/dist-types/models/models_1.d.ts +102 -97
  62. package/dist-types/models/models_2.d.ts +215 -136
  63. package/dist-types/models/models_3.d.ts +129 -97
  64. package/dist-types/models/models_4.d.ts +204 -3
  65. package/dist-types/pagination/ListAliasesPaginator.d.ts +4 -0
  66. package/dist-types/pagination/index.d.ts +1 -0
  67. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  68. package/dist-types/ts3.4/SageMaker.d.ts +34 -0
  69. package/dist-types/ts3.4/SageMakerClient.d.ts +12 -0
  70. package/dist-types/ts3.4/commands/DescribeAlgorithmCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/DescribeAppCommand.d.ts +1 -2
  72. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +34 -0
  73. package/dist-types/ts3.4/commands/ListAssociationsCommand.d.ts +2 -4
  74. package/dist-types/ts3.4/commands/ListAutoMLJobsCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/ListCandidatesForAutoMLJobCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/UpdateFeatureGroupCommand.d.ts +2 -4
  77. package/dist-types/ts3.4/commands/UpdateFeatureMetadataCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/UpdateHubCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/UpdateImageCommand.d.ts +1 -2
  80. package/dist-types/ts3.4/commands/UpdateImageVersionCommand.d.ts +38 -0
  81. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  82. package/dist-types/ts3.4/models/models_0.d.ts +8 -0
  83. package/dist-types/ts3.4/models/models_1.d.ts +25 -37
  84. package/dist-types/ts3.4/models/models_2.d.ts +64 -54
  85. package/dist-types/ts3.4/models/models_3.d.ts +56 -42
  86. package/dist-types/ts3.4/models/models_4.d.ts +74 -1
  87. package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  89. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  90. package/package.json +8 -8
@@ -172,6 +172,7 @@ const GetSearchSuggestionsCommand_1 = require("./commands/GetSearchSuggestionsCo
172
172
  const ImportHubContentCommand_1 = require("./commands/ImportHubContentCommand");
173
173
  const ListActionsCommand_1 = require("./commands/ListActionsCommand");
174
174
  const ListAlgorithmsCommand_1 = require("./commands/ListAlgorithmsCommand");
175
+ const ListAliasesCommand_1 = require("./commands/ListAliasesCommand");
175
176
  const ListAppImageConfigsCommand_1 = require("./commands/ListAppImageConfigsCommand");
176
177
  const ListAppsCommand_1 = require("./commands/ListAppsCommand");
177
178
  const ListArtifactsCommand_1 = require("./commands/ListArtifactsCommand");
@@ -282,6 +283,7 @@ const UpdateFeatureGroupCommand_1 = require("./commands/UpdateFeatureGroupComman
282
283
  const UpdateFeatureMetadataCommand_1 = require("./commands/UpdateFeatureMetadataCommand");
283
284
  const UpdateHubCommand_1 = require("./commands/UpdateHubCommand");
284
285
  const UpdateImageCommand_1 = require("./commands/UpdateImageCommand");
286
+ const UpdateImageVersionCommand_1 = require("./commands/UpdateImageVersionCommand");
285
287
  const UpdateInferenceExperimentCommand_1 = require("./commands/UpdateInferenceExperimentCommand");
286
288
  const UpdateModelCardCommand_1 = require("./commands/UpdateModelCardCommand");
287
289
  const UpdateModelPackageCommand_1 = require("./commands/UpdateModelPackageCommand");
@@ -2695,6 +2697,20 @@ class SageMaker extends SageMakerClient_1.SageMakerClient {
2695
2697
  return this.send(command, optionsOrCb);
2696
2698
  }
2697
2699
  }
2700
+ listAliases(args, optionsOrCb, cb) {
2701
+ const command = new ListAliasesCommand_1.ListAliasesCommand(args);
2702
+ if (typeof optionsOrCb === "function") {
2703
+ this.send(command, optionsOrCb);
2704
+ }
2705
+ else if (typeof cb === "function") {
2706
+ if (typeof optionsOrCb !== "object")
2707
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2708
+ this.send(command, optionsOrCb || {}, cb);
2709
+ }
2710
+ else {
2711
+ return this.send(command, optionsOrCb);
2712
+ }
2713
+ }
2698
2714
  listAppImageConfigs(args, optionsOrCb, cb) {
2699
2715
  const command = new ListAppImageConfigsCommand_1.ListAppImageConfigsCommand(args);
2700
2716
  if (typeof optionsOrCb === "function") {
@@ -4235,6 +4251,20 @@ class SageMaker extends SageMakerClient_1.SageMakerClient {
4235
4251
  return this.send(command, optionsOrCb);
4236
4252
  }
4237
4253
  }
4254
+ updateImageVersion(args, optionsOrCb, cb) {
4255
+ const command = new UpdateImageVersionCommand_1.UpdateImageVersionCommand(args);
4256
+ if (typeof optionsOrCb === "function") {
4257
+ this.send(command, optionsOrCb);
4258
+ }
4259
+ else if (typeof cb === "function") {
4260
+ if (typeof optionsOrCb !== "object")
4261
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
4262
+ this.send(command, optionsOrCb || {}, cb);
4263
+ }
4264
+ else {
4265
+ return this.send(command, optionsOrCb);
4266
+ }
4267
+ }
4238
4268
  updateInferenceExperiment(args, optionsOrCb, cb) {
4239
4269
  const command = new UpdateInferenceExperimentCommand_1.UpdateInferenceExperimentCommand(args);
4240
4270
  if (typeof optionsOrCb === "function") {
@@ -4,7 +4,7 @@ exports.DescribeAlgorithmCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_1_1 = require("../models/models_1");
7
+ const models_2_1 = require("../models/models_2");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class DescribeAlgorithmCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class DescribeAlgorithmCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_1_1.DescribeAlgorithmInputFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_1_1.DescribeAlgorithmOutputFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_2_1.DescribeAlgorithmInputFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.DescribeAlgorithmOutputFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,6 @@ exports.DescribeAppCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_1_1 = require("../models/models_1");
8
7
  const models_2_1 = require("../models/models_2");
9
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
9
  class DescribeAppCommand extends smithy_client_1.Command {
@@ -31,7 +30,7 @@ class DescribeAppCommand extends smithy_client_1.Command {
31
30
  logger,
32
31
  clientName,
33
32
  commandName,
34
- inputFilterSensitiveLog: models_1_1.DescribeAppRequestFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_2_1.DescribeAppRequestFilterSensitiveLog,
35
34
  outputFilterSensitiveLog: models_2_1.DescribeAppResponseFilterSensitiveLog,
36
35
  };
37
36
  const { requestHandler } = configuration;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListAliasesCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_2_1 = require("../models/models_2");
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class ListAliasesCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAliasesCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SageMakerClient";
28
+ const commandName = "ListAliasesCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_2_1.ListAliasesRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_2_1.ListAliasesResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.serializeAws_json1_1ListAliasesCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.deserializeAws_json1_1ListAliasesCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListAliasesCommand = ListAliasesCommand;
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_2_1 = require("../models/models_2");
8
+ const models_3_1 = require("../models/models_3");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class ListAssociationsCommand extends smithy_client_1.Command {
10
11
  constructor(input) {
@@ -31,7 +32,7 @@ class ListAssociationsCommand extends smithy_client_1.Command {
31
32
  clientName,
32
33
  commandName,
33
34
  inputFilterSensitiveLog: models_2_1.ListAssociationsRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_2_1.ListAssociationsResponseFilterSensitiveLog,
35
+ outputFilterSensitiveLog: models_3_1.ListAssociationsResponseFilterSensitiveLog,
35
36
  };
36
37
  const { requestHandler } = configuration;
37
38
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.ListAutoMLJobsCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_2_1 = require("../models/models_2");
7
+ const models_3_1 = require("../models/models_3");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class ListAutoMLJobsCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class ListAutoMLJobsCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_2_1.ListAutoMLJobsRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_2_1.ListAutoMLJobsResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_3_1.ListAutoMLJobsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_3_1.ListAutoMLJobsResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.ListCandidatesForAutoMLJobCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_2_1 = require("../models/models_2");
7
+ const models_3_1 = require("../models/models_3");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class ListCandidatesForAutoMLJobCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class ListCandidatesForAutoMLJobCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_2_1.ListCandidatesForAutoMLJobRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_2_1.ListCandidatesForAutoMLJobResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_3_1.ListCandidatesForAutoMLJobRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_3_1.ListCandidatesForAutoMLJobResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_3_1 = require("../models/models_3");
8
+ const models_4_1 = require("../models/models_4");
8
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
10
  class UpdateFeatureGroupCommand extends smithy_client_1.Command {
10
11
  constructor(input) {
@@ -31,7 +32,7 @@ class UpdateFeatureGroupCommand extends smithy_client_1.Command {
31
32
  clientName,
32
33
  commandName,
33
34
  inputFilterSensitiveLog: models_3_1.UpdateFeatureGroupRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_3_1.UpdateFeatureGroupResponseFilterSensitiveLog,
35
+ outputFilterSensitiveLog: models_4_1.UpdateFeatureGroupResponseFilterSensitiveLog,
35
36
  };
36
37
  const { requestHandler } = configuration;
37
38
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.UpdateFeatureMetadataCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_3_1 = require("../models/models_3");
7
+ const models_4_1 = require("../models/models_4");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class UpdateFeatureMetadataCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,7 +30,7 @@ class UpdateFeatureMetadataCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_3_1.UpdateFeatureMetadataRequestFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_4_1.UpdateFeatureMetadataRequestFilterSensitiveLog,
34
34
  outputFilterSensitiveLog: (output) => output,
35
35
  };
36
36
  const { requestHandler } = configuration;
@@ -4,7 +4,7 @@ exports.UpdateHubCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_3_1 = require("../models/models_3");
7
+ const models_4_1 = require("../models/models_4");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class UpdateHubCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class UpdateHubCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_3_1.UpdateHubRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_3_1.UpdateHubResponseFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_4_1.UpdateHubRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_4_1.UpdateHubResponseFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,6 @@ exports.UpdateImageCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_3_1 = require("../models/models_3");
8
7
  const models_4_1 = require("../models/models_4");
9
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
9
  class UpdateImageCommand extends smithy_client_1.Command {
@@ -31,7 +30,7 @@ class UpdateImageCommand extends smithy_client_1.Command {
31
30
  logger,
32
31
  clientName,
33
32
  commandName,
34
- inputFilterSensitiveLog: models_3_1.UpdateImageRequestFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_4_1.UpdateImageRequestFilterSensitiveLog,
35
34
  outputFilterSensitiveLog: models_4_1.UpdateImageResponseFilterSensitiveLog,
36
35
  };
37
36
  const { requestHandler } = configuration;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateImageVersionCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_4_1 = require("../models/models_4");
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class UpdateImageVersionCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateImageVersionCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SageMakerClient";
28
+ const commandName = "UpdateImageVersionCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_4_1.UpdateImageVersionRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_4_1.UpdateImageVersionResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.serializeAws_json1_1UpdateImageVersionCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateImageVersionCommand)(output, context);
44
+ }
45
+ }
46
+ exports.UpdateImageVersionCommand = UpdateImageVersionCommand;
@@ -172,6 +172,7 @@ tslib_1.__exportStar(require("./GetSearchSuggestionsCommand"), exports);
172
172
  tslib_1.__exportStar(require("./ImportHubContentCommand"), exports);
173
173
  tslib_1.__exportStar(require("./ListActionsCommand"), exports);
174
174
  tslib_1.__exportStar(require("./ListAlgorithmsCommand"), exports);
175
+ tslib_1.__exportStar(require("./ListAliasesCommand"), exports);
175
176
  tslib_1.__exportStar(require("./ListAppImageConfigsCommand"), exports);
176
177
  tslib_1.__exportStar(require("./ListAppsCommand"), exports);
177
178
  tslib_1.__exportStar(require("./ListArtifactsCommand"), exports);
@@ -282,6 +283,7 @@ tslib_1.__exportStar(require("./UpdateFeatureGroupCommand"), exports);
282
283
  tslib_1.__exportStar(require("./UpdateFeatureMetadataCommand"), exports);
283
284
  tslib_1.__exportStar(require("./UpdateHubCommand"), exports);
284
285
  tslib_1.__exportStar(require("./UpdateImageCommand"), exports);
286
+ tslib_1.__exportStar(require("./UpdateImageVersionCommand"), exports);
285
287
  tslib_1.__exportStar(require("./UpdateInferenceExperimentCommand"), exports);
286
288
  tslib_1.__exportStar(require("./UpdateModelCardCommand"), exports);
287
289
  tslib_1.__exportStar(require("./UpdateModelPackageCommand"), exports);