@aws-sdk/client-lakeformation 3.418.0 → 3.421.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 (44) hide show
  1. package/README.md +31 -7
  2. package/dist-cjs/LakeFormation.js +6 -0
  3. package/dist-cjs/commands/CreateLakeFormationOptInCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteLakeFormationOptInCommand.js +51 -0
  5. package/dist-cjs/commands/ListLakeFormationOptInsCommand.js +51 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/pagination/ListLakeFormationOptInsPaginator.js +29 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +244 -4
  10. package/dist-es/LakeFormation.js +6 -0
  11. package/dist-es/commands/CreateLakeFormationOptInCommand.js +47 -0
  12. package/dist-es/commands/DeleteLakeFormationOptInCommand.js +47 -0
  13. package/dist-es/commands/ListLakeFormationOptInsCommand.js +47 -0
  14. package/dist-es/commands/index.js +3 -0
  15. package/dist-es/pagination/ListLakeFormationOptInsPaginator.js +25 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/protocols/Aws_restJson1.js +236 -2
  18. package/dist-types/LakeFormation.d.ts +21 -0
  19. package/dist-types/LakeFormationClient.d.ts +5 -2
  20. package/dist-types/commands/CreateLakeFormationOptInCommand.d.ts +146 -0
  21. package/dist-types/commands/DeleteLakeFormationOptInCommand.d.ts +146 -0
  22. package/dist-types/commands/DescribeResourceCommand.d.ts +1 -0
  23. package/dist-types/commands/GetEffectivePermissionsForPathCommand.d.ts +2 -0
  24. package/dist-types/commands/ListLakeFormationOptInsCommand.d.ts +208 -0
  25. package/dist-types/commands/ListPermissionsCommand.d.ts +2 -0
  26. package/dist-types/commands/ListResourcesCommand.d.ts +1 -0
  27. package/dist-types/commands/RegisterResourceCommand.d.ts +1 -0
  28. package/dist-types/commands/UpdateResourceCommand.d.ts +1 -0
  29. package/dist-types/commands/index.d.ts +3 -0
  30. package/dist-types/models/models_0.d.ts +143 -0
  31. package/dist-types/pagination/ListLakeFormationOptInsPaginator.d.ts +7 -0
  32. package/dist-types/pagination/index.d.ts +1 -0
  33. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  34. package/dist-types/ts3.4/LakeFormation.d.ts +51 -0
  35. package/dist-types/ts3.4/LakeFormationClient.d.ts +18 -0
  36. package/dist-types/ts3.4/commands/CreateLakeFormationOptInCommand.d.ts +42 -0
  37. package/dist-types/ts3.4/commands/DeleteLakeFormationOptInCommand.d.ts +42 -0
  38. package/dist-types/ts3.4/commands/ListLakeFormationOptInsCommand.d.ts +42 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +31 -0
  41. package/dist-types/ts3.4/pagination/ListLakeFormationOptInsPaginator.d.ts +11 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  43. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  44. package/package.json +3 -3
package/README.md CHANGED
@@ -25,16 +25,16 @@ using your favorite package manager:
25
25
 
26
26
  The AWS SDK is modulized by clients and commands.
27
27
  To send a request, you only need to import the `LakeFormationClient` and
28
- the commands you need, for example `AddLFTagsToResourceCommand`:
28
+ the commands you need, for example `ListLFTagsCommand`:
29
29
 
30
30
  ```js
31
31
  // ES5 example
32
- const { LakeFormationClient, AddLFTagsToResourceCommand } = require("@aws-sdk/client-lakeformation");
32
+ const { LakeFormationClient, ListLFTagsCommand } = require("@aws-sdk/client-lakeformation");
33
33
  ```
34
34
 
35
35
  ```ts
36
36
  // ES6+ example
37
- import { LakeFormationClient, AddLFTagsToResourceCommand } from "@aws-sdk/client-lakeformation";
37
+ import { LakeFormationClient, ListLFTagsCommand } from "@aws-sdk/client-lakeformation";
38
38
  ```
39
39
 
40
40
  ### Usage
@@ -53,7 +53,7 @@ const client = new LakeFormationClient({ region: "REGION" });
53
53
  const params = {
54
54
  /** input parameters */
55
55
  };
56
- const command = new AddLFTagsToResourceCommand(params);
56
+ const command = new ListLFTagsCommand(params);
57
57
  ```
58
58
 
59
59
  #### Async/await
@@ -132,7 +132,7 @@ const client = new AWS.LakeFormation({ region: "REGION" });
132
132
 
133
133
  // async/await.
134
134
  try {
135
- const data = await client.addLFTagsToResource(params);
135
+ const data = await client.listLFTags(params);
136
136
  // process data.
137
137
  } catch (error) {
138
138
  // error handling.
@@ -140,7 +140,7 @@ try {
140
140
 
141
141
  // Promises.
142
142
  client
143
- .addLFTagsToResource(params)
143
+ .listLFTags(params)
144
144
  .then((data) => {
145
145
  // process data.
146
146
  })
@@ -149,7 +149,7 @@ client
149
149
  });
150
150
 
151
151
  // callbacks.
152
- client.addLFTagsToResource(params, (err, data) => {
152
+ client.listLFTags(params, (err, data) => {
153
153
  // process err and data.
154
154
  });
155
155
  ```
@@ -260,6 +260,14 @@ CreateDataCellsFilter
260
260
 
261
261
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/classes/createdatacellsfiltercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/createdatacellsfiltercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/createdatacellsfiltercommandoutput.html)
262
262
 
263
+ </details>
264
+ <details>
265
+ <summary>
266
+ CreateLakeFormationOptIn
267
+ </summary>
268
+
269
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/classes/createlakeformationoptincommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/createlakeformationoptincommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/createlakeformationoptincommandoutput.html)
270
+
263
271
  </details>
264
272
  <details>
265
273
  <summary>
@@ -276,6 +284,14 @@ DeleteDataCellsFilter
276
284
 
277
285
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/classes/deletedatacellsfiltercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/deletedatacellsfiltercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/deletedatacellsfiltercommandoutput.html)
278
286
 
287
+ </details>
288
+ <details>
289
+ <summary>
290
+ DeleteLakeFormationOptIn
291
+ </summary>
292
+
293
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/classes/deletelakeformationoptincommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/deletelakeformationoptincommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/deletelakeformationoptincommandoutput.html)
294
+
279
295
  </details>
280
296
  <details>
281
297
  <summary>
@@ -436,6 +452,14 @@ ListDataCellsFilter
436
452
 
437
453
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/classes/listdatacellsfiltercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/listdatacellsfiltercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/listdatacellsfiltercommandoutput.html)
438
454
 
455
+ </details>
456
+ <details>
457
+ <summary>
458
+ ListLakeFormationOptIns
459
+ </summary>
460
+
461
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/classes/listlakeformationoptinscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/listlakeformationoptinscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lakeformation/interfaces/listlakeformationoptinscommandoutput.html)
462
+
439
463
  </details>
440
464
  <details>
441
465
  <summary>
@@ -9,8 +9,10 @@ const BatchRevokePermissionsCommand_1 = require("./commands/BatchRevokePermissio
9
9
  const CancelTransactionCommand_1 = require("./commands/CancelTransactionCommand");
10
10
  const CommitTransactionCommand_1 = require("./commands/CommitTransactionCommand");
11
11
  const CreateDataCellsFilterCommand_1 = require("./commands/CreateDataCellsFilterCommand");
12
+ const CreateLakeFormationOptInCommand_1 = require("./commands/CreateLakeFormationOptInCommand");
12
13
  const CreateLFTagCommand_1 = require("./commands/CreateLFTagCommand");
13
14
  const DeleteDataCellsFilterCommand_1 = require("./commands/DeleteDataCellsFilterCommand");
15
+ const DeleteLakeFormationOptInCommand_1 = require("./commands/DeleteLakeFormationOptInCommand");
14
16
  const DeleteLFTagCommand_1 = require("./commands/DeleteLFTagCommand");
15
17
  const DeleteObjectsOnCancelCommand_1 = require("./commands/DeleteObjectsOnCancelCommand");
16
18
  const DeregisterResourceCommand_1 = require("./commands/DeregisterResourceCommand");
@@ -31,6 +33,7 @@ const GetWorkUnitResultsCommand_1 = require("./commands/GetWorkUnitResultsComman
31
33
  const GetWorkUnitsCommand_1 = require("./commands/GetWorkUnitsCommand");
32
34
  const GrantPermissionsCommand_1 = require("./commands/GrantPermissionsCommand");
33
35
  const ListDataCellsFilterCommand_1 = require("./commands/ListDataCellsFilterCommand");
36
+ const ListLakeFormationOptInsCommand_1 = require("./commands/ListLakeFormationOptInsCommand");
34
37
  const ListLFTagsCommand_1 = require("./commands/ListLFTagsCommand");
35
38
  const ListPermissionsCommand_1 = require("./commands/ListPermissionsCommand");
36
39
  const ListResourcesCommand_1 = require("./commands/ListResourcesCommand");
@@ -58,8 +61,10 @@ const commands = {
58
61
  CancelTransactionCommand: CancelTransactionCommand_1.CancelTransactionCommand,
59
62
  CommitTransactionCommand: CommitTransactionCommand_1.CommitTransactionCommand,
60
63
  CreateDataCellsFilterCommand: CreateDataCellsFilterCommand_1.CreateDataCellsFilterCommand,
64
+ CreateLakeFormationOptInCommand: CreateLakeFormationOptInCommand_1.CreateLakeFormationOptInCommand,
61
65
  CreateLFTagCommand: CreateLFTagCommand_1.CreateLFTagCommand,
62
66
  DeleteDataCellsFilterCommand: DeleteDataCellsFilterCommand_1.DeleteDataCellsFilterCommand,
67
+ DeleteLakeFormationOptInCommand: DeleteLakeFormationOptInCommand_1.DeleteLakeFormationOptInCommand,
63
68
  DeleteLFTagCommand: DeleteLFTagCommand_1.DeleteLFTagCommand,
64
69
  DeleteObjectsOnCancelCommand: DeleteObjectsOnCancelCommand_1.DeleteObjectsOnCancelCommand,
65
70
  DeregisterResourceCommand: DeregisterResourceCommand_1.DeregisterResourceCommand,
@@ -80,6 +85,7 @@ const commands = {
80
85
  GetWorkUnitsCommand: GetWorkUnitsCommand_1.GetWorkUnitsCommand,
81
86
  GrantPermissionsCommand: GrantPermissionsCommand_1.GrantPermissionsCommand,
82
87
  ListDataCellsFilterCommand: ListDataCellsFilterCommand_1.ListDataCellsFilterCommand,
88
+ ListLakeFormationOptInsCommand: ListLakeFormationOptInsCommand_1.ListLakeFormationOptInsCommand,
83
89
  ListLFTagsCommand: ListLFTagsCommand_1.ListLFTagsCommand,
84
90
  ListPermissionsCommand: ListPermissionsCommand_1.ListPermissionsCommand,
85
91
  ListResourcesCommand: ListResourcesCommand_1.ListResourcesCommand,
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateLakeFormationOptInCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class CreateLakeFormationOptInCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateLakeFormationOptInCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "LakeFormationClient";
29
+ const commandName = "CreateLakeFormationOptInCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSLakeFormation",
38
+ operation: "CreateLakeFormationOptIn",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_CreateLakeFormationOptInCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_CreateLakeFormationOptInCommand)(output, context);
49
+ }
50
+ }
51
+ exports.CreateLakeFormationOptInCommand = CreateLakeFormationOptInCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteLakeFormationOptInCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class DeleteLakeFormationOptInCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteLakeFormationOptInCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "LakeFormationClient";
29
+ const commandName = "DeleteLakeFormationOptInCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSLakeFormation",
38
+ operation: "DeleteLakeFormationOptIn",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_DeleteLakeFormationOptInCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_DeleteLakeFormationOptInCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DeleteLakeFormationOptInCommand = DeleteLakeFormationOptInCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListLakeFormationOptInsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListLakeFormationOptInsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListLakeFormationOptInsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "LakeFormationClient";
29
+ const commandName = "ListLakeFormationOptInsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSLakeFormation",
38
+ operation: "ListLakeFormationOptIns",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_ListLakeFormationOptInsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_ListLakeFormationOptInsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListLakeFormationOptInsCommand = ListLakeFormationOptInsCommand;
@@ -9,8 +9,10 @@ tslib_1.__exportStar(require("./CancelTransactionCommand"), exports);
9
9
  tslib_1.__exportStar(require("./CommitTransactionCommand"), exports);
10
10
  tslib_1.__exportStar(require("./CreateDataCellsFilterCommand"), exports);
11
11
  tslib_1.__exportStar(require("./CreateLFTagCommand"), exports);
12
+ tslib_1.__exportStar(require("./CreateLakeFormationOptInCommand"), exports);
12
13
  tslib_1.__exportStar(require("./DeleteDataCellsFilterCommand"), exports);
13
14
  tslib_1.__exportStar(require("./DeleteLFTagCommand"), exports);
15
+ tslib_1.__exportStar(require("./DeleteLakeFormationOptInCommand"), exports);
14
16
  tslib_1.__exportStar(require("./DeleteObjectsOnCancelCommand"), exports);
15
17
  tslib_1.__exportStar(require("./DeregisterResourceCommand"), exports);
16
18
  tslib_1.__exportStar(require("./DescribeResourceCommand"), exports);
@@ -31,6 +33,7 @@ tslib_1.__exportStar(require("./GetWorkUnitsCommand"), exports);
31
33
  tslib_1.__exportStar(require("./GrantPermissionsCommand"), exports);
32
34
  tslib_1.__exportStar(require("./ListDataCellsFilterCommand"), exports);
33
35
  tslib_1.__exportStar(require("./ListLFTagsCommand"), exports);
36
+ tslib_1.__exportStar(require("./ListLakeFormationOptInsCommand"), exports);
34
37
  tslib_1.__exportStar(require("./ListPermissionsCommand"), exports);
35
38
  tslib_1.__exportStar(require("./ListResourcesCommand"), exports);
36
39
  tslib_1.__exportStar(require("./ListTableStorageOptimizersCommand"), exports);
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListLakeFormationOptIns = void 0;
4
+ const ListLakeFormationOptInsCommand_1 = require("../commands/ListLakeFormationOptInsCommand");
5
+ const LakeFormationClient_1 = require("../LakeFormationClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListLakeFormationOptInsCommand_1.ListLakeFormationOptInsCommand(input), ...args);
8
+ };
9
+ async function* paginateListLakeFormationOptIns(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 LakeFormationClient_1.LakeFormationClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected LakeFormation | LakeFormationClient");
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.paginateListLakeFormationOptIns = paginateListLakeFormationOptIns;
@@ -7,6 +7,7 @@ tslib_1.__exportStar(require("./GetWorkUnitsPaginator"), exports);
7
7
  tslib_1.__exportStar(require("./Interfaces"), exports);
8
8
  tslib_1.__exportStar(require("./ListDataCellsFilterPaginator"), exports);
9
9
  tslib_1.__exportStar(require("./ListLFTagsPaginator"), exports);
10
+ tslib_1.__exportStar(require("./ListLakeFormationOptInsPaginator"), exports);
10
11
  tslib_1.__exportStar(require("./ListPermissionsPaginator"), exports);
11
12
  tslib_1.__exportStar(require("./ListResourcesPaginator"), exports);
12
13
  tslib_1.__exportStar(require("./ListTableStorageOptimizersPaginator"), exports);