We are excited to announce our new API Documentation.
Protected
Retrieves the current data access role for the given resource registered in Lake Formation.
Use a bare-bones client and the command you need to make an API call.
import { LakeFormationClient, DescribeResourceCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import// const { LakeFormationClient, DescribeResourceCommand } = require("@aws-sdk/client-lakeformation"); // CommonJS importconst client = new LakeFormationClient(config);const input = { // DescribeResourceRequest ResourceArn: "STRING_VALUE", // required};const command = new DescribeResourceCommand(input);const response = await client.send(command);// { // DescribeResourceResponse// ResourceInfo: { // ResourceInfo// ResourceArn: "STRING_VALUE",// RoleArn: "STRING_VALUE",// LastModified: new Date("TIMESTAMP"),// WithFederation: true || false,// HybridAccessEnabled: true || false,// },// };
DescribeResourceCommandInput
DescribeResourceCommandOutput
input
response
config
EntityNotFoundException (client fault)
A specified entity does not exist.
InternalServiceException (server fault)
An internal service error occurred.
InvalidInputException (client fault)
The input provided was not valid.
OperationTimeoutException (client fault)
The operation timed out.
LakeFormationServiceException
Base exception class for all service exceptions from LakeFormation service.
Readonly
Static
Retrieves the current data access role for the given resource registered in Lake Formation.
Example
Use a bare-bones client and the command you need to make an API call.
Param
DescribeResourceCommandInput
Returns
DescribeResourceCommandOutput
See
input
shape.response
shape.config
shape.Throws
EntityNotFoundException (client fault)
A specified entity does not exist.
Throws
InternalServiceException (server fault)
An internal service error occurred.
Throws
InvalidInputException (client fault)
The input provided was not valid.
Throws
OperationTimeoutException (client fault)
The operation timed out.
Throws
LakeFormationServiceException
Base exception class for all service exceptions from LakeFormation service.