listCrossAccountResourceAccounts method

Future<ListCrossAccountResourceAccountsResponse> listCrossAccountResourceAccounts()

List the accounts that have cross-account resources.

For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide.

May throw AccessDeniedException. May throw InternalServiceErrorException.

Implementation

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

  return ListCrossAccountResourceAccountsResponse.fromJson(jsonResponse.body);
}