describeCrossAccountAccessRole method

Future<DescribeCrossAccountAccessRoleResponse> describeCrossAccountAccessRole()

Describes the IAM role that enables Amazon Inspector to access your AWS account.

May throw InternalException.

Implementation

Future<DescribeCrossAccountAccessRoleResponse>
    describeCrossAccountAccessRole() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'InspectorService.DescribeCrossAccountAccessRole'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return DescribeCrossAccountAccessRoleResponse.fromJson(jsonResponse.body);
}