module Stratosphere.DataZone.Connection.GluePropertiesInputProperty (
        module Exports, GluePropertiesInputProperty(..),
        mkGluePropertiesInputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataZone.Connection.GlueConnectionInputProperty as Exports
import Stratosphere.ResourceProperties
data GluePropertiesInputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-gluepropertiesinput.html>
    GluePropertiesInputProperty {GluePropertiesInputProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-gluepropertiesinput.html#cfn-datazone-connection-gluepropertiesinput-glueconnectioninput>
                                 GluePropertiesInputProperty -> Maybe GlueConnectionInputProperty
glueConnectionInput :: (Prelude.Maybe GlueConnectionInputProperty)}
  deriving stock (GluePropertiesInputProperty -> GluePropertiesInputProperty -> Bool
(GluePropertiesInputProperty
 -> GluePropertiesInputProperty -> Bool)
-> (GluePropertiesInputProperty
    -> GluePropertiesInputProperty -> Bool)
-> Eq GluePropertiesInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GluePropertiesInputProperty -> GluePropertiesInputProperty -> Bool
== :: GluePropertiesInputProperty -> GluePropertiesInputProperty -> Bool
$c/= :: GluePropertiesInputProperty -> GluePropertiesInputProperty -> Bool
/= :: GluePropertiesInputProperty -> GluePropertiesInputProperty -> Bool
Prelude.Eq, Int -> GluePropertiesInputProperty -> ShowS
[GluePropertiesInputProperty] -> ShowS
GluePropertiesInputProperty -> String
(Int -> GluePropertiesInputProperty -> ShowS)
-> (GluePropertiesInputProperty -> String)
-> ([GluePropertiesInputProperty] -> ShowS)
-> Show GluePropertiesInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GluePropertiesInputProperty -> ShowS
showsPrec :: Int -> GluePropertiesInputProperty -> ShowS
$cshow :: GluePropertiesInputProperty -> String
show :: GluePropertiesInputProperty -> String
$cshowList :: [GluePropertiesInputProperty] -> ShowS
showList :: [GluePropertiesInputProperty] -> ShowS
Prelude.Show)
mkGluePropertiesInputProperty :: GluePropertiesInputProperty
mkGluePropertiesInputProperty :: GluePropertiesInputProperty
mkGluePropertiesInputProperty
  = GluePropertiesInputProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), glueConnectionInput :: Maybe GlueConnectionInputProperty
glueConnectionInput = Maybe GlueConnectionInputProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GluePropertiesInputProperty where
  toResourceProperties :: GluePropertiesInputProperty -> ResourceProperties
toResourceProperties GluePropertiesInputProperty {Maybe GlueConnectionInputProperty
()
haddock_workaround_ :: GluePropertiesInputProperty -> ()
glueConnectionInput :: GluePropertiesInputProperty -> Maybe GlueConnectionInputProperty
haddock_workaround_ :: ()
glueConnectionInput :: Maybe GlueConnectionInputProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataZone::Connection.GluePropertiesInput",
         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 -> GlueConnectionInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GlueConnectionInput" (GlueConnectionInputProperty -> (Key, Value))
-> Maybe GlueConnectionInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GlueConnectionInputProperty
glueConnectionInput])}
instance JSON.ToJSON GluePropertiesInputProperty where
  toJSON :: GluePropertiesInputProperty -> Value
toJSON GluePropertiesInputProperty {Maybe GlueConnectionInputProperty
()
haddock_workaround_ :: GluePropertiesInputProperty -> ()
glueConnectionInput :: GluePropertiesInputProperty -> Maybe GlueConnectionInputProperty
haddock_workaround_ :: ()
glueConnectionInput :: Maybe GlueConnectionInputProperty
..}
    = [(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 -> GlueConnectionInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GlueConnectionInput" (GlueConnectionInputProperty -> (Key, Value))
-> Maybe GlueConnectionInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GlueConnectionInputProperty
glueConnectionInput]))
instance Property "GlueConnectionInput" GluePropertiesInputProperty where
  type PropertyType "GlueConnectionInput" GluePropertiesInputProperty = GlueConnectionInputProperty
  set :: PropertyType "GlueConnectionInput" GluePropertiesInputProperty
-> GluePropertiesInputProperty -> GluePropertiesInputProperty
set PropertyType "GlueConnectionInput" GluePropertiesInputProperty
newValue GluePropertiesInputProperty {Maybe GlueConnectionInputProperty
()
haddock_workaround_ :: GluePropertiesInputProperty -> ()
glueConnectionInput :: GluePropertiesInputProperty -> Maybe GlueConnectionInputProperty
haddock_workaround_ :: ()
glueConnectionInput :: Maybe GlueConnectionInputProperty
..}
    = GluePropertiesInputProperty
        {glueConnectionInput :: Maybe GlueConnectionInputProperty
glueConnectionInput = GlueConnectionInputProperty -> Maybe GlueConnectionInputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GlueConnectionInput" GluePropertiesInputProperty
GlueConnectionInputProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}