module Stratosphere.QuickSight.Template.ImageCustomActionProperty (
module Exports, ImageCustomActionProperty(..),
mkImageCustomActionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.ImageCustomActionOperationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ImageCustomActionProperty
=
ImageCustomActionProperty {ImageCustomActionProperty -> ()
haddock_workaround_ :: (),
ImageCustomActionProperty -> [ImageCustomActionOperationProperty]
actionOperations :: [ImageCustomActionOperationProperty],
ImageCustomActionProperty -> Value Text
customActionId :: (Value Prelude.Text),
ImageCustomActionProperty -> Value Text
name :: (Value Prelude.Text),
ImageCustomActionProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
ImageCustomActionProperty -> Value Text
trigger :: (Value Prelude.Text)}
deriving stock (ImageCustomActionProperty -> ImageCustomActionProperty -> Bool
(ImageCustomActionProperty -> ImageCustomActionProperty -> Bool)
-> (ImageCustomActionProperty -> ImageCustomActionProperty -> Bool)
-> Eq ImageCustomActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImageCustomActionProperty -> ImageCustomActionProperty -> Bool
== :: ImageCustomActionProperty -> ImageCustomActionProperty -> Bool
$c/= :: ImageCustomActionProperty -> ImageCustomActionProperty -> Bool
/= :: ImageCustomActionProperty -> ImageCustomActionProperty -> Bool
Prelude.Eq, Int -> ImageCustomActionProperty -> ShowS
[ImageCustomActionProperty] -> ShowS
ImageCustomActionProperty -> String
(Int -> ImageCustomActionProperty -> ShowS)
-> (ImageCustomActionProperty -> String)
-> ([ImageCustomActionProperty] -> ShowS)
-> Show ImageCustomActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImageCustomActionProperty -> ShowS
showsPrec :: Int -> ImageCustomActionProperty -> ShowS
$cshow :: ImageCustomActionProperty -> String
show :: ImageCustomActionProperty -> String
$cshowList :: [ImageCustomActionProperty] -> ShowS
showList :: [ImageCustomActionProperty] -> ShowS
Prelude.Show)
mkImageCustomActionProperty ::
[ImageCustomActionOperationProperty]
-> Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> ImageCustomActionProperty
mkImageCustomActionProperty :: [ImageCustomActionOperationProperty]
-> Value Text
-> Value Text
-> Value Text
-> ImageCustomActionProperty
mkImageCustomActionProperty
[ImageCustomActionOperationProperty]
actionOperations
Value Text
customActionId
Value Text
name
Value Text
trigger
= ImageCustomActionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), actionOperations :: [ImageCustomActionOperationProperty]
actionOperations = [ImageCustomActionOperationProperty]
actionOperations,
customActionId :: Value Text
customActionId = Value Text
customActionId, name :: Value Text
name = Value Text
name, trigger :: Value Text
trigger = Value Text
trigger,
status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImageCustomActionProperty where
toResourceProperties :: ImageCustomActionProperty -> ResourceProperties
toResourceProperties ImageCustomActionProperty {[ImageCustomActionOperationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ImageCustomActionProperty -> ()
actionOperations :: ImageCustomActionProperty -> [ImageCustomActionOperationProperty]
customActionId :: ImageCustomActionProperty -> Value Text
name :: ImageCustomActionProperty -> Value Text
status :: ImageCustomActionProperty -> Maybe (Value Text)
trigger :: ImageCustomActionProperty -> Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.ImageCustomAction",
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
"ActionOperations" Key -> [ImageCustomActionOperationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ImageCustomActionOperationProperty]
actionOperations,
Key
"CustomActionId" 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
customActionId, Key
"Name" 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
name,
Key
"Trigger" 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
trigger]
([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
"Status" (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)
status]))}
instance JSON.ToJSON ImageCustomActionProperty where
toJSON :: ImageCustomActionProperty -> Value
toJSON ImageCustomActionProperty {[ImageCustomActionOperationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ImageCustomActionProperty -> ()
actionOperations :: ImageCustomActionProperty -> [ImageCustomActionOperationProperty]
customActionId :: ImageCustomActionProperty -> Value Text
name :: ImageCustomActionProperty -> Value Text
status :: ImageCustomActionProperty -> Maybe (Value Text)
trigger :: ImageCustomActionProperty -> Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
trigger :: 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
"ActionOperations" Key -> [ImageCustomActionOperationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ImageCustomActionOperationProperty]
actionOperations,
Key
"CustomActionId" 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
customActionId, Key
"Name" 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
name,
Key
"Trigger" 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
trigger]
([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
"Status" (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)
status])))
instance Property "ActionOperations" ImageCustomActionProperty where
type PropertyType "ActionOperations" ImageCustomActionProperty = [ImageCustomActionOperationProperty]
set :: PropertyType "ActionOperations" ImageCustomActionProperty
-> ImageCustomActionProperty -> ImageCustomActionProperty
set PropertyType "ActionOperations" ImageCustomActionProperty
newValue ImageCustomActionProperty {[ImageCustomActionOperationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ImageCustomActionProperty -> ()
actionOperations :: ImageCustomActionProperty -> [ImageCustomActionOperationProperty]
customActionId :: ImageCustomActionProperty -> Value Text
name :: ImageCustomActionProperty -> Value Text
status :: ImageCustomActionProperty -> Maybe (Value Text)
trigger :: ImageCustomActionProperty -> Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
..}
= ImageCustomActionProperty {actionOperations :: [ImageCustomActionOperationProperty]
actionOperations = [ImageCustomActionOperationProperty]
PropertyType "ActionOperations" ImageCustomActionProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
haddock_workaround_ :: ()
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
..}
instance Property "CustomActionId" ImageCustomActionProperty where
type PropertyType "CustomActionId" ImageCustomActionProperty = Value Prelude.Text
set :: PropertyType "CustomActionId" ImageCustomActionProperty
-> ImageCustomActionProperty -> ImageCustomActionProperty
set PropertyType "CustomActionId" ImageCustomActionProperty
newValue ImageCustomActionProperty {[ImageCustomActionOperationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ImageCustomActionProperty -> ()
actionOperations :: ImageCustomActionProperty -> [ImageCustomActionOperationProperty]
customActionId :: ImageCustomActionProperty -> Value Text
name :: ImageCustomActionProperty -> Value Text
status :: ImageCustomActionProperty -> Maybe (Value Text)
trigger :: ImageCustomActionProperty -> Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
..}
= ImageCustomActionProperty {customActionId :: Value Text
customActionId = PropertyType "CustomActionId" ImageCustomActionProperty
Value Text
newValue, [ImageCustomActionOperationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
name :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
name :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
..}
instance Property "Name" ImageCustomActionProperty where
type PropertyType "Name" ImageCustomActionProperty = Value Prelude.Text
set :: PropertyType "Name" ImageCustomActionProperty
-> ImageCustomActionProperty -> ImageCustomActionProperty
set PropertyType "Name" ImageCustomActionProperty
newValue ImageCustomActionProperty {[ImageCustomActionOperationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ImageCustomActionProperty -> ()
actionOperations :: ImageCustomActionProperty -> [ImageCustomActionOperationProperty]
customActionId :: ImageCustomActionProperty -> Value Text
name :: ImageCustomActionProperty -> Value Text
status :: ImageCustomActionProperty -> Maybe (Value Text)
trigger :: ImageCustomActionProperty -> Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
..}
= ImageCustomActionProperty {name :: Value Text
name = PropertyType "Name" ImageCustomActionProperty
Value Text
newValue, [ImageCustomActionOperationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
..}
instance Property "Status" ImageCustomActionProperty where
type PropertyType "Status" ImageCustomActionProperty = Value Prelude.Text
set :: PropertyType "Status" ImageCustomActionProperty
-> ImageCustomActionProperty -> ImageCustomActionProperty
set PropertyType "Status" ImageCustomActionProperty
newValue ImageCustomActionProperty {[ImageCustomActionOperationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ImageCustomActionProperty -> ()
actionOperations :: ImageCustomActionProperty -> [ImageCustomActionOperationProperty]
customActionId :: ImageCustomActionProperty -> Value Text
name :: ImageCustomActionProperty -> Value Text
status :: ImageCustomActionProperty -> Maybe (Value Text)
trigger :: ImageCustomActionProperty -> Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
..}
= ImageCustomActionProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" ImageCustomActionProperty
Value Text
newValue, [ImageCustomActionOperationProperty]
()
Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
trigger :: Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
trigger :: Value Text
..}
instance Property "Trigger" ImageCustomActionProperty where
type PropertyType "Trigger" ImageCustomActionProperty = Value Prelude.Text
set :: PropertyType "Trigger" ImageCustomActionProperty
-> ImageCustomActionProperty -> ImageCustomActionProperty
set PropertyType "Trigger" ImageCustomActionProperty
newValue ImageCustomActionProperty {[ImageCustomActionOperationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ImageCustomActionProperty -> ()
actionOperations :: ImageCustomActionProperty -> [ImageCustomActionOperationProperty]
customActionId :: ImageCustomActionProperty -> Value Text
name :: ImageCustomActionProperty -> Value Text
status :: ImageCustomActionProperty -> Maybe (Value Text)
trigger :: ImageCustomActionProperty -> Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
trigger :: Value Text
..}
= ImageCustomActionProperty {trigger :: Value Text
trigger = PropertyType "Trigger" ImageCustomActionProperty
Value Text
newValue, [ImageCustomActionOperationProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
actionOperations :: [ImageCustomActionOperationProperty]
customActionId :: Value Text
name :: Value Text
status :: Maybe (Value Text)
..}