amazonka-connect-2.0: Amazon Connect Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Connect.ListBots

Description

This API is in preview release for Amazon Connect and is subject to change.

For the specified version of Amazon Lex, returns a paginated list of all the Amazon Lex bots currently associated with the instance. Use this API to returns both Amazon Lex V1 and V2 bots.

This operation returns paginated results.

Synopsis

Creating a Request

data ListBots Source #

See: newListBots smart constructor.

Constructors

ListBots' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return per page.

  • nextToken :: Maybe Text

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

  • instanceId :: Text

    The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

  • lexVersion :: LexVersion

    The version of Amazon Lex or Amazon Lex V2.

Instances

Instances details
ToHeaders ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

Methods

toHeaders :: ListBots -> [Header] #

ToPath ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

ToQuery ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

AWSPager ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

AWSRequest ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

Associated Types

type AWSResponse ListBots #

Generic ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

Associated Types

type Rep ListBots :: Type -> Type #

Methods

from :: ListBots -> Rep ListBots x #

to :: Rep ListBots x -> ListBots #

Read ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

Show ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

NFData ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

Methods

rnf :: ListBots -> () #

Eq ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

Hashable ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

Methods

hashWithSalt :: Int -> ListBots -> Int #

hash :: ListBots -> Int #

type AWSResponse ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

type Rep ListBots Source # 
Instance details

Defined in Amazonka.Connect.ListBots

type Rep ListBots = D1 ('MetaData "ListBots" "Amazonka.Connect.ListBots" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "ListBots'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "lexVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LexVersion))))

newListBots Source #

Create a value of ListBots 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:maxResults:ListBots', listBots_maxResults - The maximum number of results to return per page.

ListBots, listBots_nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

ListBots, listBots_instanceId - The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

$sel:lexVersion:ListBots', listBots_lexVersion - The version of Amazon Lex or Amazon Lex V2.

Request Lenses

listBots_maxResults :: Lens' ListBots (Maybe Natural) Source #

The maximum number of results to return per page.

listBots_nextToken :: Lens' ListBots (Maybe Text) Source #

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

listBots_instanceId :: Lens' ListBots Text Source #

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

listBots_lexVersion :: Lens' ListBots LexVersion Source #

The version of Amazon Lex or Amazon Lex V2.

Destructuring the Response

data ListBotsResponse Source #

See: newListBotsResponse smart constructor.

Constructors

ListBotsResponse' 

Fields

  • lexBots :: Maybe [LexBotConfig]

    The names and Amazon Web Services Regions of the Amazon Lex or Amazon Lex V2 bots associated with the specified instance.

  • nextToken :: Maybe Text

    If there are additional results, this is the token for the next set of results.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListBotsResponse Source # 
Instance details

Defined in Amazonka.Connect.ListBots

Associated Types

type Rep ListBotsResponse :: Type -> Type #

Read ListBotsResponse Source # 
Instance details

Defined in Amazonka.Connect.ListBots

Show ListBotsResponse Source # 
Instance details

Defined in Amazonka.Connect.ListBots

NFData ListBotsResponse Source # 
Instance details

Defined in Amazonka.Connect.ListBots

Methods

rnf :: ListBotsResponse -> () #

Eq ListBotsResponse Source # 
Instance details

Defined in Amazonka.Connect.ListBots

type Rep ListBotsResponse Source # 
Instance details

Defined in Amazonka.Connect.ListBots

type Rep ListBotsResponse = D1 ('MetaData "ListBotsResponse" "Amazonka.Connect.ListBots" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "ListBotsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "lexBots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LexBotConfig])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListBotsResponse Source #

Create a value of ListBotsResponse 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:lexBots:ListBotsResponse', listBotsResponse_lexBots - The names and Amazon Web Services Regions of the Amazon Lex or Amazon Lex V2 bots associated with the specified instance.

ListBots, listBotsResponse_nextToken - If there are additional results, this is the token for the next set of results.

$sel:httpStatus:ListBotsResponse', listBotsResponse_httpStatus - The response's http status code.

Response Lenses

listBotsResponse_lexBots :: Lens' ListBotsResponse (Maybe [LexBotConfig]) Source #

The names and Amazon Web Services Regions of the Amazon Lex or Amazon Lex V2 bots associated with the specified instance.

listBotsResponse_nextToken :: Lens' ListBotsResponse (Maybe Text) Source #

If there are additional results, this is the token for the next set of results.

listBotsResponse_httpStatus :: Lens' ListBotsResponse Int Source #

The response's http status code.