@aws-sdk/client-lakeformation 3.1165.0 → 3.1166.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +14 -0
  2. package/dist-cjs/index.js +83 -3
  3. package/dist-es/LakeFormation.js +4 -0
  4. package/dist-es/commands/GetGlueFunctionSessionContextCommand.js +4 -0
  5. package/dist-es/commands/GetTemporaryGlueFunctionCredentialsCommand.js +4 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +6 -0
  8. package/dist-es/schemas/schemas_0.js +57 -2
  9. package/dist-types/LakeFormation.d.ts +14 -0
  10. package/dist-types/LakeFormationClient.d.ts +4 -2
  11. package/dist-types/commands/AddLFTagsToResourceCommand.d.ts +10 -0
  12. package/dist-types/commands/AttachRLSPolicyCommand.d.ts +10 -0
  13. package/dist-types/commands/BatchGrantPermissionsCommand.d.ts +24 -4
  14. package/dist-types/commands/BatchRevokePermissionsCommand.d.ts +24 -4
  15. package/dist-types/commands/CreateLakeFormationOptInCommand.d.ts +10 -0
  16. package/dist-types/commands/DeleteLakeFormationOptInCommand.d.ts +10 -0
  17. package/dist-types/commands/DetachRLSPolicyCommand.d.ts +10 -0
  18. package/dist-types/commands/GetDataLakeSettingsCommand.d.ts +2 -2
  19. package/dist-types/commands/GetEffectivePermissionsForPathCommand.d.ts +12 -2
  20. package/dist-types/commands/GetGlueFunctionSessionContextCommand.d.ts +95 -0
  21. package/dist-types/commands/GetResourceLFTagsCommand.d.ts +10 -0
  22. package/dist-types/commands/GetTemporaryGlueFunctionCredentialsCommand.d.ts +99 -0
  23. package/dist-types/commands/GetTemporaryGluePartitionCredentialsCommand.d.ts +1 -1
  24. package/dist-types/commands/GetTemporaryGlueTableCredentialsCommand.d.ts +1 -1
  25. package/dist-types/commands/GrantPermissionsCommand.d.ts +12 -2
  26. package/dist-types/commands/ListLakeFormationOptInsCommand.d.ts +20 -0
  27. package/dist-types/commands/ListPermissionsCommand.d.ts +23 -3
  28. package/dist-types/commands/ListRLSPolicyAttachmentsCommand.d.ts +20 -0
  29. package/dist-types/commands/PutDataLakeSettingsCommand.d.ts +2 -2
  30. package/dist-types/commands/RemoveLFTagsFromResourceCommand.d.ts +10 -0
  31. package/dist-types/commands/RevokePermissionsCommand.d.ts +12 -2
  32. package/dist-types/commands/index.d.ts +2 -0
  33. package/dist-types/models/enums.d.ts +14 -0
  34. package/dist-types/models/models_0.d.ts +168 -1
  35. package/dist-types/schemas/schemas_0.d.ts +9 -0
  36. package/dist-types/ts3.4/LakeFormation.d.ts +34 -0
  37. package/dist-types/ts3.4/LakeFormationClient.d.ts +12 -0
  38. package/dist-types/ts3.4/commands/GetGlueFunctionSessionContextCommand.d.ts +42 -0
  39. package/dist-types/ts3.4/commands/GetTemporaryGlueFunctionCredentialsCommand.d.ts +42 -0
  40. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  41. package/dist-types/ts3.4/models/enums.d.ts +8 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +32 -0
  43. package/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
  44. package/package.json +4 -4
@@ -42,8 +42,12 @@ declare const ListPermissionsCommand_base: {
42
42
  * Principal: { // DataLakePrincipal
43
43
  * DataLakePrincipalIdentifier: "STRING_VALUE",
44
44
  * },
45
- * ResourceType: "CATALOG" || "DATABASE" || "TABLE" || "DATA_LOCATION" || "LF_TAG" || "LF_TAG_POLICY" || "LF_TAG_POLICY_DATABASE" || "LF_TAG_POLICY_TABLE" || "LF_NAMED_TAG_EXPRESSION",
45
+ * ResourceType: "ANY_RESOURCE" || "CATALOG" || "DATABASE" || "TABLE" || "DATA_LOCATION" || "LF_TAG" || "LF_TAG_POLICY" || "LF_TAG_POLICY_DATABASE" || "LF_TAG_POLICY_TABLE" || "LF_NAMED_TAG_EXPRESSION" || "USER_DEFINED_FUNCTION",
46
46
  * Resource: { // Resource
47
+ * AnyResource: { // AnyResource
48
+ * CatalogId: "STRING_VALUE",
49
+ * ResourceType: "TABLE", // required
50
+ * },
47
51
  * Catalog: { // CatalogResource
48
52
  * Id: "STRING_VALUE",
49
53
  * },
@@ -108,6 +112,12 @@ declare const ListPermissionsCommand_base: {
108
112
  * CatalogId: "STRING_VALUE",
109
113
  * Name: "STRING_VALUE", // required
110
114
  * },
115
+ * UserDefinedFunction: { // UserDefinedFunctionResource
116
+ * CatalogId: "STRING_VALUE",
117
+ * DatabaseName: "STRING_VALUE", // required
118
+ * Name: "STRING_VALUE",
119
+ * UserDefinedFunctionWildcard: {},
120
+ * },
111
121
  * },
112
122
  * NextToken: "STRING_VALUE",
113
123
  * MaxResults: Number("int"),
@@ -122,6 +132,10 @@ declare const ListPermissionsCommand_base: {
122
132
  * // DataLakePrincipalIdentifier: "STRING_VALUE",
123
133
  * // },
124
134
  * // Resource: { // Resource
135
+ * // AnyResource: { // AnyResource
136
+ * // CatalogId: "STRING_VALUE",
137
+ * // ResourceType: "TABLE", // required
138
+ * // },
125
139
  * // Catalog: { // CatalogResource
126
140
  * // Id: "STRING_VALUE",
127
141
  * // },
@@ -186,15 +200,21 @@ declare const ListPermissionsCommand_base: {
186
200
  * // CatalogId: "STRING_VALUE",
187
201
  * // Name: "STRING_VALUE", // required
188
202
  * // },
203
+ * // UserDefinedFunction: { // UserDefinedFunctionResource
204
+ * // CatalogId: "STRING_VALUE",
205
+ * // DatabaseName: "STRING_VALUE", // required
206
+ * // Name: "STRING_VALUE",
207
+ * // UserDefinedFunctionWildcard: {},
208
+ * // },
189
209
  * // },
190
210
  * // Condition: { // Condition
191
211
  * // Expression: "STRING_VALUE",
192
212
  * // },
193
213
  * // Permissions: [ // PermissionList
194
- * // "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",
214
+ * // "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" || "EXECUTE",
195
215
  * // ],
196
216
  * // PermissionsWithGrantOption: [
197
- * // "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",
217
+ * // "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" || "EXECUTE",
198
218
  * // ],
199
219
  * // AdditionalDetails: { // DetailsMap
200
220
  * // ResourceShare: [ // ResourceShareList
@@ -35,6 +35,10 @@ declare const ListRLSPolicyAttachmentsCommand_base: {
35
35
  * const client = new LakeFormationClient(config);
36
36
  * const input = { // ListRLSPolicyAttachmentsRequest
37
37
  * Resource: { // Resource
38
+ * AnyResource: { // AnyResource
39
+ * CatalogId: "STRING_VALUE",
40
+ * ResourceType: "TABLE", // required
41
+ * },
38
42
  * Catalog: { // CatalogResource
39
43
  * Id: "STRING_VALUE",
40
44
  * },
@@ -99,6 +103,12 @@ declare const ListRLSPolicyAttachmentsCommand_base: {
99
103
  * CatalogId: "STRING_VALUE",
100
104
  * Name: "STRING_VALUE", // required
101
105
  * },
106
+ * UserDefinedFunction: { // UserDefinedFunctionResource
107
+ * CatalogId: "STRING_VALUE",
108
+ * DatabaseName: "STRING_VALUE", // required
109
+ * Name: "STRING_VALUE",
110
+ * UserDefinedFunctionWildcard: {},
111
+ * },
102
112
  * },
103
113
  * Principal: { // DataLakePrincipal
104
114
  * DataLakePrincipalIdentifier: "STRING_VALUE",
@@ -118,6 +128,10 @@ declare const ListRLSPolicyAttachmentsCommand_base: {
118
128
  * // DataLakePrincipalIdentifier: "STRING_VALUE",
119
129
  * // },
120
130
  * // Resource: { // Resource
131
+ * // AnyResource: { // AnyResource
132
+ * // CatalogId: "STRING_VALUE",
133
+ * // ResourceType: "TABLE", // required
134
+ * // },
121
135
  * // Catalog: { // CatalogResource
122
136
  * // Id: "STRING_VALUE",
123
137
  * // },
@@ -182,6 +196,12 @@ declare const ListRLSPolicyAttachmentsCommand_base: {
182
196
  * // CatalogId: "STRING_VALUE",
183
197
  * // Name: "STRING_VALUE", // required
184
198
  * // },
199
+ * // UserDefinedFunction: { // UserDefinedFunctionResource
200
+ * // CatalogId: "STRING_VALUE",
201
+ * // DatabaseName: "STRING_VALUE", // required
202
+ * // Name: "STRING_VALUE",
203
+ * // UserDefinedFunctionWildcard: {},
204
+ * // },
185
205
  * // },
186
206
  * // Condition: { // Condition
187
207
  * // Expression: "STRING_VALUE",
@@ -53,7 +53,7 @@ declare const PutDataLakeSettingsCommand_base: {
53
53
  * DataLakePrincipalIdentifier: "STRING_VALUE",
54
54
  * },
55
55
  * Permissions: [ // PermissionList
56
- * "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",
56
+ * "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" || "EXECUTE",
57
57
  * ],
58
58
  * },
59
59
  * ],
@@ -63,7 +63,7 @@ declare const PutDataLakeSettingsCommand_base: {
63
63
  * DataLakePrincipalIdentifier: "STRING_VALUE",
64
64
  * },
65
65
  * Permissions: [
66
- * "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",
66
+ * "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" || "EXECUTE",
67
67
  * ],
68
68
  * },
69
69
  * ],
@@ -36,6 +36,10 @@ declare const RemoveLFTagsFromResourceCommand_base: {
36
36
  * const input = { // RemoveLFTagsFromResourceRequest
37
37
  * CatalogId: "STRING_VALUE",
38
38
  * Resource: { // Resource
39
+ * AnyResource: { // AnyResource
40
+ * CatalogId: "STRING_VALUE",
41
+ * ResourceType: "TABLE", // required
42
+ * },
39
43
  * Catalog: { // CatalogResource
40
44
  * Id: "STRING_VALUE",
41
45
  * },
@@ -100,6 +104,12 @@ declare const RemoveLFTagsFromResourceCommand_base: {
100
104
  * CatalogId: "STRING_VALUE",
101
105
  * Name: "STRING_VALUE", // required
102
106
  * },
107
+ * UserDefinedFunction: { // UserDefinedFunctionResource
108
+ * CatalogId: "STRING_VALUE",
109
+ * DatabaseName: "STRING_VALUE", // required
110
+ * Name: "STRING_VALUE",
111
+ * UserDefinedFunctionWildcard: {},
112
+ * },
103
113
  * },
104
114
  * LFTags: [ // LFTagsList // required
105
115
  * { // LFTagPair
@@ -39,6 +39,10 @@ declare const RevokePermissionsCommand_base: {
39
39
  * DataLakePrincipalIdentifier: "STRING_VALUE",
40
40
  * },
41
41
  * Resource: { // Resource
42
+ * AnyResource: { // AnyResource
43
+ * CatalogId: "STRING_VALUE",
44
+ * ResourceType: "TABLE", // required
45
+ * },
42
46
  * Catalog: { // CatalogResource
43
47
  * Id: "STRING_VALUE",
44
48
  * },
@@ -103,15 +107,21 @@ declare const RevokePermissionsCommand_base: {
103
107
  * CatalogId: "STRING_VALUE",
104
108
  * Name: "STRING_VALUE", // required
105
109
  * },
110
+ * UserDefinedFunction: { // UserDefinedFunctionResource
111
+ * CatalogId: "STRING_VALUE",
112
+ * DatabaseName: "STRING_VALUE", // required
113
+ * Name: "STRING_VALUE",
114
+ * UserDefinedFunctionWildcard: {},
115
+ * },
106
116
  * },
107
117
  * Permissions: [ // PermissionList // required
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",
118
+ * "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" || "EXECUTE",
109
119
  * ],
110
120
  * Condition: { // Condition
111
121
  * Expression: "STRING_VALUE",
112
122
  * },
113
123
  * PermissionsWithGrantOption: [
114
- * "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",
124
+ * "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" || "EXECUTE",
115
125
  * ],
116
126
  * };
117
127
  * const command = new RevokePermissionsCommand(input);
@@ -28,6 +28,7 @@ export * from "./GetDataCellsFilterCommand";
28
28
  export * from "./GetDataLakePrincipalCommand";
29
29
  export * from "./GetDataLakeSettingsCommand";
30
30
  export * from "./GetEffectivePermissionsForPathCommand";
31
+ export * from "./GetGlueFunctionSessionContextCommand";
31
32
  export * from "./GetLFTagCommand";
32
33
  export * from "./GetLFTagExpressionCommand";
33
34
  export * from "./GetQueryStateCommand";
@@ -36,6 +37,7 @@ export * from "./GetRLSPolicyCommand";
36
37
  export * from "./GetResourceLFTagsCommand";
37
38
  export * from "./GetTableObjectsCommand";
38
39
  export * from "./GetTemporaryDataLocationCredentialsCommand";
40
+ export * from "./GetTemporaryGlueFunctionCredentialsCommand";
39
41
  export * from "./GetTemporaryGluePartitionCredentialsCommand";
40
42
  export * from "./GetTemporaryGlueTableCredentialsCommand";
41
43
  export * from "./GetWorkUnitResultsCommand";
@@ -1,3 +1,14 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const AnyResourceSupportedTypes: {
6
+ readonly TABLE: "TABLE";
7
+ };
8
+ /**
9
+ * @public
10
+ */
11
+ export type AnyResourceSupportedTypes = (typeof AnyResourceSupportedTypes)[keyof typeof AnyResourceSupportedTypes];
1
12
  /**
2
13
  * @public
3
14
  * @enum
@@ -39,6 +50,7 @@ export declare const Permission: {
39
50
  readonly DELETE: "DELETE";
40
51
  readonly DESCRIBE: "DESCRIBE";
41
52
  readonly DROP: "DROP";
53
+ readonly EXECUTE: "EXECUTE";
42
54
  readonly GRANT_WITH_LF_TAG_EXPRESSION: "GRANT_WITH_LF_TAG_EXPRESSION";
43
55
  readonly INSERT: "INSERT";
44
56
  readonly SELECT: "SELECT";
@@ -157,6 +169,7 @@ export type ResourceShareType = (typeof ResourceShareType)[keyof typeof Resource
157
169
  * @enum
158
170
  */
159
171
  export declare const DataLakeResourceType: {
172
+ readonly ANY_RESOURCE: "ANY_RESOURCE";
160
173
  readonly CATALOG: "CATALOG";
161
174
  readonly DATABASE: "DATABASE";
162
175
  readonly DATA_LOCATION: "DATA_LOCATION";
@@ -166,6 +179,7 @@ export declare const DataLakeResourceType: {
166
179
  readonly LF_TAG_POLICY_DATABASE: "LF_TAG_POLICY_DATABASE";
167
180
  readonly LF_TAG_POLICY_TABLE: "LF_TAG_POLICY_TABLE";
168
181
  readonly TABLE: "TABLE";
182
+ readonly USER_DEFINED_FUNCTION: "USER_DEFINED_FUNCTION";
169
183
  };
170
184
  /**
171
185
  * @public
@@ -1,5 +1,5 @@
1
1
  import type { StreamingBlobTypes } from "@smithy/types";
2
- import type { ApplicationStatus, ComparisonOperator, CredentialsScope, DataLakeResourceType, EnableStatus, FieldNameString, OptimizerType, Permission, PermissionType, QueryStateString, ResourceShareType, ResourceType, ServiceAuthorization, TransactionStatus, TransactionStatusFilter, TransactionType, VerificationStatus } from "./enums";
2
+ import type { AnyResourceSupportedTypes, ApplicationStatus, ComparisonOperator, CredentialsScope, DataLakeResourceType, EnableStatus, FieldNameString, OptimizerType, Permission, PermissionType, QueryStateString, ResourceShareType, ResourceType, ServiceAuthorization, TransactionStatus, TransactionStatusFilter, TransactionType, VerificationStatus } from "./enums";
3
3
  /**
4
4
  * <p>A structure containing an LF-tag key-value pair.</p>
5
5
  * @public
@@ -21,6 +21,23 @@ export interface LFTagPair {
21
21
  */
22
22
  TagValues: string[] | undefined;
23
23
  }
24
+ /**
25
+ * <p>Represents all resources of the specified type in a Data Catalog, including resources that are created after
26
+ * the grant.</p>
27
+ * @public
28
+ */
29
+ export interface AnyResource {
30
+ /**
31
+ * <p>The ID of the Data Catalog. By default, it's your account ID.</p>
32
+ * @public
33
+ */
34
+ CatalogId?: string | undefined;
35
+ /**
36
+ * <p>The type of resource that the grant covers. The only supported value is <code>TABLE</code>.</p>
37
+ * @public
38
+ */
39
+ ResourceType: AnyResourceSupportedTypes | undefined;
40
+ }
24
41
  /**
25
42
  * <p>A structure for the catalog object.</p>
26
43
  * @public
@@ -265,11 +282,57 @@ export interface TableWithColumnsResource {
265
282
  */
266
283
  ColumnWildcard?: ColumnWildcard | undefined;
267
284
  }
285
+ /**
286
+ * <p>A wildcard object representing every user-defined function in a database.</p>
287
+ * @public
288
+ */
289
+ export interface UserDefinedFunctionWildcard {
290
+ }
291
+ /**
292
+ * <p>Identifies a user-defined function, or all user-defined functions in a database, as a resource that you can
293
+ * grant permissions on. You can grant permissions only on functions whose <code>GovernanceMode</code> is
294
+ * <code>LAKE_FORMATION</code>.</p>
295
+ * @public
296
+ */
297
+ export interface UserDefinedFunctionResource {
298
+ /**
299
+ * <p>The ID of the Data Catalog. By default, it's your account ID.</p>
300
+ * @public
301
+ */
302
+ CatalogId?: string | undefined;
303
+ /**
304
+ * <p>The name of the database that contains the function.</p>
305
+ * @public
306
+ */
307
+ DatabaseName: string | undefined;
308
+ /**
309
+ * <p>The name of the function.</p>
310
+ * <p>Exactly one of <code>UserDefinedFunctionResource$Name</code> or
311
+ * <code>UserDefinedFunctionResource$UserDefinedFunctionWildcard</code> is required.</p>
312
+ * @public
313
+ */
314
+ Name?: string | undefined;
315
+ /**
316
+ * <p>A wildcard object representing every user-defined function in the database, including functions created
317
+ * after the grant.</p>
318
+ * <p>Exactly one of <code>UserDefinedFunctionResource$Name</code> or
319
+ * <code>UserDefinedFunctionResource$UserDefinedFunctionWildcard</code> is required.</p>
320
+ * @public
321
+ */
322
+ UserDefinedFunctionWildcard?: UserDefinedFunctionWildcard | undefined;
323
+ }
268
324
  /**
269
325
  * <p>A structure for the resource.</p>
270
326
  * @public
271
327
  */
272
328
  export interface Resource {
329
+ /**
330
+ * <p>All resources of the specified type in a Data Catalog. When you grant or revoke permissions on this
331
+ * resource, the principal must be a user-defined function whose <code>GovernanceMode</code> is
332
+ * <code>LAKE_FORMATION</code>, and the Data Catalog must be in your account.</p>
333
+ * @public
334
+ */
335
+ AnyResource?: AnyResource | undefined;
273
336
  /**
274
337
  * <p>The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment. </p>
275
338
  * @public
@@ -320,6 +383,35 @@ export interface Resource {
320
383
  * @public
321
384
  */
322
385
  RLSPolicy?: RLSPolicyResource | undefined;
386
+ /**
387
+ * <p>The user-defined function that you want to grant or revoke permissions on. The function's
388
+ * <code>GovernanceMode</code> must be <code>LAKE_FORMATION</code>. You can grant the following permissions:</p>
389
+ * <ul>
390
+ * <li>
391
+ * <p>
392
+ * <code>EXECUTE</code> – Use the function in a job, and get credentials to download its
393
+ * artifacts.</p>
394
+ * </li>
395
+ * <li>
396
+ * <p>
397
+ * <code>DESCRIBE</code> – View the function's definition.</p>
398
+ * </li>
399
+ * <li>
400
+ * <p>
401
+ * <code>ALTER</code> – Update the function.</p>
402
+ * </li>
403
+ * <li>
404
+ * <p>
405
+ * <code>DROP</code> – Delete the function.</p>
406
+ * </li>
407
+ * <li>
408
+ * <p>
409
+ * <code>ALL</code> – All of the preceding permissions.</p>
410
+ * </li>
411
+ * </ul>
412
+ * @public
413
+ */
414
+ UserDefinedFunction?: UserDefinedFunctionResource | undefined;
323
415
  }
324
416
  /**
325
417
  * @public
@@ -1700,6 +1792,38 @@ export interface GetEffectivePermissionsForPathResponse {
1700
1792
  */
1701
1793
  NextToken?: string | undefined;
1702
1794
  }
1795
+ /**
1796
+ * @public
1797
+ */
1798
+ export interface GetGlueFunctionSessionContextRequest {
1799
+ /**
1800
+ * <p>The ARNs of one or more user-defined functions to include in the session context, each in the format
1801
+ * <code>arn:aws:glue:<i>region</i>:<i>account-id</i>:userDefinedFunction/<i>database-name</i>/<i>function-name</i>
1802
+ * </code>.</p>
1803
+ * @public
1804
+ */
1805
+ UserDefinedFunctionArns: string[] | undefined;
1806
+ /**
1807
+ * <p>The number of seconds the session context is valid. The default is 86,400 (24 hours).</p>
1808
+ * @public
1809
+ */
1810
+ DurationSeconds?: number | undefined;
1811
+ }
1812
+ /**
1813
+ * @public
1814
+ */
1815
+ export interface GetGlueFunctionSessionContextResponse {
1816
+ /**
1817
+ * <p>The ID of the session context.</p>
1818
+ * @public
1819
+ */
1820
+ SessionContextId?: string | undefined;
1821
+ /**
1822
+ * <p>The date and time when the session context expires.</p>
1823
+ * @public
1824
+ */
1825
+ Expiration?: Date | undefined;
1826
+ }
1703
1827
  /**
1704
1828
  * @public
1705
1829
  */
@@ -2192,6 +2316,49 @@ export interface GetTemporaryDataLocationCredentialsResponse {
2192
2316
  */
2193
2317
  CredentialsScope?: CredentialsScope | undefined;
2194
2318
  }
2319
+ /**
2320
+ * @public
2321
+ */
2322
+ export interface GetTemporaryGlueFunctionCredentialsRequest {
2323
+ /**
2324
+ * <p>The ARN of the user-defined function whose artifacts you want to download, in the format
2325
+ * <code>arn:aws:glue:<i>region</i>:<i>account-id</i>:userDefinedFunction/<i>database-name</i>/<i>function-name</i>
2326
+ * </code>.</p>
2327
+ * @public
2328
+ */
2329
+ UserDefinedFunctionArn: string | undefined;
2330
+ /**
2331
+ * <p>Context for the request, such as the column names and query ID, that Lake Formation uses for
2332
+ * auditing.</p>
2333
+ * @public
2334
+ */
2335
+ AuditContext?: AuditContext | undefined;
2336
+ }
2337
+ /**
2338
+ * @public
2339
+ */
2340
+ export interface GetTemporaryGlueFunctionCredentialsResponse {
2341
+ /**
2342
+ * <p>The access key ID for the temporary credentials.</p>
2343
+ * @public
2344
+ */
2345
+ AccessKeyId?: string | undefined;
2346
+ /**
2347
+ * <p>The secret key for the temporary credentials.</p>
2348
+ * @public
2349
+ */
2350
+ SecretAccessKey?: string | undefined;
2351
+ /**
2352
+ * <p>The session token for the temporary credentials.</p>
2353
+ * @public
2354
+ */
2355
+ SessionToken?: string | undefined;
2356
+ /**
2357
+ * <p>The date and time when the temporary credentials expire.</p>
2358
+ * @public
2359
+ */
2360
+ Expiration?: Date | undefined;
2361
+ }
2195
2362
  /**
2196
2363
  * <p>Contains a list of values defining partitions.</p>
2197
2364
  * @public
@@ -30,6 +30,7 @@ export declare var AddLFTagsToResourceRequest$: StaticStructureSchema;
30
30
  export declare var AddLFTagsToResourceResponse$: StaticStructureSchema;
31
31
  export declare var AddObjectInput$: StaticStructureSchema;
32
32
  export declare var AllRowsWildcard$: StaticStructureSchema;
33
+ export declare var AnyResource$: StaticStructureSchema;
33
34
  export declare var AssumeDecoratedRoleWithSAMLRequest$: StaticStructureSchema;
34
35
  export declare var AssumeDecoratedRoleWithSAMLResponse$: StaticStructureSchema;
35
36
  export declare var AttachRLSPolicyRequest$: StaticStructureSchema;
@@ -108,6 +109,8 @@ export declare var GetDataLakeSettingsRequest$: StaticStructureSchema;
108
109
  export declare var GetDataLakeSettingsResponse$: StaticStructureSchema;
109
110
  export declare var GetEffectivePermissionsForPathRequest$: StaticStructureSchema;
110
111
  export declare var GetEffectivePermissionsForPathResponse$: StaticStructureSchema;
112
+ export declare var GetGlueFunctionSessionContextRequest$: StaticStructureSchema;
113
+ export declare var GetGlueFunctionSessionContextResponse$: StaticStructureSchema;
111
114
  export declare var GetLFTagExpressionRequest$: StaticStructureSchema;
112
115
  export declare var GetLFTagExpressionResponse$: StaticStructureSchema;
113
116
  export declare var GetLFTagRequest$: StaticStructureSchema;
@@ -124,6 +127,8 @@ export declare var GetTableObjectsRequest$: StaticStructureSchema;
124
127
  export declare var GetTableObjectsResponse$: StaticStructureSchema;
125
128
  export declare var GetTemporaryDataLocationCredentialsRequest$: StaticStructureSchema;
126
129
  export declare var GetTemporaryDataLocationCredentialsResponse$: StaticStructureSchema;
130
+ export declare var GetTemporaryGlueFunctionCredentialsRequest$: StaticStructureSchema;
131
+ export declare var GetTemporaryGlueFunctionCredentialsResponse$: StaticStructureSchema;
127
132
  export declare var GetTemporaryGluePartitionCredentialsRequest$: StaticStructureSchema;
128
133
  export declare var GetTemporaryGluePartitionCredentialsResponse$: StaticStructureSchema;
129
134
  export declare var GetTemporaryGlueTableCredentialsRequest$: StaticStructureSchema;
@@ -217,6 +222,8 @@ export declare var UpdateTableObjectsRequest$: StaticStructureSchema;
217
222
  export declare var UpdateTableObjectsResponse$: StaticStructureSchema;
218
223
  export declare var UpdateTableStorageOptimizerRequest$: StaticStructureSchema;
219
224
  export declare var UpdateTableStorageOptimizerResponse$: StaticStructureSchema;
225
+ export declare var UserDefinedFunctionResource$: StaticStructureSchema;
226
+ export declare var UserDefinedFunctionWildcard$: StaticStructureSchema;
220
227
  export declare var VirtualObject$: StaticStructureSchema;
221
228
  export declare var WorkUnitRange$: StaticStructureSchema;
222
229
  export declare var WriteOperation$: StaticStructureSchema;
@@ -252,6 +259,7 @@ export declare var GetDataCellsFilter$: StaticOperationSchema;
252
259
  export declare var GetDataLakePrincipal$: StaticOperationSchema;
253
260
  export declare var GetDataLakeSettings$: StaticOperationSchema;
254
261
  export declare var GetEffectivePermissionsForPath$: StaticOperationSchema;
262
+ export declare var GetGlueFunctionSessionContext$: StaticOperationSchema;
255
263
  export declare var GetLFTag$: StaticOperationSchema;
256
264
  export declare var GetLFTagExpression$: StaticOperationSchema;
257
265
  export declare var GetQueryState$: StaticOperationSchema;
@@ -260,6 +268,7 @@ export declare var GetResourceLFTags$: StaticOperationSchema;
260
268
  export declare var GetRLSPolicy$: StaticOperationSchema;
261
269
  export declare var GetTableObjects$: StaticOperationSchema;
262
270
  export declare var GetTemporaryDataLocationCredentials$: StaticOperationSchema;
271
+ export declare var GetTemporaryGlueFunctionCredentials$: StaticOperationSchema;
263
272
  export declare var GetTemporaryGluePartitionCredentials$: StaticOperationSchema;
264
273
  export declare var GetTemporaryGlueTableCredentials$: StaticOperationSchema;
265
274
  export declare var GetWorkUnitResults$: StaticOperationSchema;
@@ -118,6 +118,10 @@ import {
118
118
  GetEffectivePermissionsForPathCommandInput,
119
119
  GetEffectivePermissionsForPathCommandOutput,
120
120
  } from "./commands/GetEffectivePermissionsForPathCommand";
121
+ import {
122
+ GetGlueFunctionSessionContextCommandInput,
123
+ GetGlueFunctionSessionContextCommandOutput,
124
+ } from "./commands/GetGlueFunctionSessionContextCommand";
121
125
  import { GetLFTagCommandInput, GetLFTagCommandOutput } from "./commands/GetLFTagCommand";
122
126
  import {
123
127
  GetLFTagExpressionCommandInput,
@@ -147,6 +151,10 @@ import {
147
151
  GetTemporaryDataLocationCredentialsCommandInput,
148
152
  GetTemporaryDataLocationCredentialsCommandOutput,
149
153
  } from "./commands/GetTemporaryDataLocationCredentialsCommand";
154
+ import {
155
+ GetTemporaryGlueFunctionCredentialsCommandInput,
156
+ GetTemporaryGlueFunctionCredentialsCommandOutput,
157
+ } from "./commands/GetTemporaryGlueFunctionCredentialsCommand";
150
158
  import {
151
159
  GetTemporaryGluePartitionCredentialsCommandInput,
152
160
  GetTemporaryGluePartitionCredentialsCommandOutput,
@@ -667,6 +675,19 @@ export interface LakeFormation {
667
675
  options: LakeFormationRequestOptions,
668
676
  cb: (err: any, data?: GetEffectivePermissionsForPathCommandOutput) => void,
669
677
  ): void;
678
+ getGlueFunctionSessionContext(
679
+ args: GetGlueFunctionSessionContextCommandInput,
680
+ options?: LakeFormationRequestOptions,
681
+ ): Promise<GetGlueFunctionSessionContextCommandOutput>;
682
+ getGlueFunctionSessionContext(
683
+ args: GetGlueFunctionSessionContextCommandInput,
684
+ cb: (err: any, data?: GetGlueFunctionSessionContextCommandOutput) => void,
685
+ ): void;
686
+ getGlueFunctionSessionContext(
687
+ args: GetGlueFunctionSessionContextCommandInput,
688
+ options: LakeFormationRequestOptions,
689
+ cb: (err: any, data?: GetGlueFunctionSessionContextCommandOutput) => void,
690
+ ): void;
670
691
  getLFTag(
671
692
  args: GetLFTagCommandInput,
672
693
  options?: LakeFormationRequestOptions,
@@ -769,6 +790,19 @@ export interface LakeFormation {
769
790
  options: LakeFormationRequestOptions,
770
791
  cb: (err: any, data?: GetTemporaryDataLocationCredentialsCommandOutput) => void,
771
792
  ): void;
793
+ getTemporaryGlueFunctionCredentials(
794
+ args: GetTemporaryGlueFunctionCredentialsCommandInput,
795
+ options?: LakeFormationRequestOptions,
796
+ ): Promise<GetTemporaryGlueFunctionCredentialsCommandOutput>;
797
+ getTemporaryGlueFunctionCredentials(
798
+ args: GetTemporaryGlueFunctionCredentialsCommandInput,
799
+ cb: (err: any, data?: GetTemporaryGlueFunctionCredentialsCommandOutput) => void,
800
+ ): void;
801
+ getTemporaryGlueFunctionCredentials(
802
+ args: GetTemporaryGlueFunctionCredentialsCommandInput,
803
+ options: LakeFormationRequestOptions,
804
+ cb: (err: any, data?: GetTemporaryGlueFunctionCredentialsCommandOutput) => void,
805
+ ): void;
772
806
  getTemporaryGluePartitionCredentials(
773
807
  args: GetTemporaryGluePartitionCredentialsCommandInput,
774
808
  options?: LakeFormationRequestOptions,
@@ -148,6 +148,10 @@ import {
148
148
  GetEffectivePermissionsForPathCommandInput,
149
149
  GetEffectivePermissionsForPathCommandOutput,
150
150
  } from "./commands/GetEffectivePermissionsForPathCommand";
151
+ import {
152
+ GetGlueFunctionSessionContextCommandInput,
153
+ GetGlueFunctionSessionContextCommandOutput,
154
+ } from "./commands/GetGlueFunctionSessionContextCommand";
151
155
  import { GetLFTagCommandInput, GetLFTagCommandOutput } from "./commands/GetLFTagCommand";
152
156
  import {
153
157
  GetLFTagExpressionCommandInput,
@@ -177,6 +181,10 @@ import {
177
181
  GetTemporaryDataLocationCredentialsCommandInput,
178
182
  GetTemporaryDataLocationCredentialsCommandOutput,
179
183
  } from "./commands/GetTemporaryDataLocationCredentialsCommand";
184
+ import {
185
+ GetTemporaryGlueFunctionCredentialsCommandInput,
186
+ GetTemporaryGlueFunctionCredentialsCommandOutput,
187
+ } from "./commands/GetTemporaryGlueFunctionCredentialsCommand";
180
188
  import {
181
189
  GetTemporaryGluePartitionCredentialsCommandInput,
182
190
  GetTemporaryGluePartitionCredentialsCommandOutput,
@@ -333,6 +341,7 @@ export type ServiceInputTypes =
333
341
  | GetDataLakePrincipalCommandInput
334
342
  | GetDataLakeSettingsCommandInput
335
343
  | GetEffectivePermissionsForPathCommandInput
344
+ | GetGlueFunctionSessionContextCommandInput
336
345
  | GetLFTagCommandInput
337
346
  | GetLFTagExpressionCommandInput
338
347
  | GetQueryStateCommandInput
@@ -341,6 +350,7 @@ export type ServiceInputTypes =
341
350
  | GetResourceLFTagsCommandInput
342
351
  | GetTableObjectsCommandInput
343
352
  | GetTemporaryDataLocationCredentialsCommandInput
353
+ | GetTemporaryGlueFunctionCredentialsCommandInput
344
354
  | GetTemporaryGluePartitionCredentialsCommandInput
345
355
  | GetTemporaryGlueTableCredentialsCommandInput
346
356
  | GetWorkUnitResultsCommandInput
@@ -403,6 +413,7 @@ export type ServiceOutputTypes =
403
413
  | GetDataLakePrincipalCommandOutput
404
414
  | GetDataLakeSettingsCommandOutput
405
415
  | GetEffectivePermissionsForPathCommandOutput
416
+ | GetGlueFunctionSessionContextCommandOutput
406
417
  | GetLFTagCommandOutput
407
418
  | GetLFTagExpressionCommandOutput
408
419
  | GetQueryStateCommandOutput
@@ -411,6 +422,7 @@ export type ServiceOutputTypes =
411
422
  | GetResourceLFTagsCommandOutput
412
423
  | GetTableObjectsCommandOutput
413
424
  | GetTemporaryDataLocationCredentialsCommandOutput
425
+ | GetTemporaryGlueFunctionCredentialsCommandOutput
414
426
  | GetTemporaryGluePartitionCredentialsCommandOutput
415
427
  | GetTemporaryGlueTableCredentialsCommandOutput
416
428
  | GetWorkUnitResultsCommandOutput
@@ -0,0 +1,42 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ GetGlueFunctionSessionContextRequest,
4
+ GetGlueFunctionSessionContextResponse,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface GetGlueFunctionSessionContextCommandInput extends GetGlueFunctionSessionContextRequest {}
8
+ export interface GetGlueFunctionSessionContextCommandOutput
9
+ extends GetGlueFunctionSessionContextResponse, __MetadataBearer {}
10
+ declare const GetGlueFunctionSessionContextCommand_base: {
11
+ new (
12
+ input: GetGlueFunctionSessionContextCommandInput,
13
+ ): import("@smithy/core/client").CommandImpl<
14
+ GetGlueFunctionSessionContextCommandInput,
15
+ GetGlueFunctionSessionContextCommandOutput,
16
+ import("..").LakeFormationClientResolvedConfig,
17
+ import("..").ServiceInputTypes,
18
+ import("..").ServiceOutputTypes
19
+ >;
20
+ new (
21
+ input: GetGlueFunctionSessionContextCommandInput,
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ GetGlueFunctionSessionContextCommandInput,
24
+ GetGlueFunctionSessionContextCommandOutput,
25
+ import("..").LakeFormationClientResolvedConfig,
26
+ import("..").ServiceInputTypes,
27
+ import("..").ServiceOutputTypes
28
+ >;
29
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
+ };
31
+ export declare class GetGlueFunctionSessionContextCommand extends GetGlueFunctionSessionContextCommand_base {
32
+ protected static __types: {
33
+ api: {
34
+ input: GetGlueFunctionSessionContextRequest;
35
+ output: GetGlueFunctionSessionContextResponse;
36
+ };
37
+ sdk: {
38
+ input: GetGlueFunctionSessionContextCommandInput;
39
+ output: GetGlueFunctionSessionContextCommandOutput;
40
+ };
41
+ };
42
+ }