LakeFormation / Client / describe_resource
describe_resource#
- LakeFormation.Client.describe_resource(**kwargs)#
Retrieves the current data access role for the given resource registered in Lake Formation.
See also: AWS API Documentation
Request Syntax
response = client.describe_resource( ResourceArn='string' )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The resource ARN.
- Return type:
dict
- Returns:
Response Syntax
{ 'ResourceInfo': { 'ResourceArn': 'string', 'RoleArn': 'string', 'LastModified': datetime(2015, 1, 1), 'WithFederation': True|False } }
Response Structure
(dict) –
ResourceInfo (dict) –
A structure containing information about an Lake Formation resource.
ResourceArn (string) –
The Amazon Resource Name (ARN) of the resource.
RoleArn (string) –
The IAM role that registered a resource.
LastModified (datetime) –
The date and time the resource was last modified.
WithFederation (boolean) –
Whether or not the resource is a federated resource.
Exceptions
LakeFormation.Client.exceptions.InvalidInputException
LakeFormation.Client.exceptions.InternalServiceException
LakeFormation.Client.exceptions.OperationTimeoutException
LakeFormation.Client.exceptions.EntityNotFoundException