{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.LexV2Models.DescribeBotVersion
(
DescribeBotVersion (..),
newDescribeBotVersion,
describeBotVersion_botId,
describeBotVersion_botVersion,
DescribeBotVersionResponse (..),
newDescribeBotVersionResponse,
describeBotVersionResponse_botId,
describeBotVersionResponse_botName,
describeBotVersionResponse_botStatus,
describeBotVersionResponse_botVersion,
describeBotVersionResponse_creationDateTime,
describeBotVersionResponse_dataPrivacy,
describeBotVersionResponse_description,
describeBotVersionResponse_failureReasons,
describeBotVersionResponse_idleSessionTTLInSeconds,
describeBotVersionResponse_roleArn,
describeBotVersionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.LexV2Models.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeBotVersion = DescribeBotVersion'
{
DescribeBotVersion -> Text
botId :: Prelude.Text,
DescribeBotVersion -> Text
botVersion :: Prelude.Text
}
deriving (DescribeBotVersion -> DescribeBotVersion -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBotVersion -> DescribeBotVersion -> Bool
$c/= :: DescribeBotVersion -> DescribeBotVersion -> Bool
== :: DescribeBotVersion -> DescribeBotVersion -> Bool
$c== :: DescribeBotVersion -> DescribeBotVersion -> Bool
Prelude.Eq, ReadPrec [DescribeBotVersion]
ReadPrec DescribeBotVersion
Int -> ReadS DescribeBotVersion
ReadS [DescribeBotVersion]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBotVersion]
$creadListPrec :: ReadPrec [DescribeBotVersion]
readPrec :: ReadPrec DescribeBotVersion
$creadPrec :: ReadPrec DescribeBotVersion
readList :: ReadS [DescribeBotVersion]
$creadList :: ReadS [DescribeBotVersion]
readsPrec :: Int -> ReadS DescribeBotVersion
$creadsPrec :: Int -> ReadS DescribeBotVersion
Prelude.Read, Int -> DescribeBotVersion -> ShowS
[DescribeBotVersion] -> ShowS
DescribeBotVersion -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBotVersion] -> ShowS
$cshowList :: [DescribeBotVersion] -> ShowS
show :: DescribeBotVersion -> String
$cshow :: DescribeBotVersion -> String
showsPrec :: Int -> DescribeBotVersion -> ShowS
$cshowsPrec :: Int -> DescribeBotVersion -> ShowS
Prelude.Show, forall x. Rep DescribeBotVersion x -> DescribeBotVersion
forall x. DescribeBotVersion -> Rep DescribeBotVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeBotVersion x -> DescribeBotVersion
$cfrom :: forall x. DescribeBotVersion -> Rep DescribeBotVersion x
Prelude.Generic)
newDescribeBotVersion ::
Prelude.Text ->
Prelude.Text ->
DescribeBotVersion
newDescribeBotVersion :: Text -> Text -> DescribeBotVersion
newDescribeBotVersion Text
pBotId_ Text
pBotVersion_ =
DescribeBotVersion'
{ $sel:botId:DescribeBotVersion' :: Text
botId = Text
pBotId_,
$sel:botVersion:DescribeBotVersion' :: Text
botVersion = Text
pBotVersion_
}
describeBotVersion_botId :: Lens.Lens' DescribeBotVersion Prelude.Text
describeBotVersion_botId :: Lens' DescribeBotVersion Text
describeBotVersion_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersion' {Text
botId :: Text
$sel:botId:DescribeBotVersion' :: DescribeBotVersion -> Text
botId} -> Text
botId) (\s :: DescribeBotVersion
s@DescribeBotVersion' {} Text
a -> DescribeBotVersion
s {$sel:botId:DescribeBotVersion' :: Text
botId = Text
a} :: DescribeBotVersion)
describeBotVersion_botVersion :: Lens.Lens' DescribeBotVersion Prelude.Text
describeBotVersion_botVersion :: Lens' DescribeBotVersion Text
describeBotVersion_botVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersion' {Text
botVersion :: Text
$sel:botVersion:DescribeBotVersion' :: DescribeBotVersion -> Text
botVersion} -> Text
botVersion) (\s :: DescribeBotVersion
s@DescribeBotVersion' {} Text
a -> DescribeBotVersion
s {$sel:botVersion:DescribeBotVersion' :: Text
botVersion = Text
a} :: DescribeBotVersion)
instance Core.AWSRequest DescribeBotVersion where
type
AWSResponse DescribeBotVersion =
DescribeBotVersionResponse
request :: (Service -> Service)
-> DescribeBotVersion -> Request DescribeBotVersion
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeBotVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeBotVersion)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe BotStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe DataPrivacy
-> Maybe Text
-> Maybe [Text]
-> Maybe Natural
-> Maybe Text
-> Int
-> DescribeBotVersionResponse
DescribeBotVersionResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"botId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"botName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"botStatus")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"botVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"creationDateTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"dataPrivacy")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"failureReasons" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"idleSessionTTLInSeconds")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"roleArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeBotVersion where
hashWithSalt :: Int -> DescribeBotVersion -> Int
hashWithSalt Int
_salt DescribeBotVersion' {Text
botVersion :: Text
botId :: Text
$sel:botVersion:DescribeBotVersion' :: DescribeBotVersion -> Text
$sel:botId:DescribeBotVersion' :: DescribeBotVersion -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
botId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
botVersion
instance Prelude.NFData DescribeBotVersion where
rnf :: DescribeBotVersion -> ()
rnf DescribeBotVersion' {Text
botVersion :: Text
botId :: Text
$sel:botVersion:DescribeBotVersion' :: DescribeBotVersion -> Text
$sel:botId:DescribeBotVersion' :: DescribeBotVersion -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
botId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
botVersion
instance Data.ToHeaders DescribeBotVersion where
toHeaders :: DescribeBotVersion -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath DescribeBotVersion where
toPath :: DescribeBotVersion -> ByteString
toPath DescribeBotVersion' {Text
botVersion :: Text
botId :: Text
$sel:botVersion:DescribeBotVersion' :: DescribeBotVersion -> Text
$sel:botId:DescribeBotVersion' :: DescribeBotVersion -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/bots/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
botId,
ByteString
"/botversions/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
botVersion,
ByteString
"/"
]
instance Data.ToQuery DescribeBotVersion where
toQuery :: DescribeBotVersion -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DescribeBotVersionResponse = DescribeBotVersionResponse'
{
DescribeBotVersionResponse -> Maybe Text
botId :: Prelude.Maybe Prelude.Text,
DescribeBotVersionResponse -> Maybe Text
botName :: Prelude.Maybe Prelude.Text,
DescribeBotVersionResponse -> Maybe BotStatus
botStatus :: Prelude.Maybe BotStatus,
DescribeBotVersionResponse -> Maybe Text
botVersion :: Prelude.Maybe Prelude.Text,
DescribeBotVersionResponse -> Maybe POSIX
creationDateTime :: Prelude.Maybe Data.POSIX,
DescribeBotVersionResponse -> Maybe DataPrivacy
dataPrivacy :: Prelude.Maybe DataPrivacy,
DescribeBotVersionResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeBotVersionResponse -> Maybe [Text]
failureReasons :: Prelude.Maybe [Prelude.Text],
DescribeBotVersionResponse -> Maybe Natural
idleSessionTTLInSeconds :: Prelude.Maybe Prelude.Natural,
DescribeBotVersionResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
DescribeBotVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeBotVersionResponse -> DescribeBotVersionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBotVersionResponse -> DescribeBotVersionResponse -> Bool
$c/= :: DescribeBotVersionResponse -> DescribeBotVersionResponse -> Bool
== :: DescribeBotVersionResponse -> DescribeBotVersionResponse -> Bool
$c== :: DescribeBotVersionResponse -> DescribeBotVersionResponse -> Bool
Prelude.Eq, ReadPrec [DescribeBotVersionResponse]
ReadPrec DescribeBotVersionResponse
Int -> ReadS DescribeBotVersionResponse
ReadS [DescribeBotVersionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBotVersionResponse]
$creadListPrec :: ReadPrec [DescribeBotVersionResponse]
readPrec :: ReadPrec DescribeBotVersionResponse
$creadPrec :: ReadPrec DescribeBotVersionResponse
readList :: ReadS [DescribeBotVersionResponse]
$creadList :: ReadS [DescribeBotVersionResponse]
readsPrec :: Int -> ReadS DescribeBotVersionResponse
$creadsPrec :: Int -> ReadS DescribeBotVersionResponse
Prelude.Read, Int -> DescribeBotVersionResponse -> ShowS
[DescribeBotVersionResponse] -> ShowS
DescribeBotVersionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBotVersionResponse] -> ShowS
$cshowList :: [DescribeBotVersionResponse] -> ShowS
show :: DescribeBotVersionResponse -> String
$cshow :: DescribeBotVersionResponse -> String
showsPrec :: Int -> DescribeBotVersionResponse -> ShowS
$cshowsPrec :: Int -> DescribeBotVersionResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeBotVersionResponse x -> DescribeBotVersionResponse
forall x.
DescribeBotVersionResponse -> Rep DescribeBotVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeBotVersionResponse x -> DescribeBotVersionResponse
$cfrom :: forall x.
DescribeBotVersionResponse -> Rep DescribeBotVersionResponse x
Prelude.Generic)
newDescribeBotVersionResponse ::
Prelude.Int ->
DescribeBotVersionResponse
newDescribeBotVersionResponse :: Int -> DescribeBotVersionResponse
newDescribeBotVersionResponse Int
pHttpStatus_ =
DescribeBotVersionResponse'
{ $sel:botId:DescribeBotVersionResponse' :: Maybe Text
botId =
forall a. Maybe a
Prelude.Nothing,
$sel:botName:DescribeBotVersionResponse' :: Maybe Text
botName = forall a. Maybe a
Prelude.Nothing,
$sel:botStatus:DescribeBotVersionResponse' :: Maybe BotStatus
botStatus = forall a. Maybe a
Prelude.Nothing,
$sel:botVersion:DescribeBotVersionResponse' :: Maybe Text
botVersion = forall a. Maybe a
Prelude.Nothing,
$sel:creationDateTime:DescribeBotVersionResponse' :: Maybe POSIX
creationDateTime = forall a. Maybe a
Prelude.Nothing,
$sel:dataPrivacy:DescribeBotVersionResponse' :: Maybe DataPrivacy
dataPrivacy = forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeBotVersionResponse' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:failureReasons:DescribeBotVersionResponse' :: Maybe [Text]
failureReasons = forall a. Maybe a
Prelude.Nothing,
$sel:idleSessionTTLInSeconds:DescribeBotVersionResponse' :: Maybe Natural
idleSessionTTLInSeconds = forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:DescribeBotVersionResponse' :: Maybe Text
roleArn = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeBotVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeBotVersionResponse_botId :: Lens.Lens' DescribeBotVersionResponse (Prelude.Maybe Prelude.Text)
describeBotVersionResponse_botId :: Lens' DescribeBotVersionResponse (Maybe Text)
describeBotVersionResponse_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Maybe Text
botId :: Maybe Text
$sel:botId:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Text
botId} -> Maybe Text
botId) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Maybe Text
a -> DescribeBotVersionResponse
s {$sel:botId:DescribeBotVersionResponse' :: Maybe Text
botId = Maybe Text
a} :: DescribeBotVersionResponse)
describeBotVersionResponse_botName :: Lens.Lens' DescribeBotVersionResponse (Prelude.Maybe Prelude.Text)
describeBotVersionResponse_botName :: Lens' DescribeBotVersionResponse (Maybe Text)
describeBotVersionResponse_botName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Maybe Text
botName :: Maybe Text
$sel:botName:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Text
botName} -> Maybe Text
botName) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Maybe Text
a -> DescribeBotVersionResponse
s {$sel:botName:DescribeBotVersionResponse' :: Maybe Text
botName = Maybe Text
a} :: DescribeBotVersionResponse)
describeBotVersionResponse_botStatus :: Lens.Lens' DescribeBotVersionResponse (Prelude.Maybe BotStatus)
describeBotVersionResponse_botStatus :: Lens' DescribeBotVersionResponse (Maybe BotStatus)
describeBotVersionResponse_botStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Maybe BotStatus
botStatus :: Maybe BotStatus
$sel:botStatus:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe BotStatus
botStatus} -> Maybe BotStatus
botStatus) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Maybe BotStatus
a -> DescribeBotVersionResponse
s {$sel:botStatus:DescribeBotVersionResponse' :: Maybe BotStatus
botStatus = Maybe BotStatus
a} :: DescribeBotVersionResponse)
describeBotVersionResponse_botVersion :: Lens.Lens' DescribeBotVersionResponse (Prelude.Maybe Prelude.Text)
describeBotVersionResponse_botVersion :: Lens' DescribeBotVersionResponse (Maybe Text)
describeBotVersionResponse_botVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Maybe Text
botVersion :: Maybe Text
$sel:botVersion:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Text
botVersion} -> Maybe Text
botVersion) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Maybe Text
a -> DescribeBotVersionResponse
s {$sel:botVersion:DescribeBotVersionResponse' :: Maybe Text
botVersion = Maybe Text
a} :: DescribeBotVersionResponse)
describeBotVersionResponse_creationDateTime :: Lens.Lens' DescribeBotVersionResponse (Prelude.Maybe Prelude.UTCTime)
describeBotVersionResponse_creationDateTime :: Lens' DescribeBotVersionResponse (Maybe UTCTime)
describeBotVersionResponse_creationDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Maybe POSIX
a -> DescribeBotVersionResponse
s {$sel:creationDateTime:DescribeBotVersionResponse' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: DescribeBotVersionResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
describeBotVersionResponse_dataPrivacy :: Lens.Lens' DescribeBotVersionResponse (Prelude.Maybe DataPrivacy)
describeBotVersionResponse_dataPrivacy :: Lens' DescribeBotVersionResponse (Maybe DataPrivacy)
describeBotVersionResponse_dataPrivacy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Maybe DataPrivacy
dataPrivacy :: Maybe DataPrivacy
$sel:dataPrivacy:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe DataPrivacy
dataPrivacy} -> Maybe DataPrivacy
dataPrivacy) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Maybe DataPrivacy
a -> DescribeBotVersionResponse
s {$sel:dataPrivacy:DescribeBotVersionResponse' :: Maybe DataPrivacy
dataPrivacy = Maybe DataPrivacy
a} :: DescribeBotVersionResponse)
describeBotVersionResponse_description :: Lens.Lens' DescribeBotVersionResponse (Prelude.Maybe Prelude.Text)
describeBotVersionResponse_description :: Lens' DescribeBotVersionResponse (Maybe Text)
describeBotVersionResponse_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Maybe Text
a -> DescribeBotVersionResponse
s {$sel:description:DescribeBotVersionResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeBotVersionResponse)
describeBotVersionResponse_failureReasons :: Lens.Lens' DescribeBotVersionResponse (Prelude.Maybe [Prelude.Text])
describeBotVersionResponse_failureReasons :: Lens' DescribeBotVersionResponse (Maybe [Text])
describeBotVersionResponse_failureReasons = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Maybe [Text]
failureReasons :: Maybe [Text]
$sel:failureReasons:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe [Text]
failureReasons} -> Maybe [Text]
failureReasons) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Maybe [Text]
a -> DescribeBotVersionResponse
s {$sel:failureReasons:DescribeBotVersionResponse' :: Maybe [Text]
failureReasons = Maybe [Text]
a} :: DescribeBotVersionResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeBotVersionResponse_idleSessionTTLInSeconds :: Lens.Lens' DescribeBotVersionResponse (Prelude.Maybe Prelude.Natural)
describeBotVersionResponse_idleSessionTTLInSeconds :: Lens' DescribeBotVersionResponse (Maybe Natural)
describeBotVersionResponse_idleSessionTTLInSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Maybe Natural
idleSessionTTLInSeconds :: Maybe Natural
$sel:idleSessionTTLInSeconds:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Natural
idleSessionTTLInSeconds} -> Maybe Natural
idleSessionTTLInSeconds) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Maybe Natural
a -> DescribeBotVersionResponse
s {$sel:idleSessionTTLInSeconds:DescribeBotVersionResponse' :: Maybe Natural
idleSessionTTLInSeconds = Maybe Natural
a} :: DescribeBotVersionResponse)
describeBotVersionResponse_roleArn :: Lens.Lens' DescribeBotVersionResponse (Prelude.Maybe Prelude.Text)
describeBotVersionResponse_roleArn :: Lens' DescribeBotVersionResponse (Maybe Text)
describeBotVersionResponse_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Maybe Text
a -> DescribeBotVersionResponse
s {$sel:roleArn:DescribeBotVersionResponse' :: Maybe Text
roleArn = Maybe Text
a} :: DescribeBotVersionResponse)
describeBotVersionResponse_httpStatus :: Lens.Lens' DescribeBotVersionResponse Prelude.Int
describeBotVersionResponse_httpStatus :: Lens' DescribeBotVersionResponse Int
describeBotVersionResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBotVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeBotVersionResponse
s@DescribeBotVersionResponse' {} Int
a -> DescribeBotVersionResponse
s {$sel:httpStatus:DescribeBotVersionResponse' :: Int
httpStatus = Int
a} :: DescribeBotVersionResponse)
instance Prelude.NFData DescribeBotVersionResponse where
rnf :: DescribeBotVersionResponse -> ()
rnf DescribeBotVersionResponse' {Int
Maybe Natural
Maybe [Text]
Maybe Text
Maybe POSIX
Maybe BotStatus
Maybe DataPrivacy
httpStatus :: Int
roleArn :: Maybe Text
idleSessionTTLInSeconds :: Maybe Natural
failureReasons :: Maybe [Text]
description :: Maybe Text
dataPrivacy :: Maybe DataPrivacy
creationDateTime :: Maybe POSIX
botVersion :: Maybe Text
botStatus :: Maybe BotStatus
botName :: Maybe Text
botId :: Maybe Text
$sel:httpStatus:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Int
$sel:roleArn:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Text
$sel:idleSessionTTLInSeconds:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Natural
$sel:failureReasons:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe [Text]
$sel:description:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Text
$sel:dataPrivacy:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe DataPrivacy
$sel:creationDateTime:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe POSIX
$sel:botVersion:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Text
$sel:botStatus:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe BotStatus
$sel:botName:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Text
$sel:botId:DescribeBotVersionResponse' :: DescribeBotVersionResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BotStatus
botStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDateTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataPrivacy
dataPrivacy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
failureReasons
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
idleSessionTTLInSeconds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus