module Stratosphere.QuickSight.Dashboard.CustomContentConfigurationProperty (
        module Exports, CustomContentConfigurationProperty(..),
        mkCustomContentConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.VisualInteractionOptionsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomContentConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-customcontentconfiguration.html>
    CustomContentConfigurationProperty {CustomContentConfigurationProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-customcontentconfiguration.html#cfn-quicksight-dashboard-customcontentconfiguration-contenttype>
                                        CustomContentConfigurationProperty -> Maybe (Value Text)
contentType :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-customcontentconfiguration.html#cfn-quicksight-dashboard-customcontentconfiguration-contenturl>
                                        CustomContentConfigurationProperty -> Maybe (Value Text)
contentUrl :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-customcontentconfiguration.html#cfn-quicksight-dashboard-customcontentconfiguration-imagescaling>
                                        CustomContentConfigurationProperty -> Maybe (Value Text)
imageScaling :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-customcontentconfiguration.html#cfn-quicksight-dashboard-customcontentconfiguration-interactions>
                                        CustomContentConfigurationProperty
-> Maybe VisualInteractionOptionsProperty
interactions :: (Prelude.Maybe VisualInteractionOptionsProperty)}
  deriving stock (CustomContentConfigurationProperty
-> CustomContentConfigurationProperty -> Bool
(CustomContentConfigurationProperty
 -> CustomContentConfigurationProperty -> Bool)
-> (CustomContentConfigurationProperty
    -> CustomContentConfigurationProperty -> Bool)
-> Eq CustomContentConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomContentConfigurationProperty
-> CustomContentConfigurationProperty -> Bool
== :: CustomContentConfigurationProperty
-> CustomContentConfigurationProperty -> Bool
$c/= :: CustomContentConfigurationProperty
-> CustomContentConfigurationProperty -> Bool
/= :: CustomContentConfigurationProperty
-> CustomContentConfigurationProperty -> Bool
Prelude.Eq, Int -> CustomContentConfigurationProperty -> ShowS
[CustomContentConfigurationProperty] -> ShowS
CustomContentConfigurationProperty -> String
(Int -> CustomContentConfigurationProperty -> ShowS)
-> (CustomContentConfigurationProperty -> String)
-> ([CustomContentConfigurationProperty] -> ShowS)
-> Show CustomContentConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomContentConfigurationProperty -> ShowS
showsPrec :: Int -> CustomContentConfigurationProperty -> ShowS
$cshow :: CustomContentConfigurationProperty -> String
show :: CustomContentConfigurationProperty -> String
$cshowList :: [CustomContentConfigurationProperty] -> ShowS
showList :: [CustomContentConfigurationProperty] -> ShowS
Prelude.Show)
mkCustomContentConfigurationProperty ::
  CustomContentConfigurationProperty
mkCustomContentConfigurationProperty :: CustomContentConfigurationProperty
mkCustomContentConfigurationProperty
  = CustomContentConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), contentType :: Maybe (Value Text)
contentType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       contentUrl :: Maybe (Value Text)
contentUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, imageScaling :: Maybe (Value Text)
imageScaling = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       interactions :: Maybe VisualInteractionOptionsProperty
interactions = Maybe VisualInteractionOptionsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomContentConfigurationProperty where
  toResourceProperties :: CustomContentConfigurationProperty -> ResourceProperties
toResourceProperties CustomContentConfigurationProperty {Maybe (Value Text)
Maybe VisualInteractionOptionsProperty
()
haddock_workaround_ :: CustomContentConfigurationProperty -> ()
contentType :: CustomContentConfigurationProperty -> Maybe (Value Text)
contentUrl :: CustomContentConfigurationProperty -> Maybe (Value Text)
imageScaling :: CustomContentConfigurationProperty -> Maybe (Value Text)
interactions :: CustomContentConfigurationProperty
-> Maybe VisualInteractionOptionsProperty
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
contentUrl :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.CustomContentConfiguration",
         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 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
"ContentType" (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)
contentType,
                            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
"ContentUrl" (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)
contentUrl,
                            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
"ImageScaling" (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)
imageScaling,
                            Key -> VisualInteractionOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Interactions" (VisualInteractionOptionsProperty -> (Key, Value))
-> Maybe VisualInteractionOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VisualInteractionOptionsProperty
interactions])}
instance JSON.ToJSON CustomContentConfigurationProperty where
  toJSON :: CustomContentConfigurationProperty -> Value
toJSON CustomContentConfigurationProperty {Maybe (Value Text)
Maybe VisualInteractionOptionsProperty
()
haddock_workaround_ :: CustomContentConfigurationProperty -> ()
contentType :: CustomContentConfigurationProperty -> Maybe (Value Text)
contentUrl :: CustomContentConfigurationProperty -> Maybe (Value Text)
imageScaling :: CustomContentConfigurationProperty -> Maybe (Value Text)
interactions :: CustomContentConfigurationProperty
-> Maybe VisualInteractionOptionsProperty
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
contentUrl :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
..}
    = [(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 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
"ContentType" (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)
contentType,
               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
"ContentUrl" (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)
contentUrl,
               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
"ImageScaling" (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)
imageScaling,
               Key -> VisualInteractionOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Interactions" (VisualInteractionOptionsProperty -> (Key, Value))
-> Maybe VisualInteractionOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VisualInteractionOptionsProperty
interactions]))
instance Property "ContentType" CustomContentConfigurationProperty where
  type PropertyType "ContentType" CustomContentConfigurationProperty = Value Prelude.Text
  set :: PropertyType "ContentType" CustomContentConfigurationProperty
-> CustomContentConfigurationProperty
-> CustomContentConfigurationProperty
set PropertyType "ContentType" CustomContentConfigurationProperty
newValue CustomContentConfigurationProperty {Maybe (Value Text)
Maybe VisualInteractionOptionsProperty
()
haddock_workaround_ :: CustomContentConfigurationProperty -> ()
contentType :: CustomContentConfigurationProperty -> Maybe (Value Text)
contentUrl :: CustomContentConfigurationProperty -> Maybe (Value Text)
imageScaling :: CustomContentConfigurationProperty -> Maybe (Value Text)
interactions :: CustomContentConfigurationProperty
-> Maybe VisualInteractionOptionsProperty
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
contentUrl :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
..}
    = CustomContentConfigurationProperty
        {contentType :: Maybe (Value Text)
contentType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContentType" CustomContentConfigurationProperty
Value Text
newValue, Maybe (Value Text)
Maybe VisualInteractionOptionsProperty
()
haddock_workaround_ :: ()
contentUrl :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
haddock_workaround_ :: ()
contentUrl :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
..}
instance Property "ContentUrl" CustomContentConfigurationProperty where
  type PropertyType "ContentUrl" CustomContentConfigurationProperty = Value Prelude.Text
  set :: PropertyType "ContentUrl" CustomContentConfigurationProperty
-> CustomContentConfigurationProperty
-> CustomContentConfigurationProperty
set PropertyType "ContentUrl" CustomContentConfigurationProperty
newValue CustomContentConfigurationProperty {Maybe (Value Text)
Maybe VisualInteractionOptionsProperty
()
haddock_workaround_ :: CustomContentConfigurationProperty -> ()
contentType :: CustomContentConfigurationProperty -> Maybe (Value Text)
contentUrl :: CustomContentConfigurationProperty -> Maybe (Value Text)
imageScaling :: CustomContentConfigurationProperty -> Maybe (Value Text)
interactions :: CustomContentConfigurationProperty
-> Maybe VisualInteractionOptionsProperty
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
contentUrl :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
..}
    = CustomContentConfigurationProperty
        {contentUrl :: Maybe (Value Text)
contentUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContentUrl" CustomContentConfigurationProperty
Value Text
newValue, Maybe (Value Text)
Maybe VisualInteractionOptionsProperty
()
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
..}
instance Property "ImageScaling" CustomContentConfigurationProperty where
  type PropertyType "ImageScaling" CustomContentConfigurationProperty = Value Prelude.Text
  set :: PropertyType "ImageScaling" CustomContentConfigurationProperty
-> CustomContentConfigurationProperty
-> CustomContentConfigurationProperty
set PropertyType "ImageScaling" CustomContentConfigurationProperty
newValue CustomContentConfigurationProperty {Maybe (Value Text)
Maybe VisualInteractionOptionsProperty
()
haddock_workaround_ :: CustomContentConfigurationProperty -> ()
contentType :: CustomContentConfigurationProperty -> Maybe (Value Text)
contentUrl :: CustomContentConfigurationProperty -> Maybe (Value Text)
imageScaling :: CustomContentConfigurationProperty -> Maybe (Value Text)
interactions :: CustomContentConfigurationProperty
-> Maybe VisualInteractionOptionsProperty
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
contentUrl :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
..}
    = CustomContentConfigurationProperty
        {imageScaling :: Maybe (Value Text)
imageScaling = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ImageScaling" CustomContentConfigurationProperty
Value Text
newValue, Maybe (Value Text)
Maybe VisualInteractionOptionsProperty
()
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
contentUrl :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
contentUrl :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
..}
instance Property "Interactions" CustomContentConfigurationProperty where
  type PropertyType "Interactions" CustomContentConfigurationProperty = VisualInteractionOptionsProperty
  set :: PropertyType "Interactions" CustomContentConfigurationProperty
-> CustomContentConfigurationProperty
-> CustomContentConfigurationProperty
set PropertyType "Interactions" CustomContentConfigurationProperty
newValue CustomContentConfigurationProperty {Maybe (Value Text)
Maybe VisualInteractionOptionsProperty
()
haddock_workaround_ :: CustomContentConfigurationProperty -> ()
contentType :: CustomContentConfigurationProperty -> Maybe (Value Text)
contentUrl :: CustomContentConfigurationProperty -> Maybe (Value Text)
imageScaling :: CustomContentConfigurationProperty -> Maybe (Value Text)
interactions :: CustomContentConfigurationProperty
-> Maybe VisualInteractionOptionsProperty
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
contentUrl :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
interactions :: Maybe VisualInteractionOptionsProperty
..}
    = CustomContentConfigurationProperty
        {interactions :: Maybe VisualInteractionOptionsProperty
interactions = VisualInteractionOptionsProperty
-> Maybe VisualInteractionOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Interactions" CustomContentConfigurationProperty
VisualInteractionOptionsProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
contentUrl :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
haddock_workaround_ :: ()
contentType :: Maybe (Value Text)
contentUrl :: Maybe (Value Text)
imageScaling :: Maybe (Value Text)
..}