module Stratosphere.Synthetics.Canary.RunConfigProperty (
RunConfigProperty(..), mkRunConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RunConfigProperty
=
RunConfigProperty {RunConfigProperty -> ()
haddock_workaround_ :: (),
RunConfigProperty -> Maybe (Value Bool)
activeTracing :: (Prelude.Maybe (Value Prelude.Bool)),
RunConfigProperty -> Maybe (Map Text (Value Text))
environmentVariables :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
RunConfigProperty -> Maybe (Value Integer)
ephemeralStorage :: (Prelude.Maybe (Value Prelude.Integer)),
RunConfigProperty -> Maybe (Value Integer)
memoryInMB :: (Prelude.Maybe (Value Prelude.Integer)),
RunConfigProperty -> Maybe (Value Integer)
timeoutInSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (RunConfigProperty -> RunConfigProperty -> Bool
(RunConfigProperty -> RunConfigProperty -> Bool)
-> (RunConfigProperty -> RunConfigProperty -> Bool)
-> Eq RunConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RunConfigProperty -> RunConfigProperty -> Bool
== :: RunConfigProperty -> RunConfigProperty -> Bool
$c/= :: RunConfigProperty -> RunConfigProperty -> Bool
/= :: RunConfigProperty -> RunConfigProperty -> Bool
Prelude.Eq, Int -> RunConfigProperty -> ShowS
[RunConfigProperty] -> ShowS
RunConfigProperty -> String
(Int -> RunConfigProperty -> ShowS)
-> (RunConfigProperty -> String)
-> ([RunConfigProperty] -> ShowS)
-> Show RunConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RunConfigProperty -> ShowS
showsPrec :: Int -> RunConfigProperty -> ShowS
$cshow :: RunConfigProperty -> String
show :: RunConfigProperty -> String
$cshowList :: [RunConfigProperty] -> ShowS
showList :: [RunConfigProperty] -> ShowS
Prelude.Show)
mkRunConfigProperty :: RunConfigProperty
mkRunConfigProperty :: RunConfigProperty
mkRunConfigProperty
= RunConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), activeTracing :: Maybe (Value Bool)
activeTracing = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
environmentVariables :: Maybe (Map Text (Value Text))
environmentVariables = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing,
ephemeralStorage :: Maybe (Value Integer)
ephemeralStorage = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, memoryInMB :: Maybe (Value Integer)
memoryInMB = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
timeoutInSeconds :: Maybe (Value Integer)
timeoutInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RunConfigProperty where
toResourceProperties :: RunConfigProperty -> ResourceProperties
toResourceProperties RunConfigProperty {Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: RunConfigProperty -> ()
activeTracing :: RunConfigProperty -> Maybe (Value Bool)
environmentVariables :: RunConfigProperty -> Maybe (Map Text (Value Text))
ephemeralStorage :: RunConfigProperty -> Maybe (Value Integer)
memoryInMB :: RunConfigProperty -> Maybe (Value Integer)
timeoutInSeconds :: RunConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Synthetics::Canary.RunConfig",
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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ActiveTracing" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
activeTracing,
Key -> Map Text (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
"EnvironmentVariables" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
environmentVariables,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EphemeralStorage" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
ephemeralStorage,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MemoryInMB" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
memoryInMB,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimeoutInSeconds" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
timeoutInSeconds])}
instance JSON.ToJSON RunConfigProperty where
toJSON :: RunConfigProperty -> Value
toJSON RunConfigProperty {Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: RunConfigProperty -> ()
activeTracing :: RunConfigProperty -> Maybe (Value Bool)
environmentVariables :: RunConfigProperty -> Maybe (Map Text (Value Text))
ephemeralStorage :: RunConfigProperty -> Maybe (Value Integer)
memoryInMB :: RunConfigProperty -> Maybe (Value Integer)
timeoutInSeconds :: RunConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
= [(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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ActiveTracing" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
activeTracing,
Key -> Map Text (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
"EnvironmentVariables" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
environmentVariables,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EphemeralStorage" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
ephemeralStorage,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MemoryInMB" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
memoryInMB,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimeoutInSeconds" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
timeoutInSeconds]))
instance Property "ActiveTracing" RunConfigProperty where
type PropertyType "ActiveTracing" RunConfigProperty = Value Prelude.Bool
set :: PropertyType "ActiveTracing" RunConfigProperty
-> RunConfigProperty -> RunConfigProperty
set PropertyType "ActiveTracing" RunConfigProperty
newValue RunConfigProperty {Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: RunConfigProperty -> ()
activeTracing :: RunConfigProperty -> Maybe (Value Bool)
environmentVariables :: RunConfigProperty -> Maybe (Map Text (Value Text))
ephemeralStorage :: RunConfigProperty -> Maybe (Value Integer)
memoryInMB :: RunConfigProperty -> Maybe (Value Integer)
timeoutInSeconds :: RunConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
= RunConfigProperty {activeTracing :: Maybe (Value Bool)
activeTracing = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ActiveTracing" RunConfigProperty
Value Bool
newValue, Maybe (Map Text (Value Text))
Maybe (Value Integer)
()
haddock_workaround_ :: ()
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
instance Property "EnvironmentVariables" RunConfigProperty where
type PropertyType "EnvironmentVariables" RunConfigProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "EnvironmentVariables" RunConfigProperty
-> RunConfigProperty -> RunConfigProperty
set PropertyType "EnvironmentVariables" RunConfigProperty
newValue RunConfigProperty {Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: RunConfigProperty -> ()
activeTracing :: RunConfigProperty -> Maybe (Value Bool)
environmentVariables :: RunConfigProperty -> Maybe (Map Text (Value Text))
ephemeralStorage :: RunConfigProperty -> Maybe (Value Integer)
memoryInMB :: RunConfigProperty -> Maybe (Value Integer)
timeoutInSeconds :: RunConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
= RunConfigProperty
{environmentVariables :: Maybe (Map Text (Value Text))
environmentVariables = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "EnvironmentVariables" RunConfigProperty
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
instance Property "EphemeralStorage" RunConfigProperty where
type PropertyType "EphemeralStorage" RunConfigProperty = Value Prelude.Integer
set :: PropertyType "EphemeralStorage" RunConfigProperty
-> RunConfigProperty -> RunConfigProperty
set PropertyType "EphemeralStorage" RunConfigProperty
newValue RunConfigProperty {Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: RunConfigProperty -> ()
activeTracing :: RunConfigProperty -> Maybe (Value Bool)
environmentVariables :: RunConfigProperty -> Maybe (Map Text (Value Text))
ephemeralStorage :: RunConfigProperty -> Maybe (Value Integer)
memoryInMB :: RunConfigProperty -> Maybe (Value Integer)
timeoutInSeconds :: RunConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
= RunConfigProperty {ephemeralStorage :: Maybe (Value Integer)
ephemeralStorage = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EphemeralStorage" RunConfigProperty
Value Integer
newValue, Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
instance Property "MemoryInMB" RunConfigProperty where
type PropertyType "MemoryInMB" RunConfigProperty = Value Prelude.Integer
set :: PropertyType "MemoryInMB" RunConfigProperty
-> RunConfigProperty -> RunConfigProperty
set PropertyType "MemoryInMB" RunConfigProperty
newValue RunConfigProperty {Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: RunConfigProperty -> ()
activeTracing :: RunConfigProperty -> Maybe (Value Bool)
environmentVariables :: RunConfigProperty -> Maybe (Map Text (Value Text))
ephemeralStorage :: RunConfigProperty -> Maybe (Value Integer)
memoryInMB :: RunConfigProperty -> Maybe (Value Integer)
timeoutInSeconds :: RunConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
= RunConfigProperty {memoryInMB :: Maybe (Value Integer)
memoryInMB = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MemoryInMB" RunConfigProperty
Value Integer
newValue, Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
instance Property "TimeoutInSeconds" RunConfigProperty where
type PropertyType "TimeoutInSeconds" RunConfigProperty = Value Prelude.Integer
set :: PropertyType "TimeoutInSeconds" RunConfigProperty
-> RunConfigProperty -> RunConfigProperty
set PropertyType "TimeoutInSeconds" RunConfigProperty
newValue RunConfigProperty {Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: RunConfigProperty -> ()
activeTracing :: RunConfigProperty -> Maybe (Value Bool)
environmentVariables :: RunConfigProperty -> Maybe (Map Text (Value Text))
ephemeralStorage :: RunConfigProperty -> Maybe (Value Integer)
memoryInMB :: RunConfigProperty -> Maybe (Value Integer)
timeoutInSeconds :: RunConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
timeoutInSeconds :: Maybe (Value Integer)
..}
= RunConfigProperty {timeoutInSeconds :: Maybe (Value Integer)
timeoutInSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TimeoutInSeconds" RunConfigProperty
Value Integer
newValue, Maybe (Map Text (Value Text))
Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
haddock_workaround_ :: ()
activeTracing :: Maybe (Value Bool)
environmentVariables :: Maybe (Map Text (Value Text))
ephemeralStorage :: Maybe (Value Integer)
memoryInMB :: Maybe (Value Integer)
..}