libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LexModels.GetBotAliases

Description

Returns a list of aliases for a specified Amazon Lex bot.

This operation requires permissions for the lex:GetBotAliases action.

This operation returns paginated results.

Synopsis

Creating a Request

data GetBotAliases Source #

See: newGetBotAliases smart constructor.

Constructors

GetBotAliases' 

Fields

  • nameContains :: Maybe Text

    Substring to match in bot alias names. An alias will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

  • nextToken :: Maybe Text

    A pagination token for fetching the next page of aliases. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token in the next request.

  • maxResults :: Maybe Natural

    The maximum number of aliases to return in the response. The default is 50. .

  • botName :: Text

    The name of the bot.

Instances

Instances details
Eq GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Read GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Show GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Generic GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Associated Types

type Rep GetBotAliases :: Type -> Type #

NFData GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Methods

rnf :: GetBotAliases -> () #

Hashable GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

AWSPager GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

AWSRequest GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Associated Types

type AWSResponse GetBotAliases #

ToHeaders GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

ToPath GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

ToQuery GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

type Rep GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

type Rep GetBotAliases = D1 ('MetaData "GetBotAliases" "Amazonka.LexModels.GetBotAliases" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "GetBotAliases'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nameContains") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "botName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse GetBotAliases Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

newGetBotAliases Source #

Create a value of GetBotAliases with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nameContains:GetBotAliases', getBotAliases_nameContains - Substring to match in bot alias names. An alias will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

$sel:nextToken:GetBotAliases', getBotAliases_nextToken - A pagination token for fetching the next page of aliases. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token in the next request.

$sel:maxResults:GetBotAliases', getBotAliases_maxResults - The maximum number of aliases to return in the response. The default is 50. .

$sel:botName:GetBotAliases', getBotAliases_botName - The name of the bot.

Request Lenses

getBotAliases_nameContains :: Lens' GetBotAliases (Maybe Text) Source #

Substring to match in bot alias names. An alias will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."

getBotAliases_nextToken :: Lens' GetBotAliases (Maybe Text) Source #

A pagination token for fetching the next page of aliases. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token in the next request.

getBotAliases_maxResults :: Lens' GetBotAliases (Maybe Natural) Source #

The maximum number of aliases to return in the response. The default is 50. .

Destructuring the Response

data GetBotAliasesResponse Source #

See: newGetBotAliasesResponse smart constructor.

Constructors

GetBotAliasesResponse' 

Fields

  • nextToken :: Maybe Text

    A pagination token for fetching next page of aliases. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token in the next request.

  • botAliases :: Maybe [BotAliasMetadata]

    An array of BotAliasMetadata objects, each describing a bot alias.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetBotAliasesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Read GetBotAliasesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Show GetBotAliasesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Generic GetBotAliasesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Associated Types

type Rep GetBotAliasesResponse :: Type -> Type #

NFData GetBotAliasesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

Methods

rnf :: GetBotAliasesResponse -> () #

type Rep GetBotAliasesResponse Source # 
Instance details

Defined in Amazonka.LexModels.GetBotAliases

type Rep GetBotAliasesResponse = D1 ('MetaData "GetBotAliasesResponse" "Amazonka.LexModels.GetBotAliases" "libZSservicesZSamazonka-lex-modelsZSamazonka-lex-models" 'False) (C1 ('MetaCons "GetBotAliasesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "botAliases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BotAliasMetadata])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetBotAliasesResponse Source #

Create a value of GetBotAliasesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:GetBotAliases', getBotAliasesResponse_nextToken - A pagination token for fetching next page of aliases. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token in the next request.

$sel:botAliases:GetBotAliasesResponse', getBotAliasesResponse_botAliases - An array of BotAliasMetadata objects, each describing a bot alias.

$sel:httpStatus:GetBotAliasesResponse', getBotAliasesResponse_httpStatus - The response's http status code.

Response Lenses

getBotAliasesResponse_nextToken :: Lens' GetBotAliasesResponse (Maybe Text) Source #

A pagination token for fetching next page of aliases. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of aliases, specify the pagination token in the next request.

getBotAliasesResponse_botAliases :: Lens' GetBotAliasesResponse (Maybe [BotAliasMetadata]) Source #

An array of BotAliasMetadata objects, each describing a bot alias.