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