@aws-sdk/client-migration-hub 3.35.0 → 3.38.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 (210) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/MigrationHub.js +0 -9
  3. package/dist-cjs/MigrationHubClient.js +0 -14
  4. package/dist-cjs/commands/AssociateCreatedArtifactCommand.js +0 -42
  5. package/dist-cjs/commands/AssociateDiscoveredResourceCommand.js +0 -26
  6. package/dist-cjs/commands/CreateProgressUpdateStreamCommand.js +0 -29
  7. package/dist-cjs/commands/DeleteProgressUpdateStreamCommand.js +0 -55
  8. package/dist-cjs/commands/DescribeApplicationStateCommand.js +0 -25
  9. package/dist-cjs/commands/DescribeMigrationTaskCommand.js +0 -25
  10. package/dist-cjs/commands/DisassociateCreatedArtifactCommand.js +0 -41
  11. package/dist-cjs/commands/DisassociateDiscoveredResourceCommand.js +0 -26
  12. package/dist-cjs/commands/ImportMigrationTaskCommand.js +0 -28
  13. package/dist-cjs/commands/ListApplicationStatesCommand.js +0 -27
  14. package/dist-cjs/commands/ListCreatedArtifactsCommand.js +0 -39
  15. package/dist-cjs/commands/ListDiscoveredResourcesCommand.js +0 -25
  16. package/dist-cjs/commands/ListMigrationTasksCommand.js +0 -38
  17. package/dist-cjs/commands/ListProgressUpdateStreamsCommand.js +0 -25
  18. package/dist-cjs/commands/NotifyApplicationStateCommand.js +0 -28
  19. package/dist-cjs/commands/NotifyMigrationTaskStateCommand.js +0 -42
  20. package/dist-cjs/commands/PutResourceAttributesCommand.js +0 -50
  21. package/dist-cjs/commands/index.js +20 -0
  22. package/dist-cjs/endpoints.js +1 -2
  23. package/dist-cjs/index.js +4 -26
  24. package/dist-cjs/models/index.js +0 -1
  25. package/dist-cjs/models/models_0.js +0 -157
  26. package/dist-cjs/pagination/Interfaces.js +0 -1
  27. package/dist-cjs/pagination/ListApplicationStatesPaginator.js +0 -11
  28. package/dist-cjs/pagination/ListCreatedArtifactsPaginator.js +0 -11
  29. package/dist-cjs/pagination/ListDiscoveredResourcesPaginator.js +0 -11
  30. package/dist-cjs/pagination/ListMigrationTasksPaginator.js +0 -11
  31. package/dist-cjs/pagination/ListProgressUpdateStreamsPaginator.js +0 -11
  32. package/dist-cjs/pagination/index.js +9 -0
  33. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  34. package/dist-cjs/runtimeConfig.browser.js +1 -6
  35. package/dist-cjs/runtimeConfig.js +2 -7
  36. package/dist-cjs/runtimeConfig.native.js +0 -4
  37. package/dist-cjs/runtimeConfig.shared.js +0 -4
  38. package/dist-es/MigrationHub.js +0 -1
  39. package/dist-es/MigrationHubClient.js +0 -1
  40. package/dist-es/commands/AssociateCreatedArtifactCommand.js +0 -1
  41. package/dist-es/commands/AssociateDiscoveredResourceCommand.js +0 -1
  42. package/dist-es/commands/CreateProgressUpdateStreamCommand.js +0 -1
  43. package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +0 -1
  44. package/dist-es/commands/DescribeApplicationStateCommand.js +0 -1
  45. package/dist-es/commands/DescribeMigrationTaskCommand.js +0 -1
  46. package/dist-es/commands/DisassociateCreatedArtifactCommand.js +0 -1
  47. package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +0 -1
  48. package/dist-es/commands/ImportMigrationTaskCommand.js +0 -1
  49. package/dist-es/commands/ListApplicationStatesCommand.js +0 -1
  50. package/dist-es/commands/ListCreatedArtifactsCommand.js +0 -1
  51. package/dist-es/commands/ListDiscoveredResourcesCommand.js +0 -1
  52. package/dist-es/commands/ListMigrationTasksCommand.js +0 -1
  53. package/dist-es/commands/ListProgressUpdateStreamsCommand.js +0 -1
  54. package/dist-es/commands/NotifyApplicationStateCommand.js +0 -1
  55. package/dist-es/commands/NotifyMigrationTaskStateCommand.js +0 -1
  56. package/dist-es/commands/PutResourceAttributesCommand.js +0 -1
  57. package/dist-es/commands/index.js +17 -0
  58. package/dist-es/endpoints.js +1 -2
  59. package/dist-es/index.js +4 -26
  60. package/dist-es/models/index.js +0 -1
  61. package/dist-es/models/models_0.js +0 -1
  62. package/dist-es/pagination/Interfaces.js +0 -1
  63. package/dist-es/pagination/ListApplicationStatesPaginator.js +0 -1
  64. package/dist-es/pagination/ListCreatedArtifactsPaginator.js +0 -1
  65. package/dist-es/pagination/ListDiscoveredResourcesPaginator.js +0 -1
  66. package/dist-es/pagination/ListMigrationTasksPaginator.js +0 -1
  67. package/dist-es/pagination/ListProgressUpdateStreamsPaginator.js +0 -1
  68. package/dist-es/pagination/index.js +6 -0
  69. package/dist-es/protocols/Aws_json1_1.js +0 -1
  70. package/dist-es/runtimeConfig.browser.js +1 -2
  71. package/dist-es/runtimeConfig.js +2 -3
  72. package/dist-es/runtimeConfig.native.js +0 -1
  73. package/dist-es/runtimeConfig.shared.js +0 -1
  74. package/dist-types/commands/index.d.ts +17 -0
  75. package/dist-types/index.d.ts +4 -25
  76. package/dist-types/pagination/index.d.ts +6 -0
  77. package/dist-types/ts3.4/MigrationHub.d.ts +18 -205
  78. package/dist-types/ts3.4/MigrationHubClient.d.ts +24 -94
  79. package/dist-types/ts3.4/commands/AssociateCreatedArtifactCommand.d.ts +2 -37
  80. package/dist-types/ts3.4/commands/AssociateDiscoveredResourceCommand.d.ts +2 -21
  81. package/dist-types/ts3.4/commands/CreateProgressUpdateStreamCommand.d.ts +2 -24
  82. package/dist-types/ts3.4/commands/DeleteProgressUpdateStreamCommand.d.ts +2 -50
  83. package/dist-types/ts3.4/commands/DescribeApplicationStateCommand.d.ts +2 -20
  84. package/dist-types/ts3.4/commands/DescribeMigrationTaskCommand.d.ts +2 -20
  85. package/dist-types/ts3.4/commands/DisassociateCreatedArtifactCommand.d.ts +2 -36
  86. package/dist-types/ts3.4/commands/DisassociateDiscoveredResourceCommand.d.ts +2 -21
  87. package/dist-types/ts3.4/commands/ImportMigrationTaskCommand.d.ts +2 -23
  88. package/dist-types/ts3.4/commands/ListApplicationStatesCommand.d.ts +2 -22
  89. package/dist-types/ts3.4/commands/ListCreatedArtifactsCommand.d.ts +2 -34
  90. package/dist-types/ts3.4/commands/ListDiscoveredResourcesCommand.d.ts +2 -20
  91. package/dist-types/ts3.4/commands/ListMigrationTasksCommand.d.ts +2 -33
  92. package/dist-types/ts3.4/commands/ListProgressUpdateStreamsCommand.d.ts +2 -20
  93. package/dist-types/ts3.4/commands/NotifyApplicationStateCommand.d.ts +2 -23
  94. package/dist-types/ts3.4/commands/NotifyMigrationTaskStateCommand.d.ts +2 -37
  95. package/dist-types/ts3.4/commands/PutResourceAttributesCommand.d.ts +2 -45
  96. package/dist-types/ts3.4/commands/index.d.ts +17 -0
  97. package/dist-types/ts3.4/index.d.ts +4 -25
  98. package/dist-types/ts3.4/models/models_0.d.ts +165 -648
  99. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  100. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  101. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  102. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  103. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  104. package/package.json +33 -30
  105. package/dist-cjs/MigrationHub.js.map +0 -1
  106. package/dist-cjs/MigrationHubClient.js.map +0 -1
  107. package/dist-cjs/commands/AssociateCreatedArtifactCommand.js.map +0 -1
  108. package/dist-cjs/commands/AssociateDiscoveredResourceCommand.js.map +0 -1
  109. package/dist-cjs/commands/CreateProgressUpdateStreamCommand.js.map +0 -1
  110. package/dist-cjs/commands/DeleteProgressUpdateStreamCommand.js.map +0 -1
  111. package/dist-cjs/commands/DescribeApplicationStateCommand.js.map +0 -1
  112. package/dist-cjs/commands/DescribeMigrationTaskCommand.js.map +0 -1
  113. package/dist-cjs/commands/DisassociateCreatedArtifactCommand.js.map +0 -1
  114. package/dist-cjs/commands/DisassociateDiscoveredResourceCommand.js.map +0 -1
  115. package/dist-cjs/commands/ImportMigrationTaskCommand.js.map +0 -1
  116. package/dist-cjs/commands/ListApplicationStatesCommand.js.map +0 -1
  117. package/dist-cjs/commands/ListCreatedArtifactsCommand.js.map +0 -1
  118. package/dist-cjs/commands/ListDiscoveredResourcesCommand.js.map +0 -1
  119. package/dist-cjs/commands/ListMigrationTasksCommand.js.map +0 -1
  120. package/dist-cjs/commands/ListProgressUpdateStreamsCommand.js.map +0 -1
  121. package/dist-cjs/commands/NotifyApplicationStateCommand.js.map +0 -1
  122. package/dist-cjs/commands/NotifyMigrationTaskStateCommand.js.map +0 -1
  123. package/dist-cjs/commands/PutResourceAttributesCommand.js.map +0 -1
  124. package/dist-cjs/endpoints.js.map +0 -1
  125. package/dist-cjs/index.js.map +0 -1
  126. package/dist-cjs/models/index.js.map +0 -1
  127. package/dist-cjs/models/models_0.js.map +0 -1
  128. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  129. package/dist-cjs/pagination/ListApplicationStatesPaginator.js.map +0 -1
  130. package/dist-cjs/pagination/ListCreatedArtifactsPaginator.js.map +0 -1
  131. package/dist-cjs/pagination/ListDiscoveredResourcesPaginator.js.map +0 -1
  132. package/dist-cjs/pagination/ListMigrationTasksPaginator.js.map +0 -1
  133. package/dist-cjs/pagination/ListProgressUpdateStreamsPaginator.js.map +0 -1
  134. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  135. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  136. package/dist-cjs/runtimeConfig.js.map +0 -1
  137. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  138. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  139. package/dist-es/MigrationHub.js.map +0 -1
  140. package/dist-es/MigrationHubClient.js.map +0 -1
  141. package/dist-es/commands/AssociateCreatedArtifactCommand.js.map +0 -1
  142. package/dist-es/commands/AssociateDiscoveredResourceCommand.js.map +0 -1
  143. package/dist-es/commands/CreateProgressUpdateStreamCommand.js.map +0 -1
  144. package/dist-es/commands/DeleteProgressUpdateStreamCommand.js.map +0 -1
  145. package/dist-es/commands/DescribeApplicationStateCommand.js.map +0 -1
  146. package/dist-es/commands/DescribeMigrationTaskCommand.js.map +0 -1
  147. package/dist-es/commands/DisassociateCreatedArtifactCommand.js.map +0 -1
  148. package/dist-es/commands/DisassociateDiscoveredResourceCommand.js.map +0 -1
  149. package/dist-es/commands/ImportMigrationTaskCommand.js.map +0 -1
  150. package/dist-es/commands/ListApplicationStatesCommand.js.map +0 -1
  151. package/dist-es/commands/ListCreatedArtifactsCommand.js.map +0 -1
  152. package/dist-es/commands/ListDiscoveredResourcesCommand.js.map +0 -1
  153. package/dist-es/commands/ListMigrationTasksCommand.js.map +0 -1
  154. package/dist-es/commands/ListProgressUpdateStreamsCommand.js.map +0 -1
  155. package/dist-es/commands/NotifyApplicationStateCommand.js.map +0 -1
  156. package/dist-es/commands/NotifyMigrationTaskStateCommand.js.map +0 -1
  157. package/dist-es/commands/PutResourceAttributesCommand.js.map +0 -1
  158. package/dist-es/endpoints.js.map +0 -1
  159. package/dist-es/index.js.map +0 -1
  160. package/dist-es/models/index.js.map +0 -1
  161. package/dist-es/models/models_0.js.map +0 -1
  162. package/dist-es/pagination/Interfaces.js.map +0 -1
  163. package/dist-es/pagination/ListApplicationStatesPaginator.js.map +0 -1
  164. package/dist-es/pagination/ListCreatedArtifactsPaginator.js.map +0 -1
  165. package/dist-es/pagination/ListDiscoveredResourcesPaginator.js.map +0 -1
  166. package/dist-es/pagination/ListMigrationTasksPaginator.js.map +0 -1
  167. package/dist-es/pagination/ListProgressUpdateStreamsPaginator.js.map +0 -1
  168. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  169. package/dist-es/runtimeConfig.browser.js.map +0 -1
  170. package/dist-es/runtimeConfig.js.map +0 -1
  171. package/dist-es/runtimeConfig.native.js.map +0 -1
  172. package/dist-es/runtimeConfig.shared.js.map +0 -1
  173. package/jest.config.js +0 -4
  174. package/src/MigrationHub.ts +0 -788
  175. package/src/MigrationHubClient.ts +0 -340
  176. package/src/commands/AssociateCreatedArtifactCommand.ts +0 -112
  177. package/src/commands/AssociateDiscoveredResourceCommand.ts +0 -99
  178. package/src/commands/CreateProgressUpdateStreamCommand.ts +0 -102
  179. package/src/commands/DeleteProgressUpdateStreamCommand.ts +0 -128
  180. package/src/commands/DescribeApplicationStateCommand.ts +0 -95
  181. package/src/commands/DescribeMigrationTaskCommand.ts +0 -95
  182. package/src/commands/DisassociateCreatedArtifactCommand.ts +0 -114
  183. package/src/commands/DisassociateDiscoveredResourceCommand.ts +0 -104
  184. package/src/commands/ImportMigrationTaskCommand.ts +0 -98
  185. package/src/commands/ListApplicationStatesCommand.ts +0 -97
  186. package/src/commands/ListCreatedArtifactsCommand.ts +0 -109
  187. package/src/commands/ListDiscoveredResourcesCommand.ts +0 -95
  188. package/src/commands/ListMigrationTasksCommand.ts +0 -108
  189. package/src/commands/ListProgressUpdateStreamsCommand.ts +0 -98
  190. package/src/commands/NotifyApplicationStateCommand.ts +0 -98
  191. package/src/commands/NotifyMigrationTaskStateCommand.ts +0 -112
  192. package/src/commands/PutResourceAttributesCommand.ts +0 -120
  193. package/src/endpoints.ts +0 -57
  194. package/src/index.ts +0 -26
  195. package/src/models/index.ts +0 -1
  196. package/src/models/models_0.ts +0 -1319
  197. package/src/pagination/Interfaces.ts +0 -8
  198. package/src/pagination/ListApplicationStatesPaginator.ts +0 -59
  199. package/src/pagination/ListCreatedArtifactsPaginator.ts +0 -59
  200. package/src/pagination/ListDiscoveredResourcesPaginator.ts +0 -59
  201. package/src/pagination/ListMigrationTasksPaginator.ts +0 -59
  202. package/src/pagination/ListProgressUpdateStreamsPaginator.ts +0 -59
  203. package/src/protocols/Aws_json1_1.ts +0 -3163
  204. package/src/runtimeConfig.browser.ts +0 -41
  205. package/src/runtimeConfig.native.ts +0 -17
  206. package/src/runtimeConfig.shared.ts +0 -17
  207. package/src/runtimeConfig.ts +0 -46
  208. package/tsconfig.es.json +0 -10
  209. package/tsconfig.json +0 -33
  210. package/tsconfig.types.json +0 -9
@@ -1,112 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
15
- import { NotifyMigrationTaskStateRequest, NotifyMigrationTaskStateResult } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1NotifyMigrationTaskStateCommand,
18
- serializeAws_json1_1NotifyMigrationTaskStateCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface NotifyMigrationTaskStateCommandInput extends NotifyMigrationTaskStateRequest {}
22
- export interface NotifyMigrationTaskStateCommandOutput extends NotifyMigrationTaskStateResult, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Notifies Migration Hub of the current status, progress, or other detail regarding a
26
- * migration task. This API has the following traits:</p>
27
- * <ul>
28
- * <li>
29
- * <p>Migration tools will call the <code>NotifyMigrationTaskState</code> API to share
30
- * the latest progress and status.</p>
31
- * </li>
32
- * <li>
33
- * <p>
34
- * <code>MigrationTaskName</code> is used for addressing updates to the correct
35
- * target.</p>
36
- * </li>
37
- * <li>
38
- * <p>
39
- * <code>ProgressUpdateStream</code> is used for access control and to provide a
40
- * namespace for each migration tool.</p>
41
- * </li>
42
- * </ul>
43
- * @example
44
- * Use a bare-bones client and the command you need to make an API call.
45
- * ```javascript
46
- * import { MigrationHubClient, NotifyMigrationTaskStateCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
47
- * // const { MigrationHubClient, NotifyMigrationTaskStateCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
48
- * const client = new MigrationHubClient(config);
49
- * const command = new NotifyMigrationTaskStateCommand(input);
50
- * const response = await client.send(command);
51
- * ```
52
- *
53
- * @see {@link NotifyMigrationTaskStateCommandInput} for command's `input` shape.
54
- * @see {@link NotifyMigrationTaskStateCommandOutput} for command's `response` shape.
55
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
56
- *
57
- */
58
- export class NotifyMigrationTaskStateCommand extends $Command<
59
- NotifyMigrationTaskStateCommandInput,
60
- NotifyMigrationTaskStateCommandOutput,
61
- MigrationHubClientResolvedConfig
62
- > {
63
- // Start section: command_properties
64
- // End section: command_properties
65
-
66
- constructor(readonly input: NotifyMigrationTaskStateCommandInput) {
67
- // Start section: command_constructor
68
- super();
69
- // End section: command_constructor
70
- }
71
-
72
- /**
73
- * @internal
74
- */
75
- resolveMiddleware(
76
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
77
- configuration: MigrationHubClientResolvedConfig,
78
- options?: __HttpHandlerOptions
79
- ): Handler<NotifyMigrationTaskStateCommandInput, NotifyMigrationTaskStateCommandOutput> {
80
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
81
-
82
- const stack = clientStack.concat(this.middlewareStack);
83
-
84
- const { logger } = configuration;
85
- const clientName = "MigrationHubClient";
86
- const commandName = "NotifyMigrationTaskStateCommand";
87
- const handlerExecutionContext: HandlerExecutionContext = {
88
- logger,
89
- clientName,
90
- commandName,
91
- inputFilterSensitiveLog: NotifyMigrationTaskStateRequest.filterSensitiveLog,
92
- outputFilterSensitiveLog: NotifyMigrationTaskStateResult.filterSensitiveLog,
93
- };
94
- const { requestHandler } = configuration;
95
- return stack.resolve(
96
- (request: FinalizeHandlerArguments<any>) =>
97
- requestHandler.handle(request.request as __HttpRequest, options || {}),
98
- handlerExecutionContext
99
- );
100
- }
101
-
102
- private serialize(input: NotifyMigrationTaskStateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
103
- return serializeAws_json1_1NotifyMigrationTaskStateCommand(input, context);
104
- }
105
-
106
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<NotifyMigrationTaskStateCommandOutput> {
107
- return deserializeAws_json1_1NotifyMigrationTaskStateCommand(output, context);
108
- }
109
-
110
- // Start section: command_body_extra
111
- // End section: command_body_extra
112
- }
@@ -1,120 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
15
- import { PutResourceAttributesRequest, PutResourceAttributesResult } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1PutResourceAttributesCommand,
18
- serializeAws_json1_1PutResourceAttributesCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface PutResourceAttributesCommandInput extends PutResourceAttributesRequest {}
22
- export interface PutResourceAttributesCommandOutput extends PutResourceAttributesResult, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Provides identifying details of the resource being migrated so that it can be associated
26
- * in the Application Discovery Service repository. This association occurs asynchronously
27
- * after <code>PutResourceAttributes</code> returns.</p>
28
- * <important>
29
- * <ul>
30
- * <li>
31
- * <p>Keep in mind that subsequent calls to PutResourceAttributes will override
32
- * previously stored attributes. For example, if it is first called with a MAC
33
- * address, but later, it is desired to <i>add</i> an IP address, it
34
- * will then be required to call it with <i>both</i> the IP and MAC
35
- * addresses to prevent overriding the MAC address.</p>
36
- * </li>
37
- * <li>
38
- * <p>Note the instructions regarding the special use case of the <a href="https://docs.aws.amazon.com/migrationhub/latest/ug/API_PutResourceAttributes.html#migrationhub-PutResourceAttributes-request-ResourceAttributeList">
39
- * <code>ResourceAttributeList</code>
40
- * </a> parameter when specifying any
41
- * "VM" related value.</p>
42
- * </li>
43
- * </ul>
44
- * </important>
45
- *
46
- * <note>
47
- * <p>Because this is an asynchronous call, it will always return 200, whether an
48
- * association occurs or not. To confirm if an association was found based on the provided
49
- * details, call <code>ListDiscoveredResources</code>.</p>
50
- * </note>
51
- * @example
52
- * Use a bare-bones client and the command you need to make an API call.
53
- * ```javascript
54
- * import { MigrationHubClient, PutResourceAttributesCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
55
- * // const { MigrationHubClient, PutResourceAttributesCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
56
- * const client = new MigrationHubClient(config);
57
- * const command = new PutResourceAttributesCommand(input);
58
- * const response = await client.send(command);
59
- * ```
60
- *
61
- * @see {@link PutResourceAttributesCommandInput} for command's `input` shape.
62
- * @see {@link PutResourceAttributesCommandOutput} for command's `response` shape.
63
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
64
- *
65
- */
66
- export class PutResourceAttributesCommand extends $Command<
67
- PutResourceAttributesCommandInput,
68
- PutResourceAttributesCommandOutput,
69
- MigrationHubClientResolvedConfig
70
- > {
71
- // Start section: command_properties
72
- // End section: command_properties
73
-
74
- constructor(readonly input: PutResourceAttributesCommandInput) {
75
- // Start section: command_constructor
76
- super();
77
- // End section: command_constructor
78
- }
79
-
80
- /**
81
- * @internal
82
- */
83
- resolveMiddleware(
84
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
85
- configuration: MigrationHubClientResolvedConfig,
86
- options?: __HttpHandlerOptions
87
- ): Handler<PutResourceAttributesCommandInput, PutResourceAttributesCommandOutput> {
88
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
89
-
90
- const stack = clientStack.concat(this.middlewareStack);
91
-
92
- const { logger } = configuration;
93
- const clientName = "MigrationHubClient";
94
- const commandName = "PutResourceAttributesCommand";
95
- const handlerExecutionContext: HandlerExecutionContext = {
96
- logger,
97
- clientName,
98
- commandName,
99
- inputFilterSensitiveLog: PutResourceAttributesRequest.filterSensitiveLog,
100
- outputFilterSensitiveLog: PutResourceAttributesResult.filterSensitiveLog,
101
- };
102
- const { requestHandler } = configuration;
103
- return stack.resolve(
104
- (request: FinalizeHandlerArguments<any>) =>
105
- requestHandler.handle(request.request as __HttpRequest, options || {}),
106
- handlerExecutionContext
107
- );
108
- }
109
-
110
- private serialize(input: PutResourceAttributesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
111
- return serializeAws_json1_1PutResourceAttributesCommand(input, context);
112
- }
113
-
114
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutResourceAttributesCommandOutput> {
115
- return deserializeAws_json1_1PutResourceAttributesCommand(output, context);
116
- }
117
-
118
- // Start section: command_body_extra
119
- // End section: command_body_extra
120
- }
package/src/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "mgh.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "mgh.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "mgh.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "mgh.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "mgh.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "mgh",
55
- regionHash,
56
- partitionHash,
57
- });
package/src/index.ts DELETED
@@ -1,26 +0,0 @@
1
- export * from "./MigrationHubClient";
2
- export * from "./MigrationHub";
3
- export * from "./commands/AssociateCreatedArtifactCommand";
4
- export * from "./commands/AssociateDiscoveredResourceCommand";
5
- export * from "./commands/CreateProgressUpdateStreamCommand";
6
- export * from "./commands/DeleteProgressUpdateStreamCommand";
7
- export * from "./commands/DescribeApplicationStateCommand";
8
- export * from "./commands/DescribeMigrationTaskCommand";
9
- export * from "./commands/DisassociateCreatedArtifactCommand";
10
- export * from "./commands/DisassociateDiscoveredResourceCommand";
11
- export * from "./commands/ImportMigrationTaskCommand";
12
- export * from "./commands/ListApplicationStatesCommand";
13
- export * from "./pagination/ListApplicationStatesPaginator";
14
- export * from "./commands/ListCreatedArtifactsCommand";
15
- export * from "./pagination/ListCreatedArtifactsPaginator";
16
- export * from "./commands/ListDiscoveredResourcesCommand";
17
- export * from "./pagination/ListDiscoveredResourcesPaginator";
18
- export * from "./commands/ListMigrationTasksCommand";
19
- export * from "./pagination/ListMigrationTasksPaginator";
20
- export * from "./commands/ListProgressUpdateStreamsCommand";
21
- export * from "./pagination/ListProgressUpdateStreamsPaginator";
22
- export * from "./commands/NotifyApplicationStateCommand";
23
- export * from "./commands/NotifyMigrationTaskStateCommand";
24
- export * from "./commands/PutResourceAttributesCommand";
25
- export * from "./pagination/Interfaces";
26
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";