@cdklabs/cdk-ecs-codedeploy 0.0.226 → 0.0.228

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 (77) hide show
  1. package/.jsii +4 -4
  2. package/.jsii.tabl.json +1 -1
  3. package/.projenrc.ts +1 -0
  4. package/lib/api-canary/code-bundling.js +2 -2
  5. package/lib/api-canary/index.js +1 -1
  6. package/lib/ecs-appspec/index.js +1 -1
  7. package/lib/ecs-deployment/index.js +1 -1
  8. package/lib/ecs-deployment-provider/is-complete.lambda.js +2 -2
  9. package/lib/ecs-deployment-provider/logger.d.ts +1 -1
  10. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  11. package/lib/ecs-patterns/index.js +7 -3
  12. package/lib/index.js +7 -3
  13. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationRevisionsPaginator.js +2 -23
  14. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListApplicationsPaginator.js +2 -23
  15. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentConfigsPaginator.js +2 -23
  16. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentGroupsPaginator.js +2 -23
  17. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentInstancesPaginator.js +2 -23
  18. package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/pagination/ListDeploymentsPaginator.js +2 -23
  19. package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListApplicationRevisionsPaginator.js +2 -22
  20. package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListApplicationsPaginator.js +2 -22
  21. package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListDeploymentConfigsPaginator.js +2 -22
  22. package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListDeploymentGroupsPaginator.js +2 -22
  23. package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListDeploymentInstancesPaginator.js +2 -22
  24. package/node_modules/@aws-sdk/client-codedeploy/dist-es/pagination/ListDeploymentsPaginator.js +2 -22
  25. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationRevisionsPaginator.d.ts +1 -1
  26. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
  27. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentConfigsPaginator.d.ts +1 -1
  28. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentGroupsPaginator.d.ts +1 -1
  29. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentInstancesPaginator.d.ts +1 -1
  30. package/node_modules/@aws-sdk/client-codedeploy/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
  31. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListApplicationRevisionsPaginator.d.ts +3 -3
  32. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
  33. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListDeploymentConfigsPaginator.d.ts +3 -3
  34. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListDeploymentGroupsPaginator.d.ts +3 -3
  35. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListDeploymentInstancesPaginator.d.ts +3 -3
  36. package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +3 -3
  37. package/node_modules/@aws-sdk/client-codedeploy/package.json +6 -5
  38. package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +2 -24
  39. package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +2 -24
  40. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js +2 -23
  41. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js +2 -23
  42. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +1 -1
  43. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +1 -1
  44. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts +3 -3
  45. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +3 -3
  46. package/node_modules/@aws-sdk/client-sso/package.json +3 -3
  47. package/node_modules/@aws-sdk/client-sts/package.json +4 -4
  48. package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
  49. package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
  50. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  51. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  52. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  53. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +3 -0
  54. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +3 -0
  55. package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
  56. package/node_modules/@smithy/core/package.json +3 -3
  57. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  58. package/node_modules/@smithy/smithy-client/dist-cjs/command.js +108 -0
  59. package/node_modules/@smithy/smithy-client/dist-es/command.js +108 -0
  60. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +104 -1
  61. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +104 -1
  62. package/node_modules/@smithy/smithy-client/package.json +3 -1
  63. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  64. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  65. package/package.json +8 -12
  66. package/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js +0 -9
  67. package/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js +0 -47
  68. package/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js +0 -11
  69. package/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js +0 -4
  70. package/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js +0 -42
  71. package/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js +0 -6
  72. package/node_modules/@aws-sdk/util-utf8-browser/dist-types/index.d.ts +0 -2
  73. package/node_modules/@aws-sdk/util-utf8-browser/dist-types/pureJs.d.ts +0 -17
  74. package/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/index.d.ts +0 -2
  75. package/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/pureJs.d.ts +0 -2
  76. package/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/whatwgEncodingApi.d.ts +0 -2
  77. package/node_modules/@aws-sdk/util-utf8-browser/dist-types/whatwgEncodingApi.d.ts +0 -2
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDeploymentInstances = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeDeployClient_1 = require("../CodeDeployClient");
5
6
  const ListDeploymentInstancesCommand_1 = require("../commands/ListDeploymentInstancesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDeploymentInstancesCommand_1.ListDeploymentInstancesCommand(input), ...args);
8
- };
9
- async function* paginateListDeploymentInstances(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- if (config.client instanceof CodeDeployClient_1.CodeDeployClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.nextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateListDeploymentInstances = paginateListDeploymentInstances;
7
+ exports.paginateListDeploymentInstances = (0, core_1.createPaginator)(CodeDeployClient_1.CodeDeployClient, ListDeploymentInstancesCommand_1.ListDeploymentInstancesCommand, "nextToken", "nextToken", "");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDeployments = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeDeployClient_1 = require("../CodeDeployClient");
5
6
  const ListDeploymentsCommand_1 = require("../commands/ListDeploymentsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDeploymentsCommand_1.ListDeploymentsCommand(input), ...args);
8
- };
9
- async function* paginateListDeployments(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- if (config.client instanceof CodeDeployClient_1.CodeDeployClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.nextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateListDeployments = paginateListDeployments;
7
+ exports.paginateListDeployments = (0, core_1.createPaginator)(CodeDeployClient_1.CodeDeployClient, ListDeploymentsCommand_1.ListDeploymentsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListApplicationRevisionsCommand, } from "../commands/ListApplicationRevisionsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListApplicationRevisionsCommand(input), ...args);
5
- };
6
- export async function* paginateListApplicationRevisions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListApplicationRevisions = createPaginator(CodeDeployClient, ListApplicationRevisionsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListApplicationsCommand(input), ...args);
5
- };
6
- export async function* paginateListApplications(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListApplications = createPaginator(CodeDeployClient, ListApplicationsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListDeploymentConfigsCommand, } from "../commands/ListDeploymentConfigsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDeploymentConfigsCommand(input), ...args);
5
- };
6
- export async function* paginateListDeploymentConfigs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListDeploymentConfigs = createPaginator(CodeDeployClient, ListDeploymentConfigsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListDeploymentGroupsCommand, } from "../commands/ListDeploymentGroupsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDeploymentGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListDeploymentGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListDeploymentGroups = createPaginator(CodeDeployClient, ListDeploymentGroupsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListDeploymentInstancesCommand, } from "../commands/ListDeploymentInstancesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDeploymentInstancesCommand(input), ...args);
5
- };
6
- export async function* paginateListDeploymentInstances(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListDeploymentInstances = createPaginator(CodeDeployClient, ListDeploymentInstancesCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeDeployClient } from "../CodeDeployClient";
2
3
  import { ListDeploymentsCommand, } from "../commands/ListDeploymentsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDeploymentsCommand(input), ...args);
5
- };
6
- export async function* paginateListDeployments(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeDeployClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeDeploy | CodeDeployClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListDeployments = createPaginator(CodeDeployClient, ListDeploymentsCommand, "nextToken", "nextToken", "");
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListApplicationRevisions(config: CodeDeployPaginationConfiguration, input: ListApplicationRevisionsCommandInput, ...additionalArguments: any): Paginator<ListApplicationRevisionsCommandOutput>;
7
+ export declare const paginateListApplicationRevisions: (config: CodeDeployPaginationConfiguration, input: ListApplicationRevisionsCommandInput, ...rest: any[]) => Paginator<ListApplicationRevisionsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListApplications(config: CodeDeployPaginationConfiguration, input: ListApplicationsCommandInput, ...additionalArguments: any): Paginator<ListApplicationsCommandOutput>;
7
+ export declare const paginateListApplications: (config: CodeDeployPaginationConfiguration, input: ListApplicationsCommandInput, ...rest: any[]) => Paginator<ListApplicationsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDeploymentConfigs(config: CodeDeployPaginationConfiguration, input: ListDeploymentConfigsCommandInput, ...additionalArguments: any): Paginator<ListDeploymentConfigsCommandOutput>;
7
+ export declare const paginateListDeploymentConfigs: (config: CodeDeployPaginationConfiguration, input: ListDeploymentConfigsCommandInput, ...rest: any[]) => Paginator<ListDeploymentConfigsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDeploymentGroups(config: CodeDeployPaginationConfiguration, input: ListDeploymentGroupsCommandInput, ...additionalArguments: any): Paginator<ListDeploymentGroupsCommandOutput>;
7
+ export declare const paginateListDeploymentGroups: (config: CodeDeployPaginationConfiguration, input: ListDeploymentGroupsCommandInput, ...rest: any[]) => Paginator<ListDeploymentGroupsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDeploymentInstances(config: CodeDeployPaginationConfiguration, input: ListDeploymentInstancesCommandInput, ...additionalArguments: any): Paginator<ListDeploymentInstancesCommandOutput>;
7
+ export declare const paginateListDeploymentInstances: (config: CodeDeployPaginationConfiguration, input: ListDeploymentInstancesCommandInput, ...rest: any[]) => Paginator<ListDeploymentInstancesCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeDeployPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDeployments(config: CodeDeployPaginationConfiguration, input: ListDeploymentsCommandInput, ...additionalArguments: any): Paginator<ListDeploymentsCommandOutput>;
7
+ export declare const paginateListDeployments: (config: CodeDeployPaginationConfiguration, input: ListDeploymentsCommandInput, ...rest: any[]) => Paginator<ListDeploymentsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListApplicationRevisionsCommandOutput,
5
5
  } from "../commands/ListApplicationRevisionsCommand";
6
6
  import { CodeDeployPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListApplicationRevisions(
7
+ export declare const paginateListApplicationRevisions: (
8
8
  config: CodeDeployPaginationConfiguration,
9
9
  input: ListApplicationRevisionsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListApplicationRevisionsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListApplicationRevisionsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListApplicationsCommandOutput,
5
5
  } from "../commands/ListApplicationsCommand";
6
6
  import { CodeDeployPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListApplications(
7
+ export declare const paginateListApplications: (
8
8
  config: CodeDeployPaginationConfiguration,
9
9
  input: ListApplicationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListApplicationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListApplicationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDeploymentConfigsCommandOutput,
5
5
  } from "../commands/ListDeploymentConfigsCommand";
6
6
  import { CodeDeployPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDeploymentConfigs(
7
+ export declare const paginateListDeploymentConfigs: (
8
8
  config: CodeDeployPaginationConfiguration,
9
9
  input: ListDeploymentConfigsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDeploymentConfigsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDeploymentConfigsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDeploymentGroupsCommandOutput,
5
5
  } from "../commands/ListDeploymentGroupsCommand";
6
6
  import { CodeDeployPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDeploymentGroups(
7
+ export declare const paginateListDeploymentGroups: (
8
8
  config: CodeDeployPaginationConfiguration,
9
9
  input: ListDeploymentGroupsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDeploymentGroupsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDeploymentGroupsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDeploymentInstancesCommandOutput,
5
5
  } from "../commands/ListDeploymentInstancesCommand";
6
6
  import { CodeDeployPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDeploymentInstances(
7
+ export declare const paginateListDeploymentInstances: (
8
8
  config: CodeDeployPaginationConfiguration,
9
9
  input: ListDeploymentInstancesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDeploymentInstancesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDeploymentInstancesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDeploymentsCommandOutput,
5
5
  } from "../commands/ListDeploymentsCommand";
6
6
  import { CodeDeployPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDeployments(
7
+ export declare const paginateListDeployments: (
8
8
  config: CodeDeployPaginationConfiguration,
9
9
  input: ListDeploymentsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDeploymentsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDeploymentsCommandOutput>;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codedeploy",
3
3
  "description": "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.478.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,20 +20,21 @@
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.477.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
24
  "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccountRoles = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAccountRolesCommand_1 = require("../commands/ListAccountRolesCommand");
5
6
  const SSOClient_1 = require("../SSOClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args);
8
- };
9
- async function* paginateListAccountRoles(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof SSOClient_1.SSOClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected SSO | SSOClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAccountRoles = paginateListAccountRoles;
7
+ exports.paginateListAccountRoles = (0, core_1.createPaginator)(SSOClient_1.SSOClient, ListAccountRolesCommand_1.ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccounts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAccountsCommand_1 = require("../commands/ListAccountsCommand");
5
6
  const SSOClient_1 = require("../SSOClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args);
8
- };
9
- async function* paginateListAccounts(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof SSOClient_1.SSOClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected SSO | SSOClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAccounts = paginateListAccounts;
7
+ exports.paginateListAccounts = (0, core_1.createPaginator)(SSOClient_1.SSOClient, ListAccountsCommand_1.ListAccountsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAccountRolesCommand, } from "../commands/ListAccountRolesCommand";
2
3
  import { SSOClient } from "../SSOClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAccountRolesCommand(input), ...args);
5
- };
6
- export async function* paginateListAccountRoles(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof SSOClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected SSO | SSOClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAccountRoles = createPaginator(SSOClient, ListAccountRolesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAccountsCommand, } from "../commands/ListAccountsCommand";
2
3
  import { SSOClient } from "../SSOClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAccountsCommand(input), ...args);
5
- };
6
- export async function* paginateListAccounts(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof SSOClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected SSO | SSOClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAccounts = createPaginator(SSOClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
@@ -4,4 +4,4 @@ import { SSOPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAccountRoles(config: SSOPaginationConfiguration, input: ListAccountRolesCommandInput, ...additionalArguments: any): Paginator<ListAccountRolesCommandOutput>;
7
+ export declare const paginateListAccountRoles: (config: SSOPaginationConfiguration, input: ListAccountRolesCommandInput, ...rest: any[]) => Paginator<ListAccountRolesCommandOutput>;
@@ -4,4 +4,4 @@ import { SSOPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAccounts(config: SSOPaginationConfiguration, input: ListAccountsCommandInput, ...additionalArguments: any): Paginator<ListAccountsCommandOutput>;
7
+ export declare const paginateListAccounts: (config: SSOPaginationConfiguration, input: ListAccountsCommandInput, ...rest: any[]) => Paginator<ListAccountsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAccountRolesCommandOutput,
5
5
  } from "../commands/ListAccountRolesCommand";
6
6
  import { SSOPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAccountRoles(
7
+ export declare const paginateListAccountRoles: (
8
8
  config: SSOPaginationConfiguration,
9
9
  input: ListAccountRolesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAccountRolesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAccountRolesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAccountsCommandOutput,
5
5
  } from "../commands/ListAccountsCommand";
6
6
  import { SSOPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAccounts(
7
+ export declare const paginateListAccounts: (
8
8
  config: SSOPaginationConfiguration,
9
9
  input: ListAccountsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAccountsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAccountsCommandOutput>;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
3
  "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.478.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",
@@ -24,10 +24,10 @@
24
24
  "@aws-sdk/middleware-host-header": "3.468.0",
25
25
  "@aws-sdk/middleware-logger": "3.468.0",
26
26
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
27
- "@aws-sdk/middleware-user-agent": "3.470.0",
27
+ "@aws-sdk/middleware-user-agent": "3.478.0",
28
28
  "@aws-sdk/region-config-resolver": "3.470.0",
29
29
  "@aws-sdk/types": "3.468.0",
30
- "@aws-sdk/util-endpoints": "3.470.0",
30
+ "@aws-sdk/util-endpoints": "3.478.0",
31
31
  "@aws-sdk/util-user-agent-browser": "3.468.0",
32
32
  "@aws-sdk/util-user-agent-node": "3.470.0",
33
33
  "@smithy/config-resolver": "^2.0.21",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.478.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",
@@ -23,14 +23,14 @@
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
25
  "@aws-sdk/core": "3.477.0",
26
- "@aws-sdk/credential-provider-node": "3.477.0",
26
+ "@aws-sdk/credential-provider-node": "3.478.0",
27
27
  "@aws-sdk/middleware-host-header": "3.468.0",
28
28
  "@aws-sdk/middleware-logger": "3.468.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.477.0",
3
+ "version": "3.478.0",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@aws-sdk/credential-provider-env": "3.468.0",
28
28
  "@aws-sdk/credential-provider-process": "3.468.0",
29
- "@aws-sdk/credential-provider-sso": "3.477.0",
29
+ "@aws-sdk/credential-provider-sso": "3.478.0",
30
30
  "@aws-sdk/credential-provider-web-identity": "3.468.0",
31
31
  "@aws-sdk/types": "3.468.0",
32
32
  "@smithy/credential-provider-imds": "^2.0.0",