amazonka-lex-models-1.6.1: 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.GetBotChannelAssociation

Contents

Description

Returns information about the association between an Amazon Lex bot and a messaging platform.

This operation requires permissions for the lex:GetBotChannelAssociation action.

Synopsis

Creating a Request

getBotChannelAssociation Source #

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

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

  • gName - The name of the association between the bot and the channel. The name is case sensitive.
  • gBotName - The name of the Amazon Lex bot.
  • gBotAlias - An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.

data GetBotChannelAssociation Source #

See: getBotChannelAssociation smart constructor.

Instances
Eq GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Data GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Methods

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

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

toConstr :: GetBotChannelAssociation -> Constr #

dataTypeOf :: GetBotChannelAssociation -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Show GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Generic GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Associated Types

type Rep GetBotChannelAssociation :: Type -> Type #

Hashable GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

AWSRequest GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Associated Types

type Rs GetBotChannelAssociation :: Type #

ToHeaders GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

ToPath GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

ToQuery GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

NFData GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

type Rep GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

type Rep GetBotChannelAssociation = D1 (MetaData "GetBotChannelAssociation" "Network.AWS.LexModels.GetBotChannelAssociation" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "GetBotChannelAssociation'" PrefixI True) (S1 (MetaSel (Just "_gName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_gBotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_gBotAlias") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetBotChannelAssociation Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Request Lenses

gName :: Lens' GetBotChannelAssociation Text Source #

The name of the association between the bot and the channel. The name is case sensitive.

gBotName :: Lens' GetBotChannelAssociation Text Source #

The name of the Amazon Lex bot.

gBotAlias :: Lens' GetBotChannelAssociation Text Source #

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

Destructuring the Response

getBotChannelAssociationResponse Source #

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

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

  • gbcarsFailureReason - If status is FAILED , Amazon Lex provides the reason that it failed to create the association.
  • gbcarsStatus - The status of the bot channel. * CREATED - The channel has been created and is ready for use. * IN_PROGRESS - Channel creation is in progress. * FAILED - There was an error creating the channel. For information about the reason for the failure, see the failureReason field.
  • gbcarsBotAlias - An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
  • gbcarsBotName - The name of the Amazon Lex bot.
  • gbcarsBotConfiguration - Provides information that the messaging platform needs to communicate with the Amazon Lex bot.
  • gbcarsCreatedDate - The date that the association between the bot and the channel was created.
  • gbcarsName - The name of the association between the bot and the channel.
  • gbcarsType - The type of the messaging platform.
  • gbcarsDescription - A description of the association between the bot and the channel.
  • gbcarsResponseStatus - -- | The response status code.

data GetBotChannelAssociationResponse Source #

See: getBotChannelAssociationResponse smart constructor.

Instances
Eq GetBotChannelAssociationResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Data GetBotChannelAssociationResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Methods

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

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

toConstr :: GetBotChannelAssociationResponse -> Constr #

dataTypeOf :: GetBotChannelAssociationResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show GetBotChannelAssociationResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Generic GetBotChannelAssociationResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

Associated Types

type Rep GetBotChannelAssociationResponse :: Type -> Type #

NFData GetBotChannelAssociationResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

type Rep GetBotChannelAssociationResponse Source # 
Instance details

Defined in Network.AWS.LexModels.GetBotChannelAssociation

type Rep GetBotChannelAssociationResponse = D1 (MetaData "GetBotChannelAssociationResponse" "Network.AWS.LexModels.GetBotChannelAssociation" "amazonka-lex-models-1.6.1-16JSA2D34IH7p8RxcjidTj" False) (C1 (MetaCons "GetBotChannelAssociationResponse'" PrefixI True) (((S1 (MetaSel (Just "_gbcarsFailureReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gbcarsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ChannelStatus))) :*: (S1 (MetaSel (Just "_gbcarsBotAlias") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gbcarsBotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gbcarsBotConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive (Map Text Text))))))) :*: ((S1 (MetaSel (Just "_gbcarsCreatedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 (MetaSel (Just "_gbcarsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_gbcarsType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ChannelType)) :*: (S1 (MetaSel (Just "_gbcarsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gbcarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

gbcarsFailureReason :: Lens' GetBotChannelAssociationResponse (Maybe Text) Source #

If status is FAILED , Amazon Lex provides the reason that it failed to create the association.

gbcarsStatus :: Lens' GetBotChannelAssociationResponse (Maybe ChannelStatus) Source #

The status of the bot channel. * CREATED - The channel has been created and is ready for use. * IN_PROGRESS - Channel creation is in progress. * FAILED - There was an error creating the channel. For information about the reason for the failure, see the failureReason field.

gbcarsBotAlias :: Lens' GetBotChannelAssociationResponse (Maybe Text) Source #

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

gbcarsBotConfiguration :: Lens' GetBotChannelAssociationResponse (Maybe (HashMap Text Text)) Source #

Provides information that the messaging platform needs to communicate with the Amazon Lex bot.

gbcarsCreatedDate :: Lens' GetBotChannelAssociationResponse (Maybe UTCTime) Source #

The date that the association between the bot and the channel was created.

gbcarsName :: Lens' GetBotChannelAssociationResponse (Maybe Text) Source #

The name of the association between the bot and the channel.

gbcarsDescription :: Lens' GetBotChannelAssociationResponse (Maybe Text) Source #

A description of the association between the bot and the channel.