module Stratosphere.Glue.Partition.SchemaIdProperty (
        SchemaIdProperty(..), mkSchemaIdProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SchemaIdProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-schemaid.html>
    SchemaIdProperty {SchemaIdProperty -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-schemaid.html#cfn-glue-partition-schemaid-registryname>
                      SchemaIdProperty -> Maybe (Value Text)
registryName :: (Prelude.Maybe (Value Prelude.Text)),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-schemaid.html#cfn-glue-partition-schemaid-schemaarn>
                      SchemaIdProperty -> Maybe (Value Text)
schemaArn :: (Prelude.Maybe (Value Prelude.Text)),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-partition-schemaid.html#cfn-glue-partition-schemaid-schemaname>
                      SchemaIdProperty -> Maybe (Value Text)
schemaName :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SchemaIdProperty -> SchemaIdProperty -> Bool
(SchemaIdProperty -> SchemaIdProperty -> Bool)
-> (SchemaIdProperty -> SchemaIdProperty -> Bool)
-> Eq SchemaIdProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SchemaIdProperty -> SchemaIdProperty -> Bool
== :: SchemaIdProperty -> SchemaIdProperty -> Bool
$c/= :: SchemaIdProperty -> SchemaIdProperty -> Bool
/= :: SchemaIdProperty -> SchemaIdProperty -> Bool
Prelude.Eq, Int -> SchemaIdProperty -> ShowS
[SchemaIdProperty] -> ShowS
SchemaIdProperty -> String
(Int -> SchemaIdProperty -> ShowS)
-> (SchemaIdProperty -> String)
-> ([SchemaIdProperty] -> ShowS)
-> Show SchemaIdProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SchemaIdProperty -> ShowS
showsPrec :: Int -> SchemaIdProperty -> ShowS
$cshow :: SchemaIdProperty -> String
show :: SchemaIdProperty -> String
$cshowList :: [SchemaIdProperty] -> ShowS
showList :: [SchemaIdProperty] -> ShowS
Prelude.Show)
mkSchemaIdProperty :: SchemaIdProperty
mkSchemaIdProperty :: SchemaIdProperty
mkSchemaIdProperty
  = SchemaIdProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), registryName :: Maybe (Value Text)
registryName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       schemaArn :: Maybe (Value Text)
schemaArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, schemaName :: Maybe (Value Text)
schemaName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SchemaIdProperty where
  toResourceProperties :: SchemaIdProperty -> ResourceProperties
toResourceProperties SchemaIdProperty {Maybe (Value Text)
()
haddock_workaround_ :: SchemaIdProperty -> ()
registryName :: SchemaIdProperty -> Maybe (Value Text)
schemaArn :: SchemaIdProperty -> Maybe (Value Text)
schemaName :: SchemaIdProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
registryName :: Maybe (Value Text)
schemaArn :: Maybe (Value Text)
schemaName :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Glue::Partition.SchemaId",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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..=) Key
"RegistryName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
registryName,
                            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..=) Key
"SchemaArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
schemaArn,
                            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..=) Key
"SchemaName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
schemaName])}
instance JSON.ToJSON SchemaIdProperty where
  toJSON :: SchemaIdProperty -> Value
toJSON SchemaIdProperty {Maybe (Value Text)
()
haddock_workaround_ :: SchemaIdProperty -> ()
registryName :: SchemaIdProperty -> Maybe (Value Text)
schemaArn :: SchemaIdProperty -> Maybe (Value Text)
schemaName :: SchemaIdProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
registryName :: Maybe (Value Text)
schemaArn :: Maybe (Value Text)
schemaName :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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..=) Key
"RegistryName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
registryName,
               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..=) Key
"SchemaArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
schemaArn,
               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..=) Key
"SchemaName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
schemaName]))
instance Property "RegistryName" SchemaIdProperty where
  type PropertyType "RegistryName" SchemaIdProperty = Value Prelude.Text
  set :: PropertyType "RegistryName" SchemaIdProperty
-> SchemaIdProperty -> SchemaIdProperty
set PropertyType "RegistryName" SchemaIdProperty
newValue SchemaIdProperty {Maybe (Value Text)
()
haddock_workaround_ :: SchemaIdProperty -> ()
registryName :: SchemaIdProperty -> Maybe (Value Text)
schemaArn :: SchemaIdProperty -> Maybe (Value Text)
schemaName :: SchemaIdProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
registryName :: Maybe (Value Text)
schemaArn :: Maybe (Value Text)
schemaName :: Maybe (Value Text)
..}
    = SchemaIdProperty {registryName :: Maybe (Value Text)
registryName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RegistryName" SchemaIdProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
schemaArn :: Maybe (Value Text)
schemaName :: Maybe (Value Text)
haddock_workaround_ :: ()
schemaArn :: Maybe (Value Text)
schemaName :: Maybe (Value Text)
..}
instance Property "SchemaArn" SchemaIdProperty where
  type PropertyType "SchemaArn" SchemaIdProperty = Value Prelude.Text
  set :: PropertyType "SchemaArn" SchemaIdProperty
-> SchemaIdProperty -> SchemaIdProperty
set PropertyType "SchemaArn" SchemaIdProperty
newValue SchemaIdProperty {Maybe (Value Text)
()
haddock_workaround_ :: SchemaIdProperty -> ()
registryName :: SchemaIdProperty -> Maybe (Value Text)
schemaArn :: SchemaIdProperty -> Maybe (Value Text)
schemaName :: SchemaIdProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
registryName :: Maybe (Value Text)
schemaArn :: Maybe (Value Text)
schemaName :: Maybe (Value Text)
..}
    = SchemaIdProperty {schemaArn :: Maybe (Value Text)
schemaArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SchemaArn" SchemaIdProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
registryName :: Maybe (Value Text)
schemaName :: Maybe (Value Text)
haddock_workaround_ :: ()
registryName :: Maybe (Value Text)
schemaName :: Maybe (Value Text)
..}
instance Property "SchemaName" SchemaIdProperty where
  type PropertyType "SchemaName" SchemaIdProperty = Value Prelude.Text
  set :: PropertyType "SchemaName" SchemaIdProperty
-> SchemaIdProperty -> SchemaIdProperty
set PropertyType "SchemaName" SchemaIdProperty
newValue SchemaIdProperty {Maybe (Value Text)
()
haddock_workaround_ :: SchemaIdProperty -> ()
registryName :: SchemaIdProperty -> Maybe (Value Text)
schemaArn :: SchemaIdProperty -> Maybe (Value Text)
schemaName :: SchemaIdProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
registryName :: Maybe (Value Text)
schemaArn :: Maybe (Value Text)
schemaName :: Maybe (Value Text)
..}
    = SchemaIdProperty {schemaName :: Maybe (Value Text)
schemaName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SchemaName" SchemaIdProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
registryName :: Maybe (Value Text)
schemaArn :: Maybe (Value Text)
haddock_workaround_ :: ()
registryName :: Maybe (Value Text)
schemaArn :: Maybe (Value Text)
..}