{-# 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.PutSchemaVersionMetadata
(
PutSchemaVersionMetadata (..),
newPutSchemaVersionMetadata,
putSchemaVersionMetadata_schemaVersionId,
putSchemaVersionMetadata_schemaId,
putSchemaVersionMetadata_schemaVersionNumber,
putSchemaVersionMetadata_metadataKeyValue,
PutSchemaVersionMetadataResponse (..),
newPutSchemaVersionMetadataResponse,
putSchemaVersionMetadataResponse_registryName,
putSchemaVersionMetadataResponse_schemaName,
putSchemaVersionMetadataResponse_schemaVersionId,
putSchemaVersionMetadataResponse_versionNumber,
putSchemaVersionMetadataResponse_schemaArn,
putSchemaVersionMetadataResponse_metadataKey,
putSchemaVersionMetadataResponse_metadataValue,
putSchemaVersionMetadataResponse_latestVersion,
putSchemaVersionMetadataResponse_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 PutSchemaVersionMetadata = PutSchemaVersionMetadata'
{
PutSchemaVersionMetadata -> Maybe Text
schemaVersionId :: Prelude.Maybe Prelude.Text,
PutSchemaVersionMetadata -> Maybe SchemaId
schemaId :: Prelude.Maybe SchemaId,
PutSchemaVersionMetadata -> Maybe SchemaVersionNumber
schemaVersionNumber :: Prelude.Maybe SchemaVersionNumber,
PutSchemaVersionMetadata -> MetadataKeyValuePair
metadataKeyValue :: MetadataKeyValuePair
}
deriving (PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool
(PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool)
-> (PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool)
-> Eq PutSchemaVersionMetadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool
$c/= :: PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool
== :: PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool
$c== :: PutSchemaVersionMetadata -> PutSchemaVersionMetadata -> Bool
Prelude.Eq, ReadPrec [PutSchemaVersionMetadata]
ReadPrec PutSchemaVersionMetadata
Int -> ReadS PutSchemaVersionMetadata
ReadS [PutSchemaVersionMetadata]
(Int -> ReadS PutSchemaVersionMetadata)
-> ReadS [PutSchemaVersionMetadata]
-> ReadPrec PutSchemaVersionMetadata
-> ReadPrec [PutSchemaVersionMetadata]
-> Read PutSchemaVersionMetadata
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutSchemaVersionMetadata]
$creadListPrec :: ReadPrec [PutSchemaVersionMetadata]
readPrec :: ReadPrec PutSchemaVersionMetadata
$creadPrec :: ReadPrec PutSchemaVersionMetadata
readList :: ReadS [PutSchemaVersionMetadata]
$creadList :: ReadS [PutSchemaVersionMetadata]
readsPrec :: Int -> ReadS PutSchemaVersionMetadata
$creadsPrec :: Int -> ReadS PutSchemaVersionMetadata
Prelude.Read, Int -> PutSchemaVersionMetadata -> ShowS
[PutSchemaVersionMetadata] -> ShowS
PutSchemaVersionMetadata -> String
(Int -> PutSchemaVersionMetadata -> ShowS)
-> (PutSchemaVersionMetadata -> String)
-> ([PutSchemaVersionMetadata] -> ShowS)
-> Show PutSchemaVersionMetadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutSchemaVersionMetadata] -> ShowS
$cshowList :: [PutSchemaVersionMetadata] -> ShowS
show :: PutSchemaVersionMetadata -> String
$cshow :: PutSchemaVersionMetadata -> String
showsPrec :: Int -> PutSchemaVersionMetadata -> ShowS
$cshowsPrec :: Int -> PutSchemaVersionMetadata -> ShowS
Prelude.Show, (forall x.
PutSchemaVersionMetadata -> Rep PutSchemaVersionMetadata x)
-> (forall x.
Rep PutSchemaVersionMetadata x -> PutSchemaVersionMetadata)
-> Generic PutSchemaVersionMetadata
forall x.
Rep PutSchemaVersionMetadata x -> PutSchemaVersionMetadata
forall x.
PutSchemaVersionMetadata -> Rep PutSchemaVersionMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutSchemaVersionMetadata x -> PutSchemaVersionMetadata
$cfrom :: forall x.
PutSchemaVersionMetadata -> Rep PutSchemaVersionMetadata x
Prelude.Generic)
newPutSchemaVersionMetadata ::
MetadataKeyValuePair ->
PutSchemaVersionMetadata
newPutSchemaVersionMetadata :: MetadataKeyValuePair -> PutSchemaVersionMetadata
newPutSchemaVersionMetadata MetadataKeyValuePair
pMetadataKeyValue_ =
PutSchemaVersionMetadata' :: Maybe Text
-> Maybe SchemaId
-> Maybe SchemaVersionNumber
-> MetadataKeyValuePair
-> PutSchemaVersionMetadata
PutSchemaVersionMetadata'
{ $sel:schemaVersionId:PutSchemaVersionMetadata' :: Maybe Text
schemaVersionId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:schemaId:PutSchemaVersionMetadata' :: Maybe SchemaId
schemaId = Maybe SchemaId
forall a. Maybe a
Prelude.Nothing,
$sel:schemaVersionNumber:PutSchemaVersionMetadata' :: Maybe SchemaVersionNumber
schemaVersionNumber = Maybe SchemaVersionNumber
forall a. Maybe a
Prelude.Nothing,
$sel:metadataKeyValue:PutSchemaVersionMetadata' :: MetadataKeyValuePair
metadataKeyValue = MetadataKeyValuePair
pMetadataKeyValue_
}
putSchemaVersionMetadata_schemaVersionId :: Lens.Lens' PutSchemaVersionMetadata (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadata_schemaVersionId :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadata -> f PutSchemaVersionMetadata
putSchemaVersionMetadata_schemaVersionId = (PutSchemaVersionMetadata -> Maybe Text)
-> (PutSchemaVersionMetadata
-> Maybe Text -> PutSchemaVersionMetadata)
-> Lens
PutSchemaVersionMetadata
PutSchemaVersionMetadata
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadata' {Maybe Text
schemaVersionId :: Maybe Text
$sel:schemaVersionId:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe Text
schemaVersionId} -> Maybe Text
schemaVersionId) (\s :: PutSchemaVersionMetadata
s@PutSchemaVersionMetadata' {} Maybe Text
a -> PutSchemaVersionMetadata
s {$sel:schemaVersionId:PutSchemaVersionMetadata' :: Maybe Text
schemaVersionId = Maybe Text
a} :: PutSchemaVersionMetadata)
putSchemaVersionMetadata_schemaId :: Lens.Lens' PutSchemaVersionMetadata (Prelude.Maybe SchemaId)
putSchemaVersionMetadata_schemaId :: (Maybe SchemaId -> f (Maybe SchemaId))
-> PutSchemaVersionMetadata -> f PutSchemaVersionMetadata
putSchemaVersionMetadata_schemaId = (PutSchemaVersionMetadata -> Maybe SchemaId)
-> (PutSchemaVersionMetadata
-> Maybe SchemaId -> PutSchemaVersionMetadata)
-> Lens
PutSchemaVersionMetadata
PutSchemaVersionMetadata
(Maybe SchemaId)
(Maybe SchemaId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadata' {Maybe SchemaId
schemaId :: Maybe SchemaId
$sel:schemaId:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe SchemaId
schemaId} -> Maybe SchemaId
schemaId) (\s :: PutSchemaVersionMetadata
s@PutSchemaVersionMetadata' {} Maybe SchemaId
a -> PutSchemaVersionMetadata
s {$sel:schemaId:PutSchemaVersionMetadata' :: Maybe SchemaId
schemaId = Maybe SchemaId
a} :: PutSchemaVersionMetadata)
putSchemaVersionMetadata_schemaVersionNumber :: Lens.Lens' PutSchemaVersionMetadata (Prelude.Maybe SchemaVersionNumber)
putSchemaVersionMetadata_schemaVersionNumber :: (Maybe SchemaVersionNumber -> f (Maybe SchemaVersionNumber))
-> PutSchemaVersionMetadata -> f PutSchemaVersionMetadata
putSchemaVersionMetadata_schemaVersionNumber = (PutSchemaVersionMetadata -> Maybe SchemaVersionNumber)
-> (PutSchemaVersionMetadata
-> Maybe SchemaVersionNumber -> PutSchemaVersionMetadata)
-> Lens
PutSchemaVersionMetadata
PutSchemaVersionMetadata
(Maybe SchemaVersionNumber)
(Maybe SchemaVersionNumber)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadata' {Maybe SchemaVersionNumber
schemaVersionNumber :: Maybe SchemaVersionNumber
$sel:schemaVersionNumber:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe SchemaVersionNumber
schemaVersionNumber} -> Maybe SchemaVersionNumber
schemaVersionNumber) (\s :: PutSchemaVersionMetadata
s@PutSchemaVersionMetadata' {} Maybe SchemaVersionNumber
a -> PutSchemaVersionMetadata
s {$sel:schemaVersionNumber:PutSchemaVersionMetadata' :: Maybe SchemaVersionNumber
schemaVersionNumber = Maybe SchemaVersionNumber
a} :: PutSchemaVersionMetadata)
putSchemaVersionMetadata_metadataKeyValue :: Lens.Lens' PutSchemaVersionMetadata MetadataKeyValuePair
putSchemaVersionMetadata_metadataKeyValue :: (MetadataKeyValuePair -> f MetadataKeyValuePair)
-> PutSchemaVersionMetadata -> f PutSchemaVersionMetadata
putSchemaVersionMetadata_metadataKeyValue = (PutSchemaVersionMetadata -> MetadataKeyValuePair)
-> (PutSchemaVersionMetadata
-> MetadataKeyValuePair -> PutSchemaVersionMetadata)
-> Lens
PutSchemaVersionMetadata
PutSchemaVersionMetadata
MetadataKeyValuePair
MetadataKeyValuePair
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadata' {MetadataKeyValuePair
metadataKeyValue :: MetadataKeyValuePair
$sel:metadataKeyValue:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> MetadataKeyValuePair
metadataKeyValue} -> MetadataKeyValuePair
metadataKeyValue) (\s :: PutSchemaVersionMetadata
s@PutSchemaVersionMetadata' {} MetadataKeyValuePair
a -> PutSchemaVersionMetadata
s {$sel:metadataKeyValue:PutSchemaVersionMetadata' :: MetadataKeyValuePair
metadataKeyValue = MetadataKeyValuePair
a} :: PutSchemaVersionMetadata)
instance Core.AWSRequest PutSchemaVersionMetadata where
type
AWSResponse PutSchemaVersionMetadata =
PutSchemaVersionMetadataResponse
request :: PutSchemaVersionMetadata -> Request PutSchemaVersionMetadata
request = Service
-> PutSchemaVersionMetadata -> Request PutSchemaVersionMetadata
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PutSchemaVersionMetadata
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutSchemaVersionMetadata)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse PutSchemaVersionMetadata))
-> Logger
-> Service
-> Proxy PutSchemaVersionMetadata
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutSchemaVersionMetadata)))
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 Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
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 Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
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 Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
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
"SchemaVersionId")
Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
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
"VersionNumber")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
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 Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Bool -> Int -> PutSchemaVersionMetadataResponse)
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
"MetadataKey")
Either
String
(Maybe Text
-> Maybe Bool -> Int -> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Bool -> Int -> PutSchemaVersionMetadataResponse)
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
"MetadataValue")
Either
String (Maybe Bool -> Int -> PutSchemaVersionMetadataResponse)
-> Either String (Maybe Bool)
-> Either String (Int -> PutSchemaVersionMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LatestVersion")
Either String (Int -> PutSchemaVersionMetadataResponse)
-> Either String Int
-> Either String PutSchemaVersionMetadataResponse
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 PutSchemaVersionMetadata
instance Prelude.NFData PutSchemaVersionMetadata
instance Core.ToHeaders PutSchemaVersionMetadata where
toHeaders :: PutSchemaVersionMetadata -> ResponseHeaders
toHeaders =
ResponseHeaders -> PutSchemaVersionMetadata -> 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.PutSchemaVersionMetadata" ::
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 PutSchemaVersionMetadata where
toJSON :: PutSchemaVersionMetadata -> Value
toJSON PutSchemaVersionMetadata' {Maybe Text
Maybe SchemaId
Maybe SchemaVersionNumber
MetadataKeyValuePair
metadataKeyValue :: MetadataKeyValuePair
schemaVersionNumber :: Maybe SchemaVersionNumber
schemaId :: Maybe SchemaId
schemaVersionId :: Maybe Text
$sel:metadataKeyValue:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> MetadataKeyValuePair
$sel:schemaVersionNumber:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe SchemaVersionNumber
$sel:schemaId:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe SchemaId
$sel:schemaVersionId:PutSchemaVersionMetadata' :: PutSchemaVersionMetadata -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"SchemaVersionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
schemaVersionId,
(Text
"SchemaId" Text -> SchemaId -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (SchemaId -> Pair) -> Maybe SchemaId -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SchemaId
schemaId,
(Text
"SchemaVersionNumber" Text -> SchemaVersionNumber -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(SchemaVersionNumber -> Pair)
-> Maybe SchemaVersionNumber -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SchemaVersionNumber
schemaVersionNumber,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"MetadataKeyValue" Text -> MetadataKeyValuePair -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= MetadataKeyValuePair
metadataKeyValue)
]
)
instance Core.ToPath PutSchemaVersionMetadata where
toPath :: PutSchemaVersionMetadata -> ByteString
toPath = ByteString -> PutSchemaVersionMetadata -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery PutSchemaVersionMetadata where
toQuery :: PutSchemaVersionMetadata -> QueryString
toQuery = QueryString -> PutSchemaVersionMetadata -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data PutSchemaVersionMetadataResponse = PutSchemaVersionMetadataResponse'
{
PutSchemaVersionMetadataResponse -> Maybe Text
registryName :: Prelude.Maybe Prelude.Text,
PutSchemaVersionMetadataResponse -> Maybe Text
schemaName :: Prelude.Maybe Prelude.Text,
PutSchemaVersionMetadataResponse -> Maybe Text
schemaVersionId :: Prelude.Maybe Prelude.Text,
PutSchemaVersionMetadataResponse -> Maybe Natural
versionNumber :: Prelude.Maybe Prelude.Natural,
PutSchemaVersionMetadataResponse -> Maybe Text
schemaArn :: Prelude.Maybe Prelude.Text,
PutSchemaVersionMetadataResponse -> Maybe Text
metadataKey :: Prelude.Maybe Prelude.Text,
PutSchemaVersionMetadataResponse -> Maybe Text
metadataValue :: Prelude.Maybe Prelude.Text,
PutSchemaVersionMetadataResponse -> Maybe Bool
latestVersion :: Prelude.Maybe Prelude.Bool,
PutSchemaVersionMetadataResponse -> Int
httpStatus :: Prelude.Int
}
deriving (PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool
(PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool)
-> (PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool)
-> Eq PutSchemaVersionMetadataResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool
$c/= :: PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool
== :: PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool
$c== :: PutSchemaVersionMetadataResponse
-> PutSchemaVersionMetadataResponse -> Bool
Prelude.Eq, ReadPrec [PutSchemaVersionMetadataResponse]
ReadPrec PutSchemaVersionMetadataResponse
Int -> ReadS PutSchemaVersionMetadataResponse
ReadS [PutSchemaVersionMetadataResponse]
(Int -> ReadS PutSchemaVersionMetadataResponse)
-> ReadS [PutSchemaVersionMetadataResponse]
-> ReadPrec PutSchemaVersionMetadataResponse
-> ReadPrec [PutSchemaVersionMetadataResponse]
-> Read PutSchemaVersionMetadataResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutSchemaVersionMetadataResponse]
$creadListPrec :: ReadPrec [PutSchemaVersionMetadataResponse]
readPrec :: ReadPrec PutSchemaVersionMetadataResponse
$creadPrec :: ReadPrec PutSchemaVersionMetadataResponse
readList :: ReadS [PutSchemaVersionMetadataResponse]
$creadList :: ReadS [PutSchemaVersionMetadataResponse]
readsPrec :: Int -> ReadS PutSchemaVersionMetadataResponse
$creadsPrec :: Int -> ReadS PutSchemaVersionMetadataResponse
Prelude.Read, Int -> PutSchemaVersionMetadataResponse -> ShowS
[PutSchemaVersionMetadataResponse] -> ShowS
PutSchemaVersionMetadataResponse -> String
(Int -> PutSchemaVersionMetadataResponse -> ShowS)
-> (PutSchemaVersionMetadataResponse -> String)
-> ([PutSchemaVersionMetadataResponse] -> ShowS)
-> Show PutSchemaVersionMetadataResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutSchemaVersionMetadataResponse] -> ShowS
$cshowList :: [PutSchemaVersionMetadataResponse] -> ShowS
show :: PutSchemaVersionMetadataResponse -> String
$cshow :: PutSchemaVersionMetadataResponse -> String
showsPrec :: Int -> PutSchemaVersionMetadataResponse -> ShowS
$cshowsPrec :: Int -> PutSchemaVersionMetadataResponse -> ShowS
Prelude.Show, (forall x.
PutSchemaVersionMetadataResponse
-> Rep PutSchemaVersionMetadataResponse x)
-> (forall x.
Rep PutSchemaVersionMetadataResponse x
-> PutSchemaVersionMetadataResponse)
-> Generic PutSchemaVersionMetadataResponse
forall x.
Rep PutSchemaVersionMetadataResponse x
-> PutSchemaVersionMetadataResponse
forall x.
PutSchemaVersionMetadataResponse
-> Rep PutSchemaVersionMetadataResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutSchemaVersionMetadataResponse x
-> PutSchemaVersionMetadataResponse
$cfrom :: forall x.
PutSchemaVersionMetadataResponse
-> Rep PutSchemaVersionMetadataResponse x
Prelude.Generic)
newPutSchemaVersionMetadataResponse ::
Prelude.Int ->
PutSchemaVersionMetadataResponse
newPutSchemaVersionMetadataResponse :: Int -> PutSchemaVersionMetadataResponse
newPutSchemaVersionMetadataResponse Int
pHttpStatus_ =
PutSchemaVersionMetadataResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse'
{ $sel:registryName:PutSchemaVersionMetadataResponse' :: Maybe Text
registryName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:schemaName:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:schemaVersionId:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaVersionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:versionNumber:PutSchemaVersionMetadataResponse' :: Maybe Natural
versionNumber = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:schemaArn:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:metadataKey:PutSchemaVersionMetadataResponse' :: Maybe Text
metadataKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:metadataValue:PutSchemaVersionMetadataResponse' :: Maybe Text
metadataValue = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:latestVersion:PutSchemaVersionMetadataResponse' :: Maybe Bool
latestVersion = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PutSchemaVersionMetadataResponse' :: Int
httpStatus = Int
pHttpStatus_
}
putSchemaVersionMetadataResponse_registryName :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_registryName :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_registryName = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
-> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
registryName :: Maybe Text
$sel:registryName:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
registryName} -> Maybe Text
registryName) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:registryName:PutSchemaVersionMetadataResponse' :: Maybe Text
registryName = Maybe Text
a} :: PutSchemaVersionMetadataResponse)
putSchemaVersionMetadataResponse_schemaName :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_schemaName :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_schemaName = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
-> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
schemaName :: Maybe Text
$sel:schemaName:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
schemaName} -> Maybe Text
schemaName) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:schemaName:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaName = Maybe Text
a} :: PutSchemaVersionMetadataResponse)
putSchemaVersionMetadataResponse_schemaVersionId :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_schemaVersionId :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_schemaVersionId = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
-> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
schemaVersionId :: Maybe Text
$sel:schemaVersionId:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
schemaVersionId} -> Maybe Text
schemaVersionId) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:schemaVersionId:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaVersionId = Maybe Text
a} :: PutSchemaVersionMetadataResponse)
putSchemaVersionMetadataResponse_versionNumber :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Natural)
putSchemaVersionMetadataResponse_versionNumber :: (Maybe Natural -> f (Maybe Natural))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_versionNumber = (PutSchemaVersionMetadataResponse -> Maybe Natural)
-> (PutSchemaVersionMetadataResponse
-> Maybe Natural -> PutSchemaVersionMetadataResponse)
-> Lens
PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Natural
versionNumber :: Maybe Natural
$sel:versionNumber:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Natural
versionNumber} -> Maybe Natural
versionNumber) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Natural
a -> PutSchemaVersionMetadataResponse
s {$sel:versionNumber:PutSchemaVersionMetadataResponse' :: Maybe Natural
versionNumber = Maybe Natural
a} :: PutSchemaVersionMetadataResponse)
putSchemaVersionMetadataResponse_schemaArn :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_schemaArn :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_schemaArn = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
-> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
schemaArn :: Maybe Text
$sel:schemaArn:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
schemaArn} -> Maybe Text
schemaArn) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:schemaArn:PutSchemaVersionMetadataResponse' :: Maybe Text
schemaArn = Maybe Text
a} :: PutSchemaVersionMetadataResponse)
putSchemaVersionMetadataResponse_metadataKey :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_metadataKey :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_metadataKey = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
-> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
metadataKey :: Maybe Text
$sel:metadataKey:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
metadataKey} -> Maybe Text
metadataKey) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:metadataKey:PutSchemaVersionMetadataResponse' :: Maybe Text
metadataKey = Maybe Text
a} :: PutSchemaVersionMetadataResponse)
putSchemaVersionMetadataResponse_metadataValue :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Text)
putSchemaVersionMetadataResponse_metadataValue :: (Maybe Text -> f (Maybe Text))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_metadataValue = (PutSchemaVersionMetadataResponse -> Maybe Text)
-> (PutSchemaVersionMetadataResponse
-> Maybe Text -> PutSchemaVersionMetadataResponse)
-> Lens
PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Text
metadataValue :: Maybe Text
$sel:metadataValue:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Text
metadataValue} -> Maybe Text
metadataValue) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Text
a -> PutSchemaVersionMetadataResponse
s {$sel:metadataValue:PutSchemaVersionMetadataResponse' :: Maybe Text
metadataValue = Maybe Text
a} :: PutSchemaVersionMetadataResponse)
putSchemaVersionMetadataResponse_latestVersion :: Lens.Lens' PutSchemaVersionMetadataResponse (Prelude.Maybe Prelude.Bool)
putSchemaVersionMetadataResponse_latestVersion :: (Maybe Bool -> f (Maybe Bool))
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_latestVersion = (PutSchemaVersionMetadataResponse -> Maybe Bool)
-> (PutSchemaVersionMetadataResponse
-> Maybe Bool -> PutSchemaVersionMetadataResponse)
-> Lens
PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Maybe Bool
latestVersion :: Maybe Bool
$sel:latestVersion:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Maybe Bool
latestVersion} -> Maybe Bool
latestVersion) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Maybe Bool
a -> PutSchemaVersionMetadataResponse
s {$sel:latestVersion:PutSchemaVersionMetadataResponse' :: Maybe Bool
latestVersion = Maybe Bool
a} :: PutSchemaVersionMetadataResponse)
putSchemaVersionMetadataResponse_httpStatus :: Lens.Lens' PutSchemaVersionMetadataResponse Prelude.Int
putSchemaVersionMetadataResponse_httpStatus :: (Int -> f Int)
-> PutSchemaVersionMetadataResponse
-> f PutSchemaVersionMetadataResponse
putSchemaVersionMetadataResponse_httpStatus = (PutSchemaVersionMetadataResponse -> Int)
-> (PutSchemaVersionMetadataResponse
-> Int -> PutSchemaVersionMetadataResponse)
-> Lens
PutSchemaVersionMetadataResponse
PutSchemaVersionMetadataResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSchemaVersionMetadataResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutSchemaVersionMetadataResponse' :: PutSchemaVersionMetadataResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutSchemaVersionMetadataResponse
s@PutSchemaVersionMetadataResponse' {} Int
a -> PutSchemaVersionMetadataResponse
s {$sel:httpStatus:PutSchemaVersionMetadataResponse' :: Int
httpStatus = Int
a} :: PutSchemaVersionMetadataResponse)
instance
Prelude.NFData
PutSchemaVersionMetadataResponse