@aws-sdk/client-migrationhubstrategy 3.282.0 → 3.287.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "fn", r = "argv", s = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -373,6 +373,7 @@ var OSType;
373
373
  var GroupName;
374
374
  (function (GroupName) {
375
375
  GroupName["EXTERNAL_ID"] = "ExternalId";
376
+ GroupName["EXTERNAL_SOURCE_TYPE"] = "ExternalSourceType";
376
377
  })(GroupName = exports.GroupName || (exports.GroupName = {}));
377
378
  var SortOrder;
378
379
  (function (SortOrder) {
@@ -446,6 +447,7 @@ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
446
447
  var DataSourceType;
447
448
  (function (DataSourceType) {
448
449
  DataSourceType["ADS"] = "ApplicationDiscoveryService";
450
+ DataSourceType["IMPORT"] = "Import";
449
451
  DataSourceType["MPA"] = "MPA";
450
452
  })(DataSourceType = exports.DataSourceType || (exports.DataSourceType = {}));
451
453
  var OutputFormat;
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetServerDetails = void 0;
4
4
  const GetServerDetailsCommand_1 = require("../commands/GetServerDetailsCommand");
5
- const MigrationHubStrategy_1 = require("../MigrationHubStrategy");
6
5
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetServerDetailsCommand_1.GetServerDetailsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getServerDetails(input, ...args);
12
- };
13
9
  async function* paginateGetServerDetails(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetServerDetails(config, input, ...additionalArguments)
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof MigrationHubStrategy_1.MigrationHubStrategy) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
16
+ if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListApplicationComponents = void 0;
4
4
  const ListApplicationComponentsCommand_1 = require("../commands/ListApplicationComponentsCommand");
5
- const MigrationHubStrategy_1 = require("../MigrationHubStrategy");
6
5
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListApplicationComponentsCommand_1.ListApplicationComponentsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listApplicationComponents(input, ...args);
12
- };
13
9
  async function* paginateListApplicationComponents(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListApplicationComponents(config, input, ...additionalAr
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof MigrationHubStrategy_1.MigrationHubStrategy) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
16
+ if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCollectors = void 0;
4
4
  const ListCollectorsCommand_1 = require("../commands/ListCollectorsCommand");
5
- const MigrationHubStrategy_1 = require("../MigrationHubStrategy");
6
5
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListCollectorsCommand_1.ListCollectorsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listCollectors(input, ...args);
12
- };
13
9
  async function* paginateListCollectors(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListCollectors(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof MigrationHubStrategy_1.MigrationHubStrategy) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
16
+ if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListImportFileTask = void 0;
4
4
  const ListImportFileTaskCommand_1 = require("../commands/ListImportFileTaskCommand");
5
- const MigrationHubStrategy_1 = require("../MigrationHubStrategy");
6
5
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListImportFileTaskCommand_1.ListImportFileTaskCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listImportFileTask(input, ...args);
12
- };
13
9
  async function* paginateListImportFileTask(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListImportFileTask(config, input, ...additionalArguments
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof MigrationHubStrategy_1.MigrationHubStrategy) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
16
+ if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListServers = void 0;
4
4
  const ListServersCommand_1 = require("../commands/ListServersCommand");
5
- const MigrationHubStrategy_1 = require("../MigrationHubStrategy");
6
5
  const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListServersCommand_1.ListServersCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listServers(input, ...args);
12
- };
13
9
  async function* paginateListServers(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListServers(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof MigrationHubStrategy_1.MigrationHubStrategy) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
16
+ if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,4 +1,4 @@
1
- const q = "fn", r = "argv", s = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -362,6 +362,7 @@ export var OSType;
362
362
  export var GroupName;
363
363
  (function (GroupName) {
364
364
  GroupName["EXTERNAL_ID"] = "ExternalId";
365
+ GroupName["EXTERNAL_SOURCE_TYPE"] = "ExternalSourceType";
365
366
  })(GroupName || (GroupName = {}));
366
367
  export var SortOrder;
367
368
  (function (SortOrder) {
@@ -432,6 +433,7 @@ export class ServiceQuotaExceededException extends __BaseException {
432
433
  export var DataSourceType;
433
434
  (function (DataSourceType) {
434
435
  DataSourceType["ADS"] = "ApplicationDiscoveryService";
436
+ DataSourceType["IMPORT"] = "Import";
435
437
  DataSourceType["MPA"] = "MPA";
436
438
  })(DataSourceType || (DataSourceType = {}));
437
439
  export var OutputFormat;
@@ -1,12 +1,8 @@
1
1
  import { GetServerDetailsCommand, } from "../commands/GetServerDetailsCommand";
2
- import { MigrationHubStrategy } from "../MigrationHubStrategy";
3
2
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetServerDetailsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getServerDetails(input, ...args);
9
- };
10
6
  export async function* paginateGetServerDetails(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetServerDetails(config, input, ...additionalArgu
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof MigrationHubStrategy) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MigrationHubStrategyClient) {
13
+ if (config.client instanceof MigrationHubStrategyClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListApplicationComponentsCommand, } from "../commands/ListApplicationComponentsCommand";
2
- import { MigrationHubStrategy } from "../MigrationHubStrategy";
3
2
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListApplicationComponentsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listApplicationComponents(input, ...args);
9
- };
10
6
  export async function* paginateListApplicationComponents(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListApplicationComponents(config, input, ...addit
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof MigrationHubStrategy) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MigrationHubStrategyClient) {
13
+ if (config.client instanceof MigrationHubStrategyClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListCollectorsCommand, } from "../commands/ListCollectorsCommand";
2
- import { MigrationHubStrategy } from "../MigrationHubStrategy";
3
2
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListCollectorsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listCollectors(input, ...args);
9
- };
10
6
  export async function* paginateListCollectors(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListCollectors(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof MigrationHubStrategy) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MigrationHubStrategyClient) {
13
+ if (config.client instanceof MigrationHubStrategyClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListImportFileTaskCommand, } from "../commands/ListImportFileTaskCommand";
2
- import { MigrationHubStrategy } from "../MigrationHubStrategy";
3
2
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListImportFileTaskCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listImportFileTask(input, ...args);
9
- };
10
6
  export async function* paginateListImportFileTask(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListImportFileTask(config, input, ...additionalAr
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof MigrationHubStrategy) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MigrationHubStrategyClient) {
13
+ if (config.client instanceof MigrationHubStrategyClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListServersCommand } from "../commands/ListServersCommand";
2
- import { MigrationHubStrategy } from "../MigrationHubStrategy";
3
2
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListServersCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listServers(input, ...args);
9
- };
10
6
  export async function* paginateListServers(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListServers(config, input, ...additionalArguments
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof MigrationHubStrategy) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MigrationHubStrategyClient) {
13
+ if (config.client instanceof MigrationHubStrategyClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region: string;
15
+ Region?: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -1287,7 +1287,8 @@ export interface GetServerStrategiesResponse {
1287
1287
  serverStrategies?: ServerStrategy[];
1288
1288
  }
1289
1289
  export declare enum GroupName {
1290
- EXTERNAL_ID = "ExternalId"
1290
+ EXTERNAL_ID = "ExternalId",
1291
+ EXTERNAL_SOURCE_TYPE = "ExternalSourceType"
1291
1292
  }
1292
1293
  /**
1293
1294
  * <p> The object containing information about distinct imports or groups for Strategy Recommendations. </p>
@@ -1713,6 +1714,7 @@ export interface StartAssessmentResponse {
1713
1714
  }
1714
1715
  export declare enum DataSourceType {
1715
1716
  ADS = "ApplicationDiscoveryService",
1717
+ IMPORT = "Import",
1716
1718
  MPA = "MPA"
1717
1719
  }
1718
1720
  export interface StartImportFileTaskRequest {
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { MigrationHubStrategy } from "../MigrationHubStrategy";
3
2
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
4
3
  export interface MigrationHubStrategyPaginationConfiguration extends PaginationConfiguration {
5
- client: MigrationHubStrategy | MigrationHubStrategyClient;
4
+ client: MigrationHubStrategyClient;
6
5
  }
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region: string;
30
+ Region?: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -629,6 +629,7 @@ export interface GetServerStrategiesResponse {
629
629
  }
630
630
  export declare enum GroupName {
631
631
  EXTERNAL_ID = "ExternalId",
632
+ EXTERNAL_SOURCE_TYPE = "ExternalSourceType",
632
633
  }
633
634
  export interface Group {
634
635
  name?: GroupName | string;
@@ -788,6 +789,7 @@ export interface StartAssessmentResponse {
788
789
  }
789
790
  export declare enum DataSourceType {
790
791
  ADS = "ApplicationDiscoveryService",
792
+ IMPORT = "Import",
791
793
  MPA = "MPA",
792
794
  }
793
795
  export interface StartImportFileTaskRequest {
@@ -1,7 +1,6 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { MigrationHubStrategy } from "../MigrationHubStrategy";
3
2
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
4
3
  export interface MigrationHubStrategyPaginationConfiguration
5
4
  extends PaginationConfiguration {
6
- client: MigrationHubStrategy | MigrationHubStrategyClient;
5
+ client: MigrationHubStrategyClient;
7
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migrationhubstrategy",
3
3
  "description": "AWS SDK for JavaScript Migrationhubstrategy Client for Node.js, Browser and React Native",
4
- "version": "3.282.0",
4
+ "version": "3.287.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,23 +20,23 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.282.0",
24
- "@aws-sdk/config-resolver": "3.282.0",
25
- "@aws-sdk/credential-provider-node": "3.282.0",
23
+ "@aws-sdk/client-sts": "3.287.0",
24
+ "@aws-sdk/config-resolver": "3.287.0",
25
+ "@aws-sdk/credential-provider-node": "3.287.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.282.0",
27
27
  "@aws-sdk/hash-node": "3.272.0",
28
28
  "@aws-sdk/invalid-dependency": "3.272.0",
29
29
  "@aws-sdk/middleware-content-length": "3.282.0",
30
30
  "@aws-sdk/middleware-endpoint": "3.282.0",
31
31
  "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.272.0",
32
+ "@aws-sdk/middleware-logger": "3.287.0",
33
33
  "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.282.0",
34
+ "@aws-sdk/middleware-retry": "3.287.0",
35
35
  "@aws-sdk/middleware-serde": "3.272.0",
36
36
  "@aws-sdk/middleware-signing": "3.282.0",
37
37
  "@aws-sdk/middleware-stack": "3.272.0",
38
38
  "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.272.0",
39
+ "@aws-sdk/node-config-provider": "3.287.0",
40
40
  "@aws-sdk/node-http-handler": "3.282.0",
41
41
  "@aws-sdk/protocol-http": "3.282.0",
42
42
  "@aws-sdk/smithy-client": "3.279.0",
@@ -46,11 +46,11 @@
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.282.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
50
  "@aws-sdk/util-endpoints": "3.272.0",
51
51
  "@aws-sdk/util-retry": "3.272.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.282.0",
53
- "@aws-sdk/util-user-agent-node": "3.282.0",
53
+ "@aws-sdk/util-user-agent-node": "3.287.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "tslib": "^2.3.1"
56
56
  },