@aws-sdk/client-lakeformation 3.576.0 → 3.579.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -372,6 +372,14 @@ GetDataCellsFilter
372
372
 
373
373
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lakeformation/command/GetDataCellsFilterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lakeformation/Interface/GetDataCellsFilterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lakeformation/Interface/GetDataCellsFilterCommandOutput/)
374
374
 
375
+ </details>
376
+ <details>
377
+ <summary>
378
+ GetDataLakePrincipal
379
+ </summary>
380
+
381
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lakeformation/command/GetDataLakePrincipalCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lakeformation/Interface/GetDataLakePrincipalCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-lakeformation/Interface/GetDataLakePrincipalCommandOutput/)
382
+
375
383
  </details>
376
384
  <details>
377
385
  <summary>
package/dist-cjs/index.js CHANGED
@@ -52,6 +52,7 @@ __export(src_exports, {
52
52
  ExtendTransactionCommand: () => ExtendTransactionCommand,
53
53
  FieldNameString: () => FieldNameString,
54
54
  GetDataCellsFilterCommand: () => GetDataCellsFilterCommand,
55
+ GetDataLakePrincipalCommand: () => GetDataLakePrincipalCommand,
55
56
  GetDataLakeSettingsCommand: () => GetDataLakeSettingsCommand,
56
57
  GetEffectivePermissionsForPathCommand: () => GetEffectivePermissionsForPathCommand,
57
58
  GetLFTagCommand: () => GetLFTagCommand,
@@ -1077,6 +1078,17 @@ var se_GetDataCellsFilterCommand = /* @__PURE__ */ __name(async (input, context)
1077
1078
  b.m("POST").h(headers).b(body);
1078
1079
  return b.build();
1079
1080
  }, "se_GetDataCellsFilterCommand");
1081
+ var se_GetDataLakePrincipalCommand = /* @__PURE__ */ __name(async (input, context) => {
1082
+ const b = (0, import_core.requestBuilder)(input, context);
1083
+ const headers = {
1084
+ "content-type": "application/json"
1085
+ };
1086
+ b.bp("/GetDataLakePrincipal");
1087
+ let body;
1088
+ body = "";
1089
+ b.m("POST").h(headers).b(body);
1090
+ return b.build();
1091
+ }, "se_GetDataLakePrincipalCommand");
1080
1092
  var se_GetDataLakeSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
1081
1093
  const b = (0, import_core.requestBuilder)(input, context);
1082
1094
  const headers = {
@@ -1960,6 +1972,20 @@ var de_GetDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, context
1960
1972
  Object.assign(contents, doc);
1961
1973
  return contents;
1962
1974
  }, "de_GetDataCellsFilterCommand");
1975
+ var de_GetDataLakePrincipalCommand = /* @__PURE__ */ __name(async (output, context) => {
1976
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1977
+ return de_CommandError(output, context);
1978
+ }
1979
+ const contents = (0, import_smithy_client.map)({
1980
+ $metadata: deserializeMetadata(output)
1981
+ });
1982
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1983
+ const doc = (0, import_smithy_client.take)(data, {
1984
+ Identity: import_smithy_client.expectString
1985
+ });
1986
+ Object.assign(contents, doc);
1987
+ return contents;
1988
+ }, "de_GetDataLakePrincipalCommand");
1963
1989
  var de_GetDataLakeSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1964
1990
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1965
1991
  return de_CommandError(output, context);
@@ -3154,6 +3180,23 @@ var _GetDataCellsFilterCommand = class _GetDataCellsFilterCommand extends import
3154
3180
  __name(_GetDataCellsFilterCommand, "GetDataCellsFilterCommand");
3155
3181
  var GetDataCellsFilterCommand = _GetDataCellsFilterCommand;
3156
3182
 
3183
+ // src/commands/GetDataLakePrincipalCommand.ts
3184
+
3185
+
3186
+
3187
+
3188
+ var _GetDataLakePrincipalCommand = class _GetDataLakePrincipalCommand extends import_smithy_client.Command.classBuilder().ep({
3189
+ ...commonParams
3190
+ }).m(function(Command, cs, config, o) {
3191
+ return [
3192
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3193
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3194
+ ];
3195
+ }).s("AWSLakeFormation", "GetDataLakePrincipal", {}).n("LakeFormationClient", "GetDataLakePrincipalCommand").f(void 0, void 0).ser(se_GetDataLakePrincipalCommand).de(de_GetDataLakePrincipalCommand).build() {
3196
+ };
3197
+ __name(_GetDataLakePrincipalCommand, "GetDataLakePrincipalCommand");
3198
+ var GetDataLakePrincipalCommand = _GetDataLakePrincipalCommand;
3199
+
3157
3200
  // src/commands/GetDataLakeSettingsCommand.ts
3158
3201
 
3159
3202
 
@@ -3738,6 +3781,7 @@ var commands = {
3738
3781
  DescribeTransactionCommand,
3739
3782
  ExtendTransactionCommand,
3740
3783
  GetDataCellsFilterCommand,
3784
+ GetDataLakePrincipalCommand,
3741
3785
  GetDataLakeSettingsCommand,
3742
3786
  GetEffectivePermissionsForPathCommand,
3743
3787
  GetLFTagCommand,
@@ -3854,6 +3898,7 @@ var paginateSearchTablesByLFTags = (0, import_core.createPaginator)(LakeFormatio
3854
3898
  DescribeTransactionCommand,
3855
3899
  ExtendTransactionCommand,
3856
3900
  GetDataCellsFilterCommand,
3901
+ GetDataLakePrincipalCommand,
3857
3902
  GetDataLakeSettingsCommand,
3858
3903
  GetEffectivePermissionsForPathCommand,
3859
3904
  GetLFTagCommand,
@@ -20,6 +20,7 @@ import { DescribeResourceCommand, } from "./commands/DescribeResourceCommand";
20
20
  import { DescribeTransactionCommand, } from "./commands/DescribeTransactionCommand";
21
21
  import { ExtendTransactionCommand, } from "./commands/ExtendTransactionCommand";
22
22
  import { GetDataCellsFilterCommand, } from "./commands/GetDataCellsFilterCommand";
23
+ import { GetDataLakePrincipalCommand, } from "./commands/GetDataLakePrincipalCommand";
23
24
  import { GetDataLakeSettingsCommand, } from "./commands/GetDataLakeSettingsCommand";
24
25
  import { GetEffectivePermissionsForPathCommand, } from "./commands/GetEffectivePermissionsForPathCommand";
25
26
  import { GetLFTagCommand } from "./commands/GetLFTagCommand";
@@ -76,6 +77,7 @@ const commands = {
76
77
  DescribeTransactionCommand,
77
78
  ExtendTransactionCommand,
78
79
  GetDataCellsFilterCommand,
80
+ GetDataLakePrincipalCommand,
79
81
  GetDataLakeSettingsCommand,
80
82
  GetEffectivePermissionsForPathCommand,
81
83
  GetLFTagCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetDataLakePrincipalCommand, se_GetDataLakePrincipalCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetDataLakePrincipalCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSLakeFormation", "GetDataLakePrincipal", {})
19
+ .n("LakeFormationClient", "GetDataLakePrincipalCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetDataLakePrincipalCommand)
22
+ .de(de_GetDataLakePrincipalCommand)
23
+ .build() {
24
+ }
@@ -19,6 +19,7 @@ export * from "./DescribeResourceCommand";
19
19
  export * from "./DescribeTransactionCommand";
20
20
  export * from "./ExtendTransactionCommand";
21
21
  export * from "./GetDataCellsFilterCommand";
22
+ export * from "./GetDataLakePrincipalCommand";
22
23
  export * from "./GetDataLakeSettingsCommand";
23
24
  export * from "./GetEffectivePermissionsForPathCommand";
24
25
  export * from "./GetLFTagCommand";
@@ -302,6 +302,17 @@ export const se_GetDataCellsFilterCommand = async (input, context) => {
302
302
  b.m("POST").h(headers).b(body);
303
303
  return b.build();
304
304
  };
305
+ export const se_GetDataLakePrincipalCommand = async (input, context) => {
306
+ const b = rb(input, context);
307
+ const headers = {
308
+ "content-type": "application/json",
309
+ };
310
+ b.bp("/GetDataLakePrincipal");
311
+ let body;
312
+ body = "";
313
+ b.m("POST").h(headers).b(body);
314
+ return b.build();
315
+ };
305
316
  export const se_GetDataLakeSettingsCommand = async (input, context) => {
306
317
  const b = rb(input, context);
307
318
  const headers = {
@@ -1119,6 +1130,20 @@ export const de_GetDataCellsFilterCommand = async (output, context) => {
1119
1130
  Object.assign(contents, doc);
1120
1131
  return contents;
1121
1132
  };
1133
+ export const de_GetDataLakePrincipalCommand = async (output, context) => {
1134
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1135
+ return de_CommandError(output, context);
1136
+ }
1137
+ const contents = map({
1138
+ $metadata: deserializeMetadata(output),
1139
+ });
1140
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1141
+ const doc = take(data, {
1142
+ Identity: __expectString,
1143
+ });
1144
+ Object.assign(contents, doc);
1145
+ return contents;
1146
+ };
1122
1147
  export const de_GetDataLakeSettingsCommand = async (output, context) => {
1123
1148
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
1149
  return de_CommandError(output, context);
@@ -20,6 +20,7 @@ import { DescribeResourceCommandInput, DescribeResourceCommandOutput } from "./c
20
20
  import { DescribeTransactionCommandInput, DescribeTransactionCommandOutput } from "./commands/DescribeTransactionCommand";
21
21
  import { ExtendTransactionCommandInput, ExtendTransactionCommandOutput } from "./commands/ExtendTransactionCommand";
22
22
  import { GetDataCellsFilterCommandInput, GetDataCellsFilterCommandOutput } from "./commands/GetDataCellsFilterCommand";
23
+ import { GetDataLakePrincipalCommandInput, GetDataLakePrincipalCommandOutput } from "./commands/GetDataLakePrincipalCommand";
23
24
  import { GetDataLakeSettingsCommandInput, GetDataLakeSettingsCommandOutput } from "./commands/GetDataLakeSettingsCommand";
24
25
  import { GetEffectivePermissionsForPathCommandInput, GetEffectivePermissionsForPathCommandOutput } from "./commands/GetEffectivePermissionsForPathCommand";
25
26
  import { GetLFTagCommandInput, GetLFTagCommandOutput } from "./commands/GetLFTagCommand";
@@ -186,6 +187,13 @@ export interface LakeFormation {
186
187
  getDataCellsFilter(args: GetDataCellsFilterCommandInput, options?: __HttpHandlerOptions): Promise<GetDataCellsFilterCommandOutput>;
187
188
  getDataCellsFilter(args: GetDataCellsFilterCommandInput, cb: (err: any, data?: GetDataCellsFilterCommandOutput) => void): void;
188
189
  getDataCellsFilter(args: GetDataCellsFilterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDataCellsFilterCommandOutput) => void): void;
190
+ /**
191
+ * @see {@link GetDataLakePrincipalCommand}
192
+ */
193
+ getDataLakePrincipal(): Promise<GetDataLakePrincipalCommandOutput>;
194
+ getDataLakePrincipal(args: GetDataLakePrincipalCommandInput, options?: __HttpHandlerOptions): Promise<GetDataLakePrincipalCommandOutput>;
195
+ getDataLakePrincipal(args: GetDataLakePrincipalCommandInput, cb: (err: any, data?: GetDataLakePrincipalCommandOutput) => void): void;
196
+ getDataLakePrincipal(args: GetDataLakePrincipalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDataLakePrincipalCommandOutput) => void): void;
189
197
  /**
190
198
  * @see {@link GetDataLakeSettingsCommand}
191
199
  */
@@ -28,6 +28,7 @@ import { DescribeResourceCommandInput, DescribeResourceCommandOutput } from "./c
28
28
  import { DescribeTransactionCommandInput, DescribeTransactionCommandOutput } from "./commands/DescribeTransactionCommand";
29
29
  import { ExtendTransactionCommandInput, ExtendTransactionCommandOutput } from "./commands/ExtendTransactionCommand";
30
30
  import { GetDataCellsFilterCommandInput, GetDataCellsFilterCommandOutput } from "./commands/GetDataCellsFilterCommand";
31
+ import { GetDataLakePrincipalCommandInput, GetDataLakePrincipalCommandOutput } from "./commands/GetDataLakePrincipalCommand";
31
32
  import { GetDataLakeSettingsCommandInput, GetDataLakeSettingsCommandOutput } from "./commands/GetDataLakeSettingsCommand";
32
33
  import { GetEffectivePermissionsForPathCommandInput, GetEffectivePermissionsForPathCommandOutput } from "./commands/GetEffectivePermissionsForPathCommand";
33
34
  import { GetLFTagCommandInput, GetLFTagCommandOutput } from "./commands/GetLFTagCommand";
@@ -67,11 +68,11 @@ export { __Client };
67
68
  /**
68
69
  * @public
69
70
  */
70
- export type ServiceInputTypes = AddLFTagsToResourceCommandInput | AssumeDecoratedRoleWithSAMLCommandInput | BatchGrantPermissionsCommandInput | BatchRevokePermissionsCommandInput | CancelTransactionCommandInput | CommitTransactionCommandInput | CreateDataCellsFilterCommandInput | CreateLFTagCommandInput | CreateLakeFormationIdentityCenterConfigurationCommandInput | CreateLakeFormationOptInCommandInput | DeleteDataCellsFilterCommandInput | DeleteLFTagCommandInput | DeleteLakeFormationIdentityCenterConfigurationCommandInput | DeleteLakeFormationOptInCommandInput | DeleteObjectsOnCancelCommandInput | DeregisterResourceCommandInput | DescribeLakeFormationIdentityCenterConfigurationCommandInput | DescribeResourceCommandInput | DescribeTransactionCommandInput | ExtendTransactionCommandInput | GetDataCellsFilterCommandInput | GetDataLakeSettingsCommandInput | GetEffectivePermissionsForPathCommandInput | GetLFTagCommandInput | GetQueryStateCommandInput | GetQueryStatisticsCommandInput | GetResourceLFTagsCommandInput | GetTableObjectsCommandInput | GetTemporaryGluePartitionCredentialsCommandInput | GetTemporaryGlueTableCredentialsCommandInput | GetWorkUnitResultsCommandInput | GetWorkUnitsCommandInput | GrantPermissionsCommandInput | ListDataCellsFilterCommandInput | ListLFTagsCommandInput | ListLakeFormationOptInsCommandInput | ListPermissionsCommandInput | ListResourcesCommandInput | ListTableStorageOptimizersCommandInput | ListTransactionsCommandInput | PutDataLakeSettingsCommandInput | RegisterResourceCommandInput | RemoveLFTagsFromResourceCommandInput | RevokePermissionsCommandInput | SearchDatabasesByLFTagsCommandInput | SearchTablesByLFTagsCommandInput | StartQueryPlanningCommandInput | StartTransactionCommandInput | UpdateDataCellsFilterCommandInput | UpdateLFTagCommandInput | UpdateLakeFormationIdentityCenterConfigurationCommandInput | UpdateResourceCommandInput | UpdateTableObjectsCommandInput | UpdateTableStorageOptimizerCommandInput;
71
+ export type ServiceInputTypes = AddLFTagsToResourceCommandInput | AssumeDecoratedRoleWithSAMLCommandInput | BatchGrantPermissionsCommandInput | BatchRevokePermissionsCommandInput | CancelTransactionCommandInput | CommitTransactionCommandInput | CreateDataCellsFilterCommandInput | CreateLFTagCommandInput | CreateLakeFormationIdentityCenterConfigurationCommandInput | CreateLakeFormationOptInCommandInput | DeleteDataCellsFilterCommandInput | DeleteLFTagCommandInput | DeleteLakeFormationIdentityCenterConfigurationCommandInput | DeleteLakeFormationOptInCommandInput | DeleteObjectsOnCancelCommandInput | DeregisterResourceCommandInput | DescribeLakeFormationIdentityCenterConfigurationCommandInput | DescribeResourceCommandInput | DescribeTransactionCommandInput | ExtendTransactionCommandInput | GetDataCellsFilterCommandInput | GetDataLakePrincipalCommandInput | GetDataLakeSettingsCommandInput | GetEffectivePermissionsForPathCommandInput | GetLFTagCommandInput | GetQueryStateCommandInput | GetQueryStatisticsCommandInput | GetResourceLFTagsCommandInput | GetTableObjectsCommandInput | GetTemporaryGluePartitionCredentialsCommandInput | GetTemporaryGlueTableCredentialsCommandInput | GetWorkUnitResultsCommandInput | GetWorkUnitsCommandInput | GrantPermissionsCommandInput | ListDataCellsFilterCommandInput | ListLFTagsCommandInput | ListLakeFormationOptInsCommandInput | ListPermissionsCommandInput | ListResourcesCommandInput | ListTableStorageOptimizersCommandInput | ListTransactionsCommandInput | PutDataLakeSettingsCommandInput | RegisterResourceCommandInput | RemoveLFTagsFromResourceCommandInput | RevokePermissionsCommandInput | SearchDatabasesByLFTagsCommandInput | SearchTablesByLFTagsCommandInput | StartQueryPlanningCommandInput | StartTransactionCommandInput | UpdateDataCellsFilterCommandInput | UpdateLFTagCommandInput | UpdateLakeFormationIdentityCenterConfigurationCommandInput | UpdateResourceCommandInput | UpdateTableObjectsCommandInput | UpdateTableStorageOptimizerCommandInput;
71
72
  /**
72
73
  * @public
73
74
  */
74
- export type ServiceOutputTypes = AddLFTagsToResourceCommandOutput | AssumeDecoratedRoleWithSAMLCommandOutput | BatchGrantPermissionsCommandOutput | BatchRevokePermissionsCommandOutput | CancelTransactionCommandOutput | CommitTransactionCommandOutput | CreateDataCellsFilterCommandOutput | CreateLFTagCommandOutput | CreateLakeFormationIdentityCenterConfigurationCommandOutput | CreateLakeFormationOptInCommandOutput | DeleteDataCellsFilterCommandOutput | DeleteLFTagCommandOutput | DeleteLakeFormationIdentityCenterConfigurationCommandOutput | DeleteLakeFormationOptInCommandOutput | DeleteObjectsOnCancelCommandOutput | DeregisterResourceCommandOutput | DescribeLakeFormationIdentityCenterConfigurationCommandOutput | DescribeResourceCommandOutput | DescribeTransactionCommandOutput | ExtendTransactionCommandOutput | GetDataCellsFilterCommandOutput | GetDataLakeSettingsCommandOutput | GetEffectivePermissionsForPathCommandOutput | GetLFTagCommandOutput | GetQueryStateCommandOutput | GetQueryStatisticsCommandOutput | GetResourceLFTagsCommandOutput | GetTableObjectsCommandOutput | GetTemporaryGluePartitionCredentialsCommandOutput | GetTemporaryGlueTableCredentialsCommandOutput | GetWorkUnitResultsCommandOutput | GetWorkUnitsCommandOutput | GrantPermissionsCommandOutput | ListDataCellsFilterCommandOutput | ListLFTagsCommandOutput | ListLakeFormationOptInsCommandOutput | ListPermissionsCommandOutput | ListResourcesCommandOutput | ListTableStorageOptimizersCommandOutput | ListTransactionsCommandOutput | PutDataLakeSettingsCommandOutput | RegisterResourceCommandOutput | RemoveLFTagsFromResourceCommandOutput | RevokePermissionsCommandOutput | SearchDatabasesByLFTagsCommandOutput | SearchTablesByLFTagsCommandOutput | StartQueryPlanningCommandOutput | StartTransactionCommandOutput | UpdateDataCellsFilterCommandOutput | UpdateLFTagCommandOutput | UpdateLakeFormationIdentityCenterConfigurationCommandOutput | UpdateResourceCommandOutput | UpdateTableObjectsCommandOutput | UpdateTableStorageOptimizerCommandOutput;
75
+ export type ServiceOutputTypes = AddLFTagsToResourceCommandOutput | AssumeDecoratedRoleWithSAMLCommandOutput | BatchGrantPermissionsCommandOutput | BatchRevokePermissionsCommandOutput | CancelTransactionCommandOutput | CommitTransactionCommandOutput | CreateDataCellsFilterCommandOutput | CreateLFTagCommandOutput | CreateLakeFormationIdentityCenterConfigurationCommandOutput | CreateLakeFormationOptInCommandOutput | DeleteDataCellsFilterCommandOutput | DeleteLFTagCommandOutput | DeleteLakeFormationIdentityCenterConfigurationCommandOutput | DeleteLakeFormationOptInCommandOutput | DeleteObjectsOnCancelCommandOutput | DeregisterResourceCommandOutput | DescribeLakeFormationIdentityCenterConfigurationCommandOutput | DescribeResourceCommandOutput | DescribeTransactionCommandOutput | ExtendTransactionCommandOutput | GetDataCellsFilterCommandOutput | GetDataLakePrincipalCommandOutput | GetDataLakeSettingsCommandOutput | GetEffectivePermissionsForPathCommandOutput | GetLFTagCommandOutput | GetQueryStateCommandOutput | GetQueryStatisticsCommandOutput | GetResourceLFTagsCommandOutput | GetTableObjectsCommandOutput | GetTemporaryGluePartitionCredentialsCommandOutput | GetTemporaryGlueTableCredentialsCommandOutput | GetWorkUnitResultsCommandOutput | GetWorkUnitsCommandOutput | GrantPermissionsCommandOutput | ListDataCellsFilterCommandOutput | ListLFTagsCommandOutput | ListLakeFormationOptInsCommandOutput | ListPermissionsCommandOutput | ListResourcesCommandOutput | ListTableStorageOptimizersCommandOutput | ListTransactionsCommandOutput | PutDataLakeSettingsCommandOutput | RegisterResourceCommandOutput | RemoveLFTagsFromResourceCommandOutput | RevokePermissionsCommandOutput | SearchDatabasesByLFTagsCommandOutput | SearchTablesByLFTagsCommandOutput | StartQueryPlanningCommandOutput | StartTransactionCommandOutput | UpdateDataCellsFilterCommandOutput | UpdateLFTagCommandOutput | UpdateLakeFormationIdentityCenterConfigurationCommandOutput | UpdateResourceCommandOutput | UpdateTableObjectsCommandOutput | UpdateTableStorageOptimizerCommandOutput;
75
76
  /**
76
77
  * @public
77
78
  */
@@ -0,0 +1,66 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { LakeFormationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LakeFormationClient";
4
+ import { GetDataLakePrincipalRequest, GetDataLakePrincipalResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetDataLakePrincipalCommand}.
13
+ */
14
+ export interface GetDataLakePrincipalCommandInput extends GetDataLakePrincipalRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetDataLakePrincipalCommand}.
20
+ */
21
+ export interface GetDataLakePrincipalCommandOutput extends GetDataLakePrincipalResponse, __MetadataBearer {
22
+ }
23
+ declare const GetDataLakePrincipalCommand_base: {
24
+ new (input: GetDataLakePrincipalCommandInput): import("@smithy/smithy-client").CommandImpl<GetDataLakePrincipalCommandInput, GetDataLakePrincipalCommandOutput, LakeFormationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [GetDataLakePrincipalCommandInput]): import("@smithy/smithy-client").CommandImpl<GetDataLakePrincipalCommandInput, GetDataLakePrincipalCommandOutput, LakeFormationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns the identity of the invoking principal.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { LakeFormationClient, GetDataLakePrincipalCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
34
+ * // const { LakeFormationClient, GetDataLakePrincipalCommand } = require("@aws-sdk/client-lakeformation"); // CommonJS import
35
+ * const client = new LakeFormationClient(config);
36
+ * const input = {};
37
+ * const command = new GetDataLakePrincipalCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // GetDataLakePrincipalResponse
40
+ * // Identity: "STRING_VALUE",
41
+ * // };
42
+ *
43
+ * ```
44
+ *
45
+ * @param GetDataLakePrincipalCommandInput - {@link GetDataLakePrincipalCommandInput}
46
+ * @returns {@link GetDataLakePrincipalCommandOutput}
47
+ * @see {@link GetDataLakePrincipalCommandInput} for command's `input` shape.
48
+ * @see {@link GetDataLakePrincipalCommandOutput} for command's `response` shape.
49
+ * @see {@link LakeFormationClientResolvedConfig | config} for LakeFormationClient's `config` shape.
50
+ *
51
+ * @throws {@link AccessDeniedException} (client fault)
52
+ * <p>Access to a resource was denied.</p>
53
+ *
54
+ * @throws {@link InternalServiceException} (server fault)
55
+ * <p>An internal service error occurred.</p>
56
+ *
57
+ * @throws {@link OperationTimeoutException} (client fault)
58
+ * <p>The operation timed out.</p>
59
+ *
60
+ * @throws {@link LakeFormationServiceException}
61
+ * <p>Base exception class for all service exceptions from LakeFormation service.</p>
62
+ *
63
+ * @public
64
+ */
65
+ export declare class GetDataLakePrincipalCommand extends GetDataLakePrincipalCommand_base {
66
+ }
@@ -19,6 +19,7 @@ export * from "./DescribeResourceCommand";
19
19
  export * from "./DescribeTransactionCommand";
20
20
  export * from "./ExtendTransactionCommand";
21
21
  export * from "./GetDataCellsFilterCommand";
22
+ export * from "./GetDataLakePrincipalCommand";
22
23
  export * from "./GetDataLakeSettingsCommand";
23
24
  export * from "./GetEffectivePermissionsForPathCommand";
24
25
  export * from "./GetLFTagCommand";
@@ -1384,6 +1384,21 @@ export interface GetDataCellsFilterResponse {
1384
1384
  */
1385
1385
  DataCellsFilter?: DataCellsFilter;
1386
1386
  }
1387
+ /**
1388
+ * @public
1389
+ */
1390
+ export interface GetDataLakePrincipalRequest {
1391
+ }
1392
+ /**
1393
+ * @public
1394
+ */
1395
+ export interface GetDataLakePrincipalResponse {
1396
+ /**
1397
+ * <p>A unique identifier of the invoking principal.</p>
1398
+ * @public
1399
+ */
1400
+ Identity?: string;
1401
+ }
1387
1402
  /**
1388
1403
  * @public
1389
1404
  */
@@ -21,6 +21,7 @@ import { DescribeResourceCommandInput, DescribeResourceCommandOutput } from "../
21
21
  import { DescribeTransactionCommandInput, DescribeTransactionCommandOutput } from "../commands/DescribeTransactionCommand";
22
22
  import { ExtendTransactionCommandInput, ExtendTransactionCommandOutput } from "../commands/ExtendTransactionCommand";
23
23
  import { GetDataCellsFilterCommandInput, GetDataCellsFilterCommandOutput } from "../commands/GetDataCellsFilterCommand";
24
+ import { GetDataLakePrincipalCommandInput, GetDataLakePrincipalCommandOutput } from "../commands/GetDataLakePrincipalCommand";
24
25
  import { GetDataLakeSettingsCommandInput, GetDataLakeSettingsCommandOutput } from "../commands/GetDataLakeSettingsCommand";
25
26
  import { GetEffectivePermissionsForPathCommandInput, GetEffectivePermissionsForPathCommandOutput } from "../commands/GetEffectivePermissionsForPathCommand";
26
27
  import { GetLFTagCommandInput, GetLFTagCommandOutput } from "../commands/GetLFTagCommand";
@@ -138,6 +139,10 @@ export declare const se_ExtendTransactionCommand: (input: ExtendTransactionComma
138
139
  * serializeAws_restJson1GetDataCellsFilterCommand
139
140
  */
140
141
  export declare const se_GetDataCellsFilterCommand: (input: GetDataCellsFilterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
142
+ /**
143
+ * serializeAws_restJson1GetDataLakePrincipalCommand
144
+ */
145
+ export declare const se_GetDataLakePrincipalCommand: (input: GetDataLakePrincipalCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
141
146
  /**
142
147
  * serializeAws_restJson1GetDataLakeSettingsCommand
143
148
  */
@@ -354,6 +359,10 @@ export declare const de_ExtendTransactionCommand: (output: __HttpResponse, conte
354
359
  * deserializeAws_restJson1GetDataCellsFilterCommand
355
360
  */
356
361
  export declare const de_GetDataCellsFilterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDataCellsFilterCommandOutput>;
362
+ /**
363
+ * deserializeAws_restJson1GetDataLakePrincipalCommand
364
+ */
365
+ export declare const de_GetDataLakePrincipalCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDataLakePrincipalCommandOutput>;
357
366
  /**
358
367
  * deserializeAws_restJson1GetDataLakeSettingsCommand
359
368
  */
@@ -83,6 +83,10 @@ import {
83
83
  GetDataCellsFilterCommandInput,
84
84
  GetDataCellsFilterCommandOutput,
85
85
  } from "./commands/GetDataCellsFilterCommand";
86
+ import {
87
+ GetDataLakePrincipalCommandInput,
88
+ GetDataLakePrincipalCommandOutput,
89
+ } from "./commands/GetDataLakePrincipalCommand";
86
90
  import {
87
91
  GetDataLakeSettingsCommandInput,
88
92
  GetDataLakeSettingsCommandOutput,
@@ -513,6 +517,20 @@ export interface LakeFormation {
513
517
  options: __HttpHandlerOptions,
514
518
  cb: (err: any, data?: GetDataCellsFilterCommandOutput) => void
515
519
  ): void;
520
+ getDataLakePrincipal(): Promise<GetDataLakePrincipalCommandOutput>;
521
+ getDataLakePrincipal(
522
+ args: GetDataLakePrincipalCommandInput,
523
+ options?: __HttpHandlerOptions
524
+ ): Promise<GetDataLakePrincipalCommandOutput>;
525
+ getDataLakePrincipal(
526
+ args: GetDataLakePrincipalCommandInput,
527
+ cb: (err: any, data?: GetDataLakePrincipalCommandOutput) => void
528
+ ): void;
529
+ getDataLakePrincipal(
530
+ args: GetDataLakePrincipalCommandInput,
531
+ options: __HttpHandlerOptions,
532
+ cb: (err: any, data?: GetDataLakePrincipalCommandOutput) => void
533
+ ): void;
516
534
  getDataLakeSettings(): Promise<GetDataLakeSettingsCommandOutput>;
517
535
  getDataLakeSettings(
518
536
  args: GetDataLakeSettingsCommandInput,
@@ -130,6 +130,10 @@ import {
130
130
  GetDataCellsFilterCommandInput,
131
131
  GetDataCellsFilterCommandOutput,
132
132
  } from "./commands/GetDataCellsFilterCommand";
133
+ import {
134
+ GetDataLakePrincipalCommandInput,
135
+ GetDataLakePrincipalCommandOutput,
136
+ } from "./commands/GetDataLakePrincipalCommand";
133
137
  import {
134
138
  GetDataLakeSettingsCommandInput,
135
139
  GetDataLakeSettingsCommandOutput,
@@ -291,6 +295,7 @@ export type ServiceInputTypes =
291
295
  | DescribeTransactionCommandInput
292
296
  | ExtendTransactionCommandInput
293
297
  | GetDataCellsFilterCommandInput
298
+ | GetDataLakePrincipalCommandInput
294
299
  | GetDataLakeSettingsCommandInput
295
300
  | GetEffectivePermissionsForPathCommandInput
296
301
  | GetLFTagCommandInput
@@ -346,6 +351,7 @@ export type ServiceOutputTypes =
346
351
  | DescribeTransactionCommandOutput
347
352
  | ExtendTransactionCommandOutput
348
353
  | GetDataCellsFilterCommandOutput
354
+ | GetDataLakePrincipalCommandOutput
349
355
  | GetDataLakeSettingsCommandOutput
350
356
  | GetEffectivePermissionsForPathCommandOutput
351
357
  | GetLFTagCommandOutput
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ LakeFormationClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../LakeFormationClient";
8
+ import {
9
+ GetDataLakePrincipalRequest,
10
+ GetDataLakePrincipalResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface GetDataLakePrincipalCommandInput
14
+ extends GetDataLakePrincipalRequest {}
15
+ export interface GetDataLakePrincipalCommandOutput
16
+ extends GetDataLakePrincipalResponse,
17
+ __MetadataBearer {}
18
+ declare const GetDataLakePrincipalCommand_base: {
19
+ new (
20
+ input: GetDataLakePrincipalCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ GetDataLakePrincipalCommandInput,
23
+ GetDataLakePrincipalCommandOutput,
24
+ LakeFormationClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ ...[input]: [] | [GetDataLakePrincipalCommandInput]
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ GetDataLakePrincipalCommandInput,
32
+ GetDataLakePrincipalCommandOutput,
33
+ LakeFormationClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class GetDataLakePrincipalCommand extends GetDataLakePrincipalCommand_base {}
@@ -19,6 +19,7 @@ export * from "./DescribeResourceCommand";
19
19
  export * from "./DescribeTransactionCommand";
20
20
  export * from "./ExtendTransactionCommand";
21
21
  export * from "./GetDataCellsFilterCommand";
22
+ export * from "./GetDataLakePrincipalCommand";
22
23
  export * from "./GetDataLakeSettingsCommand";
23
24
  export * from "./GetEffectivePermissionsForPathCommand";
24
25
  export * from "./GetLFTagCommand";
@@ -411,6 +411,10 @@ export interface GetDataCellsFilterRequest {
411
411
  export interface GetDataCellsFilterResponse {
412
412
  DataCellsFilter?: DataCellsFilter;
413
413
  }
414
+ export interface GetDataLakePrincipalRequest {}
415
+ export interface GetDataLakePrincipalResponse {
416
+ Identity?: string;
417
+ }
414
418
  export interface GetDataLakeSettingsRequest {
415
419
  CatalogId?: string;
416
420
  }
@@ -90,6 +90,10 @@ import {
90
90
  GetDataCellsFilterCommandInput,
91
91
  GetDataCellsFilterCommandOutput,
92
92
  } from "../commands/GetDataCellsFilterCommand";
93
+ import {
94
+ GetDataLakePrincipalCommandInput,
95
+ GetDataLakePrincipalCommandOutput,
96
+ } from "../commands/GetDataLakePrincipalCommand";
93
97
  import {
94
98
  GetDataLakeSettingsCommandInput,
95
99
  GetDataLakeSettingsCommandOutput,
@@ -306,6 +310,10 @@ export declare const se_GetDataCellsFilterCommand: (
306
310
  input: GetDataCellsFilterCommandInput,
307
311
  context: __SerdeContext
308
312
  ) => Promise<__HttpRequest>;
313
+ export declare const se_GetDataLakePrincipalCommand: (
314
+ input: GetDataLakePrincipalCommandInput,
315
+ context: __SerdeContext
316
+ ) => Promise<__HttpRequest>;
309
317
  export declare const se_GetDataLakeSettingsCommand: (
310
318
  input: GetDataLakeSettingsCommandInput,
311
319
  context: __SerdeContext
@@ -522,6 +530,10 @@ export declare const de_GetDataCellsFilterCommand: (
522
530
  output: __HttpResponse,
523
531
  context: __SerdeContext
524
532
  ) => Promise<GetDataCellsFilterCommandOutput>;
533
+ export declare const de_GetDataLakePrincipalCommand: (
534
+ output: __HttpResponse,
535
+ context: __SerdeContext
536
+ ) => Promise<GetDataLakePrincipalCommandOutput>;
525
537
  export declare const de_GetDataLakeSettingsCommand: (
526
538
  output: __HttpResponse,
527
539
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lakeformation",
3
3
  "description": "AWS SDK for JavaScript Lakeformation Client for Node.js, Browser and React Native",
4
- "version": "3.576.0",
4
+ "version": "3.579.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lakeformation",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sso-oidc": "3.576.0",
24
- "@aws-sdk/client-sts": "3.576.0",
23
+ "@aws-sdk/client-sso-oidc": "3.577.0",
24
+ "@aws-sdk/client-sts": "3.577.0",
25
25
  "@aws-sdk/core": "3.576.0",
26
- "@aws-sdk/credential-provider-node": "3.576.0",
27
- "@aws-sdk/middleware-host-header": "3.575.0",
28
- "@aws-sdk/middleware-logger": "3.575.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.575.0",
30
- "@aws-sdk/middleware-user-agent": "3.575.0",
31
- "@aws-sdk/region-config-resolver": "3.575.0",
32
- "@aws-sdk/types": "3.575.0",
33
- "@aws-sdk/util-endpoints": "3.575.0",
34
- "@aws-sdk/util-user-agent-browser": "3.575.0",
35
- "@aws-sdk/util-user-agent-node": "3.575.0",
26
+ "@aws-sdk/credential-provider-node": "3.577.0",
27
+ "@aws-sdk/middleware-host-header": "3.577.0",
28
+ "@aws-sdk/middleware-logger": "3.577.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.577.0",
30
+ "@aws-sdk/middleware-user-agent": "3.577.0",
31
+ "@aws-sdk/region-config-resolver": "3.577.0",
32
+ "@aws-sdk/types": "3.577.0",
33
+ "@aws-sdk/util-endpoints": "3.577.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.577.0",
35
+ "@aws-sdk/util-user-agent-node": "3.577.0",
36
36
  "@smithy/config-resolver": "^3.0.0",
37
37
  "@smithy/core": "^2.0.0",
38
38
  "@smithy/fetch-http-handler": "^3.0.0",