@aws-sdk/client-migration-hub 3.478.0 → 3.484.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 (73) hide show
  1. package/dist-cjs/commands/AssociateCreatedArtifactCommand.js +18 -41
  2. package/dist-cjs/commands/AssociateDiscoveredResourceCommand.js +18 -41
  3. package/dist-cjs/commands/CreateProgressUpdateStreamCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteProgressUpdateStreamCommand.js +18 -41
  5. package/dist-cjs/commands/DescribeApplicationStateCommand.js +18 -41
  6. package/dist-cjs/commands/DescribeMigrationTaskCommand.js +18 -41
  7. package/dist-cjs/commands/DisassociateCreatedArtifactCommand.js +18 -41
  8. package/dist-cjs/commands/DisassociateDiscoveredResourceCommand.js +18 -41
  9. package/dist-cjs/commands/ImportMigrationTaskCommand.js +18 -41
  10. package/dist-cjs/commands/ListApplicationStatesCommand.js +18 -41
  11. package/dist-cjs/commands/ListCreatedArtifactsCommand.js +18 -41
  12. package/dist-cjs/commands/ListDiscoveredResourcesCommand.js +18 -41
  13. package/dist-cjs/commands/ListMigrationTasksCommand.js +18 -41
  14. package/dist-cjs/commands/ListProgressUpdateStreamsCommand.js +18 -41
  15. package/dist-cjs/commands/NotifyApplicationStateCommand.js +18 -41
  16. package/dist-cjs/commands/NotifyMigrationTaskStateCommand.js +18 -41
  17. package/dist-cjs/commands/PutResourceAttributesCommand.js +18 -41
  18. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  19. package/dist-es/commands/AssociateCreatedArtifactCommand.js +18 -41
  20. package/dist-es/commands/AssociateDiscoveredResourceCommand.js +18 -41
  21. package/dist-es/commands/CreateProgressUpdateStreamCommand.js +18 -41
  22. package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +18 -41
  23. package/dist-es/commands/DescribeApplicationStateCommand.js +18 -41
  24. package/dist-es/commands/DescribeMigrationTaskCommand.js +18 -41
  25. package/dist-es/commands/DisassociateCreatedArtifactCommand.js +18 -41
  26. package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +18 -41
  27. package/dist-es/commands/ImportMigrationTaskCommand.js +18 -41
  28. package/dist-es/commands/ListApplicationStatesCommand.js +18 -41
  29. package/dist-es/commands/ListCreatedArtifactsCommand.js +18 -41
  30. package/dist-es/commands/ListDiscoveredResourcesCommand.js +18 -41
  31. package/dist-es/commands/ListMigrationTasksCommand.js +18 -41
  32. package/dist-es/commands/ListProgressUpdateStreamsCommand.js +18 -41
  33. package/dist-es/commands/NotifyApplicationStateCommand.js +18 -41
  34. package/dist-es/commands/NotifyMigrationTaskStateCommand.js +18 -41
  35. package/dist-es/commands/PutResourceAttributesCommand.js +18 -41
  36. package/dist-es/endpoint/EndpointParameters.js +6 -0
  37. package/dist-types/commands/AssociateCreatedArtifactCommand.d.ts +6 -21
  38. package/dist-types/commands/AssociateDiscoveredResourceCommand.d.ts +6 -21
  39. package/dist-types/commands/CreateProgressUpdateStreamCommand.d.ts +6 -21
  40. package/dist-types/commands/DeleteProgressUpdateStreamCommand.d.ts +6 -21
  41. package/dist-types/commands/DescribeApplicationStateCommand.d.ts +6 -21
  42. package/dist-types/commands/DescribeMigrationTaskCommand.d.ts +6 -21
  43. package/dist-types/commands/DisassociateCreatedArtifactCommand.d.ts +6 -21
  44. package/dist-types/commands/DisassociateDiscoveredResourceCommand.d.ts +6 -21
  45. package/dist-types/commands/ImportMigrationTaskCommand.d.ts +6 -21
  46. package/dist-types/commands/ListApplicationStatesCommand.d.ts +6 -21
  47. package/dist-types/commands/ListCreatedArtifactsCommand.d.ts +6 -21
  48. package/dist-types/commands/ListDiscoveredResourcesCommand.d.ts +6 -21
  49. package/dist-types/commands/ListMigrationTasksCommand.d.ts +6 -21
  50. package/dist-types/commands/ListProgressUpdateStreamsCommand.d.ts +6 -21
  51. package/dist-types/commands/NotifyApplicationStateCommand.d.ts +6 -21
  52. package/dist-types/commands/NotifyMigrationTaskStateCommand.d.ts +6 -21
  53. package/dist-types/commands/PutResourceAttributesCommand.d.ts +6 -21
  54. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  55. package/dist-types/ts3.4/commands/AssociateCreatedArtifactCommand.d.ts +12 -24
  56. package/dist-types/ts3.4/commands/AssociateDiscoveredResourceCommand.d.ts +12 -24
  57. package/dist-types/ts3.4/commands/CreateProgressUpdateStreamCommand.d.ts +12 -24
  58. package/dist-types/ts3.4/commands/DeleteProgressUpdateStreamCommand.d.ts +12 -24
  59. package/dist-types/ts3.4/commands/DescribeApplicationStateCommand.d.ts +12 -24
  60. package/dist-types/ts3.4/commands/DescribeMigrationTaskCommand.d.ts +12 -24
  61. package/dist-types/ts3.4/commands/DisassociateCreatedArtifactCommand.d.ts +12 -24
  62. package/dist-types/ts3.4/commands/DisassociateDiscoveredResourceCommand.d.ts +12 -24
  63. package/dist-types/ts3.4/commands/ImportMigrationTaskCommand.d.ts +14 -23
  64. package/dist-types/ts3.4/commands/ListApplicationStatesCommand.d.ts +12 -24
  65. package/dist-types/ts3.4/commands/ListCreatedArtifactsCommand.d.ts +12 -24
  66. package/dist-types/ts3.4/commands/ListDiscoveredResourcesCommand.d.ts +12 -24
  67. package/dist-types/ts3.4/commands/ListMigrationTasksCommand.d.ts +14 -23
  68. package/dist-types/ts3.4/commands/ListProgressUpdateStreamsCommand.d.ts +12 -24
  69. package/dist-types/ts3.4/commands/NotifyApplicationStateCommand.d.ts +12 -24
  70. package/dist-types/ts3.4/commands/NotifyMigrationTaskStateCommand.d.ts +12 -24
  71. package/dist-types/ts3.4/commands/PutResourceAttributesCommand.d.ts +12 -24
  72. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  73. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListCreatedArtifactsCommand, se_ListCreatedArtifactsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListCreatedArtifactsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListCreatedArtifactsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubClient";
26
- const commandName = "ListCreatedArtifactsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHub",
35
- operation: "ListCreatedArtifacts",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListCreatedArtifactsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListCreatedArtifactsCommand(output, context);
46
- }
7
+ export class ListCreatedArtifactsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHub", "ListCreatedArtifacts", {})
19
+ .n("MigrationHubClient", "ListCreatedArtifactsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListCreatedArtifactsCommand)
22
+ .de(de_ListCreatedArtifactsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListDiscoveredResourcesCommand, se_ListDiscoveredResourcesCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListDiscoveredResourcesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListDiscoveredResourcesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubClient";
26
- const commandName = "ListDiscoveredResourcesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHub",
35
- operation: "ListDiscoveredResources",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListDiscoveredResourcesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListDiscoveredResourcesCommand(output, context);
46
- }
7
+ export class ListDiscoveredResourcesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHub", "ListDiscoveredResources", {})
19
+ .n("MigrationHubClient", "ListDiscoveredResourcesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListDiscoveredResourcesCommand)
22
+ .de(de_ListDiscoveredResourcesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListMigrationTasksCommand, se_ListMigrationTasksCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListMigrationTasksCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListMigrationTasksCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubClient";
26
- const commandName = "ListMigrationTasksCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHub",
35
- operation: "ListMigrationTasks",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListMigrationTasksCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListMigrationTasksCommand(output, context);
46
- }
7
+ export class ListMigrationTasksCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHub", "ListMigrationTasks", {})
19
+ .n("MigrationHubClient", "ListMigrationTasksCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListMigrationTasksCommand)
22
+ .de(de_ListMigrationTasksCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListProgressUpdateStreamsCommand, se_ListProgressUpdateStreamsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListProgressUpdateStreamsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListProgressUpdateStreamsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubClient";
26
- const commandName = "ListProgressUpdateStreamsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHub",
35
- operation: "ListProgressUpdateStreams",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListProgressUpdateStreamsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListProgressUpdateStreamsCommand(output, context);
46
- }
7
+ export class ListProgressUpdateStreamsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHub", "ListProgressUpdateStreams", {})
19
+ .n("MigrationHubClient", "ListProgressUpdateStreamsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListProgressUpdateStreamsCommand)
22
+ .de(de_ListProgressUpdateStreamsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_NotifyApplicationStateCommand, se_NotifyApplicationStateCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class NotifyApplicationStateCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, NotifyApplicationStateCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubClient";
26
- const commandName = "NotifyApplicationStateCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHub",
35
- operation: "NotifyApplicationState",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_NotifyApplicationStateCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_NotifyApplicationStateCommand(output, context);
46
- }
7
+ export class NotifyApplicationStateCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHub", "NotifyApplicationState", {})
19
+ .n("MigrationHubClient", "NotifyApplicationStateCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_NotifyApplicationStateCommand)
22
+ .de(de_NotifyApplicationStateCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_NotifyMigrationTaskStateCommand, se_NotifyMigrationTaskStateCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class NotifyMigrationTaskStateCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, NotifyMigrationTaskStateCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubClient";
26
- const commandName = "NotifyMigrationTaskStateCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHub",
35
- operation: "NotifyMigrationTaskState",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_NotifyMigrationTaskStateCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_NotifyMigrationTaskStateCommand(output, context);
46
- }
7
+ export class NotifyMigrationTaskStateCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHub", "NotifyMigrationTaskState", {})
19
+ .n("MigrationHubClient", "NotifyMigrationTaskStateCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_NotifyMigrationTaskStateCommand)
22
+ .de(de_NotifyMigrationTaskStateCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_PutResourceAttributesCommand, se_PutResourceAttributesCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class PutResourceAttributesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, PutResourceAttributesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubClient";
26
- const commandName = "PutResourceAttributesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHub",
35
- operation: "PutResourceAttributes",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_PutResourceAttributesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutResourceAttributesCommand(output, context);
46
- }
7
+ export class PutResourceAttributesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHub", "PutResourceAttributes", {})
19
+ .n("MigrationHubClient", "PutResourceAttributesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutResourceAttributesCommand)
22
+ .de(de_PutResourceAttributesCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "mgh",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
5
4
  import { AssociateCreatedArtifactRequest, AssociateCreatedArtifactResult } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AssociateCreatedArtifactCommandInput extends AssociateCreatedAr
21
20
  */
22
21
  export interface AssociateCreatedArtifactCommandOutput extends AssociateCreatedArtifactResult, __MetadataBearer {
23
22
  }
23
+ declare const AssociateCreatedArtifactCommand_base: {
24
+ new (input: AssociateCreatedArtifactCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateCreatedArtifactCommandInput, AssociateCreatedArtifactCommandOutput, MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Associates a created artifact of an AWS cloud resource, the target receiving the
@@ -106,23 +109,5 @@ export interface AssociateCreatedArtifactCommandOutput extends AssociateCreatedA
106
109
  * <p>Base exception class for all service exceptions from MigrationHub service.</p>
107
110
  *
108
111
  */
109
- export declare class AssociateCreatedArtifactCommand extends $Command<AssociateCreatedArtifactCommandInput, AssociateCreatedArtifactCommandOutput, MigrationHubClientResolvedConfig> {
110
- readonly input: AssociateCreatedArtifactCommandInput;
111
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
112
- /**
113
- * @public
114
- */
115
- constructor(input: AssociateCreatedArtifactCommandInput);
116
- /**
117
- * @internal
118
- */
119
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssociateCreatedArtifactCommandInput, AssociateCreatedArtifactCommandOutput>;
120
- /**
121
- * @internal
122
- */
123
- private serialize;
124
- /**
125
- * @internal
126
- */
127
- private deserialize;
112
+ export declare class AssociateCreatedArtifactCommand extends AssociateCreatedArtifactCommand_base {
128
113
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
5
4
  import { AssociateDiscoveredResourceRequest, AssociateDiscoveredResourceResult } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AssociateDiscoveredResourceCommandInput extends AssociateDiscov
21
20
  */
22
21
  export interface AssociateDiscoveredResourceCommandOutput extends AssociateDiscoveredResourceResult, __MetadataBearer {
23
22
  }
23
+ declare const AssociateDiscoveredResourceCommand_base: {
24
+ new (input: AssociateDiscoveredResourceCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateDiscoveredResourceCommandInput, AssociateDiscoveredResourceCommandOutput, MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Associates a discovered resource ID from Application Discovery Service with a migration
@@ -95,23 +98,5 @@ export interface AssociateDiscoveredResourceCommandOutput extends AssociateDisco
95
98
  * <p>Base exception class for all service exceptions from MigrationHub service.</p>
96
99
  *
97
100
  */
98
- export declare class AssociateDiscoveredResourceCommand extends $Command<AssociateDiscoveredResourceCommandInput, AssociateDiscoveredResourceCommandOutput, MigrationHubClientResolvedConfig> {
99
- readonly input: AssociateDiscoveredResourceCommandInput;
100
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
101
- /**
102
- * @public
103
- */
104
- constructor(input: AssociateDiscoveredResourceCommandInput);
105
- /**
106
- * @internal
107
- */
108
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssociateDiscoveredResourceCommandInput, AssociateDiscoveredResourceCommandOutput>;
109
- /**
110
- * @internal
111
- */
112
- private serialize;
113
- /**
114
- * @internal
115
- */
116
- private deserialize;
101
+ export declare class AssociateDiscoveredResourceCommand extends AssociateDiscoveredResourceCommand_base {
117
102
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
5
4
  import { CreateProgressUpdateStreamRequest, CreateProgressUpdateStreamResult } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateProgressUpdateStreamCommandInput extends CreateProgressUp
21
20
  */
22
21
  export interface CreateProgressUpdateStreamCommandOutput extends CreateProgressUpdateStreamResult, __MetadataBearer {
23
22
  }
23
+ declare const CreateProgressUpdateStreamCommand_base: {
24
+ new (input: CreateProgressUpdateStreamCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProgressUpdateStreamCommandInput, CreateProgressUpdateStreamCommandOutput, MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a progress update stream which is an AWS resource used for access control as
@@ -83,23 +86,5 @@ export interface CreateProgressUpdateStreamCommandOutput extends CreateProgressU
83
86
  * <p>Base exception class for all service exceptions from MigrationHub service.</p>
84
87
  *
85
88
  */
86
- export declare class CreateProgressUpdateStreamCommand extends $Command<CreateProgressUpdateStreamCommandInput, CreateProgressUpdateStreamCommandOutput, MigrationHubClientResolvedConfig> {
87
- readonly input: CreateProgressUpdateStreamCommandInput;
88
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
89
- /**
90
- * @public
91
- */
92
- constructor(input: CreateProgressUpdateStreamCommandInput);
93
- /**
94
- * @internal
95
- */
96
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateProgressUpdateStreamCommandInput, CreateProgressUpdateStreamCommandOutput>;
97
- /**
98
- * @internal
99
- */
100
- private serialize;
101
- /**
102
- * @internal
103
- */
104
- private deserialize;
89
+ export declare class CreateProgressUpdateStreamCommand extends CreateProgressUpdateStreamCommand_base {
105
90
  }