listTagsForResource method

Future<ListTagsForResourceOutput> listTagsForResource({
  1. required String resourceARN,
  2. String? nextToken,
})

Returns a list of tags associated with the specified signaling channel.

May throw InvalidArgumentException. May throw ClientLimitExceededException. May throw ResourceNotFoundException. May throw AccessDeniedException.

Parameter resourceARN : The Amazon Resource Name (ARN) of the signaling channel for which you want to list tags.

Parameter nextToken : If you specify this parameter and the result of a ListTagsForResource call is truncated, the response includes a token that you can use in the next request to fetch the next batch of tags.

Implementation

Future<ListTagsForResourceOutput> listTagsForResource({
  required String resourceARN,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(resourceARN, 'resourceARN');
  _s.validateStringLength(
    'resourceARN',
    resourceARN,
    1,
    1024,
    isRequired: true,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    0,
    512,
  );
  final $payload = <String, dynamic>{
    'ResourceARN': resourceARN,
    if (nextToken != null) 'NextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/ListTagsForResource',
    exceptionFnMap: _exceptionFns,
  );
  return ListTagsForResourceOutput.fromJson(response);
}