@aws-sdk/client-inspector 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.
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetExclusionsPreview = void 0;
4
4
  const GetExclusionsPreviewCommand_1 = require("../commands/GetExclusionsPreviewCommand");
5
- const Inspector_1 = require("../Inspector");
6
5
  const InspectorClient_1 = require("../InspectorClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetExclusionsPreviewCommand_1.GetExclusionsPreviewCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getExclusionsPreview(input, ...args);
12
- };
13
9
  async function* paginateGetExclusionsPreview(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetExclusionsPreview(config, input, ...additionalArgumen
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Inspector_1.Inspector) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof InspectorClient_1.InspectorClient) {
16
+ if (config.client instanceof InspectorClient_1.InspectorClient) {
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.paginateListAssessmentRunAgents = void 0;
4
4
  const ListAssessmentRunAgentsCommand_1 = require("../commands/ListAssessmentRunAgentsCommand");
5
- const Inspector_1 = require("../Inspector");
6
5
  const InspectorClient_1 = require("../InspectorClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAssessmentRunAgentsCommand_1.ListAssessmentRunAgentsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAssessmentRunAgents(input, ...args);
12
- };
13
9
  async function* paginateListAssessmentRunAgents(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAssessmentRunAgents(config, input, ...additionalArgu
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Inspector_1.Inspector) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof InspectorClient_1.InspectorClient) {
16
+ if (config.client instanceof InspectorClient_1.InspectorClient) {
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.paginateListAssessmentRuns = void 0;
4
4
  const ListAssessmentRunsCommand_1 = require("../commands/ListAssessmentRunsCommand");
5
- const Inspector_1 = require("../Inspector");
6
5
  const InspectorClient_1 = require("../InspectorClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAssessmentRunsCommand_1.ListAssessmentRunsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAssessmentRuns(input, ...args);
12
- };
13
9
  async function* paginateListAssessmentRuns(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAssessmentRuns(config, input, ...additionalArguments
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Inspector_1.Inspector) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof InspectorClient_1.InspectorClient) {
16
+ if (config.client instanceof InspectorClient_1.InspectorClient) {
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.paginateListAssessmentTargets = void 0;
4
4
  const ListAssessmentTargetsCommand_1 = require("../commands/ListAssessmentTargetsCommand");
5
- const Inspector_1 = require("../Inspector");
6
5
  const InspectorClient_1 = require("../InspectorClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAssessmentTargetsCommand_1.ListAssessmentTargetsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAssessmentTargets(input, ...args);
12
- };
13
9
  async function* paginateListAssessmentTargets(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAssessmentTargets(config, input, ...additionalArgume
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Inspector_1.Inspector) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof InspectorClient_1.InspectorClient) {
16
+ if (config.client instanceof InspectorClient_1.InspectorClient) {
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.paginateListAssessmentTemplates = void 0;
4
4
  const ListAssessmentTemplatesCommand_1 = require("../commands/ListAssessmentTemplatesCommand");
5
- const Inspector_1 = require("../Inspector");
6
5
  const InspectorClient_1 = require("../InspectorClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAssessmentTemplatesCommand_1.ListAssessmentTemplatesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAssessmentTemplates(input, ...args);
12
- };
13
9
  async function* paginateListAssessmentTemplates(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAssessmentTemplates(config, input, ...additionalArgu
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Inspector_1.Inspector) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof InspectorClient_1.InspectorClient) {
16
+ if (config.client instanceof InspectorClient_1.InspectorClient) {
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.paginateListEventSubscriptions = void 0;
4
4
  const ListEventSubscriptionsCommand_1 = require("../commands/ListEventSubscriptionsCommand");
5
- const Inspector_1 = require("../Inspector");
6
5
  const InspectorClient_1 = require("../InspectorClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListEventSubscriptionsCommand_1.ListEventSubscriptionsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listEventSubscriptions(input, ...args);
12
- };
13
9
  async function* paginateListEventSubscriptions(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListEventSubscriptions(config, input, ...additionalArgum
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Inspector_1.Inspector) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof InspectorClient_1.InspectorClient) {
16
+ if (config.client instanceof InspectorClient_1.InspectorClient) {
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.paginateListExclusions = void 0;
4
4
  const ListExclusionsCommand_1 = require("../commands/ListExclusionsCommand");
5
- const Inspector_1 = require("../Inspector");
6
5
  const InspectorClient_1 = require("../InspectorClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListExclusionsCommand_1.ListExclusionsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listExclusions(input, ...args);
12
- };
13
9
  async function* paginateListExclusions(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListExclusions(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Inspector_1.Inspector) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof InspectorClient_1.InspectorClient) {
16
+ if (config.client instanceof InspectorClient_1.InspectorClient) {
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.paginateListFindings = void 0;
4
4
  const ListFindingsCommand_1 = require("../commands/ListFindingsCommand");
5
- const Inspector_1 = require("../Inspector");
6
5
  const InspectorClient_1 = require("../InspectorClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListFindingsCommand_1.ListFindingsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listFindings(input, ...args);
12
- };
13
9
  async function* paginateListFindings(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListFindings(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Inspector_1.Inspector) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof InspectorClient_1.InspectorClient) {
16
+ if (config.client instanceof InspectorClient_1.InspectorClient) {
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.paginateListRulesPackages = void 0;
4
4
  const ListRulesPackagesCommand_1 = require("../commands/ListRulesPackagesCommand");
5
- const Inspector_1 = require("../Inspector");
6
5
  const InspectorClient_1 = require("../InspectorClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListRulesPackagesCommand_1.ListRulesPackagesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listRulesPackages(input, ...args);
12
- };
13
9
  async function* paginateListRulesPackages(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListRulesPackages(config, input, ...additionalArguments)
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Inspector_1.Inspector) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof InspectorClient_1.InspectorClient) {
16
+ if (config.client instanceof InspectorClient_1.InspectorClient) {
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.paginatePreviewAgents = void 0;
4
4
  const PreviewAgentsCommand_1 = require("../commands/PreviewAgentsCommand");
5
- const Inspector_1 = require("../Inspector");
6
5
  const InspectorClient_1 = require("../InspectorClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new PreviewAgentsCommand_1.PreviewAgentsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.previewAgents(input, ...args);
12
- };
13
9
  async function* paginatePreviewAgents(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginatePreviewAgents(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.nextToken = token;
19
15
  input["maxResults"] = config.pageSize;
20
- if (config.client instanceof Inspector_1.Inspector) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof InspectorClient_1.InspectorClient) {
16
+ if (config.client instanceof InspectorClient_1.InspectorClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,12 +1,8 @@
1
1
  import { GetExclusionsPreviewCommand, } from "../commands/GetExclusionsPreviewCommand";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetExclusionsPreviewCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getExclusionsPreview(input, ...args);
9
- };
10
6
  export async function* paginateGetExclusionsPreview(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetExclusionsPreview(config, input, ...additional
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Inspector) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof InspectorClient) {
13
+ if (config.client instanceof InspectorClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAssessmentRunAgentsCommand, } from "../commands/ListAssessmentRunAgentsCommand";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAssessmentRunAgentsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssessmentRunAgents(input, ...args);
9
- };
10
6
  export async function* paginateListAssessmentRunAgents(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAssessmentRunAgents(config, input, ...additio
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Inspector) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof InspectorClient) {
13
+ if (config.client instanceof InspectorClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAssessmentRunsCommand, } from "../commands/ListAssessmentRunsCommand";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAssessmentRunsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssessmentRuns(input, ...args);
9
- };
10
6
  export async function* paginateListAssessmentRuns(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAssessmentRuns(config, input, ...additionalAr
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Inspector) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof InspectorClient) {
13
+ if (config.client instanceof InspectorClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAssessmentTargetsCommand, } from "../commands/ListAssessmentTargetsCommand";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAssessmentTargetsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssessmentTargets(input, ...args);
9
- };
10
6
  export async function* paginateListAssessmentTargets(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAssessmentTargets(config, input, ...additiona
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Inspector) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof InspectorClient) {
13
+ if (config.client instanceof InspectorClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAssessmentTemplatesCommand, } from "../commands/ListAssessmentTemplatesCommand";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAssessmentTemplatesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAssessmentTemplates(input, ...args);
9
- };
10
6
  export async function* paginateListAssessmentTemplates(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAssessmentTemplates(config, input, ...additio
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Inspector) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof InspectorClient) {
13
+ if (config.client instanceof InspectorClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListEventSubscriptionsCommand, } from "../commands/ListEventSubscriptionsCommand";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListEventSubscriptionsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listEventSubscriptions(input, ...args);
9
- };
10
6
  export async function* paginateListEventSubscriptions(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListEventSubscriptions(config, input, ...addition
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Inspector) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof InspectorClient) {
13
+ if (config.client instanceof InspectorClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListExclusionsCommand, } from "../commands/ListExclusionsCommand";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListExclusionsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listExclusions(input, ...args);
9
- };
10
6
  export async function* paginateListExclusions(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListExclusions(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Inspector) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof InspectorClient) {
13
+ if (config.client instanceof InspectorClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListFindingsCommand, } from "../commands/ListFindingsCommand";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListFindingsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listFindings(input, ...args);
9
- };
10
6
  export async function* paginateListFindings(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListFindings(config, input, ...additionalArgument
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Inspector) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof InspectorClient) {
13
+ if (config.client instanceof InspectorClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListRulesPackagesCommand, } from "../commands/ListRulesPackagesCommand";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListRulesPackagesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listRulesPackages(input, ...args);
9
- };
10
6
  export async function* paginateListRulesPackages(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListRulesPackages(config, input, ...additionalArg
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Inspector) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof InspectorClient) {
13
+ if (config.client instanceof InspectorClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { PreviewAgentsCommand, } from "../commands/PreviewAgentsCommand";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new PreviewAgentsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.previewAgents(input, ...args);
9
- };
10
6
  export async function* paginatePreviewAgents(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginatePreviewAgents(config, input, ...additionalArgumen
14
10
  while (hasNext) {
15
11
  input.nextToken = token;
16
12
  input["maxResults"] = config.pageSize;
17
- if (config.client instanceof Inspector) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof InspectorClient) {
13
+ if (config.client instanceof InspectorClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  export interface InspectorPaginationConfiguration extends PaginationConfiguration {
5
- client: Inspector | InspectorClient;
4
+ client: InspectorClient;
6
5
  }
@@ -1,7 +1,6 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { Inspector } from "../Inspector";
3
2
  import { InspectorClient } from "../InspectorClient";
4
3
  export interface InspectorPaginationConfiguration
5
4
  extends PaginationConfiguration {
6
- client: Inspector | InspectorClient;
5
+ client: InspectorClient;
7
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-inspector",
3
3
  "description": "AWS SDK for JavaScript Inspector 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
  },