amazonka-lex-models-1.6.0: Amazon Lex Model Building Service SDK.

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

Network.AWS.LexModels.GetBotChannelAssociations

Contents

Description

Returns a list of all of the channels associated with the specified bot.

The GetBotChannelAssociations operation requires permissions for the lex:GetBotChannelAssociations action.

This operation returns paginated results.

Synopsis

Creating a Request

getBotChannelAssociations Source #

Creates a value of GetBotChannelAssociations with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gbcaNameContains - Substring to match in channel association names. An association will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." To return all bot channel associations, use a hyphen ("-") as the nameContains parameter.
  • gbcaNextToken - A pagination token for fetching the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request.
  • gbcaMaxResults - The maximum number of associations to return in the response. The default is 50.
  • gbcaBotName - The name of the Amazon Lex bot in the association.
  • gbcaBotAlias - An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.

data GetBotChannelAssociations Source #

See: getBotChannelAssociations smart constructor.

Instances

Eq GetBotChannelAssociations Source # 
Data GetBotChannelAssociations Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetBotChannelAssociations -> c GetBotChannelAssociations #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetBotChannelAssociations #

toConstr :: GetBotChannelAssociations -> Constr #

dataTypeOf :: GetBotChannelAssociations -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetBotChannelAssociations) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetBotChannelAssociations) #

gmapT :: (forall b. Data b => b -> b) -> GetBotChannelAssociations -> GetBotChannelAssociations #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetBotChannelAssociations -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetBotChannelAssociations -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetBotChannelAssociations -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetBotChannelAssociations -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetBotChannelAssociations -> m GetBotChannelAssociations #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBotChannelAssociations -> m GetBotChannelAssociations #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBotChannelAssociations -> m GetBotChannelAssociations #

Read GetBotChannelAssociations Source # 
Show GetBotChannelAssociations Source # 
Generic GetBotChannelAssociations Source # 
Hashable GetBotChannelAssociations Source # 
NFData GetBotChannelAssociations Source # 
AWSPager GetBotChannelAssociations Source # 
AWSRequest GetBotChannelAssociations Source # 
ToHeaders GetBotChannelAssociations Source # 
ToPath GetBotChannelAssociations Source # 
ToQuery GetBotChannelAssociations Source # 
type Rep GetBotChannelAssociations Source # 
type Rep GetBotChannelAssociations = D1 * (MetaData "GetBotChannelAssociations" "Network.AWS.LexModels.GetBotChannelAssociations" "amazonka-lex-models-1.6.0-Iv3mghdDvOI9Mj0nI0DuS4" False) (C1 * (MetaCons "GetBotChannelAssociations'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gbcaNameContains") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gbcaNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gbcaMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gbcaBotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_gbcaBotAlias") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs GetBotChannelAssociations Source # 

Request Lenses

gbcaNameContains :: Lens' GetBotChannelAssociations (Maybe Text) Source #

Substring to match in channel association names. An association will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." To return all bot channel associations, use a hyphen ("-") as the nameContains parameter.

gbcaNextToken :: Lens' GetBotChannelAssociations (Maybe Text) Source #

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

gbcaMaxResults :: Lens' GetBotChannelAssociations (Maybe Natural) Source #

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

gbcaBotName :: Lens' GetBotChannelAssociations Text Source #

The name of the Amazon Lex bot in the association.

gbcaBotAlias :: Lens' GetBotChannelAssociations Text Source #

An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.

Destructuring the Response

getBotChannelAssociationsResponse Source #

Creates a value of GetBotChannelAssociationsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gbcasrsBotChannelAssociations - An array of objects, one for each association, that provides information about the Amazon Lex bot and its association with the channel.
  • gbcasrsNextToken - A pagination token that fetches the next page of associations. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of associations, specify the pagination token in the next request.
  • gbcasrsResponseStatus - -- | The response status code.

data GetBotChannelAssociationsResponse Source #

See: getBotChannelAssociationsResponse smart constructor.

Instances

Eq GetBotChannelAssociationsResponse Source # 
Data GetBotChannelAssociationsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetBotChannelAssociationsResponse -> c GetBotChannelAssociationsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetBotChannelAssociationsResponse #

toConstr :: GetBotChannelAssociationsResponse -> Constr #

dataTypeOf :: GetBotChannelAssociationsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetBotChannelAssociationsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetBotChannelAssociationsResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetBotChannelAssociationsResponse -> GetBotChannelAssociationsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetBotChannelAssociationsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetBotChannelAssociationsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetBotChannelAssociationsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetBotChannelAssociationsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetBotChannelAssociationsResponse -> m GetBotChannelAssociationsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBotChannelAssociationsResponse -> m GetBotChannelAssociationsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBotChannelAssociationsResponse -> m GetBotChannelAssociationsResponse #

Show GetBotChannelAssociationsResponse Source # 
Generic GetBotChannelAssociationsResponse Source # 
NFData GetBotChannelAssociationsResponse Source # 
type Rep GetBotChannelAssociationsResponse Source # 
type Rep GetBotChannelAssociationsResponse = D1 * (MetaData "GetBotChannelAssociationsResponse" "Network.AWS.LexModels.GetBotChannelAssociations" "amazonka-lex-models-1.6.0-Iv3mghdDvOI9Mj0nI0DuS4" False) (C1 * (MetaCons "GetBotChannelAssociationsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gbcasrsBotChannelAssociations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [BotChannelAssociation]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gbcasrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gbcasrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

gbcasrsBotChannelAssociations :: Lens' GetBotChannelAssociationsResponse [BotChannelAssociation] Source #

An array of objects, one for each association, that provides information about the Amazon Lex bot and its association with the channel.

gbcasrsNextToken :: Lens' GetBotChannelAssociationsResponse (Maybe Text) Source #

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