@aws-sdk/client-lakeformation 3.418.0 → 3.420.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.
- package/README.md +24 -0
- package/dist-cjs/LakeFormation.js +6 -0
- package/dist-cjs/commands/CreateLakeFormationOptInCommand.js +51 -0
- package/dist-cjs/commands/DeleteLakeFormationOptInCommand.js +51 -0
- package/dist-cjs/commands/ListLakeFormationOptInsCommand.js +51 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/pagination/ListLakeFormationOptInsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +244 -4
- package/dist-es/LakeFormation.js +6 -0
- package/dist-es/commands/CreateLakeFormationOptInCommand.js +47 -0
- package/dist-es/commands/DeleteLakeFormationOptInCommand.js +47 -0
- package/dist-es/commands/ListLakeFormationOptInsCommand.js +47 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/pagination/ListLakeFormationOptInsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +236 -2
- package/dist-types/LakeFormation.d.ts +21 -0
- package/dist-types/LakeFormationClient.d.ts +5 -2
- package/dist-types/commands/CreateLakeFormationOptInCommand.d.ts +146 -0
- package/dist-types/commands/DeleteLakeFormationOptInCommand.d.ts +146 -0
- package/dist-types/commands/DescribeResourceCommand.d.ts +1 -0
- package/dist-types/commands/GetEffectivePermissionsForPathCommand.d.ts +2 -0
- package/dist-types/commands/ListLakeFormationOptInsCommand.d.ts +208 -0
- package/dist-types/commands/ListPermissionsCommand.d.ts +2 -0
- package/dist-types/commands/ListResourcesCommand.d.ts +1 -0
- package/dist-types/commands/RegisterResourceCommand.d.ts +1 -0
- package/dist-types/commands/UpdateResourceCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +143 -0
- package/dist-types/pagination/ListLakeFormationOptInsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/LakeFormation.d.ts +51 -0
- package/dist-types/ts3.4/LakeFormationClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/CreateLakeFormationOptInCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteLakeFormationOptInCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListLakeFormationOptInsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +31 -0
- package/dist-types/ts3.4/pagination/ListLakeFormationOptInsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateTableStorageOptimizerCommand = exports.de_UpdateTableObjectsCommand = exports.de_UpdateResourceCommand = exports.de_UpdateLFTagCommand = exports.de_UpdateDataCellsFilterCommand = exports.de_StartTransactionCommand = exports.de_StartQueryPlanningCommand = exports.de_SearchTablesByLFTagsCommand = exports.de_SearchDatabasesByLFTagsCommand = exports.de_RevokePermissionsCommand = exports.de_RemoveLFTagsFromResourceCommand = exports.de_RegisterResourceCommand = exports.de_PutDataLakeSettingsCommand = exports.de_ListTransactionsCommand = exports.de_ListTableStorageOptimizersCommand = exports.de_ListResourcesCommand = exports.de_ListPermissionsCommand = exports.de_ListLFTagsCommand = exports.de_ListDataCellsFilterCommand = exports.de_GrantPermissionsCommand = exports.de_GetWorkUnitsCommand = exports.de_GetWorkUnitResultsCommand = exports.de_GetTemporaryGlueTableCredentialsCommand = exports.de_GetTemporaryGluePartitionCredentialsCommand = exports.de_GetTableObjectsCommand = exports.de_GetResourceLFTagsCommand = exports.de_GetQueryStatisticsCommand = exports.de_GetQueryStateCommand = exports.de_GetLFTagCommand = exports.de_GetEffectivePermissionsForPathCommand = exports.de_GetDataLakeSettingsCommand = exports.de_GetDataCellsFilterCommand = exports.de_ExtendTransactionCommand = exports.de_DescribeTransactionCommand = exports.de_DescribeResourceCommand = exports.de_DeregisterResourceCommand = exports.de_DeleteObjectsOnCancelCommand = exports.de_DeleteLFTagCommand = exports.de_DeleteDataCellsFilterCommand = exports.de_CreateLFTagCommand = exports.de_CreateDataCellsFilterCommand = exports.de_CommitTransactionCommand = exports.de_CancelTransactionCommand = exports.de_BatchRevokePermissionsCommand = void 0;
|
|
3
|
+
exports.se_UpdateTableStorageOptimizerCommand = exports.se_UpdateTableObjectsCommand = exports.se_UpdateResourceCommand = exports.se_UpdateLFTagCommand = exports.se_UpdateDataCellsFilterCommand = exports.se_StartTransactionCommand = exports.se_StartQueryPlanningCommand = exports.se_SearchTablesByLFTagsCommand = exports.se_SearchDatabasesByLFTagsCommand = exports.se_RevokePermissionsCommand = exports.se_RemoveLFTagsFromResourceCommand = exports.se_RegisterResourceCommand = exports.se_PutDataLakeSettingsCommand = exports.se_ListTransactionsCommand = exports.se_ListTableStorageOptimizersCommand = exports.se_ListResourcesCommand = exports.se_ListPermissionsCommand = exports.se_ListLFTagsCommand = exports.se_ListLakeFormationOptInsCommand = exports.se_ListDataCellsFilterCommand = exports.se_GrantPermissionsCommand = exports.se_GetWorkUnitsCommand = exports.se_GetWorkUnitResultsCommand = exports.se_GetTemporaryGlueTableCredentialsCommand = exports.se_GetTemporaryGluePartitionCredentialsCommand = exports.se_GetTableObjectsCommand = exports.se_GetResourceLFTagsCommand = exports.se_GetQueryStatisticsCommand = exports.se_GetQueryStateCommand = exports.se_GetLFTagCommand = exports.se_GetEffectivePermissionsForPathCommand = exports.se_GetDataLakeSettingsCommand = exports.se_GetDataCellsFilterCommand = exports.se_ExtendTransactionCommand = exports.se_DescribeTransactionCommand = exports.se_DescribeResourceCommand = exports.se_DeregisterResourceCommand = exports.se_DeleteObjectsOnCancelCommand = exports.se_DeleteLFTagCommand = exports.se_DeleteLakeFormationOptInCommand = exports.se_DeleteDataCellsFilterCommand = exports.se_CreateLFTagCommand = exports.se_CreateLakeFormationOptInCommand = exports.se_CreateDataCellsFilterCommand = exports.se_CommitTransactionCommand = exports.se_CancelTransactionCommand = exports.se_BatchRevokePermissionsCommand = exports.se_BatchGrantPermissionsCommand = exports.se_AssumeDecoratedRoleWithSAMLCommand = exports.se_AddLFTagsToResourceCommand = void 0;
|
|
4
|
+
exports.de_UpdateTableStorageOptimizerCommand = exports.de_UpdateTableObjectsCommand = exports.de_UpdateResourceCommand = exports.de_UpdateLFTagCommand = exports.de_UpdateDataCellsFilterCommand = exports.de_StartTransactionCommand = exports.de_StartQueryPlanningCommand = exports.de_SearchTablesByLFTagsCommand = exports.de_SearchDatabasesByLFTagsCommand = exports.de_RevokePermissionsCommand = exports.de_RemoveLFTagsFromResourceCommand = exports.de_RegisterResourceCommand = exports.de_PutDataLakeSettingsCommand = exports.de_ListTransactionsCommand = exports.de_ListTableStorageOptimizersCommand = exports.de_ListResourcesCommand = exports.de_ListPermissionsCommand = exports.de_ListLFTagsCommand = exports.de_ListLakeFormationOptInsCommand = exports.de_ListDataCellsFilterCommand = exports.de_GrantPermissionsCommand = exports.de_GetWorkUnitsCommand = exports.de_GetWorkUnitResultsCommand = exports.de_GetTemporaryGlueTableCredentialsCommand = exports.de_GetTemporaryGluePartitionCredentialsCommand = exports.de_GetTableObjectsCommand = exports.de_GetResourceLFTagsCommand = exports.de_GetQueryStatisticsCommand = exports.de_GetQueryStateCommand = exports.de_GetLFTagCommand = exports.de_GetEffectivePermissionsForPathCommand = exports.de_GetDataLakeSettingsCommand = exports.de_GetDataCellsFilterCommand = exports.de_ExtendTransactionCommand = exports.de_DescribeTransactionCommand = exports.de_DescribeResourceCommand = exports.de_DeregisterResourceCommand = exports.de_DeleteObjectsOnCancelCommand = exports.de_DeleteLFTagCommand = exports.de_DeleteLakeFormationOptInCommand = exports.de_DeleteDataCellsFilterCommand = exports.de_CreateLFTagCommand = exports.de_CreateLakeFormationOptInCommand = exports.de_CreateDataCellsFilterCommand = exports.de_CommitTransactionCommand = exports.de_CancelTransactionCommand = exports.de_BatchRevokePermissionsCommand = exports.de_BatchGrantPermissionsCommand = exports.de_AssumeDecoratedRoleWithSAMLCommand = exports.de_AddLFTagsToResourceCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const LakeFormationServiceException_1 = require("../models/LakeFormationServiceException");
|
|
@@ -160,6 +160,28 @@ const se_CreateDataCellsFilterCommand = async (input, context) => {
|
|
|
160
160
|
});
|
|
161
161
|
};
|
|
162
162
|
exports.se_CreateDataCellsFilterCommand = se_CreateDataCellsFilterCommand;
|
|
163
|
+
const se_CreateLakeFormationOptInCommand = async (input, context) => {
|
|
164
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
165
|
+
const headers = {
|
|
166
|
+
"content-type": "application/json",
|
|
167
|
+
};
|
|
168
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLakeFormationOptIn";
|
|
169
|
+
let body;
|
|
170
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
171
|
+
Principal: (_) => (0, smithy_client_1._json)(_),
|
|
172
|
+
Resource: (_) => (0, smithy_client_1._json)(_),
|
|
173
|
+
}));
|
|
174
|
+
return new protocol_http_1.HttpRequest({
|
|
175
|
+
protocol,
|
|
176
|
+
hostname,
|
|
177
|
+
port,
|
|
178
|
+
method: "POST",
|
|
179
|
+
headers,
|
|
180
|
+
path: resolvedPath,
|
|
181
|
+
body,
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
exports.se_CreateLakeFormationOptInCommand = se_CreateLakeFormationOptInCommand;
|
|
163
185
|
const se_CreateLFTagCommand = async (input, context) => {
|
|
164
186
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
165
187
|
const headers = {
|
|
@@ -207,6 +229,28 @@ const se_DeleteDataCellsFilterCommand = async (input, context) => {
|
|
|
207
229
|
});
|
|
208
230
|
};
|
|
209
231
|
exports.se_DeleteDataCellsFilterCommand = se_DeleteDataCellsFilterCommand;
|
|
232
|
+
const se_DeleteLakeFormationOptInCommand = async (input, context) => {
|
|
233
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
234
|
+
const headers = {
|
|
235
|
+
"content-type": "application/json",
|
|
236
|
+
};
|
|
237
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLakeFormationOptIn";
|
|
238
|
+
let body;
|
|
239
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
240
|
+
Principal: (_) => (0, smithy_client_1._json)(_),
|
|
241
|
+
Resource: (_) => (0, smithy_client_1._json)(_),
|
|
242
|
+
}));
|
|
243
|
+
return new protocol_http_1.HttpRequest({
|
|
244
|
+
protocol,
|
|
245
|
+
hostname,
|
|
246
|
+
port,
|
|
247
|
+
method: "POST",
|
|
248
|
+
headers,
|
|
249
|
+
path: resolvedPath,
|
|
250
|
+
body,
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
exports.se_DeleteLakeFormationOptInCommand = se_DeleteLakeFormationOptInCommand;
|
|
210
254
|
const se_DeleteLFTagCommand = async (input, context) => {
|
|
211
255
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
212
256
|
const headers = {
|
|
@@ -695,6 +739,30 @@ const se_ListDataCellsFilterCommand = async (input, context) => {
|
|
|
695
739
|
});
|
|
696
740
|
};
|
|
697
741
|
exports.se_ListDataCellsFilterCommand = se_ListDataCellsFilterCommand;
|
|
742
|
+
const se_ListLakeFormationOptInsCommand = async (input, context) => {
|
|
743
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
744
|
+
const headers = {
|
|
745
|
+
"content-type": "application/json",
|
|
746
|
+
};
|
|
747
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLakeFormationOptIns";
|
|
748
|
+
let body;
|
|
749
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
750
|
+
MaxResults: [],
|
|
751
|
+
NextToken: [],
|
|
752
|
+
Principal: (_) => (0, smithy_client_1._json)(_),
|
|
753
|
+
Resource: (_) => (0, smithy_client_1._json)(_),
|
|
754
|
+
}));
|
|
755
|
+
return new protocol_http_1.HttpRequest({
|
|
756
|
+
protocol,
|
|
757
|
+
hostname,
|
|
758
|
+
port,
|
|
759
|
+
method: "POST",
|
|
760
|
+
headers,
|
|
761
|
+
path: resolvedPath,
|
|
762
|
+
body,
|
|
763
|
+
});
|
|
764
|
+
};
|
|
765
|
+
exports.se_ListLakeFormationOptInsCommand = se_ListLakeFormationOptInsCommand;
|
|
698
766
|
const se_ListLFTagsCommand = async (input, context) => {
|
|
699
767
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
700
768
|
const headers = {
|
|
@@ -849,6 +917,7 @@ const se_RegisterResourceCommand = async (input, context) => {
|
|
|
849
917
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RegisterResource";
|
|
850
918
|
let body;
|
|
851
919
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
920
|
+
HybridAccessEnabled: [],
|
|
852
921
|
ResourceArn: [],
|
|
853
922
|
RoleArn: [],
|
|
854
923
|
UseServiceLinkedRole: [],
|
|
@@ -1064,6 +1133,7 @@ const se_UpdateResourceCommand = async (input, context) => {
|
|
|
1064
1133
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateResource";
|
|
1065
1134
|
let body;
|
|
1066
1135
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1136
|
+
HybridAccessEnabled: [],
|
|
1067
1137
|
ResourceArn: [],
|
|
1068
1138
|
RoleArn: [],
|
|
1069
1139
|
WithFederation: [],
|
|
@@ -1445,6 +1515,51 @@ const de_CreateDataCellsFilterCommandError = async (output, context) => {
|
|
|
1445
1515
|
});
|
|
1446
1516
|
}
|
|
1447
1517
|
};
|
|
1518
|
+
const de_CreateLakeFormationOptInCommand = async (output, context) => {
|
|
1519
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1520
|
+
return de_CreateLakeFormationOptInCommandError(output, context);
|
|
1521
|
+
}
|
|
1522
|
+
const contents = (0, smithy_client_1.map)({
|
|
1523
|
+
$metadata: deserializeMetadata(output),
|
|
1524
|
+
});
|
|
1525
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1526
|
+
return contents;
|
|
1527
|
+
};
|
|
1528
|
+
exports.de_CreateLakeFormationOptInCommand = de_CreateLakeFormationOptInCommand;
|
|
1529
|
+
const de_CreateLakeFormationOptInCommandError = async (output, context) => {
|
|
1530
|
+
const parsedOutput = {
|
|
1531
|
+
...output,
|
|
1532
|
+
body: await parseErrorBody(output.body, context),
|
|
1533
|
+
};
|
|
1534
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
|
+
switch (errorCode) {
|
|
1536
|
+
case "AccessDeniedException":
|
|
1537
|
+
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
1538
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1539
|
+
case "ConcurrentModificationException":
|
|
1540
|
+
case "com.amazonaws.lakeformation#ConcurrentModificationException":
|
|
1541
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1542
|
+
case "EntityNotFoundException":
|
|
1543
|
+
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
1544
|
+
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1545
|
+
case "InternalServiceException":
|
|
1546
|
+
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1547
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1548
|
+
case "InvalidInputException":
|
|
1549
|
+
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1550
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1551
|
+
case "OperationTimeoutException":
|
|
1552
|
+
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1553
|
+
throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
|
|
1554
|
+
default:
|
|
1555
|
+
const parsedBody = parsedOutput.body;
|
|
1556
|
+
return throwDefaultError({
|
|
1557
|
+
output,
|
|
1558
|
+
parsedBody,
|
|
1559
|
+
errorCode,
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
};
|
|
1448
1563
|
const de_CreateLFTagCommand = async (output, context) => {
|
|
1449
1564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
1565
|
return de_CreateLFTagCommandError(output, context);
|
|
@@ -1532,6 +1647,51 @@ const de_DeleteDataCellsFilterCommandError = async (output, context) => {
|
|
|
1532
1647
|
});
|
|
1533
1648
|
}
|
|
1534
1649
|
};
|
|
1650
|
+
const de_DeleteLakeFormationOptInCommand = async (output, context) => {
|
|
1651
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1652
|
+
return de_DeleteLakeFormationOptInCommandError(output, context);
|
|
1653
|
+
}
|
|
1654
|
+
const contents = (0, smithy_client_1.map)({
|
|
1655
|
+
$metadata: deserializeMetadata(output),
|
|
1656
|
+
});
|
|
1657
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1658
|
+
return contents;
|
|
1659
|
+
};
|
|
1660
|
+
exports.de_DeleteLakeFormationOptInCommand = de_DeleteLakeFormationOptInCommand;
|
|
1661
|
+
const de_DeleteLakeFormationOptInCommandError = async (output, context) => {
|
|
1662
|
+
const parsedOutput = {
|
|
1663
|
+
...output,
|
|
1664
|
+
body: await parseErrorBody(output.body, context),
|
|
1665
|
+
};
|
|
1666
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
|
+
switch (errorCode) {
|
|
1668
|
+
case "AccessDeniedException":
|
|
1669
|
+
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
1670
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1671
|
+
case "ConcurrentModificationException":
|
|
1672
|
+
case "com.amazonaws.lakeformation#ConcurrentModificationException":
|
|
1673
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1674
|
+
case "EntityNotFoundException":
|
|
1675
|
+
case "com.amazonaws.lakeformation#EntityNotFoundException":
|
|
1676
|
+
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1677
|
+
case "InternalServiceException":
|
|
1678
|
+
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
1679
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1680
|
+
case "InvalidInputException":
|
|
1681
|
+
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
1682
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1683
|
+
case "OperationTimeoutException":
|
|
1684
|
+
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
1685
|
+
throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
|
|
1686
|
+
default:
|
|
1687
|
+
const parsedBody = parsedOutput.body;
|
|
1688
|
+
return throwDefaultError({
|
|
1689
|
+
output,
|
|
1690
|
+
parsedBody,
|
|
1691
|
+
errorCode,
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
};
|
|
1535
1695
|
const de_DeleteLFTagCommand = async (output, context) => {
|
|
1536
1696
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1537
1697
|
return de_DeleteLFTagCommandError(output, context);
|
|
@@ -1894,7 +2054,7 @@ const de_GetEffectivePermissionsForPathCommand = async (output, context) => {
|
|
|
1894
2054
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1895
2055
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1896
2056
|
NextToken: smithy_client_1.expectString,
|
|
1897
|
-
Permissions:
|
|
2057
|
+
Permissions: (_) => de_PrincipalResourcePermissionsList(_, context),
|
|
1898
2058
|
});
|
|
1899
2059
|
Object.assign(contents, doc);
|
|
1900
2060
|
return contents;
|
|
@@ -2448,6 +2608,50 @@ const de_ListDataCellsFilterCommandError = async (output, context) => {
|
|
|
2448
2608
|
});
|
|
2449
2609
|
}
|
|
2450
2610
|
};
|
|
2611
|
+
const de_ListLakeFormationOptInsCommand = async (output, context) => {
|
|
2612
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2613
|
+
return de_ListLakeFormationOptInsCommandError(output, context);
|
|
2614
|
+
}
|
|
2615
|
+
const contents = (0, smithy_client_1.map)({
|
|
2616
|
+
$metadata: deserializeMetadata(output),
|
|
2617
|
+
});
|
|
2618
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2619
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2620
|
+
LakeFormationOptInsInfoList: (_) => de_LakeFormationOptInsInfoList(_, context),
|
|
2621
|
+
NextToken: smithy_client_1.expectString,
|
|
2622
|
+
});
|
|
2623
|
+
Object.assign(contents, doc);
|
|
2624
|
+
return contents;
|
|
2625
|
+
};
|
|
2626
|
+
exports.de_ListLakeFormationOptInsCommand = de_ListLakeFormationOptInsCommand;
|
|
2627
|
+
const de_ListLakeFormationOptInsCommandError = async (output, context) => {
|
|
2628
|
+
const parsedOutput = {
|
|
2629
|
+
...output,
|
|
2630
|
+
body: await parseErrorBody(output.body, context),
|
|
2631
|
+
};
|
|
2632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2633
|
+
switch (errorCode) {
|
|
2634
|
+
case "AccessDeniedException":
|
|
2635
|
+
case "com.amazonaws.lakeformation#AccessDeniedException":
|
|
2636
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2637
|
+
case "InternalServiceException":
|
|
2638
|
+
case "com.amazonaws.lakeformation#InternalServiceException":
|
|
2639
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2640
|
+
case "InvalidInputException":
|
|
2641
|
+
case "com.amazonaws.lakeformation#InvalidInputException":
|
|
2642
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2643
|
+
case "OperationTimeoutException":
|
|
2644
|
+
case "com.amazonaws.lakeformation#OperationTimeoutException":
|
|
2645
|
+
throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
|
|
2646
|
+
default:
|
|
2647
|
+
const parsedBody = parsedOutput.body;
|
|
2648
|
+
return throwDefaultError({
|
|
2649
|
+
output,
|
|
2650
|
+
parsedBody,
|
|
2651
|
+
errorCode,
|
|
2652
|
+
});
|
|
2653
|
+
}
|
|
2654
|
+
};
|
|
2451
2655
|
const de_ListLFTagsCommand = async (output, context) => {
|
|
2452
2656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2453
2657
|
return de_ListLFTagsCommandError(output, context);
|
|
@@ -2505,7 +2709,7 @@ const de_ListPermissionsCommand = async (output, context) => {
|
|
|
2505
2709
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2506
2710
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2507
2711
|
NextToken: smithy_client_1.expectString,
|
|
2508
|
-
PrincipalResourcePermissions:
|
|
2712
|
+
PrincipalResourcePermissions: (_) => de_PrincipalResourcePermissionsList(_, context),
|
|
2509
2713
|
});
|
|
2510
2714
|
Object.assign(contents, doc);
|
|
2511
2715
|
return contents;
|
|
@@ -3481,8 +3685,44 @@ const se_QueryPlanningContext = (input, context) => {
|
|
|
3481
3685
|
TransactionId: [],
|
|
3482
3686
|
});
|
|
3483
3687
|
};
|
|
3688
|
+
const de_LakeFormationOptInsInfo = (output, context) => {
|
|
3689
|
+
return (0, smithy_client_1.take)(output, {
|
|
3690
|
+
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3691
|
+
LastUpdatedBy: smithy_client_1.expectString,
|
|
3692
|
+
Principal: smithy_client_1._json,
|
|
3693
|
+
Resource: smithy_client_1._json,
|
|
3694
|
+
});
|
|
3695
|
+
};
|
|
3696
|
+
const de_LakeFormationOptInsInfoList = (output, context) => {
|
|
3697
|
+
const retVal = (output || [])
|
|
3698
|
+
.filter((e) => e != null)
|
|
3699
|
+
.map((entry) => {
|
|
3700
|
+
return de_LakeFormationOptInsInfo(entry, context);
|
|
3701
|
+
});
|
|
3702
|
+
return retVal;
|
|
3703
|
+
};
|
|
3704
|
+
const de_PrincipalResourcePermissions = (output, context) => {
|
|
3705
|
+
return (0, smithy_client_1.take)(output, {
|
|
3706
|
+
AdditionalDetails: smithy_client_1._json,
|
|
3707
|
+
LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3708
|
+
LastUpdatedBy: smithy_client_1.expectString,
|
|
3709
|
+
Permissions: smithy_client_1._json,
|
|
3710
|
+
PermissionsWithGrantOption: smithy_client_1._json,
|
|
3711
|
+
Principal: smithy_client_1._json,
|
|
3712
|
+
Resource: smithy_client_1._json,
|
|
3713
|
+
});
|
|
3714
|
+
};
|
|
3715
|
+
const de_PrincipalResourcePermissionsList = (output, context) => {
|
|
3716
|
+
const retVal = (output || [])
|
|
3717
|
+
.filter((e) => e != null)
|
|
3718
|
+
.map((entry) => {
|
|
3719
|
+
return de_PrincipalResourcePermissions(entry, context);
|
|
3720
|
+
});
|
|
3721
|
+
return retVal;
|
|
3722
|
+
};
|
|
3484
3723
|
const de_ResourceInfo = (output, context) => {
|
|
3485
3724
|
return (0, smithy_client_1.take)(output, {
|
|
3725
|
+
HybridAccessEnabled: smithy_client_1.expectBoolean,
|
|
3486
3726
|
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3487
3727
|
ResourceArn: smithy_client_1.expectString,
|
|
3488
3728
|
RoleArn: smithy_client_1.expectString,
|