@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
@@ -0,0 +1,160 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { DetachRLSPolicyRequest, DetachRLSPolicyResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link DetachRLSPolicyCommand}.
11
+ */
12
+ export interface DetachRLSPolicyCommandInput extends DetachRLSPolicyRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link DetachRLSPolicyCommand}.
18
+ */
19
+ export interface DetachRLSPolicyCommandOutput extends DetachRLSPolicyResponse, __MetadataBearer {
20
+ }
21
+ declare const DetachRLSPolicyCommand_base: {
22
+ new (input: DetachRLSPolicyCommandInput): import("@smithy/core/client").CommandImpl<DetachRLSPolicyCommandInput, DetachRLSPolicyCommandOutput, import("..").LakeFormationClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DetachRLSPolicyCommandInput): import("@smithy/core/client").CommandImpl<DetachRLSPolicyCommandInput, DetachRLSPolicyCommandOutput, import("..").LakeFormationClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Detaches a row-level security policy from a resource for a principal. After the policy is detached, its filter expression is no longer applied to the principal's queries on that resource.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LakeFormationClient, DetachRLSPolicyCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
32
+ * // const { LakeFormationClient, DetachRLSPolicyCommand } = 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 = { // DetachRLSPolicyRequest
37
+ * Name: "STRING_VALUE", // required
38
+ * Resource: { // Resource
39
+ * Catalog: { // CatalogResource
40
+ * Id: "STRING_VALUE",
41
+ * },
42
+ * Database: { // DatabaseResource
43
+ * CatalogId: "STRING_VALUE",
44
+ * Name: "STRING_VALUE", // required
45
+ * },
46
+ * Table: { // TableResource
47
+ * CatalogId: "STRING_VALUE",
48
+ * DatabaseName: "STRING_VALUE", // required
49
+ * Name: "STRING_VALUE",
50
+ * TableWildcard: {},
51
+ * },
52
+ * TableWithColumns: { // TableWithColumnsResource
53
+ * CatalogId: "STRING_VALUE",
54
+ * DatabaseName: "STRING_VALUE", // required
55
+ * Name: "STRING_VALUE", // required
56
+ * ColumnNames: [ // ColumnNames
57
+ * "STRING_VALUE",
58
+ * ],
59
+ * ColumnWildcard: { // ColumnWildcard
60
+ * ExcludedColumnNames: [
61
+ * "STRING_VALUE",
62
+ * ],
63
+ * },
64
+ * },
65
+ * DataLocation: { // DataLocationResource
66
+ * CatalogId: "STRING_VALUE",
67
+ * ResourceArn: "STRING_VALUE", // required
68
+ * },
69
+ * DataCellsFilter: { // DataCellsFilterResource
70
+ * TableCatalogId: "STRING_VALUE",
71
+ * DatabaseName: "STRING_VALUE",
72
+ * TableName: "STRING_VALUE",
73
+ * Name: "STRING_VALUE",
74
+ * },
75
+ * LFTag: { // LFTagKeyResource
76
+ * CatalogId: "STRING_VALUE",
77
+ * TagKey: "STRING_VALUE", // required
78
+ * TagValues: [ // TagValueList // required
79
+ * "STRING_VALUE",
80
+ * ],
81
+ * },
82
+ * LFTagPolicy: { // LFTagPolicyResource
83
+ * CatalogId: "STRING_VALUE",
84
+ * ResourceType: "DATABASE" || "TABLE", // required
85
+ * Expression: [ // Expression
86
+ * { // LFTag
87
+ * TagKey: "STRING_VALUE", // required
88
+ * TagValues: [ // required
89
+ * "STRING_VALUE",
90
+ * ],
91
+ * },
92
+ * ],
93
+ * ExpressionName: "STRING_VALUE",
94
+ * },
95
+ * LFTagExpression: { // LFTagExpressionResource
96
+ * CatalogId: "STRING_VALUE",
97
+ * Name: "STRING_VALUE", // required
98
+ * },
99
+ * RLSPolicy: { // RLSPolicyResource
100
+ * CatalogId: "STRING_VALUE",
101
+ * Name: "STRING_VALUE", // required
102
+ * },
103
+ * },
104
+ * Principal: { // DataLakePrincipal
105
+ * DataLakePrincipalIdentifier: "STRING_VALUE",
106
+ * },
107
+ * Condition: { // Condition
108
+ * Expression: "STRING_VALUE",
109
+ * },
110
+ * RemoveDefault: true || false,
111
+ * };
112
+ * const command = new DetachRLSPolicyCommand(input);
113
+ * const response = await client.send(command);
114
+ * // {};
115
+ *
116
+ * ```
117
+ *
118
+ * @param DetachRLSPolicyCommandInput - {@link DetachRLSPolicyCommandInput}
119
+ * @returns {@link DetachRLSPolicyCommandOutput}
120
+ * @see {@link DetachRLSPolicyCommandInput} for command's `input` shape.
121
+ * @see {@link DetachRLSPolicyCommandOutput} for command's `response` shape.
122
+ * @see {@link LakeFormationClientResolvedConfig | config} for LakeFormationClient's `config` shape.
123
+ *
124
+ * @throws {@link AccessDeniedException} (client fault)
125
+ * <p>Access to a resource was denied.</p>
126
+ *
127
+ * @throws {@link ConcurrentModificationException} (client fault)
128
+ * <p>Two processes are trying to modify a resource simultaneously.</p>
129
+ *
130
+ * @throws {@link EntityNotFoundException} (client fault)
131
+ * <p>A specified entity does not exist.</p>
132
+ *
133
+ * @throws {@link InternalServiceException} (server fault)
134
+ * <p>An internal service error occurred.</p>
135
+ *
136
+ * @throws {@link InvalidInputException} (client fault)
137
+ * <p>The input provided was not valid.</p>
138
+ *
139
+ * @throws {@link OperationTimeoutException} (client fault)
140
+ * <p>The operation timed out.</p>
141
+ *
142
+ * @throws {@link LakeFormationServiceException}
143
+ * <p>Base exception class for all service exceptions from LakeFormation service.</p>
144
+ *
145
+ *
146
+ * @public
147
+ */
148
+ export declare class DetachRLSPolicyCommand extends DetachRLSPolicyCommand_base {
149
+ /** @internal type navigation helper, not in runtime. */
150
+ protected static __types: {
151
+ api: {
152
+ input: DetachRLSPolicyRequest;
153
+ output: {};
154
+ };
155
+ sdk: {
156
+ input: DetachRLSPolicyCommandInput;
157
+ output: DetachRLSPolicyCommandOutput;
158
+ };
159
+ };
160
+ }
@@ -109,6 +109,10 @@ declare const GetEffectivePermissionsForPathCommand_base: {
109
109
  * // CatalogId: "STRING_VALUE",
110
110
  * // Name: "STRING_VALUE", // required
111
111
  * // },
112
+ * // RLSPolicy: { // RLSPolicyResource
113
+ * // CatalogId: "STRING_VALUE",
114
+ * // Name: "STRING_VALUE", // required
115
+ * // },
112
116
  * // },
113
117
  * // Condition: { // Condition
114
118
  * // Expression: "STRING_VALUE",
@@ -0,0 +1,96 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { GetRLSPolicyRequest, GetRLSPolicyResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link GetRLSPolicyCommand}.
11
+ */
12
+ export interface GetRLSPolicyCommandInput extends GetRLSPolicyRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link GetRLSPolicyCommand}.
18
+ */
19
+ export interface GetRLSPolicyCommandOutput extends GetRLSPolicyResponse, __MetadataBearer {
20
+ }
21
+ declare const GetRLSPolicyCommand_base: {
22
+ new (input: GetRLSPolicyCommandInput): import("@smithy/core/client").CommandImpl<GetRLSPolicyCommandInput, GetRLSPolicyCommandOutput, import("..").LakeFormationClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetRLSPolicyCommandInput): import("@smithy/core/client").CommandImpl<GetRLSPolicyCommandInput, GetRLSPolicyCommandOutput, import("..").LakeFormationClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns the definition of a row-level security policy, including its attachment columns and filter expression.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LakeFormationClient, GetRLSPolicyCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
32
+ * // const { LakeFormationClient, GetRLSPolicyCommand } = 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 = { // GetRLSPolicyRequest
37
+ * Name: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new GetRLSPolicyCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // GetRLSPolicyResponse
42
+ * // RLSPolicy: { // RLSPolicy
43
+ * // CatalogId: "STRING_VALUE",
44
+ * // Name: "STRING_VALUE",
45
+ * // AttachmentColumns: [ // ColumnList
46
+ * // { // Column
47
+ * // Name: "STRING_VALUE", // required
48
+ * // Type: "STRING_VALUE",
49
+ * // },
50
+ * // ],
51
+ * // FilterExpression: "STRING_VALUE",
52
+ * // },
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param GetRLSPolicyCommandInput - {@link GetRLSPolicyCommandInput}
58
+ * @returns {@link GetRLSPolicyCommandOutput}
59
+ * @see {@link GetRLSPolicyCommandInput} for command's `input` shape.
60
+ * @see {@link GetRLSPolicyCommandOutput} for command's `response` shape.
61
+ * @see {@link LakeFormationClientResolvedConfig | config} for LakeFormationClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>Access to a resource was denied.</p>
65
+ *
66
+ * @throws {@link EntityNotFoundException} (client fault)
67
+ * <p>A specified entity does not exist.</p>
68
+ *
69
+ * @throws {@link InternalServiceException} (server fault)
70
+ * <p>An internal service error occurred.</p>
71
+ *
72
+ * @throws {@link InvalidInputException} (client fault)
73
+ * <p>The input provided was not valid.</p>
74
+ *
75
+ * @throws {@link OperationTimeoutException} (client fault)
76
+ * <p>The operation timed out.</p>
77
+ *
78
+ * @throws {@link LakeFormationServiceException}
79
+ * <p>Base exception class for all service exceptions from LakeFormation service.</p>
80
+ *
81
+ *
82
+ * @public
83
+ */
84
+ export declare class GetRLSPolicyCommand extends GetRLSPolicyCommand_base {
85
+ /** @internal type navigation helper, not in runtime. */
86
+ protected static __types: {
87
+ api: {
88
+ input: GetRLSPolicyRequest;
89
+ output: GetRLSPolicyResponse;
90
+ };
91
+ sdk: {
92
+ input: GetRLSPolicyCommandInput;
93
+ output: GetRLSPolicyCommandOutput;
94
+ };
95
+ };
96
+ }
@@ -96,6 +96,10 @@ declare const GetResourceLFTagsCommand_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
  * ShowAssignedLFTags: true || false,
101
105
  * };
@@ -100,6 +100,10 @@ declare const GrantPermissionsCommand_base: {
100
100
  * CatalogId: "STRING_VALUE",
101
101
  * Name: "STRING_VALUE", // required
102
102
  * },
103
+ * RLSPolicy: { // RLSPolicyResource
104
+ * CatalogId: "STRING_VALUE",
105
+ * Name: "STRING_VALUE", // required
106
+ * },
103
107
  * },
104
108
  * Permissions: [ // PermissionList // required
105
109
  * "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",
@@ -98,6 +98,10 @@ declare const ListLakeFormationOptInsCommand_base: {
98
98
  * CatalogId: "STRING_VALUE",
99
99
  * Name: "STRING_VALUE", // required
100
100
  * },
101
+ * RLSPolicy: { // RLSPolicyResource
102
+ * CatalogId: "STRING_VALUE",
103
+ * Name: "STRING_VALUE", // required
104
+ * },
101
105
  * },
102
106
  * MaxResults: Number("int"),
103
107
  * NextToken: "STRING_VALUE",
@@ -168,6 +172,10 @@ declare const ListLakeFormationOptInsCommand_base: {
168
172
  * // CatalogId: "STRING_VALUE",
169
173
  * // Name: "STRING_VALUE", // required
170
174
  * // },
175
+ * // RLSPolicy: { // RLSPolicyResource
176
+ * // CatalogId: "STRING_VALUE",
177
+ * // Name: "STRING_VALUE", // required
178
+ * // },
171
179
  * // },
172
180
  * // Principal: { // DataLakePrincipal
173
181
  * // DataLakePrincipalIdentifier: "STRING_VALUE",
@@ -104,6 +104,10 @@ declare const ListPermissionsCommand_base: {
104
104
  * CatalogId: "STRING_VALUE",
105
105
  * Name: "STRING_VALUE", // required
106
106
  * },
107
+ * RLSPolicy: { // RLSPolicyResource
108
+ * CatalogId: "STRING_VALUE",
109
+ * Name: "STRING_VALUE", // required
110
+ * },
107
111
  * },
108
112
  * NextToken: "STRING_VALUE",
109
113
  * MaxResults: Number("int"),
@@ -178,6 +182,10 @@ declare const ListPermissionsCommand_base: {
178
182
  * // CatalogId: "STRING_VALUE",
179
183
  * // Name: "STRING_VALUE", // required
180
184
  * // },
185
+ * // RLSPolicy: { // RLSPolicyResource
186
+ * // CatalogId: "STRING_VALUE",
187
+ * // Name: "STRING_VALUE", // required
188
+ * // },
181
189
  * // },
182
190
  * // Condition: { // Condition
183
191
  * // Expression: "STRING_VALUE",
@@ -0,0 +1,100 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListRLSPoliciesRequest, ListRLSPoliciesResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListRLSPoliciesCommand}.
11
+ */
12
+ export interface ListRLSPoliciesCommandInput extends ListRLSPoliciesRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListRLSPoliciesCommand}.
18
+ */
19
+ export interface ListRLSPoliciesCommandOutput extends ListRLSPoliciesResponse, __MetadataBearer {
20
+ }
21
+ declare const ListRLSPoliciesCommand_base: {
22
+ new (input: ListRLSPoliciesCommandInput): import("@smithy/core/client").CommandImpl<ListRLSPoliciesCommandInput, ListRLSPoliciesCommandOutput, import("..").LakeFormationClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListRLSPoliciesCommandInput]): import("@smithy/core/client").CommandImpl<ListRLSPoliciesCommandInput, ListRLSPoliciesCommandOutput, import("..").LakeFormationClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Lists the row-level security policies in the Data Catalog.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LakeFormationClient, ListRLSPoliciesCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
32
+ * // const { LakeFormationClient, ListRLSPoliciesCommand } = 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 = { // ListRLSPoliciesRequest
37
+ * MaxResults: Number("int"),
38
+ * NextToken: "STRING_VALUE",
39
+ * };
40
+ * const command = new ListRLSPoliciesCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListRLSPoliciesResponse
43
+ * // RLSPolicies: [ // RLSPolicyList
44
+ * // { // RLSPolicy
45
+ * // CatalogId: "STRING_VALUE",
46
+ * // Name: "STRING_VALUE",
47
+ * // AttachmentColumns: [ // ColumnList
48
+ * // { // Column
49
+ * // Name: "STRING_VALUE", // required
50
+ * // Type: "STRING_VALUE",
51
+ * // },
52
+ * // ],
53
+ * // FilterExpression: "STRING_VALUE",
54
+ * // },
55
+ * // ],
56
+ * // NextToken: "STRING_VALUE",
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param ListRLSPoliciesCommandInput - {@link ListRLSPoliciesCommandInput}
62
+ * @returns {@link ListRLSPoliciesCommandOutput}
63
+ * @see {@link ListRLSPoliciesCommandInput} for command's `input` shape.
64
+ * @see {@link ListRLSPoliciesCommandOutput} for command's `response` shape.
65
+ * @see {@link LakeFormationClientResolvedConfig | config} for LakeFormationClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>Access to a resource was denied.</p>
69
+ *
70
+ * @throws {@link EntityNotFoundException} (client fault)
71
+ * <p>A specified entity does not exist.</p>
72
+ *
73
+ * @throws {@link InternalServiceException} (server fault)
74
+ * <p>An internal service error occurred.</p>
75
+ *
76
+ * @throws {@link InvalidInputException} (client fault)
77
+ * <p>The input provided was not valid.</p>
78
+ *
79
+ * @throws {@link OperationTimeoutException} (client fault)
80
+ * <p>The operation timed out.</p>
81
+ *
82
+ * @throws {@link LakeFormationServiceException}
83
+ * <p>Base exception class for all service exceptions from LakeFormation service.</p>
84
+ *
85
+ *
86
+ * @public
87
+ */
88
+ export declare class ListRLSPoliciesCommand extends ListRLSPoliciesCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: ListRLSPoliciesRequest;
93
+ output: ListRLSPoliciesResponse;
94
+ };
95
+ sdk: {
96
+ input: ListRLSPoliciesCommandInput;
97
+ output: ListRLSPoliciesCommandOutput;
98
+ };
99
+ };
100
+ }
@@ -0,0 +1,236 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListRLSPolicyAttachmentsRequest, ListRLSPolicyAttachmentsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListRLSPolicyAttachmentsCommand}.
11
+ */
12
+ export interface ListRLSPolicyAttachmentsCommandInput extends ListRLSPolicyAttachmentsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListRLSPolicyAttachmentsCommand}.
18
+ */
19
+ export interface ListRLSPolicyAttachmentsCommandOutput extends ListRLSPolicyAttachmentsResponse, __MetadataBearer {
20
+ }
21
+ declare const ListRLSPolicyAttachmentsCommand_base: {
22
+ new (input: ListRLSPolicyAttachmentsCommandInput): import("@smithy/core/client").CommandImpl<ListRLSPolicyAttachmentsCommandInput, ListRLSPolicyAttachmentsCommandOutput, import("..").LakeFormationClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListRLSPolicyAttachmentsCommandInput]): import("@smithy/core/client").CommandImpl<ListRLSPolicyAttachmentsCommandInput, ListRLSPolicyAttachmentsCommandOutput, import("..").LakeFormationClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Lists the row-level security policy attachments in the Data Catalog. You can filter the results by resource, principal, or policy name.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { LakeFormationClient, ListRLSPolicyAttachmentsCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
32
+ * // const { LakeFormationClient, ListRLSPolicyAttachmentsCommand } = 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 = { // ListRLSPolicyAttachmentsRequest
37
+ * Resource: { // Resource
38
+ * Catalog: { // CatalogResource
39
+ * Id: "STRING_VALUE",
40
+ * },
41
+ * Database: { // DatabaseResource
42
+ * CatalogId: "STRING_VALUE",
43
+ * Name: "STRING_VALUE", // required
44
+ * },
45
+ * Table: { // TableResource
46
+ * CatalogId: "STRING_VALUE",
47
+ * DatabaseName: "STRING_VALUE", // required
48
+ * Name: "STRING_VALUE",
49
+ * TableWildcard: {},
50
+ * },
51
+ * TableWithColumns: { // TableWithColumnsResource
52
+ * CatalogId: "STRING_VALUE",
53
+ * DatabaseName: "STRING_VALUE", // required
54
+ * Name: "STRING_VALUE", // required
55
+ * ColumnNames: [ // ColumnNames
56
+ * "STRING_VALUE",
57
+ * ],
58
+ * ColumnWildcard: { // ColumnWildcard
59
+ * ExcludedColumnNames: [
60
+ * "STRING_VALUE",
61
+ * ],
62
+ * },
63
+ * },
64
+ * DataLocation: { // DataLocationResource
65
+ * CatalogId: "STRING_VALUE",
66
+ * ResourceArn: "STRING_VALUE", // required
67
+ * },
68
+ * DataCellsFilter: { // DataCellsFilterResource
69
+ * TableCatalogId: "STRING_VALUE",
70
+ * DatabaseName: "STRING_VALUE",
71
+ * TableName: "STRING_VALUE",
72
+ * Name: "STRING_VALUE",
73
+ * },
74
+ * LFTag: { // LFTagKeyResource
75
+ * CatalogId: "STRING_VALUE",
76
+ * TagKey: "STRING_VALUE", // required
77
+ * TagValues: [ // TagValueList // required
78
+ * "STRING_VALUE",
79
+ * ],
80
+ * },
81
+ * LFTagPolicy: { // LFTagPolicyResource
82
+ * CatalogId: "STRING_VALUE",
83
+ * ResourceType: "DATABASE" || "TABLE", // required
84
+ * Expression: [ // Expression
85
+ * { // LFTag
86
+ * TagKey: "STRING_VALUE", // required
87
+ * TagValues: [ // required
88
+ * "STRING_VALUE",
89
+ * ],
90
+ * },
91
+ * ],
92
+ * ExpressionName: "STRING_VALUE",
93
+ * },
94
+ * LFTagExpression: { // LFTagExpressionResource
95
+ * CatalogId: "STRING_VALUE",
96
+ * Name: "STRING_VALUE", // required
97
+ * },
98
+ * RLSPolicy: { // RLSPolicyResource
99
+ * CatalogId: "STRING_VALUE",
100
+ * Name: "STRING_VALUE", // required
101
+ * },
102
+ * },
103
+ * Principal: { // DataLakePrincipal
104
+ * DataLakePrincipalIdentifier: "STRING_VALUE",
105
+ * },
106
+ * PolicyName: "STRING_VALUE",
107
+ * MaxResults: Number("int"),
108
+ * NextToken: "STRING_VALUE",
109
+ * };
110
+ * const command = new ListRLSPolicyAttachmentsCommand(input);
111
+ * const response = await client.send(command);
112
+ * // { // ListRLSPolicyAttachmentsResponse
113
+ * // RLSPolicyAttachments: [ // RLSPolicyAttachmentList
114
+ * // { // RLSPolicyAttachment
115
+ * // CatalogId: "STRING_VALUE",
116
+ * // PolicyName: "STRING_VALUE",
117
+ * // Principal: { // DataLakePrincipal
118
+ * // DataLakePrincipalIdentifier: "STRING_VALUE",
119
+ * // },
120
+ * // Resource: { // Resource
121
+ * // Catalog: { // CatalogResource
122
+ * // Id: "STRING_VALUE",
123
+ * // },
124
+ * // Database: { // DatabaseResource
125
+ * // CatalogId: "STRING_VALUE",
126
+ * // Name: "STRING_VALUE", // required
127
+ * // },
128
+ * // Table: { // TableResource
129
+ * // CatalogId: "STRING_VALUE",
130
+ * // DatabaseName: "STRING_VALUE", // required
131
+ * // Name: "STRING_VALUE",
132
+ * // TableWildcard: {},
133
+ * // },
134
+ * // TableWithColumns: { // TableWithColumnsResource
135
+ * // CatalogId: "STRING_VALUE",
136
+ * // DatabaseName: "STRING_VALUE", // required
137
+ * // Name: "STRING_VALUE", // required
138
+ * // ColumnNames: [ // ColumnNames
139
+ * // "STRING_VALUE",
140
+ * // ],
141
+ * // ColumnWildcard: { // ColumnWildcard
142
+ * // ExcludedColumnNames: [
143
+ * // "STRING_VALUE",
144
+ * // ],
145
+ * // },
146
+ * // },
147
+ * // DataLocation: { // DataLocationResource
148
+ * // CatalogId: "STRING_VALUE",
149
+ * // ResourceArn: "STRING_VALUE", // required
150
+ * // },
151
+ * // DataCellsFilter: { // DataCellsFilterResource
152
+ * // TableCatalogId: "STRING_VALUE",
153
+ * // DatabaseName: "STRING_VALUE",
154
+ * // TableName: "STRING_VALUE",
155
+ * // Name: "STRING_VALUE",
156
+ * // },
157
+ * // LFTag: { // LFTagKeyResource
158
+ * // CatalogId: "STRING_VALUE",
159
+ * // TagKey: "STRING_VALUE", // required
160
+ * // TagValues: [ // TagValueList // required
161
+ * // "STRING_VALUE",
162
+ * // ],
163
+ * // },
164
+ * // LFTagPolicy: { // LFTagPolicyResource
165
+ * // CatalogId: "STRING_VALUE",
166
+ * // ResourceType: "DATABASE" || "TABLE", // required
167
+ * // Expression: [ // Expression
168
+ * // { // LFTag
169
+ * // TagKey: "STRING_VALUE", // required
170
+ * // TagValues: [ // required
171
+ * // "STRING_VALUE",
172
+ * // ],
173
+ * // },
174
+ * // ],
175
+ * // ExpressionName: "STRING_VALUE",
176
+ * // },
177
+ * // LFTagExpression: { // LFTagExpressionResource
178
+ * // CatalogId: "STRING_VALUE",
179
+ * // Name: "STRING_VALUE", // required
180
+ * // },
181
+ * // RLSPolicy: { // RLSPolicyResource
182
+ * // CatalogId: "STRING_VALUE",
183
+ * // Name: "STRING_VALUE", // required
184
+ * // },
185
+ * // },
186
+ * // Condition: { // Condition
187
+ * // Expression: "STRING_VALUE",
188
+ * // },
189
+ * // DefaultRLSPolicy: true || false,
190
+ * // },
191
+ * // ],
192
+ * // NextToken: "STRING_VALUE",
193
+ * // };
194
+ *
195
+ * ```
196
+ *
197
+ * @param ListRLSPolicyAttachmentsCommandInput - {@link ListRLSPolicyAttachmentsCommandInput}
198
+ * @returns {@link ListRLSPolicyAttachmentsCommandOutput}
199
+ * @see {@link ListRLSPolicyAttachmentsCommandInput} for command's `input` shape.
200
+ * @see {@link ListRLSPolicyAttachmentsCommandOutput} for command's `response` shape.
201
+ * @see {@link LakeFormationClientResolvedConfig | config} for LakeFormationClient's `config` shape.
202
+ *
203
+ * @throws {@link AccessDeniedException} (client fault)
204
+ * <p>Access to a resource was denied.</p>
205
+ *
206
+ * @throws {@link EntityNotFoundException} (client fault)
207
+ * <p>A specified entity does not exist.</p>
208
+ *
209
+ * @throws {@link InternalServiceException} (server fault)
210
+ * <p>An internal service error occurred.</p>
211
+ *
212
+ * @throws {@link InvalidInputException} (client fault)
213
+ * <p>The input provided was not valid.</p>
214
+ *
215
+ * @throws {@link OperationTimeoutException} (client fault)
216
+ * <p>The operation timed out.</p>
217
+ *
218
+ * @throws {@link LakeFormationServiceException}
219
+ * <p>Base exception class for all service exceptions from LakeFormation service.</p>
220
+ *
221
+ *
222
+ * @public
223
+ */
224
+ export declare class ListRLSPolicyAttachmentsCommand extends ListRLSPolicyAttachmentsCommand_base {
225
+ /** @internal type navigation helper, not in runtime. */
226
+ protected static __types: {
227
+ api: {
228
+ input: ListRLSPolicyAttachmentsRequest;
229
+ output: ListRLSPolicyAttachmentsResponse;
230
+ };
231
+ sdk: {
232
+ input: ListRLSPolicyAttachmentsCommandInput;
233
+ output: ListRLSPolicyAttachmentsCommandOutput;
234
+ };
235
+ };
236
+ }