Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DescribeResourceCommandProtected

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.

import { LakeFormationClient, DescribeResourceCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
// const { LakeFormationClient, DescribeResourceCommand } = require("@aws-sdk/client-lakeformation"); // CommonJS import
const 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,
// },
// };

Param

DescribeResourceCommandInput

Returns

DescribeResourceCommandOutput

See

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.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods