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