module Stratosphere.DataZone.Connection.SparkGlueArgsProperty (
SparkGlueArgsProperty(..), mkSparkGlueArgsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SparkGlueArgsProperty
=
SparkGlueArgsProperty {SparkGlueArgsProperty -> ()
haddock_workaround_ :: (),
SparkGlueArgsProperty -> Maybe (Value Text)
connection :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SparkGlueArgsProperty -> SparkGlueArgsProperty -> Bool
(SparkGlueArgsProperty -> SparkGlueArgsProperty -> Bool)
-> (SparkGlueArgsProperty -> SparkGlueArgsProperty -> Bool)
-> Eq SparkGlueArgsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SparkGlueArgsProperty -> SparkGlueArgsProperty -> Bool
== :: SparkGlueArgsProperty -> SparkGlueArgsProperty -> Bool
$c/= :: SparkGlueArgsProperty -> SparkGlueArgsProperty -> Bool
/= :: SparkGlueArgsProperty -> SparkGlueArgsProperty -> Bool
Prelude.Eq, Int -> SparkGlueArgsProperty -> ShowS
[SparkGlueArgsProperty] -> ShowS
SparkGlueArgsProperty -> String
(Int -> SparkGlueArgsProperty -> ShowS)
-> (SparkGlueArgsProperty -> String)
-> ([SparkGlueArgsProperty] -> ShowS)
-> Show SparkGlueArgsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SparkGlueArgsProperty -> ShowS
showsPrec :: Int -> SparkGlueArgsProperty -> ShowS
$cshow :: SparkGlueArgsProperty -> String
show :: SparkGlueArgsProperty -> String
$cshowList :: [SparkGlueArgsProperty] -> ShowS
showList :: [SparkGlueArgsProperty] -> ShowS
Prelude.Show)
mkSparkGlueArgsProperty :: SparkGlueArgsProperty
mkSparkGlueArgsProperty :: SparkGlueArgsProperty
mkSparkGlueArgsProperty
= SparkGlueArgsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), connection :: Maybe (Value Text)
connection = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SparkGlueArgsProperty where
toResourceProperties :: SparkGlueArgsProperty -> ResourceProperties
toResourceProperties SparkGlueArgsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SparkGlueArgsProperty -> ()
connection :: SparkGlueArgsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
connection :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::Connection.SparkGlueArgs",
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
"Connection" (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)
connection])}
instance JSON.ToJSON SparkGlueArgsProperty where
toJSON :: SparkGlueArgsProperty -> Value
toJSON SparkGlueArgsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SparkGlueArgsProperty -> ()
connection :: SparkGlueArgsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
connection :: 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
"Connection" (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)
connection]))
instance Property "Connection" SparkGlueArgsProperty where
type PropertyType "Connection" SparkGlueArgsProperty = Value Prelude.Text
set :: PropertyType "Connection" SparkGlueArgsProperty
-> SparkGlueArgsProperty -> SparkGlueArgsProperty
set PropertyType "Connection" SparkGlueArgsProperty
newValue SparkGlueArgsProperty {Maybe (Value Text)
()
haddock_workaround_ :: SparkGlueArgsProperty -> ()
connection :: SparkGlueArgsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
connection :: Maybe (Value Text)
..}
= SparkGlueArgsProperty {connection :: Maybe (Value Text)
connection = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Connection" SparkGlueArgsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}