@aws-sdk/client-lakeformation 3.1149.0 → 3.1151.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 (64) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/index.js +271 -23
  3. package/dist-es/LakeFormation.js +20 -0
  4. package/dist-es/commands/AttachRLSPolicyCommand.js +4 -0
  5. package/dist-es/commands/CreateRLSPolicyCommand.js +4 -0
  6. package/dist-es/commands/DeleteRLSPolicyCommand.js +4 -0
  7. package/dist-es/commands/DetachRLSPolicyCommand.js +4 -0
  8. package/dist-es/commands/GetRLSPolicyCommand.js +4 -0
  9. package/dist-es/commands/ListRLSPoliciesCommand.js +4 -0
  10. package/dist-es/commands/ListRLSPolicyAttachmentsCommand.js +4 -0
  11. package/dist-es/commands/UpdateRLSPolicyCommand.js +4 -0
  12. package/dist-es/commands/index.js +8 -0
  13. package/dist-es/models/errors.js +15 -15
  14. package/dist-es/pagination/ListRLSPoliciesPaginator.js +4 -0
  15. package/dist-es/pagination/ListRLSPolicyAttachmentsPaginator.js +4 -0
  16. package/dist-es/pagination/index.js +2 -0
  17. package/dist-es/schemas/schemas_0.js +179 -7
  18. package/dist-types/LakeFormation.d.ts +72 -0
  19. package/dist-types/LakeFormationClient.d.ts +10 -2
  20. package/dist-types/commands/AddLFTagsToResourceCommand.d.ts +4 -0
  21. package/dist-types/commands/AttachRLSPolicyCommand.d.ts +166 -0
  22. package/dist-types/commands/BatchGrantPermissionsCommand.d.ts +8 -0
  23. package/dist-types/commands/BatchRevokePermissionsCommand.d.ts +8 -0
  24. package/dist-types/commands/CreateLakeFormationOptInCommand.d.ts +4 -0
  25. package/dist-types/commands/CreateRLSPolicyCommand.d.ts +97 -0
  26. package/dist-types/commands/DeleteLakeFormationOptInCommand.d.ts +4 -0
  27. package/dist-types/commands/DeleteRLSPolicyCommand.d.ts +87 -0
  28. package/dist-types/commands/DetachRLSPolicyCommand.d.ts +160 -0
  29. package/dist-types/commands/GetEffectivePermissionsForPathCommand.d.ts +4 -0
  30. package/dist-types/commands/GetRLSPolicyCommand.d.ts +96 -0
  31. package/dist-types/commands/GetResourceLFTagsCommand.d.ts +4 -0
  32. package/dist-types/commands/GrantPermissionsCommand.d.ts +4 -0
  33. package/dist-types/commands/ListLakeFormationOptInsCommand.d.ts +8 -0
  34. package/dist-types/commands/ListPermissionsCommand.d.ts +8 -0
  35. package/dist-types/commands/ListRLSPoliciesCommand.d.ts +100 -0
  36. package/dist-types/commands/ListRLSPolicyAttachmentsCommand.d.ts +236 -0
  37. package/dist-types/commands/RemoveLFTagsFromResourceCommand.d.ts +4 -0
  38. package/dist-types/commands/RevokePermissionsCommand.d.ts +4 -0
  39. package/dist-types/commands/UpdateRLSPolicyCommand.d.ts +91 -0
  40. package/dist-types/commands/index.d.ts +8 -0
  41. package/dist-types/models/errors.d.ts +18 -18
  42. package/dist-types/models/models_0.d.ts +335 -11
  43. package/dist-types/pagination/ListRLSPoliciesPaginator.d.ts +7 -0
  44. package/dist-types/pagination/ListRLSPolicyAttachmentsPaginator.d.ts +7 -0
  45. package/dist-types/pagination/index.d.ts +2 -0
  46. package/dist-types/schemas/schemas_0.d.ts +28 -0
  47. package/dist-types/ts3.4/LakeFormation.d.ts +152 -0
  48. package/dist-types/ts3.4/LakeFormationClient.d.ts +48 -0
  49. package/dist-types/ts3.4/commands/AttachRLSPolicyCommand.d.ts +38 -0
  50. package/dist-types/ts3.4/commands/CreateRLSPolicyCommand.d.ts +38 -0
  51. package/dist-types/ts3.4/commands/DeleteRLSPolicyCommand.d.ts +38 -0
  52. package/dist-types/ts3.4/commands/DetachRLSPolicyCommand.d.ts +38 -0
  53. package/dist-types/ts3.4/commands/GetRLSPolicyCommand.d.ts +38 -0
  54. package/dist-types/ts3.4/commands/ListRLSPoliciesCommand.d.ts +38 -0
  55. package/dist-types/ts3.4/commands/ListRLSPolicyAttachmentsCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/UpdateRLSPolicyCommand.d.ts +38 -0
  57. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  58. package/dist-types/ts3.4/models/errors.d.ts +7 -7
  59. package/dist-types/ts3.4/models/models_0.d.ts +82 -3
  60. package/dist-types/ts3.4/pagination/ListRLSPoliciesPaginator.d.ts +11 -0
  61. package/dist-types/ts3.4/pagination/ListRLSPolicyAttachmentsPaginator.d.ts +11 -0
  62. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  63. package/dist-types/ts3.4/schemas/schemas_0.d.ts +28 -0
  64. package/package.json +3 -3
@@ -96,6 +96,10 @@ declare const RemoveLFTagsFromResourceCommand_base: {
96
96
  * CatalogId: "STRING_VALUE",
97
97
  * Name: "STRING_VALUE", // required
98
98
  * },
99
+ * RLSPolicy: { // RLSPolicyResource
100
+ * CatalogId: "STRING_VALUE",
101
+ * Name: "STRING_VALUE", // required
102
+ * },
99
103
  * },
100
104
  * LFTags: [ // LFTagsList // required
101
105
  * { // LFTagPair
@@ -99,6 +99,10 @@ declare const RevokePermissionsCommand_base: {
99
99
  * CatalogId: "STRING_VALUE",
100
100
  * Name: "STRING_VALUE", // required
101
101
  * },
102
+ * RLSPolicy: { // RLSPolicyResource
103
+ * CatalogId: "STRING_VALUE",
104
+ * Name: "STRING_VALUE", // required
105
+ * },
102
106
  * },
103
107
  * Permissions: [ // PermissionList // required
104
108
  * "ALL" || "SELECT" || "ALTER" || "DROP" || "DELETE" || "INSERT" || "DESCRIBE" || "CREATE_DATABASE" || "CREATE_TABLE" || "DATA_LOCATION_ACCESS" || "CREATE_LF_TAG" || "ASSOCIATE" || "GRANT_WITH_LF_TAG_EXPRESSION" || "CREATE_LF_TAG_EXPRESSION" || "CREATE_CATALOG" || "SUPER_USER",
@@ -0,0 +1,91 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UpdateRLSPolicyRequest, UpdateRLSPolicyResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UpdateRLSPolicyCommand}.
11
+ */
12
+ export interface UpdateRLSPolicyCommandInput extends UpdateRLSPolicyRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UpdateRLSPolicyCommand}.
18
+ */
19
+ export interface UpdateRLSPolicyCommandOutput extends UpdateRLSPolicyResponse, __MetadataBearer {
20
+ }
21
+ declare const UpdateRLSPolicyCommand_base: {
22
+ new (input: UpdateRLSPolicyCommandInput): import("@smithy/core/client").CommandImpl<UpdateRLSPolicyCommandInput, UpdateRLSPolicyCommandOutput, import("..").LakeFormationClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UpdateRLSPolicyCommandInput): import("@smithy/core/client").CommandImpl<UpdateRLSPolicyCommandInput, UpdateRLSPolicyCommandOutput, import("..").LakeFormationClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Updates the filter expression of an existing row-level security policy. The change applies to all attachments of the policy.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LakeFormationClient, UpdateRLSPolicyCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
32
+ * // const { LakeFormationClient, UpdateRLSPolicyCommand } = require("@aws-sdk/client-lakeformation"); // CommonJS import
33
+ * // import type { LakeFormationClientConfig } from "@aws-sdk/client-lakeformation";
34
+ * const config = {}; // type is LakeFormationClientConfig
35
+ * const client = new LakeFormationClient(config);
36
+ * const input = { // UpdateRLSPolicyRequest
37
+ * Name: "STRING_VALUE", // required
38
+ * FilterExpression: "STRING_VALUE",
39
+ * };
40
+ * const command = new UpdateRLSPolicyCommand(input);
41
+ * const response = await client.send(command);
42
+ * // {};
43
+ *
44
+ * ```
45
+ *
46
+ * @param UpdateRLSPolicyCommandInput - {@link UpdateRLSPolicyCommandInput}
47
+ * @returns {@link UpdateRLSPolicyCommandOutput}
48
+ * @see {@link UpdateRLSPolicyCommandInput} for command's `input` shape.
49
+ * @see {@link UpdateRLSPolicyCommandOutput} for command's `response` shape.
50
+ * @see {@link LakeFormationClientResolvedConfig | config} for LakeFormationClient's `config` shape.
51
+ *
52
+ * @throws {@link AccessDeniedException} (client fault)
53
+ * <p>Access to a resource was denied.</p>
54
+ *
55
+ * @throws {@link ConcurrentModificationException} (client fault)
56
+ * <p>Two processes are trying to modify a resource simultaneously.</p>
57
+ *
58
+ * @throws {@link EntityNotFoundException} (client fault)
59
+ * <p>A specified entity does not exist.</p>
60
+ *
61
+ * @throws {@link InternalServiceException} (server fault)
62
+ * <p>An internal service error occurred.</p>
63
+ *
64
+ * @throws {@link InvalidInputException} (client fault)
65
+ * <p>The input provided was not valid.</p>
66
+ *
67
+ * @throws {@link OperationTimeoutException} (client fault)
68
+ * <p>The operation timed out.</p>
69
+ *
70
+ * @throws {@link ResourceNumberLimitExceededException} (client fault)
71
+ * <p>A resource numerical limit was exceeded.</p>
72
+ *
73
+ * @throws {@link LakeFormationServiceException}
74
+ * <p>Base exception class for all service exceptions from LakeFormation service.</p>
75
+ *
76
+ *
77
+ * @public
78
+ */
79
+ export declare class UpdateRLSPolicyCommand extends UpdateRLSPolicyCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: UpdateRLSPolicyRequest;
84
+ output: {};
85
+ };
86
+ sdk: {
87
+ input: UpdateRLSPolicyCommandInput;
88
+ output: UpdateRLSPolicyCommandOutput;
89
+ };
90
+ };
91
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./AddLFTagsToResourceCommand";
2
2
  export * from "./AssumeDecoratedRoleWithSAMLCommand";
3
+ export * from "./AttachRLSPolicyCommand";
3
4
  export * from "./BatchGrantPermissionsCommand";
4
5
  export * from "./BatchRevokePermissionsCommand";
5
6
  export * from "./CancelTransactionCommand";
@@ -9,16 +10,19 @@ export * from "./CreateLFTagCommand";
9
10
  export * from "./CreateLFTagExpressionCommand";
10
11
  export * from "./CreateLakeFormationIdentityCenterConfigurationCommand";
11
12
  export * from "./CreateLakeFormationOptInCommand";
13
+ export * from "./CreateRLSPolicyCommand";
12
14
  export * from "./DeleteDataCellsFilterCommand";
13
15
  export * from "./DeleteLFTagCommand";
14
16
  export * from "./DeleteLFTagExpressionCommand";
15
17
  export * from "./DeleteLakeFormationIdentityCenterConfigurationCommand";
16
18
  export * from "./DeleteLakeFormationOptInCommand";
17
19
  export * from "./DeleteObjectsOnCancelCommand";
20
+ export * from "./DeleteRLSPolicyCommand";
18
21
  export * from "./DeregisterResourceCommand";
19
22
  export * from "./DescribeLakeFormationIdentityCenterConfigurationCommand";
20
23
  export * from "./DescribeResourceCommand";
21
24
  export * from "./DescribeTransactionCommand";
25
+ export * from "./DetachRLSPolicyCommand";
22
26
  export * from "./ExtendTransactionCommand";
23
27
  export * from "./GetDataCellsFilterCommand";
24
28
  export * from "./GetDataLakePrincipalCommand";
@@ -28,6 +32,7 @@ export * from "./GetLFTagCommand";
28
32
  export * from "./GetLFTagExpressionCommand";
29
33
  export * from "./GetQueryStateCommand";
30
34
  export * from "./GetQueryStatisticsCommand";
35
+ export * from "./GetRLSPolicyCommand";
31
36
  export * from "./GetResourceLFTagsCommand";
32
37
  export * from "./GetTableObjectsCommand";
33
38
  export * from "./GetTemporaryDataLocationCredentialsCommand";
@@ -41,6 +46,8 @@ export * from "./ListLFTagExpressionsCommand";
41
46
  export * from "./ListLFTagsCommand";
42
47
  export * from "./ListLakeFormationOptInsCommand";
43
48
  export * from "./ListPermissionsCommand";
49
+ export * from "./ListRLSPoliciesCommand";
50
+ export * from "./ListRLSPolicyAttachmentsCommand";
44
51
  export * from "./ListResourcesCommand";
45
52
  export * from "./ListTableStorageOptimizersCommand";
46
53
  export * from "./ListTransactionsCommand";
@@ -56,6 +63,7 @@ export * from "./UpdateDataCellsFilterCommand";
56
63
  export * from "./UpdateLFTagCommand";
57
64
  export * from "./UpdateLFTagExpressionCommand";
58
65
  export * from "./UpdateLakeFormationIdentityCenterConfigurationCommand";
66
+ export * from "./UpdateRLSPolicyCommand";
59
67
  export * from "./UpdateResourceCommand";
60
68
  export * from "./UpdateTableObjectsCommand";
61
69
  export * from "./UpdateTableStorageOptimizerCommand";
@@ -127,30 +127,30 @@ export declare class AlreadyExistsException extends __BaseException {
127
127
  constructor(opts: __ExceptionOptionType<AlreadyExistsException, __BaseException>);
128
128
  }
129
129
  /**
130
- * <p>Contains details about an error related to a transaction commit that was in progress.</p>
130
+ * <p>A resource numerical limit was exceeded.</p>
131
131
  * @public
132
132
  */
133
- export declare class TransactionCommitInProgressException extends __BaseException {
133
+ export declare class ResourceNumberLimitExceededException extends __BaseException {
134
134
  static readonly shapeId: string;
135
- readonly name: "TransactionCommitInProgressException";
135
+ readonly name: "ResourceNumberLimitExceededException";
136
136
  readonly $fault: "client";
137
137
  /**
138
- * <p>A message describing the error.</p>
138
+ * <p>A message describing the problem.</p>
139
139
  * @public
140
140
  */
141
141
  Message?: string | undefined;
142
142
  /**
143
143
  * @internal
144
144
  */
145
- constructor(opts: __ExceptionOptionType<TransactionCommitInProgressException, __BaseException>);
145
+ constructor(opts: __ExceptionOptionType<ResourceNumberLimitExceededException, __BaseException>);
146
146
  }
147
147
  /**
148
- * <p>Contains details about an error where the specified transaction has already been committed and cannot be used for <code>UpdateTableObjects</code>.</p>
148
+ * <p>Contains details about an error related to a transaction commit that was in progress.</p>
149
149
  * @public
150
150
  */
151
- export declare class TransactionCommittedException extends __BaseException {
151
+ export declare class TransactionCommitInProgressException extends __BaseException {
152
152
  static readonly shapeId: string;
153
- readonly name: "TransactionCommittedException";
153
+ readonly name: "TransactionCommitInProgressException";
154
154
  readonly $fault: "client";
155
155
  /**
156
156
  * <p>A message describing the error.</p>
@@ -160,15 +160,15 @@ export declare class TransactionCommittedException extends __BaseException {
160
160
  /**
161
161
  * @internal
162
162
  */
163
- constructor(opts: __ExceptionOptionType<TransactionCommittedException, __BaseException>);
163
+ constructor(opts: __ExceptionOptionType<TransactionCommitInProgressException, __BaseException>);
164
164
  }
165
165
  /**
166
- * <p>Contains details about an error related to a transaction that was cancelled.</p>
166
+ * <p>Contains details about an error where the specified transaction has already been committed and cannot be used for <code>UpdateTableObjects</code>.</p>
167
167
  * @public
168
168
  */
169
- export declare class TransactionCanceledException extends __BaseException {
169
+ export declare class TransactionCommittedException extends __BaseException {
170
170
  static readonly shapeId: string;
171
- readonly name: "TransactionCanceledException";
171
+ readonly name: "TransactionCommittedException";
172
172
  readonly $fault: "client";
173
173
  /**
174
174
  * <p>A message describing the error.</p>
@@ -178,25 +178,25 @@ export declare class TransactionCanceledException extends __BaseException {
178
178
  /**
179
179
  * @internal
180
180
  */
181
- constructor(opts: __ExceptionOptionType<TransactionCanceledException, __BaseException>);
181
+ constructor(opts: __ExceptionOptionType<TransactionCommittedException, __BaseException>);
182
182
  }
183
183
  /**
184
- * <p>A resource numerical limit was exceeded.</p>
184
+ * <p>Contains details about an error related to a transaction that was cancelled.</p>
185
185
  * @public
186
186
  */
187
- export declare class ResourceNumberLimitExceededException extends __BaseException {
187
+ export declare class TransactionCanceledException extends __BaseException {
188
188
  static readonly shapeId: string;
189
- readonly name: "ResourceNumberLimitExceededException";
189
+ readonly name: "TransactionCanceledException";
190
190
  readonly $fault: "client";
191
191
  /**
192
- * <p>A message describing the problem.</p>
192
+ * <p>A message describing the error.</p>
193
193
  * @public
194
194
  */
195
195
  Message?: string | undefined;
196
196
  /**
197
197
  * @internal
198
198
  */
199
- constructor(opts: __ExceptionOptionType<ResourceNumberLimitExceededException, __BaseException>);
199
+ constructor(opts: __ExceptionOptionType<TransactionCanceledException, __BaseException>);
200
200
  }
201
201
  /**
202
202
  * <p>Contains details about an error related to a resource which is not ready for a transaction.</p>
@@ -173,6 +173,22 @@ export interface LFTagPolicyResource {
173
173
  */
174
174
  ExpressionName?: string | undefined;
175
175
  }
176
+ /**
177
+ * <p>A structure that identifies a row-level security policy as a resource, used when granting permissions on the policy.</p>
178
+ * @public
179
+ */
180
+ export interface RLSPolicyResource {
181
+ /**
182
+ * <p>The identifier for the Data Catalog that contains the policy. By default, the account ID.</p>
183
+ * @public
184
+ */
185
+ CatalogId?: string | undefined;
186
+ /**
187
+ * <p>The name of the row-level security policy.</p>
188
+ * @public
189
+ */
190
+ Name: string | undefined;
191
+ }
176
192
  /**
177
193
  * <p>A wildcard object representing every table under a database.</p>
178
194
  * @public
@@ -299,6 +315,11 @@ export interface Resource {
299
315
  * @public
300
316
  */
301
317
  LFTagExpression?: LFTagExpressionResource | undefined;
318
+ /**
319
+ * <p>A row-level security policy resource. Specify this when granting or revoking permissions on a row-level security policy.</p>
320
+ * @public
321
+ */
322
+ RLSPolicy?: RLSPolicyResource | undefined;
302
323
  }
303
324
  /**
304
325
  * @public
@@ -445,17 +466,6 @@ export interface AssumeDecoratedRoleWithSAMLResponse {
445
466
  */
446
467
  Expiration?: Date | undefined;
447
468
  }
448
- /**
449
- * <p>A structure used to include auditing information on the privileged API. </p>
450
- * @public
451
- */
452
- export interface AuditContext {
453
- /**
454
- * <p>The filter engine can populate the 'AdditionalAuditContext' information with the request ID for you to track. This information will be displayed in CloudTrail log in your account.</p>
455
- * @public
456
- */
457
- AdditionalAuditContext?: string | undefined;
458
- }
459
469
  /**
460
470
  * <p>A Lake Formation condition, which applies to permissions and opt-ins that contain an expression.</p>
461
471
  * @public
@@ -479,6 +489,52 @@ export interface DataLakePrincipal {
479
489
  */
480
490
  DataLakePrincipalIdentifier?: string | undefined;
481
491
  }
492
+ /**
493
+ * @public
494
+ */
495
+ export interface AttachRLSPolicyRequest {
496
+ /**
497
+ * <p>The name of the row-level security policy to attach.</p>
498
+ * @public
499
+ */
500
+ Name: string | undefined;
501
+ /**
502
+ * <p>The resource to which the row-level security policy is attached.</p>
503
+ * @public
504
+ */
505
+ Resource: Resource | undefined;
506
+ /**
507
+ * <p>The principal to which the row-level security policy applies.</p>
508
+ * @public
509
+ */
510
+ Principal?: DataLakePrincipal | undefined;
511
+ /**
512
+ * <p>A Lake Formation condition, which applies to the row-level security policy attachment and contains an expression.</p>
513
+ * @public
514
+ */
515
+ Condition?: Condition | undefined;
516
+ /**
517
+ * <p>Indicates whether this policy becomes the default row-level security policy for the resource. The default policy applies to all principals by default.</p>
518
+ * @public
519
+ */
520
+ SetDefault?: boolean | undefined;
521
+ }
522
+ /**
523
+ * @public
524
+ */
525
+ export interface AttachRLSPolicyResponse {
526
+ }
527
+ /**
528
+ * <p>A structure used to include auditing information on the privileged API. </p>
529
+ * @public
530
+ */
531
+ export interface AuditContext {
532
+ /**
533
+ * <p>The filter engine can populate the 'AdditionalAuditContext' information with the request ID for you to track. This information will be displayed in CloudTrail log in your account.</p>
534
+ * @public
535
+ */
536
+ AdditionalAuditContext?: string | undefined;
537
+ }
482
538
  /**
483
539
  * <p>A permission to a resource granted by batch operation to the principal.</p>
484
540
  * @public
@@ -920,6 +976,47 @@ export interface CreateLFTagExpressionRequest {
920
976
  */
921
977
  export interface CreateLFTagExpressionResponse {
922
978
  }
979
+ /**
980
+ * <p>A column in a table that a row-level security policy's filter expression can reference.</p>
981
+ * @public
982
+ */
983
+ export interface Column {
984
+ /**
985
+ * <p>The name of the column.</p>
986
+ * @public
987
+ */
988
+ Name: string | undefined;
989
+ /**
990
+ * <p>The data type of the column.</p>
991
+ * @public
992
+ */
993
+ Type?: string | undefined;
994
+ }
995
+ /**
996
+ * @public
997
+ */
998
+ export interface CreateRLSPolicyRequest {
999
+ /**
1000
+ * <p>A unique name for the row-level security policy within the Data Catalog.</p>
1001
+ * @public
1002
+ */
1003
+ Name: string | undefined;
1004
+ /**
1005
+ * <p>The list of columns that the filter expression references. These columns define the shape of the data that the policy can be attached to.</p>
1006
+ * @public
1007
+ */
1008
+ AttachmentColumns: Column[] | undefined;
1009
+ /**
1010
+ * <p>A filter predicate, written in a SQL-like syntax, that Lake Formation evaluates against each row. Only the rows for which the expression evaluates to true are returned to the principal.</p>
1011
+ * @public
1012
+ */
1013
+ FilterExpression: string | undefined;
1014
+ }
1015
+ /**
1016
+ * @public
1017
+ */
1018
+ export interface CreateRLSPolicyResponse {
1019
+ }
923
1020
  /**
924
1021
  * @public
925
1022
  */
@@ -1085,6 +1182,21 @@ export interface DeleteObjectsOnCancelRequest {
1085
1182
  */
1086
1183
  export interface DeleteObjectsOnCancelResponse {
1087
1184
  }
1185
+ /**
1186
+ * @public
1187
+ */
1188
+ export interface DeleteRLSPolicyRequest {
1189
+ /**
1190
+ * <p>The name of the row-level security policy to delete.</p>
1191
+ * @public
1192
+ */
1193
+ Name: string | undefined;
1194
+ }
1195
+ /**
1196
+ * @public
1197
+ */
1198
+ export interface DeleteRLSPolicyResponse {
1199
+ }
1088
1200
  /**
1089
1201
  * @public
1090
1202
  */
@@ -1278,6 +1390,41 @@ export interface DescribeTransactionResponse {
1278
1390
  */
1279
1391
  TransactionDescription?: TransactionDescription | undefined;
1280
1392
  }
1393
+ /**
1394
+ * @public
1395
+ */
1396
+ export interface DetachRLSPolicyRequest {
1397
+ /**
1398
+ * <p>The name of the row-level security policy to detach.</p>
1399
+ * @public
1400
+ */
1401
+ Name: string | undefined;
1402
+ /**
1403
+ * <p>The resource from which the row-level security policy is detached.</p>
1404
+ * @public
1405
+ */
1406
+ Resource: Resource | undefined;
1407
+ /**
1408
+ * <p>The principal for which the row-level security policy is detached.</p>
1409
+ * @public
1410
+ */
1411
+ Principal?: DataLakePrincipal | undefined;
1412
+ /**
1413
+ * <p>A Lake Formation condition, which applies to the row-level security policy attachment and contains an expression.</p>
1414
+ * @public
1415
+ */
1416
+ Condition?: Condition | undefined;
1417
+ /**
1418
+ * <p>Indicates whether to remove this policy as the default row-level security policy for the resource.</p>
1419
+ * @public
1420
+ */
1421
+ RemoveDefault?: boolean | undefined;
1422
+ }
1423
+ /**
1424
+ * @public
1425
+ */
1426
+ export interface DetachRLSPolicyResponse {
1427
+ }
1281
1428
  /**
1282
1429
  * @public
1283
1430
  */
@@ -1801,6 +1948,52 @@ export interface GetResourceLFTagsResponse {
1801
1948
  */
1802
1949
  LFTagsOnColumns?: ColumnLFTag[] | undefined;
1803
1950
  }
1951
+ /**
1952
+ * @public
1953
+ */
1954
+ export interface GetRLSPolicyRequest {
1955
+ /**
1956
+ * <p>The name of the row-level security policy to retrieve.</p>
1957
+ * @public
1958
+ */
1959
+ Name: string | undefined;
1960
+ }
1961
+ /**
1962
+ * <p>A structure that describes a row-level security policy, including the columns its filter expression references and the filter expression itself.</p>
1963
+ * @public
1964
+ */
1965
+ export interface RLSPolicy {
1966
+ /**
1967
+ * <p>The identifier for the Data Catalog that contains the policy. By default, the account ID.</p>
1968
+ * @public
1969
+ */
1970
+ CatalogId?: string | undefined;
1971
+ /**
1972
+ * <p>The name of the row-level security policy.</p>
1973
+ * @public
1974
+ */
1975
+ Name?: string | undefined;
1976
+ /**
1977
+ * <p>The list of columns that the filter expression references.</p>
1978
+ * @public
1979
+ */
1980
+ AttachmentColumns?: Column[] | undefined;
1981
+ /**
1982
+ * <p>The filter predicate, written in a SQL-like syntax, that determines which rows are returned to the principal.</p>
1983
+ * @public
1984
+ */
1985
+ FilterExpression?: string | undefined;
1986
+ }
1987
+ /**
1988
+ * @public
1989
+ */
1990
+ export interface GetRLSPolicyResponse {
1991
+ /**
1992
+ * <p>An <code>RLSPolicy</code> structure containing the definition of the requested row-level security policy.</p>
1993
+ * @public
1994
+ */
1995
+ RLSPolicy?: RLSPolicy | undefined;
1996
+ }
1804
1997
  /**
1805
1998
  * @public
1806
1999
  */
@@ -2631,6 +2824,117 @@ export interface ListResourcesResponse {
2631
2824
  */
2632
2825
  NextToken?: string | undefined;
2633
2826
  }
2827
+ /**
2828
+ * @public
2829
+ */
2830
+ export interface ListRLSPoliciesRequest {
2831
+ /**
2832
+ * <p>The maximum number of row-level security policies to return in a single response.</p>
2833
+ * @public
2834
+ */
2835
+ MaxResults?: number | undefined;
2836
+ /**
2837
+ * <p>A continuation token, if this is a continuation call.</p>
2838
+ * @public
2839
+ */
2840
+ NextToken?: string | undefined;
2841
+ }
2842
+ /**
2843
+ * @public
2844
+ */
2845
+ export interface ListRLSPoliciesResponse {
2846
+ /**
2847
+ * <p>A list of <code>RLSPolicy</code> structures.</p>
2848
+ * @public
2849
+ */
2850
+ RLSPolicies?: RLSPolicy[] | undefined;
2851
+ /**
2852
+ * <p>A continuation token, if not all row-level security policies have been returned.</p>
2853
+ * @public
2854
+ */
2855
+ NextToken?: string | undefined;
2856
+ }
2857
+ /**
2858
+ * @public
2859
+ */
2860
+ export interface ListRLSPolicyAttachmentsRequest {
2861
+ /**
2862
+ * <p>If specified, returns only the attachments for the given resource.</p>
2863
+ * @public
2864
+ */
2865
+ Resource?: Resource | undefined;
2866
+ /**
2867
+ * <p>If specified, returns only the attachments for the given principal.</p>
2868
+ * @public
2869
+ */
2870
+ Principal?: DataLakePrincipal | undefined;
2871
+ /**
2872
+ * <p>If specified, returns only the attachments for the row-level security policy with this name.</p>
2873
+ * @public
2874
+ */
2875
+ PolicyName?: string | undefined;
2876
+ /**
2877
+ * <p>The maximum number of attachments to return in a single response.</p>
2878
+ * @public
2879
+ */
2880
+ MaxResults?: number | undefined;
2881
+ /**
2882
+ * <p>A continuation token, if this is a continuation call.</p>
2883
+ * @public
2884
+ */
2885
+ NextToken?: string | undefined;
2886
+ }
2887
+ /**
2888
+ * <p>A structure that describes the attachment of a row-level security policy to a resource for a principal.</p>
2889
+ * @public
2890
+ */
2891
+ export interface RLSPolicyAttachment {
2892
+ /**
2893
+ * <p>The identifier for the Data Catalog that contains the attachment. By default, the account ID.</p>
2894
+ * @public
2895
+ */
2896
+ CatalogId?: string | undefined;
2897
+ /**
2898
+ * <p>The name of the attached row-level security policy.</p>
2899
+ * @public
2900
+ */
2901
+ PolicyName?: string | undefined;
2902
+ /**
2903
+ * <p>The principal to which the attached policy applies.</p>
2904
+ * @public
2905
+ */
2906
+ Principal?: DataLakePrincipal | undefined;
2907
+ /**
2908
+ * <p>The resource to which the policy is attached.</p>
2909
+ * @public
2910
+ */
2911
+ Resource?: Resource | undefined;
2912
+ /**
2913
+ * <p>A Lake Formation condition, which applies to the row-level security policy attachment and contains an expression.</p>
2914
+ * @public
2915
+ */
2916
+ Condition?: Condition | undefined;
2917
+ /**
2918
+ * <p>Indicates whether this attachment is the default row-level security policy for the resource.</p>
2919
+ * @public
2920
+ */
2921
+ DefaultRLSPolicy?: boolean | undefined;
2922
+ }
2923
+ /**
2924
+ * @public
2925
+ */
2926
+ export interface ListRLSPolicyAttachmentsResponse {
2927
+ /**
2928
+ * <p>A list of <code>RLSPolicyAttachment</code> structures.</p>
2929
+ * @public
2930
+ */
2931
+ RLSPolicyAttachments?: RLSPolicyAttachment[] | undefined;
2932
+ /**
2933
+ * <p>A continuation token, if not all attachments have been returned.</p>
2934
+ * @public
2935
+ */
2936
+ NextToken?: string | undefined;
2937
+ }
2634
2938
  /**
2635
2939
  * @public
2636
2940
  */
@@ -3251,6 +3555,26 @@ export interface UpdateResourceRequest {
3251
3555
  */
3252
3556
  export interface UpdateResourceResponse {
3253
3557
  }
3558
+ /**
3559
+ * @public
3560
+ */
3561
+ export interface UpdateRLSPolicyRequest {
3562
+ /**
3563
+ * <p>The name of the row-level security policy to update.</p>
3564
+ * @public
3565
+ */
3566
+ Name: string | undefined;
3567
+ /**
3568
+ * <p>The new filter predicate, written in a SQL-like syntax, that replaces the policy's current filter expression.</p>
3569
+ * @public
3570
+ */
3571
+ FilterExpression?: string | undefined;
3572
+ }
3573
+ /**
3574
+ * @public
3575
+ */
3576
+ export interface UpdateRLSPolicyResponse {
3577
+ }
3254
3578
  /**
3255
3579
  * <p>An object to delete from the governed table.</p>
3256
3580
  * @public
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListRLSPoliciesCommandInput, ListRLSPoliciesCommandOutput } from "../commands/ListRLSPoliciesCommand";
3
+ import type { LakeFormationPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListRLSPolicies: (config: LakeFormationPaginationConfiguration, input: ListRLSPoliciesCommandInput, ...rest: any[]) => Paginator<ListRLSPoliciesCommandOutput>;
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListRLSPolicyAttachmentsCommandInput, ListRLSPolicyAttachmentsCommandOutput } from "../commands/ListRLSPolicyAttachmentsCommand";
3
+ import type { LakeFormationPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListRLSPolicyAttachments: (config: LakeFormationPaginationConfiguration, input: ListRLSPolicyAttachmentsCommandInput, ...rest: any[]) => Paginator<ListRLSPolicyAttachmentsCommandOutput>;