module Stratosphere.Synthetics.Canary.DependencyProperty (
DependencyProperty(..), mkDependencyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DependencyProperty
=
DependencyProperty {DependencyProperty -> ()
haddock_workaround_ :: (),
DependencyProperty -> Value Text
reference :: (Value Prelude.Text),
DependencyProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DependencyProperty -> DependencyProperty -> Bool
(DependencyProperty -> DependencyProperty -> Bool)
-> (DependencyProperty -> DependencyProperty -> Bool)
-> Eq DependencyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DependencyProperty -> DependencyProperty -> Bool
== :: DependencyProperty -> DependencyProperty -> Bool
$c/= :: DependencyProperty -> DependencyProperty -> Bool
/= :: DependencyProperty -> DependencyProperty -> Bool
Prelude.Eq, Int -> DependencyProperty -> ShowS
[DependencyProperty] -> ShowS
DependencyProperty -> String
(Int -> DependencyProperty -> ShowS)
-> (DependencyProperty -> String)
-> ([DependencyProperty] -> ShowS)
-> Show DependencyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DependencyProperty -> ShowS
showsPrec :: Int -> DependencyProperty -> ShowS
$cshow :: DependencyProperty -> String
show :: DependencyProperty -> String
$cshowList :: [DependencyProperty] -> ShowS
showList :: [DependencyProperty] -> ShowS
Prelude.Show)
mkDependencyProperty :: Value Prelude.Text -> DependencyProperty
mkDependencyProperty :: Value Text -> DependencyProperty
mkDependencyProperty Value Text
reference
= DependencyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), reference :: Value Text
reference = Value Text
reference,
type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DependencyProperty where
toResourceProperties :: DependencyProperty -> ResourceProperties
toResourceProperties DependencyProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DependencyProperty -> ()
reference :: DependencyProperty -> Value Text
type' :: DependencyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
reference :: Value Text
type' :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Synthetics::Canary.Dependency",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Reference" 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
reference]
([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
"Type" (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)
type']))}
instance JSON.ToJSON DependencyProperty where
toJSON :: DependencyProperty -> Value
toJSON DependencyProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DependencyProperty -> ()
reference :: DependencyProperty -> Value Text
type' :: DependencyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
reference :: Value Text
type' :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Reference" 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
reference]
([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
"Type" (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)
type'])))
instance Property "Reference" DependencyProperty where
type PropertyType "Reference" DependencyProperty = Value Prelude.Text
set :: PropertyType "Reference" DependencyProperty
-> DependencyProperty -> DependencyProperty
set PropertyType "Reference" DependencyProperty
newValue DependencyProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DependencyProperty -> ()
reference :: DependencyProperty -> Value Text
type' :: DependencyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
reference :: Value Text
type' :: Maybe (Value Text)
..}
= DependencyProperty {reference :: Value Text
reference = PropertyType "Reference" DependencyProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
..}
instance Property "Type" DependencyProperty where
type PropertyType "Type" DependencyProperty = Value Prelude.Text
set :: PropertyType "Type" DependencyProperty
-> DependencyProperty -> DependencyProperty
set PropertyType "Type" DependencyProperty
newValue DependencyProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DependencyProperty -> ()
reference :: DependencyProperty -> Value Text
type' :: DependencyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
reference :: Value Text
type' :: Maybe (Value Text)
..}
= DependencyProperty {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" DependencyProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
reference :: Value Text
haddock_workaround_ :: ()
reference :: Value Text
..}