describeTags method

Future<DescribeTagsResponse> describeTags({
  1. required List<String> resourceArns,
})

Describes the tags associated with the specified AWS Direct Connect resources.

May throw DirectConnectServerException. May throw DirectConnectClientException.

Parameter resourceArns : The Amazon Resource Names (ARNs) of the resources.

Implementation

Future<DescribeTagsResponse> describeTags({
  required List<String> resourceArns,
}) async {
  ArgumentError.checkNotNull(resourceArns, 'resourceArns');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'OvertureService.DescribeTags'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'resourceArns': resourceArns,
    },
  );

  return DescribeTagsResponse.fromJson(jsonResponse.body);
}