@aws-sdk/client-mgn 3.36.0 → 3.36.1

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 (71) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Mgn.js +0 -3
  3. package/dist-cjs/MgnClient.js +0 -8
  4. package/dist-cjs/commands/ChangeServerLifeCycleStateCommand.js +0 -24
  5. package/dist-cjs/commands/CreateReplicationConfigurationTemplateCommand.js +0 -24
  6. package/dist-cjs/commands/DeleteJobCommand.js +0 -24
  7. package/dist-cjs/commands/DeleteReplicationConfigurationTemplateCommand.js +0 -24
  8. package/dist-cjs/commands/DeleteSourceServerCommand.js +0 -24
  9. package/dist-cjs/commands/DescribeJobLogItemsCommand.js +0 -24
  10. package/dist-cjs/commands/DescribeJobsCommand.js +0 -24
  11. package/dist-cjs/commands/DescribeReplicationConfigurationTemplatesCommand.js +0 -24
  12. package/dist-cjs/commands/DescribeSourceServersCommand.js +0 -24
  13. package/dist-cjs/commands/DisconnectFromServiceCommand.js +0 -24
  14. package/dist-cjs/commands/FinalizeCutoverCommand.js +0 -24
  15. package/dist-cjs/commands/GetLaunchConfigurationCommand.js +0 -24
  16. package/dist-cjs/commands/GetReplicationConfigurationCommand.js +0 -24
  17. package/dist-cjs/commands/InitializeServiceCommand.js +0 -24
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
  19. package/dist-cjs/commands/MarkAsArchivedCommand.js +0 -24
  20. package/dist-cjs/commands/RetryDataReplicationCommand.js +0 -24
  21. package/dist-cjs/commands/StartCutoverCommand.js +0 -24
  22. package/dist-cjs/commands/StartTestCommand.js +0 -24
  23. package/dist-cjs/commands/TagResourceCommand.js +0 -24
  24. package/dist-cjs/commands/TerminateTargetInstancesCommand.js +0 -24
  25. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  26. package/dist-cjs/commands/UpdateLaunchConfigurationCommand.js +0 -24
  27. package/dist-cjs/commands/UpdateReplicationConfigurationCommand.js +0 -24
  28. package/dist-cjs/commands/UpdateReplicationConfigurationTemplateCommand.js +0 -24
  29. package/dist-cjs/models/models_0.js +0 -237
  30. package/dist-cjs/pagination/DescribeJobLogItemsPaginator.js +0 -10
  31. package/dist-cjs/pagination/DescribeJobsPaginator.js +0 -10
  32. package/dist-cjs/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +0 -10
  33. package/dist-cjs/pagination/DescribeSourceServersPaginator.js +0 -10
  34. package/dist-cjs/protocols/Aws_restJson1.js +0 -5
  35. package/dist-cjs/runtimeConfig.browser.js +1 -5
  36. package/dist-cjs/runtimeConfig.js +1 -5
  37. package/dist-cjs/runtimeConfig.native.js +0 -3
  38. package/dist-cjs/runtimeConfig.shared.js +0 -3
  39. package/dist-types/ts3.4/Mgn.d.ts +26 -78
  40. package/dist-types/ts3.4/MgnClient.d.ts +24 -89
  41. package/dist-types/ts3.4/commands/ChangeServerLifeCycleStateCommand.d.ts +2 -20
  42. package/dist-types/ts3.4/commands/CreateReplicationConfigurationTemplateCommand.d.ts +2 -20
  43. package/dist-types/ts3.4/commands/DeleteJobCommand.d.ts +2 -20
  44. package/dist-types/ts3.4/commands/DeleteReplicationConfigurationTemplateCommand.d.ts +2 -20
  45. package/dist-types/ts3.4/commands/DeleteSourceServerCommand.d.ts +2 -20
  46. package/dist-types/ts3.4/commands/DescribeJobLogItemsCommand.d.ts +2 -20
  47. package/dist-types/ts3.4/commands/DescribeJobsCommand.d.ts +2 -20
  48. package/dist-types/ts3.4/commands/DescribeReplicationConfigurationTemplatesCommand.d.ts +2 -20
  49. package/dist-types/ts3.4/commands/DescribeSourceServersCommand.d.ts +2 -20
  50. package/dist-types/ts3.4/commands/DisconnectFromServiceCommand.d.ts +2 -20
  51. package/dist-types/ts3.4/commands/FinalizeCutoverCommand.d.ts +2 -20
  52. package/dist-types/ts3.4/commands/GetLaunchConfigurationCommand.d.ts +2 -20
  53. package/dist-types/ts3.4/commands/GetReplicationConfigurationCommand.d.ts +2 -20
  54. package/dist-types/ts3.4/commands/InitializeServiceCommand.d.ts +2 -20
  55. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  56. package/dist-types/ts3.4/commands/MarkAsArchivedCommand.d.ts +2 -20
  57. package/dist-types/ts3.4/commands/RetryDataReplicationCommand.d.ts +2 -20
  58. package/dist-types/ts3.4/commands/StartCutoverCommand.d.ts +2 -20
  59. package/dist-types/ts3.4/commands/StartTestCommand.d.ts +2 -20
  60. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  61. package/dist-types/ts3.4/commands/TerminateTargetInstancesCommand.d.ts +2 -20
  62. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  63. package/dist-types/ts3.4/commands/UpdateLaunchConfigurationCommand.d.ts +2 -20
  64. package/dist-types/ts3.4/commands/UpdateReplicationConfigurationCommand.d.ts +2 -20
  65. package/dist-types/ts3.4/commands/UpdateReplicationConfigurationTemplateCommand.d.ts +2 -20
  66. package/dist-types/ts3.4/models/models_0.d.ts +361 -1083
  67. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  68. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  69. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  70. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  71. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
18
 
8
19
 
package/dist-cjs/Mgn.js CHANGED
@@ -27,9 +27,6 @@ const UpdateLaunchConfigurationCommand_1 = require("./commands/UpdateLaunchConfi
27
27
  const UpdateReplicationConfigurationCommand_1 = require("./commands/UpdateReplicationConfigurationCommand");
28
28
  const UpdateReplicationConfigurationTemplateCommand_1 = require("./commands/UpdateReplicationConfigurationTemplateCommand");
29
29
  const MgnClient_1 = require("./MgnClient");
30
- /**
31
- * <p>The Application Migration Service service.</p>
32
- */
33
30
  class Mgn extends MgnClient_1.MgnClient {
34
31
  changeServerLifeCycleState(args, optionsOrCb, cb) {
35
32
  const command = new ChangeServerLifeCycleStateCommand_1.ChangeServerLifeCycleStateCommand(args);
@@ -10,9 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <p>The Application Migration Service service.</p>
15
- */
16
13
  class MgnClient extends smithy_client_1.Client {
17
14
  constructor(configuration) {
18
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -31,11 +28,6 @@ class MgnClient extends smithy_client_1.Client {
31
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
32
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
33
30
  }
34
- /**
35
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
36
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
37
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
38
- */
39
31
  destroy() {
40
32
  super.destroy();
41
33
  }
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Allows the user to set the SourceServer.LifeCycle.state property for specific Source Server IDs to one of the following: READY_FOR_TEST or READY_FOR_CUTOVER. This command only works if the Source Server is already launchable (dataReplicationInfo.lagDuration is not null.)</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, ChangeServerLifeCycleStateCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, ChangeServerLifeCycleStateCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new ChangeServerLifeCycleStateCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ChangeServerLifeCycleStateCommandInput} for command's `input` shape.
21
- * @see {@link ChangeServerLifeCycleStateCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ChangeServerLifeCycleStateCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Creates a new ReplicationConfigurationTemplate.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, CreateReplicationConfigurationTemplateCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, CreateReplicationConfigurationTemplateCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new CreateReplicationConfigurationTemplateCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link CreateReplicationConfigurationTemplateCommandInput} for command's `input` shape.
21
- * @see {@link CreateReplicationConfigurationTemplateCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class CreateReplicationConfigurationTemplateCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Deletes a single Job by ID.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, DeleteJobCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, DeleteJobCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new DeleteJobCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DeleteJobCommandInput} for command's `input` shape.
21
- * @see {@link DeleteJobCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DeleteJobCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Deletes a single Replication Configuration Template by ID</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, DeleteReplicationConfigurationTemplateCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, DeleteReplicationConfigurationTemplateCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new DeleteReplicationConfigurationTemplateCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DeleteReplicationConfigurationTemplateCommandInput} for command's `input` shape.
21
- * @see {@link DeleteReplicationConfigurationTemplateCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DeleteReplicationConfigurationTemplateCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Deletes a single source server by ID.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, DeleteSourceServerCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, DeleteSourceServerCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new DeleteSourceServerCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DeleteSourceServerCommandInput} for command's `input` shape.
21
- * @see {@link DeleteSourceServerCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DeleteSourceServerCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Retrieves detailed Job log with paging.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, DescribeJobLogItemsCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, DescribeJobLogItemsCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new DescribeJobLogItemsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeJobLogItemsCommandInput} for command's `input` shape.
21
- * @see {@link DescribeJobLogItemsCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeJobLogItemsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Returns a list of Jobs. Use the JobsID and fromDate and toData filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are normaly created by the StartTest, StartCutover, and TerminateTargetInstances APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, DescribeJobsCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, DescribeJobsCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new DescribeJobsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeJobsCommandInput} for command's `input` shape.
21
- * @see {@link DescribeJobsCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeJobsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, DescribeReplicationConfigurationTemplatesCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, DescribeReplicationConfigurationTemplatesCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new DescribeReplicationConfigurationTemplatesCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeReplicationConfigurationTemplatesCommandInput} for command's `input` shape.
21
- * @see {@link DescribeReplicationConfigurationTemplatesCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeReplicationConfigurationTemplatesCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Retrieves all SourceServers or multiple SourceServers by ID.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, DescribeSourceServersCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, DescribeSourceServersCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new DescribeSourceServersCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeSourceServersCommandInput} for command's `input` shape.
21
- * @see {@link DescribeSourceServersCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeSourceServersCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Disconnects specific Source Servers from Application Migration Service. Data replication is stopped immediately. All AWS resources created by Application Migration Service for enabling the replication of these source servers will be terminated / deleted within 90 minutes. Launched Test or Cutover instances will NOT be terminated. If the agent on the source server has not been prevented from communciating with the Application Migration Service service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDurationwill be nullified.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, DisconnectFromServiceCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, DisconnectFromServiceCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new DisconnectFromServiceCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DisconnectFromServiceCommandInput} for command's `input` shape.
21
- * @see {@link DisconnectFromServiceCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DisconnectFromServiceCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Finalizes the cutover immediately for specific Source Servers. All AWS resources created by Application Migration Service for enabling the replication of these source servers will be terminated / deleted within 90 minutes. Launched Test or Cutover instances will NOT be terminated. The AWS Replication Agent will receive a command to uninstall itself (within 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be to DISCONNECTED; The SourceServer.lifeCycle.state will be changed to CUTOVER; The totalStorageBytes property fo each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDurationwill be nullified.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, FinalizeCutoverCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, FinalizeCutoverCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new FinalizeCutoverCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link FinalizeCutoverCommandInput} for command's `input` shape.
21
- * @see {@link FinalizeCutoverCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class FinalizeCutoverCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists all LaunchConfigurations available, filtered by Source Server IDs.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, GetLaunchConfigurationCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, GetLaunchConfigurationCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new GetLaunchConfigurationCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetLaunchConfigurationCommandInput} for command's `input` shape.
21
- * @see {@link GetLaunchConfigurationCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetLaunchConfigurationCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists all ReplicationConfigurations, filtered by Source Server ID.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, GetReplicationConfigurationCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, GetReplicationConfigurationCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new GetReplicationConfigurationCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetReplicationConfigurationCommandInput} for command's `input` shape.
21
- * @see {@link GetReplicationConfigurationCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetReplicationConfigurationCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Initialize Application Migration Service.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, InitializeServiceCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, InitializeServiceCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new InitializeServiceCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link InitializeServiceCommandInput} for command's `input` shape.
21
- * @see {@link InitializeServiceCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class InitializeServiceCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>List all tags for your Application Migration Service resources.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, ListTagsForResourceCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, ListTagsForResourceCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new ListTagsForResourceCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
21
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListTagsForResourceCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Archives specific Source Servers by setting the SourceServer.isArchived property to true for specified SourceServers by ID. This command only works for SourceServers with a lifecycle.state which equals DISCONNECTED or CUTOVER.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { MgnClient, MarkAsArchivedCommand } from "@aws-sdk/client-mgn"; // ES Modules import
14
- * // const { MgnClient, MarkAsArchivedCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
15
- * const client = new MgnClient(config);
16
- * const command = new MarkAsArchivedCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link MarkAsArchivedCommandInput} for command's `input` shape.
21
- * @see {@link MarkAsArchivedCommandOutput} for command's `response` shape.
22
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class MarkAsArchivedCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);