UpdateResource - Lake Formation

UpdateResource

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

Request Syntax

{ "HybridAccessEnabled": boolean, "ResourceArn": "string", "RoleArn": "string", "WithFederation": boolean }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

HybridAccessEnabled

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.

Type: Boolean

Required: No

ResourceArn

The resource ARN.

Type: String

Required: Yes

RoleArn

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

Type: String

Pattern: arn:aws:iam::[0-9]*:role/.*

Required: Yes

WithFederation

Whether or not the resource is a federated resource.

Type: Boolean

Required: No

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

EntityNotFoundException

A specified entity does not exist.

HTTP Status Code: 400

InternalServiceException

An internal service error occurred.

HTTP Status Code: 500

InvalidInputException

The input provided was not valid.

HTTP Status Code: 400

OperationTimeoutException

The operation timed out.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: