{-# 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.Glue.GetSchema
(
GetSchema (..),
newGetSchema,
getSchema_schemaId,
GetSchemaResponse (..),
newGetSchemaResponse,
getSchemaResponse_registryName,
getSchemaResponse_createdTime,
getSchemaResponse_schemaStatus,
getSchemaResponse_registryArn,
getSchemaResponse_latestSchemaVersion,
getSchemaResponse_dataFormat,
getSchemaResponse_schemaCheckpoint,
getSchemaResponse_schemaName,
getSchemaResponse_schemaArn,
getSchemaResponse_nextSchemaVersion,
getSchemaResponse_updatedTime,
getSchemaResponse_description,
getSchemaResponse_compatibility,
getSchemaResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetSchema = GetSchema'
{
GetSchema -> SchemaId
schemaId :: SchemaId
}
deriving (GetSchema -> GetSchema -> Bool
(GetSchema -> GetSchema -> Bool)
-> (GetSchema -> GetSchema -> Bool) -> Eq GetSchema
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSchema -> GetSchema -> Bool
$c/= :: GetSchema -> GetSchema -> Bool
== :: GetSchema -> GetSchema -> Bool
$c== :: GetSchema -> GetSchema -> Bool
Prelude.Eq, ReadPrec [GetSchema]
ReadPrec GetSchema
Int -> ReadS GetSchema
ReadS [GetSchema]
(Int -> ReadS GetSchema)
-> ReadS [GetSchema]
-> ReadPrec GetSchema
-> ReadPrec [GetSchema]
-> Read GetSchema
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSchema]
$creadListPrec :: ReadPrec [GetSchema]
readPrec :: ReadPrec GetSchema
$creadPrec :: ReadPrec GetSchema
readList :: ReadS [GetSchema]
$creadList :: ReadS [GetSchema]
readsPrec :: Int -> ReadS GetSchema
$creadsPrec :: Int -> ReadS GetSchema
Prelude.Read, Int -> GetSchema -> ShowS
[GetSchema] -> ShowS
GetSchema -> String
(Int -> GetSchema -> ShowS)
-> (GetSchema -> String)
-> ([GetSchema] -> ShowS)
-> Show GetSchema
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSchema] -> ShowS
$cshowList :: [GetSchema] -> ShowS
show :: GetSchema -> String
$cshow :: GetSchema -> String
showsPrec :: Int -> GetSchema -> ShowS
$cshowsPrec :: Int -> GetSchema -> ShowS
Prelude.Show, (forall x. GetSchema -> Rep GetSchema x)
-> (forall x. Rep GetSchema x -> GetSchema) -> Generic GetSchema
forall x. Rep GetSchema x -> GetSchema
forall x. GetSchema -> Rep GetSchema x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetSchema x -> GetSchema
$cfrom :: forall x. GetSchema -> Rep GetSchema x
Prelude.Generic)
newGetSchema ::
SchemaId ->
GetSchema
newGetSchema :: SchemaId -> GetSchema
newGetSchema SchemaId
pSchemaId_ =
GetSchema' :: SchemaId -> GetSchema
GetSchema' {$sel:schemaId:GetSchema' :: SchemaId
schemaId = SchemaId
pSchemaId_}
getSchema_schemaId :: Lens.Lens' GetSchema SchemaId
getSchema_schemaId :: (SchemaId -> f SchemaId) -> GetSchema -> f GetSchema
getSchema_schemaId = (GetSchema -> SchemaId)
-> (GetSchema -> SchemaId -> GetSchema)
-> Lens GetSchema GetSchema SchemaId SchemaId
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchema' {SchemaId
schemaId :: SchemaId
$sel:schemaId:GetSchema' :: GetSchema -> SchemaId
schemaId} -> SchemaId
schemaId) (\s :: GetSchema
s@GetSchema' {} SchemaId
a -> GetSchema
s {$sel:schemaId:GetSchema' :: SchemaId
schemaId = SchemaId
a} :: GetSchema)
instance Core.AWSRequest GetSchema where
type AWSResponse GetSchema = GetSchemaResponse
request :: GetSchema -> Request GetSchema
request = Service -> GetSchema -> Request GetSchema
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetSchema
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetSchema)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetSchema))
-> Logger
-> Service
-> Proxy GetSchema
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetSchema)))
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 SchemaStatus
-> Maybe Text
-> Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse
GetSchemaResponse'
(Maybe Text
-> Maybe Text
-> Maybe SchemaStatus
-> Maybe Text
-> Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe SchemaStatus
-> Maybe Text
-> Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
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
"RegistryName")
Either
String
(Maybe Text
-> Maybe SchemaStatus
-> Maybe Text
-> Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe SchemaStatus
-> Maybe Text
-> Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
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
"CreatedTime")
Either
String
(Maybe SchemaStatus
-> Maybe Text
-> Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
-> Either String (Maybe SchemaStatus)
-> Either
String
(Maybe Text
-> Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SchemaStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SchemaStatus")
Either
String
(Maybe Text
-> Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
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
"RegistryArn")
Either
String
(Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LatestSchemaVersion")
Either
String
(Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
-> Either String (Maybe DataFormat)
-> Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DataFormat)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DataFormat")
Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SchemaCheckpoint")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
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 Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
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 Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Compatibility -> Int -> GetSchemaResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextSchemaVersion")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Compatibility -> Int -> GetSchemaResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Compatibility -> Int -> GetSchemaResponse)
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
"UpdatedTime")
Either
String
(Maybe Text -> Maybe Compatibility -> Int -> GetSchemaResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Compatibility -> Int -> GetSchemaResponse)
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 Compatibility -> Int -> GetSchemaResponse)
-> Either String (Maybe Compatibility)
-> Either String (Int -> GetSchemaResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Compatibility)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Compatibility")
Either String (Int -> GetSchemaResponse)
-> Either String Int -> Either String GetSchemaResponse
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 GetSchema
instance Prelude.NFData GetSchema
instance Core.ToHeaders GetSchema where
toHeaders :: GetSchema -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetSchema -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"AWSGlue.GetSchema" :: Prelude.ByteString),
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 GetSchema where
toJSON :: GetSchema -> Value
toJSON GetSchema' {SchemaId
schemaId :: SchemaId
$sel:schemaId:GetSchema' :: GetSchema -> SchemaId
..} =
[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
"SchemaId" Text -> SchemaId -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= SchemaId
schemaId)]
)
instance Core.ToPath GetSchema where
toPath :: GetSchema -> ByteString
toPath = ByteString -> GetSchema -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetSchema where
toQuery :: GetSchema -> QueryString
toQuery = QueryString -> GetSchema -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetSchemaResponse = GetSchemaResponse'
{
GetSchemaResponse -> Maybe Text
registryName :: Prelude.Maybe Prelude.Text,
GetSchemaResponse -> Maybe Text
createdTime :: Prelude.Maybe Prelude.Text,
GetSchemaResponse -> Maybe SchemaStatus
schemaStatus :: Prelude.Maybe SchemaStatus,
GetSchemaResponse -> Maybe Text
registryArn :: Prelude.Maybe Prelude.Text,
GetSchemaResponse -> Maybe Natural
latestSchemaVersion :: Prelude.Maybe Prelude.Natural,
GetSchemaResponse -> Maybe DataFormat
dataFormat :: Prelude.Maybe DataFormat,
GetSchemaResponse -> Maybe Natural
schemaCheckpoint :: Prelude.Maybe Prelude.Natural,
GetSchemaResponse -> Maybe Text
schemaName :: Prelude.Maybe Prelude.Text,
GetSchemaResponse -> Maybe Text
schemaArn :: Prelude.Maybe Prelude.Text,
GetSchemaResponse -> Maybe Natural
nextSchemaVersion :: Prelude.Maybe Prelude.Natural,
GetSchemaResponse -> Maybe Text
updatedTime :: Prelude.Maybe Prelude.Text,
GetSchemaResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
GetSchemaResponse -> Maybe Compatibility
compatibility :: Prelude.Maybe Compatibility,
GetSchemaResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetSchemaResponse -> GetSchemaResponse -> Bool
(GetSchemaResponse -> GetSchemaResponse -> Bool)
-> (GetSchemaResponse -> GetSchemaResponse -> Bool)
-> Eq GetSchemaResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSchemaResponse -> GetSchemaResponse -> Bool
$c/= :: GetSchemaResponse -> GetSchemaResponse -> Bool
== :: GetSchemaResponse -> GetSchemaResponse -> Bool
$c== :: GetSchemaResponse -> GetSchemaResponse -> Bool
Prelude.Eq, ReadPrec [GetSchemaResponse]
ReadPrec GetSchemaResponse
Int -> ReadS GetSchemaResponse
ReadS [GetSchemaResponse]
(Int -> ReadS GetSchemaResponse)
-> ReadS [GetSchemaResponse]
-> ReadPrec GetSchemaResponse
-> ReadPrec [GetSchemaResponse]
-> Read GetSchemaResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSchemaResponse]
$creadListPrec :: ReadPrec [GetSchemaResponse]
readPrec :: ReadPrec GetSchemaResponse
$creadPrec :: ReadPrec GetSchemaResponse
readList :: ReadS [GetSchemaResponse]
$creadList :: ReadS [GetSchemaResponse]
readsPrec :: Int -> ReadS GetSchemaResponse
$creadsPrec :: Int -> ReadS GetSchemaResponse
Prelude.Read, Int -> GetSchemaResponse -> ShowS
[GetSchemaResponse] -> ShowS
GetSchemaResponse -> String
(Int -> GetSchemaResponse -> ShowS)
-> (GetSchemaResponse -> String)
-> ([GetSchemaResponse] -> ShowS)
-> Show GetSchemaResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSchemaResponse] -> ShowS
$cshowList :: [GetSchemaResponse] -> ShowS
show :: GetSchemaResponse -> String
$cshow :: GetSchemaResponse -> String
showsPrec :: Int -> GetSchemaResponse -> ShowS
$cshowsPrec :: Int -> GetSchemaResponse -> ShowS
Prelude.Show, (forall x. GetSchemaResponse -> Rep GetSchemaResponse x)
-> (forall x. Rep GetSchemaResponse x -> GetSchemaResponse)
-> Generic GetSchemaResponse
forall x. Rep GetSchemaResponse x -> GetSchemaResponse
forall x. GetSchemaResponse -> Rep GetSchemaResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetSchemaResponse x -> GetSchemaResponse
$cfrom :: forall x. GetSchemaResponse -> Rep GetSchemaResponse x
Prelude.Generic)
newGetSchemaResponse ::
Prelude.Int ->
GetSchemaResponse
newGetSchemaResponse :: Int -> GetSchemaResponse
newGetSchemaResponse Int
pHttpStatus_ =
GetSchemaResponse' :: Maybe Text
-> Maybe Text
-> Maybe SchemaStatus
-> Maybe Text
-> Maybe Natural
-> Maybe DataFormat
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Compatibility
-> Int
-> GetSchemaResponse
GetSchemaResponse'
{ $sel:registryName:GetSchemaResponse' :: Maybe Text
registryName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdTime:GetSchemaResponse' :: Maybe Text
createdTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:schemaStatus:GetSchemaResponse' :: Maybe SchemaStatus
schemaStatus = Maybe SchemaStatus
forall a. Maybe a
Prelude.Nothing,
$sel:registryArn:GetSchemaResponse' :: Maybe Text
registryArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:latestSchemaVersion:GetSchemaResponse' :: Maybe Natural
latestSchemaVersion = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:dataFormat:GetSchemaResponse' :: Maybe DataFormat
dataFormat = Maybe DataFormat
forall a. Maybe a
Prelude.Nothing,
$sel:schemaCheckpoint:GetSchemaResponse' :: Maybe Natural
schemaCheckpoint = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:schemaName:GetSchemaResponse' :: Maybe Text
schemaName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:schemaArn:GetSchemaResponse' :: Maybe Text
schemaArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextSchemaVersion:GetSchemaResponse' :: Maybe Natural
nextSchemaVersion = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:updatedTime:GetSchemaResponse' :: Maybe Text
updatedTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:GetSchemaResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:compatibility:GetSchemaResponse' :: Maybe Compatibility
compatibility = Maybe Compatibility
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetSchemaResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getSchemaResponse_registryName :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Prelude.Text)
getSchemaResponse_registryName :: (Maybe Text -> f (Maybe Text))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_registryName = (GetSchemaResponse -> Maybe Text)
-> (GetSchemaResponse -> Maybe Text -> GetSchemaResponse)
-> Lens
GetSchemaResponse GetSchemaResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Text
registryName :: Maybe Text
$sel:registryName:GetSchemaResponse' :: GetSchemaResponse -> Maybe Text
registryName} -> Maybe Text
registryName) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Text
a -> GetSchemaResponse
s {$sel:registryName:GetSchemaResponse' :: Maybe Text
registryName = Maybe Text
a} :: GetSchemaResponse)
getSchemaResponse_createdTime :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Prelude.Text)
getSchemaResponse_createdTime :: (Maybe Text -> f (Maybe Text))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_createdTime = (GetSchemaResponse -> Maybe Text)
-> (GetSchemaResponse -> Maybe Text -> GetSchemaResponse)
-> Lens
GetSchemaResponse GetSchemaResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Text
createdTime :: Maybe Text
$sel:createdTime:GetSchemaResponse' :: GetSchemaResponse -> Maybe Text
createdTime} -> Maybe Text
createdTime) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Text
a -> GetSchemaResponse
s {$sel:createdTime:GetSchemaResponse' :: Maybe Text
createdTime = Maybe Text
a} :: GetSchemaResponse)
getSchemaResponse_schemaStatus :: Lens.Lens' GetSchemaResponse (Prelude.Maybe SchemaStatus)
getSchemaResponse_schemaStatus :: (Maybe SchemaStatus -> f (Maybe SchemaStatus))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_schemaStatus = (GetSchemaResponse -> Maybe SchemaStatus)
-> (GetSchemaResponse -> Maybe SchemaStatus -> GetSchemaResponse)
-> Lens
GetSchemaResponse
GetSchemaResponse
(Maybe SchemaStatus)
(Maybe SchemaStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe SchemaStatus
schemaStatus :: Maybe SchemaStatus
$sel:schemaStatus:GetSchemaResponse' :: GetSchemaResponse -> Maybe SchemaStatus
schemaStatus} -> Maybe SchemaStatus
schemaStatus) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe SchemaStatus
a -> GetSchemaResponse
s {$sel:schemaStatus:GetSchemaResponse' :: Maybe SchemaStatus
schemaStatus = Maybe SchemaStatus
a} :: GetSchemaResponse)
getSchemaResponse_registryArn :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Prelude.Text)
getSchemaResponse_registryArn :: (Maybe Text -> f (Maybe Text))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_registryArn = (GetSchemaResponse -> Maybe Text)
-> (GetSchemaResponse -> Maybe Text -> GetSchemaResponse)
-> Lens
GetSchemaResponse GetSchemaResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Text
registryArn :: Maybe Text
$sel:registryArn:GetSchemaResponse' :: GetSchemaResponse -> Maybe Text
registryArn} -> Maybe Text
registryArn) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Text
a -> GetSchemaResponse
s {$sel:registryArn:GetSchemaResponse' :: Maybe Text
registryArn = Maybe Text
a} :: GetSchemaResponse)
getSchemaResponse_latestSchemaVersion :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Prelude.Natural)
getSchemaResponse_latestSchemaVersion :: (Maybe Natural -> f (Maybe Natural))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_latestSchemaVersion = (GetSchemaResponse -> Maybe Natural)
-> (GetSchemaResponse -> Maybe Natural -> GetSchemaResponse)
-> Lens
GetSchemaResponse GetSchemaResponse (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Natural
latestSchemaVersion :: Maybe Natural
$sel:latestSchemaVersion:GetSchemaResponse' :: GetSchemaResponse -> Maybe Natural
latestSchemaVersion} -> Maybe Natural
latestSchemaVersion) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Natural
a -> GetSchemaResponse
s {$sel:latestSchemaVersion:GetSchemaResponse' :: Maybe Natural
latestSchemaVersion = Maybe Natural
a} :: GetSchemaResponse)
getSchemaResponse_dataFormat :: Lens.Lens' GetSchemaResponse (Prelude.Maybe DataFormat)
getSchemaResponse_dataFormat :: (Maybe DataFormat -> f (Maybe DataFormat))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_dataFormat = (GetSchemaResponse -> Maybe DataFormat)
-> (GetSchemaResponse -> Maybe DataFormat -> GetSchemaResponse)
-> Lens
GetSchemaResponse
GetSchemaResponse
(Maybe DataFormat)
(Maybe DataFormat)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe DataFormat
dataFormat :: Maybe DataFormat
$sel:dataFormat:GetSchemaResponse' :: GetSchemaResponse -> Maybe DataFormat
dataFormat} -> Maybe DataFormat
dataFormat) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe DataFormat
a -> GetSchemaResponse
s {$sel:dataFormat:GetSchemaResponse' :: Maybe DataFormat
dataFormat = Maybe DataFormat
a} :: GetSchemaResponse)
getSchemaResponse_schemaCheckpoint :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Prelude.Natural)
getSchemaResponse_schemaCheckpoint :: (Maybe Natural -> f (Maybe Natural))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_schemaCheckpoint = (GetSchemaResponse -> Maybe Natural)
-> (GetSchemaResponse -> Maybe Natural -> GetSchemaResponse)
-> Lens
GetSchemaResponse GetSchemaResponse (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Natural
schemaCheckpoint :: Maybe Natural
$sel:schemaCheckpoint:GetSchemaResponse' :: GetSchemaResponse -> Maybe Natural
schemaCheckpoint} -> Maybe Natural
schemaCheckpoint) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Natural
a -> GetSchemaResponse
s {$sel:schemaCheckpoint:GetSchemaResponse' :: Maybe Natural
schemaCheckpoint = Maybe Natural
a} :: GetSchemaResponse)
getSchemaResponse_schemaName :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Prelude.Text)
getSchemaResponse_schemaName :: (Maybe Text -> f (Maybe Text))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_schemaName = (GetSchemaResponse -> Maybe Text)
-> (GetSchemaResponse -> Maybe Text -> GetSchemaResponse)
-> Lens
GetSchemaResponse GetSchemaResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Text
schemaName :: Maybe Text
$sel:schemaName:GetSchemaResponse' :: GetSchemaResponse -> Maybe Text
schemaName} -> Maybe Text
schemaName) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Text
a -> GetSchemaResponse
s {$sel:schemaName:GetSchemaResponse' :: Maybe Text
schemaName = Maybe Text
a} :: GetSchemaResponse)
getSchemaResponse_schemaArn :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Prelude.Text)
getSchemaResponse_schemaArn :: (Maybe Text -> f (Maybe Text))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_schemaArn = (GetSchemaResponse -> Maybe Text)
-> (GetSchemaResponse -> Maybe Text -> GetSchemaResponse)
-> Lens
GetSchemaResponse GetSchemaResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Text
schemaArn :: Maybe Text
$sel:schemaArn:GetSchemaResponse' :: GetSchemaResponse -> Maybe Text
schemaArn} -> Maybe Text
schemaArn) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Text
a -> GetSchemaResponse
s {$sel:schemaArn:GetSchemaResponse' :: Maybe Text
schemaArn = Maybe Text
a} :: GetSchemaResponse)
getSchemaResponse_nextSchemaVersion :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Prelude.Natural)
getSchemaResponse_nextSchemaVersion :: (Maybe Natural -> f (Maybe Natural))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_nextSchemaVersion = (GetSchemaResponse -> Maybe Natural)
-> (GetSchemaResponse -> Maybe Natural -> GetSchemaResponse)
-> Lens
GetSchemaResponse GetSchemaResponse (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Natural
nextSchemaVersion :: Maybe Natural
$sel:nextSchemaVersion:GetSchemaResponse' :: GetSchemaResponse -> Maybe Natural
nextSchemaVersion} -> Maybe Natural
nextSchemaVersion) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Natural
a -> GetSchemaResponse
s {$sel:nextSchemaVersion:GetSchemaResponse' :: Maybe Natural
nextSchemaVersion = Maybe Natural
a} :: GetSchemaResponse)
getSchemaResponse_updatedTime :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Prelude.Text)
getSchemaResponse_updatedTime :: (Maybe Text -> f (Maybe Text))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_updatedTime = (GetSchemaResponse -> Maybe Text)
-> (GetSchemaResponse -> Maybe Text -> GetSchemaResponse)
-> Lens
GetSchemaResponse GetSchemaResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Text
updatedTime :: Maybe Text
$sel:updatedTime:GetSchemaResponse' :: GetSchemaResponse -> Maybe Text
updatedTime} -> Maybe Text
updatedTime) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Text
a -> GetSchemaResponse
s {$sel:updatedTime:GetSchemaResponse' :: Maybe Text
updatedTime = Maybe Text
a} :: GetSchemaResponse)
getSchemaResponse_description :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Prelude.Text)
getSchemaResponse_description :: (Maybe Text -> f (Maybe Text))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_description = (GetSchemaResponse -> Maybe Text)
-> (GetSchemaResponse -> Maybe Text -> GetSchemaResponse)
-> Lens
GetSchemaResponse GetSchemaResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Text
description :: Maybe Text
$sel:description:GetSchemaResponse' :: GetSchemaResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Text
a -> GetSchemaResponse
s {$sel:description:GetSchemaResponse' :: Maybe Text
description = Maybe Text
a} :: GetSchemaResponse)
getSchemaResponse_compatibility :: Lens.Lens' GetSchemaResponse (Prelude.Maybe Compatibility)
getSchemaResponse_compatibility :: (Maybe Compatibility -> f (Maybe Compatibility))
-> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_compatibility = (GetSchemaResponse -> Maybe Compatibility)
-> (GetSchemaResponse -> Maybe Compatibility -> GetSchemaResponse)
-> Lens
GetSchemaResponse
GetSchemaResponse
(Maybe Compatibility)
(Maybe Compatibility)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Maybe Compatibility
compatibility :: Maybe Compatibility
$sel:compatibility:GetSchemaResponse' :: GetSchemaResponse -> Maybe Compatibility
compatibility} -> Maybe Compatibility
compatibility) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Maybe Compatibility
a -> GetSchemaResponse
s {$sel:compatibility:GetSchemaResponse' :: Maybe Compatibility
compatibility = Maybe Compatibility
a} :: GetSchemaResponse)
getSchemaResponse_httpStatus :: Lens.Lens' GetSchemaResponse Prelude.Int
getSchemaResponse_httpStatus :: (Int -> f Int) -> GetSchemaResponse -> f GetSchemaResponse
getSchemaResponse_httpStatus = (GetSchemaResponse -> Int)
-> (GetSchemaResponse -> Int -> GetSchemaResponse)
-> Lens GetSchemaResponse GetSchemaResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSchemaResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetSchemaResponse' :: GetSchemaResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetSchemaResponse
s@GetSchemaResponse' {} Int
a -> GetSchemaResponse
s {$sel:httpStatus:GetSchemaResponse' :: Int
httpStatus = Int
a} :: GetSchemaResponse)
instance Prelude.NFData GetSchemaResponse