@aws-sdk/client-lambda 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist-cjs/pagination/ListAliasesPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListCodeSigningConfigsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListEventSourceMappingsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListFunctionEventInvokeConfigsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListFunctionUrlConfigsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListFunctionsByCodeSigningConfigPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListFunctionsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListLayerVersionsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListLayersPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListProvisionedConcurrencyConfigsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListVersionsByFunctionPaginator.js +2 -24
  12. package/dist-cjs/protocols/Aws_restJson1.js +435 -943
  13. package/dist-es/pagination/ListAliasesPaginator.js +2 -23
  14. package/dist-es/pagination/ListCodeSigningConfigsPaginator.js +2 -23
  15. package/dist-es/pagination/ListEventSourceMappingsPaginator.js +2 -23
  16. package/dist-es/pagination/ListFunctionEventInvokeConfigsPaginator.js +2 -23
  17. package/dist-es/pagination/ListFunctionUrlConfigsPaginator.js +2 -23
  18. package/dist-es/pagination/ListFunctionsByCodeSigningConfigPaginator.js +2 -23
  19. package/dist-es/pagination/ListFunctionsPaginator.js +2 -23
  20. package/dist-es/pagination/ListLayerVersionsPaginator.js +2 -23
  21. package/dist-es/pagination/ListLayersPaginator.js +2 -23
  22. package/dist-es/pagination/ListProvisionedConcurrencyConfigsPaginator.js +2 -23
  23. package/dist-es/pagination/ListVersionsByFunctionPaginator.js +2 -23
  24. package/dist-es/protocols/Aws_restJson1.js +436 -944
  25. package/dist-types/pagination/ListAliasesPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListCodeSigningConfigsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListEventSourceMappingsPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListFunctionEventInvokeConfigsPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListFunctionUrlConfigsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListFunctionsByCodeSigningConfigPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListFunctionsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ListLayerVersionsPaginator.d.ts +1 -1
  33. package/dist-types/pagination/ListLayersPaginator.d.ts +1 -1
  34. package/dist-types/pagination/ListProvisionedConcurrencyConfigsPaginator.d.ts +1 -1
  35. package/dist-types/pagination/ListVersionsByFunctionPaginator.d.ts +1 -1
  36. package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListCodeSigningConfigsPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListEventSourceMappingsPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListFunctionEventInvokeConfigsPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListFunctionUrlConfigsPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/ListFunctionsByCodeSigningConfigPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ListFunctionsPaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/ListLayerVersionsPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/ListLayersPaginator.d.ts +3 -3
  45. package/dist-types/ts3.4/pagination/ListProvisionedConcurrencyConfigsPaginator.d.ts +3 -3
  46. package/dist-types/ts3.4/pagination/ListVersionsByFunctionPaginator.d.ts +3 -3
  47. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAliases = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAliasesCommand_1 = require("../commands/ListAliasesCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAliasesCommand_1.ListAliasesCommand(input), ...args);
8
- };
9
- async function* paginateListAliases(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAliases = paginateListAliases;
7
+ exports.paginateListAliases = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListAliasesCommand_1.ListAliasesCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCodeSigningConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCodeSigningConfigsCommand_1 = require("../commands/ListCodeSigningConfigsCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCodeSigningConfigsCommand_1.ListCodeSigningConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListCodeSigningConfigs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListCodeSigningConfigs = paginateListCodeSigningConfigs;
7
+ exports.paginateListCodeSigningConfigs = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListCodeSigningConfigsCommand_1.ListCodeSigningConfigsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEventSourceMappings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEventSourceMappingsCommand_1 = require("../commands/ListEventSourceMappingsCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEventSourceMappingsCommand_1.ListEventSourceMappingsCommand(input), ...args);
8
- };
9
- async function* paginateListEventSourceMappings(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListEventSourceMappings = paginateListEventSourceMappings;
7
+ exports.paginateListEventSourceMappings = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListEventSourceMappingsCommand_1.ListEventSourceMappingsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFunctionEventInvokeConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFunctionEventInvokeConfigsCommand_1 = require("../commands/ListFunctionEventInvokeConfigsCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFunctionEventInvokeConfigsCommand_1.ListFunctionEventInvokeConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListFunctionEventInvokeConfigs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListFunctionEventInvokeConfigs = paginateListFunctionEventInvokeConfigs;
7
+ exports.paginateListFunctionEventInvokeConfigs = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListFunctionEventInvokeConfigsCommand_1.ListFunctionEventInvokeConfigsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFunctionUrlConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFunctionUrlConfigsCommand_1 = require("../commands/ListFunctionUrlConfigsCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFunctionUrlConfigsCommand_1.ListFunctionUrlConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListFunctionUrlConfigs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListFunctionUrlConfigs = paginateListFunctionUrlConfigs;
7
+ exports.paginateListFunctionUrlConfigs = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListFunctionUrlConfigsCommand_1.ListFunctionUrlConfigsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFunctionsByCodeSigningConfig = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFunctionsByCodeSigningConfigCommand_1 = require("../commands/ListFunctionsByCodeSigningConfigCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFunctionsByCodeSigningConfigCommand_1.ListFunctionsByCodeSigningConfigCommand(input), ...args);
8
- };
9
- async function* paginateListFunctionsByCodeSigningConfig(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListFunctionsByCodeSigningConfig = paginateListFunctionsByCodeSigningConfig;
7
+ exports.paginateListFunctionsByCodeSigningConfig = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListFunctionsByCodeSigningConfigCommand_1.ListFunctionsByCodeSigningConfigCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFunctions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFunctionsCommand_1 = require("../commands/ListFunctionsCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFunctionsCommand_1.ListFunctionsCommand(input), ...args);
8
- };
9
- async function* paginateListFunctions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListFunctions = paginateListFunctions;
7
+ exports.paginateListFunctions = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListFunctionsCommand_1.ListFunctionsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListLayerVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListLayerVersionsCommand_1 = require("../commands/ListLayerVersionsCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListLayerVersionsCommand_1.ListLayerVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListLayerVersions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListLayerVersions = paginateListLayerVersions;
7
+ exports.paginateListLayerVersions = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListLayerVersionsCommand_1.ListLayerVersionsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListLayers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListLayersCommand_1 = require("../commands/ListLayersCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListLayersCommand_1.ListLayersCommand(input), ...args);
8
- };
9
- async function* paginateListLayers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListLayers = paginateListLayers;
7
+ exports.paginateListLayers = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListLayersCommand_1.ListLayersCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProvisionedConcurrencyConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListProvisionedConcurrencyConfigsCommand_1 = require("../commands/ListProvisionedConcurrencyConfigsCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListProvisionedConcurrencyConfigsCommand_1.ListProvisionedConcurrencyConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListProvisionedConcurrencyConfigs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListProvisionedConcurrencyConfigs = paginateListProvisionedConcurrencyConfigs;
7
+ exports.paginateListProvisionedConcurrencyConfigs = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListProvisionedConcurrencyConfigsCommand_1.ListProvisionedConcurrencyConfigsCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListVersionsByFunction = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListVersionsByFunctionCommand_1 = require("../commands/ListVersionsByFunctionCommand");
5
6
  const LambdaClient_1 = require("../LambdaClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListVersionsByFunctionCommand_1.ListVersionsByFunctionCommand(input), ...args);
8
- };
9
- async function* paginateListVersionsByFunction(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof LambdaClient_1.LambdaClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Lambda | LambdaClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListVersionsByFunction = paginateListVersionsByFunction;
7
+ exports.paginateListVersionsByFunction = (0, core_1.createPaginator)(LambdaClient_1.LambdaClient, ListVersionsByFunctionCommand_1.ListVersionsByFunctionCommand, "Marker", "NextMarker", "MaxItems");