UpdateResourceCommand

Updates the data access role used for vending access to the given (registered) resource in Lake Formation.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { LakeFormationClient, UpdateResourceCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
// const { LakeFormationClient, UpdateResourceCommand } = require("@aws-sdk/client-lakeformation"); // CommonJS import
const client = new LakeFormationClient(config);
const input = { // UpdateResourceRequest
  RoleArn: "STRING_VALUE", // required
  ResourceArn: "STRING_VALUE", // required
  WithFederation: true || false,
  HybridAccessEnabled: true || false,
};
const command = new UpdateResourceCommand(input);
const response = await client.send(command);
// {};

UpdateResourceCommand Input

See UpdateResourceCommandInput for more details

Parameter
Type
Description
ResourceArn
Required
string | undefined

The resource ARN.

RoleArn
Required
string | undefined

The new role to use for the given resource registered in Lake Formation.

HybridAccessEnabled
boolean | undefined

Specifies whether the data access of tables pointing to the location can be managed by both Lake Formation permissions as well as Amazon S3 bucket policies.

WithFederation
boolean | undefined

Whether or not the resource is a federated resource.

UpdateResourceCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
EntityNotFoundException
client

A specified entity does not exist.

InternalServiceException
server

An internal service error occurred.

InvalidInputException
client

The input provided was not valid.

OperationTimeoutException
client

The operation timed out.

LakeFormationServiceException
Base exception class for all service exceptions from LakeFormation service.