describeResource method

Future<DescribeResourceResponse> describeResource({
  1. required String resourceArn,
})

Retrieves the current data access role for the given resource registered in AWS Lake Formation.

May throw InvalidInputException. May throw InternalServiceException. May throw OperationTimeoutException. May throw EntityNotFoundException.

Parameter resourceArn : The resource ARN.

Implementation

Future<DescribeResourceResponse> describeResource({
  required String resourceArn,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSLakeFormation.DescribeResource'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceArn': resourceArn,
    },
  );

  return DescribeResourceResponse.fromJson(jsonResponse.body);
}