module Stratosphere.Glue.SchemaVersionMetadata (
SchemaVersionMetadata(..), mkSchemaVersionMetadata
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SchemaVersionMetadata
=
SchemaVersionMetadata {SchemaVersionMetadata -> ()
haddock_workaround_ :: (),
SchemaVersionMetadata -> Value Text
key :: (Value Prelude.Text),
SchemaVersionMetadata -> Value Text
schemaVersionId :: (Value Prelude.Text),
SchemaVersionMetadata -> Value Text
value :: (Value Prelude.Text)}
deriving stock (SchemaVersionMetadata -> SchemaVersionMetadata -> Bool
(SchemaVersionMetadata -> SchemaVersionMetadata -> Bool)
-> (SchemaVersionMetadata -> SchemaVersionMetadata -> Bool)
-> Eq SchemaVersionMetadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SchemaVersionMetadata -> SchemaVersionMetadata -> Bool
== :: SchemaVersionMetadata -> SchemaVersionMetadata -> Bool
$c/= :: SchemaVersionMetadata -> SchemaVersionMetadata -> Bool
/= :: SchemaVersionMetadata -> SchemaVersionMetadata -> Bool
Prelude.Eq, Int -> SchemaVersionMetadata -> ShowS
[SchemaVersionMetadata] -> ShowS
SchemaVersionMetadata -> String
(Int -> SchemaVersionMetadata -> ShowS)
-> (SchemaVersionMetadata -> String)
-> ([SchemaVersionMetadata] -> ShowS)
-> Show SchemaVersionMetadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SchemaVersionMetadata -> ShowS
showsPrec :: Int -> SchemaVersionMetadata -> ShowS
$cshow :: SchemaVersionMetadata -> String
show :: SchemaVersionMetadata -> String
$cshowList :: [SchemaVersionMetadata] -> ShowS
showList :: [SchemaVersionMetadata] -> ShowS
Prelude.Show)
mkSchemaVersionMetadata ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> SchemaVersionMetadata
mkSchemaVersionMetadata :: Value Text -> Value Text -> Value Text -> SchemaVersionMetadata
mkSchemaVersionMetadata Value Text
key Value Text
schemaVersionId Value Text
value
= SchemaVersionMetadata
{haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key,
schemaVersionId :: Value Text
schemaVersionId = Value Text
schemaVersionId, value :: Value Text
value = Value Text
value}
instance ToResourceProperties SchemaVersionMetadata where
toResourceProperties :: SchemaVersionMetadata -> ResourceProperties
toResourceProperties SchemaVersionMetadata {()
Value Text
haddock_workaround_ :: SchemaVersionMetadata -> ()
key :: SchemaVersionMetadata -> Value Text
schemaVersionId :: SchemaVersionMetadata -> Value Text
value :: SchemaVersionMetadata -> Value Text
haddock_workaround_ :: ()
key :: Value Text
schemaVersionId :: Value Text
value :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Glue::SchemaVersionMetadata",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Key" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
key,
Key
"SchemaVersionId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
schemaVersionId, Key
"Value" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
value]}
instance JSON.ToJSON SchemaVersionMetadata where
toJSON :: SchemaVersionMetadata -> Value
toJSON SchemaVersionMetadata {()
Value Text
haddock_workaround_ :: SchemaVersionMetadata -> ()
key :: SchemaVersionMetadata -> Value Text
schemaVersionId :: SchemaVersionMetadata -> Value Text
value :: SchemaVersionMetadata -> Value Text
haddock_workaround_ :: ()
key :: Value Text
schemaVersionId :: Value Text
value :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Key" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
key, Key
"SchemaVersionId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
schemaVersionId,
Key
"Value" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
value]
instance Property "Key" SchemaVersionMetadata where
type PropertyType "Key" SchemaVersionMetadata = Value Prelude.Text
set :: PropertyType "Key" SchemaVersionMetadata
-> SchemaVersionMetadata -> SchemaVersionMetadata
set PropertyType "Key" SchemaVersionMetadata
newValue SchemaVersionMetadata {()
Value Text
haddock_workaround_ :: SchemaVersionMetadata -> ()
key :: SchemaVersionMetadata -> Value Text
schemaVersionId :: SchemaVersionMetadata -> Value Text
value :: SchemaVersionMetadata -> Value Text
haddock_workaround_ :: ()
key :: Value Text
schemaVersionId :: Value Text
value :: Value Text
..}
= SchemaVersionMetadata {key :: Value Text
key = PropertyType "Key" SchemaVersionMetadata
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
schemaVersionId :: Value Text
value :: Value Text
haddock_workaround_ :: ()
schemaVersionId :: Value Text
value :: Value Text
..}
instance Property "SchemaVersionId" SchemaVersionMetadata where
type PropertyType "SchemaVersionId" SchemaVersionMetadata = Value Prelude.Text
set :: PropertyType "SchemaVersionId" SchemaVersionMetadata
-> SchemaVersionMetadata -> SchemaVersionMetadata
set PropertyType "SchemaVersionId" SchemaVersionMetadata
newValue SchemaVersionMetadata {()
Value Text
haddock_workaround_ :: SchemaVersionMetadata -> ()
key :: SchemaVersionMetadata -> Value Text
schemaVersionId :: SchemaVersionMetadata -> Value Text
value :: SchemaVersionMetadata -> Value Text
haddock_workaround_ :: ()
key :: Value Text
schemaVersionId :: Value Text
value :: Value Text
..}
= SchemaVersionMetadata {schemaVersionId :: Value Text
schemaVersionId = PropertyType "SchemaVersionId" SchemaVersionMetadata
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
instance Property "Value" SchemaVersionMetadata where
type PropertyType "Value" SchemaVersionMetadata = Value Prelude.Text
set :: PropertyType "Value" SchemaVersionMetadata
-> SchemaVersionMetadata -> SchemaVersionMetadata
set PropertyType "Value" SchemaVersionMetadata
newValue SchemaVersionMetadata {()
Value Text
haddock_workaround_ :: SchemaVersionMetadata -> ()
key :: SchemaVersionMetadata -> Value Text
schemaVersionId :: SchemaVersionMetadata -> Value Text
value :: SchemaVersionMetadata -> Value Text
haddock_workaround_ :: ()
key :: Value Text
schemaVersionId :: Value Text
value :: Value Text
..}
= SchemaVersionMetadata {value :: Value Text
value = PropertyType "Value" SchemaVersionMetadata
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
schemaVersionId :: Value Text
haddock_workaround_ :: ()
key :: Value Text
schemaVersionId :: Value Text
..}