listTags method

Future<ListTagsResponse> listTags({
  1. required String arn,
})

Returns all tags for the given domain.

May throw BaseException. May throw ResourceNotFoundException. May throw ValidationException. May throw InternalException.

Parameter arn : Specify the ARN of the domain that the tags you want to view are attached to.

Implementation

Future<ListTagsResponse> listTags({
  required String arn,
}) async {
  ArgumentError.checkNotNull(arn, 'arn');
  _s.validateStringLength(
    'arn',
    arn,
    20,
    2048,
    isRequired: true,
  );
  final $query = <String, List<String>>{
    'arn': [arn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/2021-01-01/tags/',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListTagsResponse.fromJson(response);
}