listTagsForResource method

Future<ListTagsForResourceResponse> listTagsForResource({
  1. required String resourceArn,
})

Gets a list of tags associated with the specified resource. Only bots, bot aliases, and bot channels can have tags associated with them.

May throw NotFoundException. May throw BadRequestException. May throw InternalFailureException. May throw LimitExceededException.

Parameter resourceArn : The Amazon Resource Name (ARN) of the resource to get a list of tags for.

Implementation

Future<ListTagsForResourceResponse> listTagsForResource({
  required String resourceArn,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  _s.validateStringLength(
    'resourceArn',
    resourceArn,
    1,
    1011,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/tags/${Uri.encodeComponent(resourceArn)}',
    exceptionFnMap: _exceptionFns,
  );
  return ListTagsForResourceResponse.fromJson(response);
}