getBotAlias method

Future<GetBotAliasResponse> getBotAlias({
  1. required String botName,
  2. required String name,
})

Returns information about an Amazon Lex bot alias. For more information about aliases, see versioning-aliases.

This operation requires permissions for the lex:GetBotAlias action.

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

Parameter botName : The name of the bot.

Parameter name : The name of the bot alias. The name is case sensitive.

Implementation

Future<GetBotAliasResponse> getBotAlias({
  required String botName,
  required String name,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/bots/${Uri.encodeComponent(botName)}/aliases/${Uri.encodeComponent(name)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetBotAliasResponse.fromJson(response);
}