- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
GetDataLakePrincipalCommand
Returns the identity of the invoking principal.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { LakeFormationClient, GetDataLakePrincipalCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
// const { LakeFormationClient, GetDataLakePrincipalCommand } = require("@aws-sdk/client-lakeformation"); // CommonJS import
const client = new LakeFormationClient(config);
const input = {};
const command = new GetDataLakePrincipalCommand(input);
const response = await client.send(command);
// { // GetDataLakePrincipalResponse
// Identity: "STRING_VALUE",
// };
GetDataLakePrincipalCommand Input
See GetDataLakePrincipalCommandInput for more details
GetDataLakePrincipalCommandInput extends GetDataLakePrincipalRequest
GetDataLakePrincipalCommand Output
See GetDataLakePrincipalCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Identity | string | undefined | A unique identifier of the invoking principal. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | Access to a resource was denied. |
InternalServiceException | server | An internal service error occurred. |
OperationTimeoutException | client | The operation timed out. |
LakeFormationServiceException | Base exception class for all service exceptions from LakeFormation service. |