{-# 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.Schemas.DescribeSchema
(
DescribeSchema (..),
newDescribeSchema,
describeSchema_schemaVersion,
describeSchema_registryName,
describeSchema_schemaName,
DescribeSchemaResponse (..),
newDescribeSchemaResponse,
describeSchemaResponse_schemaVersion,
describeSchemaResponse_schemaName,
describeSchemaResponse_content,
describeSchemaResponse_schemaArn,
describeSchemaResponse_type,
describeSchemaResponse_lastModified,
describeSchemaResponse_description,
describeSchemaResponse_versionCreatedDate,
describeSchemaResponse_tags,
describeSchemaResponse_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.Schemas.Types
data DescribeSchema = DescribeSchema'
{
DescribeSchema -> Maybe Text
schemaVersion :: Prelude.Maybe Prelude.Text,
DescribeSchema -> Text
registryName :: Prelude.Text,
DescribeSchema -> Text
schemaName :: Prelude.Text
}
deriving (DescribeSchema -> DescribeSchema -> Bool
(DescribeSchema -> DescribeSchema -> Bool)
-> (DescribeSchema -> DescribeSchema -> Bool) -> Eq DescribeSchema
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSchema -> DescribeSchema -> Bool
$c/= :: DescribeSchema -> DescribeSchema -> Bool
== :: DescribeSchema -> DescribeSchema -> Bool
$c== :: DescribeSchema -> DescribeSchema -> Bool
Prelude.Eq, ReadPrec [DescribeSchema]
ReadPrec DescribeSchema
Int -> ReadS DescribeSchema
ReadS [DescribeSchema]
(Int -> ReadS DescribeSchema)
-> ReadS [DescribeSchema]
-> ReadPrec DescribeSchema
-> ReadPrec [DescribeSchema]
-> Read DescribeSchema
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSchema]
$creadListPrec :: ReadPrec [DescribeSchema]
readPrec :: ReadPrec DescribeSchema
$creadPrec :: ReadPrec DescribeSchema
readList :: ReadS [DescribeSchema]
$creadList :: ReadS [DescribeSchema]
readsPrec :: Int -> ReadS DescribeSchema
$creadsPrec :: Int -> ReadS DescribeSchema
Prelude.Read, Int -> DescribeSchema -> ShowS
[DescribeSchema] -> ShowS
DescribeSchema -> String
(Int -> DescribeSchema -> ShowS)
-> (DescribeSchema -> String)
-> ([DescribeSchema] -> ShowS)
-> Show DescribeSchema
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSchema] -> ShowS
$cshowList :: [DescribeSchema] -> ShowS
show :: DescribeSchema -> String
$cshow :: DescribeSchema -> String
showsPrec :: Int -> DescribeSchema -> ShowS
$cshowsPrec :: Int -> DescribeSchema -> ShowS
Prelude.Show, (forall x. DescribeSchema -> Rep DescribeSchema x)
-> (forall x. Rep DescribeSchema x -> DescribeSchema)
-> Generic DescribeSchema
forall x. Rep DescribeSchema x -> DescribeSchema
forall x. DescribeSchema -> Rep DescribeSchema x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeSchema x -> DescribeSchema
$cfrom :: forall x. DescribeSchema -> Rep DescribeSchema x
Prelude.Generic)
newDescribeSchema ::
Prelude.Text ->
Prelude.Text ->
DescribeSchema
newDescribeSchema :: Text -> Text -> DescribeSchema
newDescribeSchema Text
pRegistryName_ Text
pSchemaName_ =
DescribeSchema' :: Maybe Text -> Text -> Text -> DescribeSchema
DescribeSchema'
{ $sel:schemaVersion:DescribeSchema' :: Maybe Text
schemaVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:registryName:DescribeSchema' :: Text
registryName = Text
pRegistryName_,
$sel:schemaName:DescribeSchema' :: Text
schemaName = Text
pSchemaName_
}
describeSchema_schemaVersion :: Lens.Lens' DescribeSchema (Prelude.Maybe Prelude.Text)
describeSchema_schemaVersion :: (Maybe Text -> f (Maybe Text))
-> DescribeSchema -> f DescribeSchema
describeSchema_schemaVersion = (DescribeSchema -> Maybe Text)
-> (DescribeSchema -> Maybe Text -> DescribeSchema)
-> Lens DescribeSchema DescribeSchema (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchema' {Maybe Text
schemaVersion :: Maybe Text
$sel:schemaVersion:DescribeSchema' :: DescribeSchema -> Maybe Text
schemaVersion} -> Maybe Text
schemaVersion) (\s :: DescribeSchema
s@DescribeSchema' {} Maybe Text
a -> DescribeSchema
s {$sel:schemaVersion:DescribeSchema' :: Maybe Text
schemaVersion = Maybe Text
a} :: DescribeSchema)
describeSchema_registryName :: Lens.Lens' DescribeSchema Prelude.Text
describeSchema_registryName :: (Text -> f Text) -> DescribeSchema -> f DescribeSchema
describeSchema_registryName = (DescribeSchema -> Text)
-> (DescribeSchema -> Text -> DescribeSchema)
-> Lens DescribeSchema DescribeSchema Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchema' {Text
registryName :: Text
$sel:registryName:DescribeSchema' :: DescribeSchema -> Text
registryName} -> Text
registryName) (\s :: DescribeSchema
s@DescribeSchema' {} Text
a -> DescribeSchema
s {$sel:registryName:DescribeSchema' :: Text
registryName = Text
a} :: DescribeSchema)
describeSchema_schemaName :: Lens.Lens' DescribeSchema Prelude.Text
describeSchema_schemaName :: (Text -> f Text) -> DescribeSchema -> f DescribeSchema
describeSchema_schemaName = (DescribeSchema -> Text)
-> (DescribeSchema -> Text -> DescribeSchema)
-> Lens DescribeSchema DescribeSchema Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchema' {Text
schemaName :: Text
$sel:schemaName:DescribeSchema' :: DescribeSchema -> Text
schemaName} -> Text
schemaName) (\s :: DescribeSchema
s@DescribeSchema' {} Text
a -> DescribeSchema
s {$sel:schemaName:DescribeSchema' :: Text
schemaName = Text
a} :: DescribeSchema)
instance Core.AWSRequest DescribeSchema where
type
AWSResponse DescribeSchema =
DescribeSchemaResponse
request :: DescribeSchema -> Request DescribeSchema
request = Service -> DescribeSchema -> Request DescribeSchema
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeSchema
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeSchema)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeSchema))
-> Logger
-> Service
-> Proxy DescribeSchema
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeSchema)))
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 Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse
DescribeSchemaResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
forall (f :: * -> *) a b. Functor 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
"SchemaVersion")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
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
"SchemaName")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
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
"Content")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
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
"SchemaArn")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
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
"Type")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
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
"LastModified")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe (HashMap Text Text) -> Int -> DescribeSchemaResponse)
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
"Description")
Either
String
(Maybe POSIX
-> Maybe (HashMap Text Text) -> Int -> DescribeSchemaResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe (HashMap Text Text) -> Int -> DescribeSchemaResponse)
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
"VersionCreatedDate")
Either
String (Maybe (HashMap Text Text) -> Int -> DescribeSchemaResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeSchemaResponse)
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 -> DescribeSchemaResponse)
-> Either String Int -> Either String DescribeSchemaResponse
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 DescribeSchema
instance Prelude.NFData DescribeSchema
instance Core.ToHeaders DescribeSchema where
toHeaders :: DescribeSchema -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeSchema -> 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.ToPath DescribeSchema where
toPath :: DescribeSchema -> ByteString
toPath DescribeSchema' {Maybe Text
Text
schemaName :: Text
registryName :: Text
schemaVersion :: Maybe Text
$sel:schemaName:DescribeSchema' :: DescribeSchema -> Text
$sel:registryName:DescribeSchema' :: DescribeSchema -> Text
$sel:schemaVersion:DescribeSchema' :: DescribeSchema -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v1/registries/name/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
registryName,
ByteString
"/schemas/name/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
schemaName
]
instance Core.ToQuery DescribeSchema where
toQuery :: DescribeSchema -> QueryString
toQuery DescribeSchema' {Maybe Text
Text
schemaName :: Text
registryName :: Text
schemaVersion :: Maybe Text
$sel:schemaName:DescribeSchema' :: DescribeSchema -> Text
$sel:registryName:DescribeSchema' :: DescribeSchema -> Text
$sel:schemaVersion:DescribeSchema' :: DescribeSchema -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"schemaVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
schemaVersion]
data DescribeSchemaResponse = DescribeSchemaResponse'
{
DescribeSchemaResponse -> Maybe Text
schemaVersion :: Prelude.Maybe Prelude.Text,
DescribeSchemaResponse -> Maybe Text
schemaName :: Prelude.Maybe Prelude.Text,
DescribeSchemaResponse -> Maybe Text
content :: Prelude.Maybe Prelude.Text,
DescribeSchemaResponse -> Maybe Text
schemaArn :: Prelude.Maybe Prelude.Text,
DescribeSchemaResponse -> Maybe Text
type' :: Prelude.Maybe Prelude.Text,
DescribeSchemaResponse -> Maybe POSIX
lastModified :: Prelude.Maybe Core.POSIX,
DescribeSchemaResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeSchemaResponse -> Maybe POSIX
versionCreatedDate :: Prelude.Maybe Core.POSIX,
DescribeSchemaResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeSchemaResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeSchemaResponse -> DescribeSchemaResponse -> Bool
(DescribeSchemaResponse -> DescribeSchemaResponse -> Bool)
-> (DescribeSchemaResponse -> DescribeSchemaResponse -> Bool)
-> Eq DescribeSchemaResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSchemaResponse -> DescribeSchemaResponse -> Bool
$c/= :: DescribeSchemaResponse -> DescribeSchemaResponse -> Bool
== :: DescribeSchemaResponse -> DescribeSchemaResponse -> Bool
$c== :: DescribeSchemaResponse -> DescribeSchemaResponse -> Bool
Prelude.Eq, ReadPrec [DescribeSchemaResponse]
ReadPrec DescribeSchemaResponse
Int -> ReadS DescribeSchemaResponse
ReadS [DescribeSchemaResponse]
(Int -> ReadS DescribeSchemaResponse)
-> ReadS [DescribeSchemaResponse]
-> ReadPrec DescribeSchemaResponse
-> ReadPrec [DescribeSchemaResponse]
-> Read DescribeSchemaResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSchemaResponse]
$creadListPrec :: ReadPrec [DescribeSchemaResponse]
readPrec :: ReadPrec DescribeSchemaResponse
$creadPrec :: ReadPrec DescribeSchemaResponse
readList :: ReadS [DescribeSchemaResponse]
$creadList :: ReadS [DescribeSchemaResponse]
readsPrec :: Int -> ReadS DescribeSchemaResponse
$creadsPrec :: Int -> ReadS DescribeSchemaResponse
Prelude.Read, Int -> DescribeSchemaResponse -> ShowS
[DescribeSchemaResponse] -> ShowS
DescribeSchemaResponse -> String
(Int -> DescribeSchemaResponse -> ShowS)
-> (DescribeSchemaResponse -> String)
-> ([DescribeSchemaResponse] -> ShowS)
-> Show DescribeSchemaResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSchemaResponse] -> ShowS
$cshowList :: [DescribeSchemaResponse] -> ShowS
show :: DescribeSchemaResponse -> String
$cshow :: DescribeSchemaResponse -> String
showsPrec :: Int -> DescribeSchemaResponse -> ShowS
$cshowsPrec :: Int -> DescribeSchemaResponse -> ShowS
Prelude.Show, (forall x. DescribeSchemaResponse -> Rep DescribeSchemaResponse x)
-> (forall x.
Rep DescribeSchemaResponse x -> DescribeSchemaResponse)
-> Generic DescribeSchemaResponse
forall x. Rep DescribeSchemaResponse x -> DescribeSchemaResponse
forall x. DescribeSchemaResponse -> Rep DescribeSchemaResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeSchemaResponse x -> DescribeSchemaResponse
$cfrom :: forall x. DescribeSchemaResponse -> Rep DescribeSchemaResponse x
Prelude.Generic)
newDescribeSchemaResponse ::
Prelude.Int ->
DescribeSchemaResponse
newDescribeSchemaResponse :: Int -> DescribeSchemaResponse
newDescribeSchemaResponse Int
pHttpStatus_ =
DescribeSchemaResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSchemaResponse
DescribeSchemaResponse'
{ $sel:schemaVersion:DescribeSchemaResponse' :: Maybe Text
schemaVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:schemaName:DescribeSchemaResponse' :: Maybe Text
schemaName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:content:DescribeSchemaResponse' :: Maybe Text
content = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:schemaArn:DescribeSchemaResponse' :: Maybe Text
schemaArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':DescribeSchemaResponse' :: Maybe Text
type' = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModified:DescribeSchemaResponse' :: Maybe POSIX
lastModified = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeSchemaResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:versionCreatedDate:DescribeSchemaResponse' :: Maybe POSIX
versionCreatedDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeSchemaResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeSchemaResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeSchemaResponse_schemaVersion :: Lens.Lens' DescribeSchemaResponse (Prelude.Maybe Prelude.Text)
describeSchemaResponse_schemaVersion :: (Maybe Text -> f (Maybe Text))
-> DescribeSchemaResponse -> f DescribeSchemaResponse
describeSchemaResponse_schemaVersion = (DescribeSchemaResponse -> Maybe Text)
-> (DescribeSchemaResponse -> Maybe Text -> DescribeSchemaResponse)
-> Lens
DescribeSchemaResponse
DescribeSchemaResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemaResponse' {Maybe Text
schemaVersion :: Maybe Text
$sel:schemaVersion:DescribeSchemaResponse' :: DescribeSchemaResponse -> Maybe Text
schemaVersion} -> Maybe Text
schemaVersion) (\s :: DescribeSchemaResponse
s@DescribeSchemaResponse' {} Maybe Text
a -> DescribeSchemaResponse
s {$sel:schemaVersion:DescribeSchemaResponse' :: Maybe Text
schemaVersion = Maybe Text
a} :: DescribeSchemaResponse)
describeSchemaResponse_schemaName :: Lens.Lens' DescribeSchemaResponse (Prelude.Maybe Prelude.Text)
describeSchemaResponse_schemaName :: (Maybe Text -> f (Maybe Text))
-> DescribeSchemaResponse -> f DescribeSchemaResponse
describeSchemaResponse_schemaName = (DescribeSchemaResponse -> Maybe Text)
-> (DescribeSchemaResponse -> Maybe Text -> DescribeSchemaResponse)
-> Lens
DescribeSchemaResponse
DescribeSchemaResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemaResponse' {Maybe Text
schemaName :: Maybe Text
$sel:schemaName:DescribeSchemaResponse' :: DescribeSchemaResponse -> Maybe Text
schemaName} -> Maybe Text
schemaName) (\s :: DescribeSchemaResponse
s@DescribeSchemaResponse' {} Maybe Text
a -> DescribeSchemaResponse
s {$sel:schemaName:DescribeSchemaResponse' :: Maybe Text
schemaName = Maybe Text
a} :: DescribeSchemaResponse)
describeSchemaResponse_content :: Lens.Lens' DescribeSchemaResponse (Prelude.Maybe Prelude.Text)
describeSchemaResponse_content :: (Maybe Text -> f (Maybe Text))
-> DescribeSchemaResponse -> f DescribeSchemaResponse
describeSchemaResponse_content = (DescribeSchemaResponse -> Maybe Text)
-> (DescribeSchemaResponse -> Maybe Text -> DescribeSchemaResponse)
-> Lens
DescribeSchemaResponse
DescribeSchemaResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemaResponse' {Maybe Text
content :: Maybe Text
$sel:content:DescribeSchemaResponse' :: DescribeSchemaResponse -> Maybe Text
content} -> Maybe Text
content) (\s :: DescribeSchemaResponse
s@DescribeSchemaResponse' {} Maybe Text
a -> DescribeSchemaResponse
s {$sel:content:DescribeSchemaResponse' :: Maybe Text
content = Maybe Text
a} :: DescribeSchemaResponse)
describeSchemaResponse_schemaArn :: Lens.Lens' DescribeSchemaResponse (Prelude.Maybe Prelude.Text)
describeSchemaResponse_schemaArn :: (Maybe Text -> f (Maybe Text))
-> DescribeSchemaResponse -> f DescribeSchemaResponse
describeSchemaResponse_schemaArn = (DescribeSchemaResponse -> Maybe Text)
-> (DescribeSchemaResponse -> Maybe Text -> DescribeSchemaResponse)
-> Lens
DescribeSchemaResponse
DescribeSchemaResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemaResponse' {Maybe Text
schemaArn :: Maybe Text
$sel:schemaArn:DescribeSchemaResponse' :: DescribeSchemaResponse -> Maybe Text
schemaArn} -> Maybe Text
schemaArn) (\s :: DescribeSchemaResponse
s@DescribeSchemaResponse' {} Maybe Text
a -> DescribeSchemaResponse
s {$sel:schemaArn:DescribeSchemaResponse' :: Maybe Text
schemaArn = Maybe Text
a} :: DescribeSchemaResponse)
describeSchemaResponse_type :: Lens.Lens' DescribeSchemaResponse (Prelude.Maybe Prelude.Text)
describeSchemaResponse_type :: (Maybe Text -> f (Maybe Text))
-> DescribeSchemaResponse -> f DescribeSchemaResponse
describeSchemaResponse_type = (DescribeSchemaResponse -> Maybe Text)
-> (DescribeSchemaResponse -> Maybe Text -> DescribeSchemaResponse)
-> Lens
DescribeSchemaResponse
DescribeSchemaResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemaResponse' {Maybe Text
type' :: Maybe Text
$sel:type':DescribeSchemaResponse' :: DescribeSchemaResponse -> Maybe Text
type'} -> Maybe Text
type') (\s :: DescribeSchemaResponse
s@DescribeSchemaResponse' {} Maybe Text
a -> DescribeSchemaResponse
s {$sel:type':DescribeSchemaResponse' :: Maybe Text
type' = Maybe Text
a} :: DescribeSchemaResponse)
describeSchemaResponse_lastModified :: Lens.Lens' DescribeSchemaResponse (Prelude.Maybe Prelude.UTCTime)
describeSchemaResponse_lastModified :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSchemaResponse -> f DescribeSchemaResponse
describeSchemaResponse_lastModified = (DescribeSchemaResponse -> Maybe POSIX)
-> (DescribeSchemaResponse
-> Maybe POSIX -> DescribeSchemaResponse)
-> Lens
DescribeSchemaResponse
DescribeSchemaResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemaResponse' {Maybe POSIX
lastModified :: Maybe POSIX
$sel:lastModified:DescribeSchemaResponse' :: DescribeSchemaResponse -> Maybe POSIX
lastModified} -> Maybe POSIX
lastModified) (\s :: DescribeSchemaResponse
s@DescribeSchemaResponse' {} Maybe POSIX
a -> DescribeSchemaResponse
s {$sel:lastModified:DescribeSchemaResponse' :: Maybe POSIX
lastModified = Maybe POSIX
a} :: DescribeSchemaResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeSchemaResponse -> f DescribeSchemaResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSchemaResponse
-> f DescribeSchemaResponse
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
describeSchemaResponse_description :: Lens.Lens' DescribeSchemaResponse (Prelude.Maybe Prelude.Text)
describeSchemaResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeSchemaResponse -> f DescribeSchemaResponse
describeSchemaResponse_description = (DescribeSchemaResponse -> Maybe Text)
-> (DescribeSchemaResponse -> Maybe Text -> DescribeSchemaResponse)
-> Lens
DescribeSchemaResponse
DescribeSchemaResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemaResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeSchemaResponse' :: DescribeSchemaResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeSchemaResponse
s@DescribeSchemaResponse' {} Maybe Text
a -> DescribeSchemaResponse
s {$sel:description:DescribeSchemaResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeSchemaResponse)
describeSchemaResponse_versionCreatedDate :: Lens.Lens' DescribeSchemaResponse (Prelude.Maybe Prelude.UTCTime)
describeSchemaResponse_versionCreatedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSchemaResponse -> f DescribeSchemaResponse
describeSchemaResponse_versionCreatedDate = (DescribeSchemaResponse -> Maybe POSIX)
-> (DescribeSchemaResponse
-> Maybe POSIX -> DescribeSchemaResponse)
-> Lens
DescribeSchemaResponse
DescribeSchemaResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemaResponse' {Maybe POSIX
versionCreatedDate :: Maybe POSIX
$sel:versionCreatedDate:DescribeSchemaResponse' :: DescribeSchemaResponse -> Maybe POSIX
versionCreatedDate} -> Maybe POSIX
versionCreatedDate) (\s :: DescribeSchemaResponse
s@DescribeSchemaResponse' {} Maybe POSIX
a -> DescribeSchemaResponse
s {$sel:versionCreatedDate:DescribeSchemaResponse' :: Maybe POSIX
versionCreatedDate = Maybe POSIX
a} :: DescribeSchemaResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeSchemaResponse -> f DescribeSchemaResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSchemaResponse
-> f DescribeSchemaResponse
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
describeSchemaResponse_tags :: Lens.Lens' DescribeSchemaResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeSchemaResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeSchemaResponse -> f DescribeSchemaResponse
describeSchemaResponse_tags = (DescribeSchemaResponse -> Maybe (HashMap Text Text))
-> (DescribeSchemaResponse
-> Maybe (HashMap Text Text) -> DescribeSchemaResponse)
-> Lens
DescribeSchemaResponse
DescribeSchemaResponse
(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 (\DescribeSchemaResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeSchemaResponse' :: DescribeSchemaResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeSchemaResponse
s@DescribeSchemaResponse' {} Maybe (HashMap Text Text)
a -> DescribeSchemaResponse
s {$sel:tags:DescribeSchemaResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeSchemaResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeSchemaResponse -> f DescribeSchemaResponse)
-> ((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)))
-> DescribeSchemaResponse
-> f DescribeSchemaResponse
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
describeSchemaResponse_httpStatus :: Lens.Lens' DescribeSchemaResponse Prelude.Int
describeSchemaResponse_httpStatus :: (Int -> f Int)
-> DescribeSchemaResponse -> f DescribeSchemaResponse
describeSchemaResponse_httpStatus = (DescribeSchemaResponse -> Int)
-> (DescribeSchemaResponse -> Int -> DescribeSchemaResponse)
-> Lens DescribeSchemaResponse DescribeSchemaResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemaResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeSchemaResponse' :: DescribeSchemaResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeSchemaResponse
s@DescribeSchemaResponse' {} Int
a -> DescribeSchemaResponse
s {$sel:httpStatus:DescribeSchemaResponse' :: Int
httpStatus = Int
a} :: DescribeSchemaResponse)
instance Prelude.NFData DescribeSchemaResponse