{-# 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.RobOMaker.DescribeWorldTemplate
(
DescribeWorldTemplate (..),
newDescribeWorldTemplate,
describeWorldTemplate_template,
DescribeWorldTemplateResponse (..),
newDescribeWorldTemplateResponse,
describeWorldTemplateResponse_lastUpdatedAt,
describeWorldTemplateResponse_arn,
describeWorldTemplateResponse_createdAt,
describeWorldTemplateResponse_name,
describeWorldTemplateResponse_version,
describeWorldTemplateResponse_clientRequestToken,
describeWorldTemplateResponse_tags,
describeWorldTemplateResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.RobOMaker.Types
data DescribeWorldTemplate = DescribeWorldTemplate'
{
DescribeWorldTemplate -> Text
template :: Prelude.Text
}
deriving (DescribeWorldTemplate -> DescribeWorldTemplate -> Bool
(DescribeWorldTemplate -> DescribeWorldTemplate -> Bool)
-> (DescribeWorldTemplate -> DescribeWorldTemplate -> Bool)
-> Eq DescribeWorldTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorldTemplate -> DescribeWorldTemplate -> Bool
$c/= :: DescribeWorldTemplate -> DescribeWorldTemplate -> Bool
== :: DescribeWorldTemplate -> DescribeWorldTemplate -> Bool
$c== :: DescribeWorldTemplate -> DescribeWorldTemplate -> Bool
Prelude.Eq, ReadPrec [DescribeWorldTemplate]
ReadPrec DescribeWorldTemplate
Int -> ReadS DescribeWorldTemplate
ReadS [DescribeWorldTemplate]
(Int -> ReadS DescribeWorldTemplate)
-> ReadS [DescribeWorldTemplate]
-> ReadPrec DescribeWorldTemplate
-> ReadPrec [DescribeWorldTemplate]
-> Read DescribeWorldTemplate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorldTemplate]
$creadListPrec :: ReadPrec [DescribeWorldTemplate]
readPrec :: ReadPrec DescribeWorldTemplate
$creadPrec :: ReadPrec DescribeWorldTemplate
readList :: ReadS [DescribeWorldTemplate]
$creadList :: ReadS [DescribeWorldTemplate]
readsPrec :: Int -> ReadS DescribeWorldTemplate
$creadsPrec :: Int -> ReadS DescribeWorldTemplate
Prelude.Read, Int -> DescribeWorldTemplate -> ShowS
[DescribeWorldTemplate] -> ShowS
DescribeWorldTemplate -> String
(Int -> DescribeWorldTemplate -> ShowS)
-> (DescribeWorldTemplate -> String)
-> ([DescribeWorldTemplate] -> ShowS)
-> Show DescribeWorldTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorldTemplate] -> ShowS
$cshowList :: [DescribeWorldTemplate] -> ShowS
show :: DescribeWorldTemplate -> String
$cshow :: DescribeWorldTemplate -> String
showsPrec :: Int -> DescribeWorldTemplate -> ShowS
$cshowsPrec :: Int -> DescribeWorldTemplate -> ShowS
Prelude.Show, (forall x. DescribeWorldTemplate -> Rep DescribeWorldTemplate x)
-> (forall x. Rep DescribeWorldTemplate x -> DescribeWorldTemplate)
-> Generic DescribeWorldTemplate
forall x. Rep DescribeWorldTemplate x -> DescribeWorldTemplate
forall x. DescribeWorldTemplate -> Rep DescribeWorldTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeWorldTemplate x -> DescribeWorldTemplate
$cfrom :: forall x. DescribeWorldTemplate -> Rep DescribeWorldTemplate x
Prelude.Generic)
newDescribeWorldTemplate ::
Prelude.Text ->
DescribeWorldTemplate
newDescribeWorldTemplate :: Text -> DescribeWorldTemplate
newDescribeWorldTemplate Text
pTemplate_ =
DescribeWorldTemplate' :: Text -> DescribeWorldTemplate
DescribeWorldTemplate' {$sel:template:DescribeWorldTemplate' :: Text
template = Text
pTemplate_}
describeWorldTemplate_template :: Lens.Lens' DescribeWorldTemplate Prelude.Text
describeWorldTemplate_template :: (Text -> f Text)
-> DescribeWorldTemplate -> f DescribeWorldTemplate
describeWorldTemplate_template = (DescribeWorldTemplate -> Text)
-> (DescribeWorldTemplate -> Text -> DescribeWorldTemplate)
-> Lens DescribeWorldTemplate DescribeWorldTemplate Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldTemplate' {Text
template :: Text
$sel:template:DescribeWorldTemplate' :: DescribeWorldTemplate -> Text
template} -> Text
template) (\s :: DescribeWorldTemplate
s@DescribeWorldTemplate' {} Text
a -> DescribeWorldTemplate
s {$sel:template:DescribeWorldTemplate' :: Text
template = Text
a} :: DescribeWorldTemplate)
instance Core.AWSRequest DescribeWorldTemplate where
type
AWSResponse DescribeWorldTemplate =
DescribeWorldTemplateResponse
request :: DescribeWorldTemplate -> Request DescribeWorldTemplate
request = Service -> DescribeWorldTemplate -> Request DescribeWorldTemplate
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeWorldTemplate
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeWorldTemplate)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeWorldTemplate))
-> Logger
-> Service
-> Proxy DescribeWorldTemplate
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeWorldTemplate)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse
DescribeWorldTemplateResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastUpdatedAt")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"arn")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"createdAt")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"name")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"version")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> DescribeWorldTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"clientRequestToken")
Either
String
(Maybe (HashMap Text Text) -> Int -> DescribeWorldTemplateResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeWorldTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeWorldTemplateResponse)
-> Either String Int -> Either String DescribeWorldTemplateResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeWorldTemplate
instance Prelude.NFData DescribeWorldTemplate
instance Core.ToHeaders DescribeWorldTemplate where
toHeaders :: DescribeWorldTemplate -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeWorldTemplate -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeWorldTemplate where
toJSON :: DescribeWorldTemplate -> Value
toJSON DescribeWorldTemplate' {Text
template :: Text
$sel:template:DescribeWorldTemplate' :: DescribeWorldTemplate -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"template" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
template)]
)
instance Core.ToPath DescribeWorldTemplate where
toPath :: DescribeWorldTemplate -> ByteString
toPath = ByteString -> DescribeWorldTemplate -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/describeWorldTemplate"
instance Core.ToQuery DescribeWorldTemplate where
toQuery :: DescribeWorldTemplate -> QueryString
toQuery = QueryString -> DescribeWorldTemplate -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeWorldTemplateResponse = DescribeWorldTemplateResponse'
{
DescribeWorldTemplateResponse -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
DescribeWorldTemplateResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeWorldTemplateResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
DescribeWorldTemplateResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeWorldTemplateResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
DescribeWorldTemplateResponse -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
DescribeWorldTemplateResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeWorldTemplateResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeWorldTemplateResponse
-> DescribeWorldTemplateResponse -> Bool
(DescribeWorldTemplateResponse
-> DescribeWorldTemplateResponse -> Bool)
-> (DescribeWorldTemplateResponse
-> DescribeWorldTemplateResponse -> Bool)
-> Eq DescribeWorldTemplateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorldTemplateResponse
-> DescribeWorldTemplateResponse -> Bool
$c/= :: DescribeWorldTemplateResponse
-> DescribeWorldTemplateResponse -> Bool
== :: DescribeWorldTemplateResponse
-> DescribeWorldTemplateResponse -> Bool
$c== :: DescribeWorldTemplateResponse
-> DescribeWorldTemplateResponse -> Bool
Prelude.Eq, ReadPrec [DescribeWorldTemplateResponse]
ReadPrec DescribeWorldTemplateResponse
Int -> ReadS DescribeWorldTemplateResponse
ReadS [DescribeWorldTemplateResponse]
(Int -> ReadS DescribeWorldTemplateResponse)
-> ReadS [DescribeWorldTemplateResponse]
-> ReadPrec DescribeWorldTemplateResponse
-> ReadPrec [DescribeWorldTemplateResponse]
-> Read DescribeWorldTemplateResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorldTemplateResponse]
$creadListPrec :: ReadPrec [DescribeWorldTemplateResponse]
readPrec :: ReadPrec DescribeWorldTemplateResponse
$creadPrec :: ReadPrec DescribeWorldTemplateResponse
readList :: ReadS [DescribeWorldTemplateResponse]
$creadList :: ReadS [DescribeWorldTemplateResponse]
readsPrec :: Int -> ReadS DescribeWorldTemplateResponse
$creadsPrec :: Int -> ReadS DescribeWorldTemplateResponse
Prelude.Read, Int -> DescribeWorldTemplateResponse -> ShowS
[DescribeWorldTemplateResponse] -> ShowS
DescribeWorldTemplateResponse -> String
(Int -> DescribeWorldTemplateResponse -> ShowS)
-> (DescribeWorldTemplateResponse -> String)
-> ([DescribeWorldTemplateResponse] -> ShowS)
-> Show DescribeWorldTemplateResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorldTemplateResponse] -> ShowS
$cshowList :: [DescribeWorldTemplateResponse] -> ShowS
show :: DescribeWorldTemplateResponse -> String
$cshow :: DescribeWorldTemplateResponse -> String
showsPrec :: Int -> DescribeWorldTemplateResponse -> ShowS
$cshowsPrec :: Int -> DescribeWorldTemplateResponse -> ShowS
Prelude.Show, (forall x.
DescribeWorldTemplateResponse
-> Rep DescribeWorldTemplateResponse x)
-> (forall x.
Rep DescribeWorldTemplateResponse x
-> DescribeWorldTemplateResponse)
-> Generic DescribeWorldTemplateResponse
forall x.
Rep DescribeWorldTemplateResponse x
-> DescribeWorldTemplateResponse
forall x.
DescribeWorldTemplateResponse
-> Rep DescribeWorldTemplateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeWorldTemplateResponse x
-> DescribeWorldTemplateResponse
$cfrom :: forall x.
DescribeWorldTemplateResponse
-> Rep DescribeWorldTemplateResponse x
Prelude.Generic)
newDescribeWorldTemplateResponse ::
Prelude.Int ->
DescribeWorldTemplateResponse
newDescribeWorldTemplateResponse :: Int -> DescribeWorldTemplateResponse
newDescribeWorldTemplateResponse Int
pHttpStatus_ =
DescribeWorldTemplateResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeWorldTemplateResponse
DescribeWorldTemplateResponse'
{ $sel:lastUpdatedAt:DescribeWorldTemplateResponse' :: Maybe POSIX
lastUpdatedAt =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeWorldTemplateResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:DescribeWorldTemplateResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeWorldTemplateResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:DescribeWorldTemplateResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:DescribeWorldTemplateResponse' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeWorldTemplateResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeWorldTemplateResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeWorldTemplateResponse_lastUpdatedAt :: Lens.Lens' DescribeWorldTemplateResponse (Prelude.Maybe Prelude.UTCTime)
describeWorldTemplateResponse_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorldTemplateResponse -> f DescribeWorldTemplateResponse
describeWorldTemplateResponse_lastUpdatedAt = (DescribeWorldTemplateResponse -> Maybe POSIX)
-> (DescribeWorldTemplateResponse
-> Maybe POSIX -> DescribeWorldTemplateResponse)
-> Lens
DescribeWorldTemplateResponse
DescribeWorldTemplateResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldTemplateResponse' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:DescribeWorldTemplateResponse' :: DescribeWorldTemplateResponse -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: DescribeWorldTemplateResponse
s@DescribeWorldTemplateResponse' {} Maybe POSIX
a -> DescribeWorldTemplateResponse
s {$sel:lastUpdatedAt:DescribeWorldTemplateResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: DescribeWorldTemplateResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeWorldTemplateResponse
-> f DescribeWorldTemplateResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorldTemplateResponse
-> f DescribeWorldTemplateResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeWorldTemplateResponse_arn :: Lens.Lens' DescribeWorldTemplateResponse (Prelude.Maybe Prelude.Text)
describeWorldTemplateResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldTemplateResponse -> f DescribeWorldTemplateResponse
describeWorldTemplateResponse_arn = (DescribeWorldTemplateResponse -> Maybe Text)
-> (DescribeWorldTemplateResponse
-> Maybe Text -> DescribeWorldTemplateResponse)
-> Lens
DescribeWorldTemplateResponse
DescribeWorldTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldTemplateResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeWorldTemplateResponse' :: DescribeWorldTemplateResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeWorldTemplateResponse
s@DescribeWorldTemplateResponse' {} Maybe Text
a -> DescribeWorldTemplateResponse
s {$sel:arn:DescribeWorldTemplateResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeWorldTemplateResponse)
describeWorldTemplateResponse_createdAt :: Lens.Lens' DescribeWorldTemplateResponse (Prelude.Maybe Prelude.UTCTime)
describeWorldTemplateResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorldTemplateResponse -> f DescribeWorldTemplateResponse
describeWorldTemplateResponse_createdAt = (DescribeWorldTemplateResponse -> Maybe POSIX)
-> (DescribeWorldTemplateResponse
-> Maybe POSIX -> DescribeWorldTemplateResponse)
-> Lens
DescribeWorldTemplateResponse
DescribeWorldTemplateResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldTemplateResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:DescribeWorldTemplateResponse' :: DescribeWorldTemplateResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: DescribeWorldTemplateResponse
s@DescribeWorldTemplateResponse' {} Maybe POSIX
a -> DescribeWorldTemplateResponse
s {$sel:createdAt:DescribeWorldTemplateResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: DescribeWorldTemplateResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeWorldTemplateResponse
-> f DescribeWorldTemplateResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorldTemplateResponse
-> f DescribeWorldTemplateResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeWorldTemplateResponse_name :: Lens.Lens' DescribeWorldTemplateResponse (Prelude.Maybe Prelude.Text)
describeWorldTemplateResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldTemplateResponse -> f DescribeWorldTemplateResponse
describeWorldTemplateResponse_name = (DescribeWorldTemplateResponse -> Maybe Text)
-> (DescribeWorldTemplateResponse
-> Maybe Text -> DescribeWorldTemplateResponse)
-> Lens
DescribeWorldTemplateResponse
DescribeWorldTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldTemplateResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeWorldTemplateResponse' :: DescribeWorldTemplateResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeWorldTemplateResponse
s@DescribeWorldTemplateResponse' {} Maybe Text
a -> DescribeWorldTemplateResponse
s {$sel:name:DescribeWorldTemplateResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeWorldTemplateResponse)
describeWorldTemplateResponse_version :: Lens.Lens' DescribeWorldTemplateResponse (Prelude.Maybe Prelude.Text)
describeWorldTemplateResponse_version :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldTemplateResponse -> f DescribeWorldTemplateResponse
describeWorldTemplateResponse_version = (DescribeWorldTemplateResponse -> Maybe Text)
-> (DescribeWorldTemplateResponse
-> Maybe Text -> DescribeWorldTemplateResponse)
-> Lens
DescribeWorldTemplateResponse
DescribeWorldTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldTemplateResponse' {Maybe Text
version :: Maybe Text
$sel:version:DescribeWorldTemplateResponse' :: DescribeWorldTemplateResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: DescribeWorldTemplateResponse
s@DescribeWorldTemplateResponse' {} Maybe Text
a -> DescribeWorldTemplateResponse
s {$sel:version:DescribeWorldTemplateResponse' :: Maybe Text
version = Maybe Text
a} :: DescribeWorldTemplateResponse)
describeWorldTemplateResponse_clientRequestToken :: Lens.Lens' DescribeWorldTemplateResponse (Prelude.Maybe Prelude.Text)
describeWorldTemplateResponse_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldTemplateResponse -> f DescribeWorldTemplateResponse
describeWorldTemplateResponse_clientRequestToken = (DescribeWorldTemplateResponse -> Maybe Text)
-> (DescribeWorldTemplateResponse
-> Maybe Text -> DescribeWorldTemplateResponse)
-> Lens
DescribeWorldTemplateResponse
DescribeWorldTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldTemplateResponse' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:DescribeWorldTemplateResponse' :: DescribeWorldTemplateResponse -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: DescribeWorldTemplateResponse
s@DescribeWorldTemplateResponse' {} Maybe Text
a -> DescribeWorldTemplateResponse
s {$sel:clientRequestToken:DescribeWorldTemplateResponse' :: Maybe Text
clientRequestToken = Maybe Text
a} :: DescribeWorldTemplateResponse)
describeWorldTemplateResponse_tags :: Lens.Lens' DescribeWorldTemplateResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeWorldTemplateResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeWorldTemplateResponse -> f DescribeWorldTemplateResponse
describeWorldTemplateResponse_tags = (DescribeWorldTemplateResponse -> Maybe (HashMap Text Text))
-> (DescribeWorldTemplateResponse
-> Maybe (HashMap Text Text) -> DescribeWorldTemplateResponse)
-> Lens
DescribeWorldTemplateResponse
DescribeWorldTemplateResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldTemplateResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeWorldTemplateResponse' :: DescribeWorldTemplateResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeWorldTemplateResponse
s@DescribeWorldTemplateResponse' {} Maybe (HashMap Text Text)
a -> DescribeWorldTemplateResponse
s {$sel:tags:DescribeWorldTemplateResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeWorldTemplateResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeWorldTemplateResponse
-> f DescribeWorldTemplateResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeWorldTemplateResponse
-> f DescribeWorldTemplateResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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 AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeWorldTemplateResponse_httpStatus :: Lens.Lens' DescribeWorldTemplateResponse Prelude.Int
describeWorldTemplateResponse_httpStatus :: (Int -> f Int)
-> DescribeWorldTemplateResponse -> f DescribeWorldTemplateResponse
describeWorldTemplateResponse_httpStatus = (DescribeWorldTemplateResponse -> Int)
-> (DescribeWorldTemplateResponse
-> Int -> DescribeWorldTemplateResponse)
-> Lens
DescribeWorldTemplateResponse DescribeWorldTemplateResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldTemplateResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeWorldTemplateResponse' :: DescribeWorldTemplateResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeWorldTemplateResponse
s@DescribeWorldTemplateResponse' {} Int
a -> DescribeWorldTemplateResponse
s {$sel:httpStatus:DescribeWorldTemplateResponse' :: Int
httpStatus = Int
a} :: DescribeWorldTemplateResponse)
instance Prelude.NFData DescribeWorldTemplateResponse