module Stratosphere.QuickSight.Analysis.SectionPageBreakConfigurationProperty (
module Exports, SectionPageBreakConfigurationProperty(..),
mkSectionPageBreakConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.SectionAfterPageBreakProperty as Exports
import Stratosphere.ResourceProperties
data SectionPageBreakConfigurationProperty
=
SectionPageBreakConfigurationProperty {SectionPageBreakConfigurationProperty -> ()
haddock_workaround_ :: (),
SectionPageBreakConfigurationProperty
-> Maybe SectionAfterPageBreakProperty
after :: (Prelude.Maybe SectionAfterPageBreakProperty)}
deriving stock (SectionPageBreakConfigurationProperty
-> SectionPageBreakConfigurationProperty -> Bool
(SectionPageBreakConfigurationProperty
-> SectionPageBreakConfigurationProperty -> Bool)
-> (SectionPageBreakConfigurationProperty
-> SectionPageBreakConfigurationProperty -> Bool)
-> Eq SectionPageBreakConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SectionPageBreakConfigurationProperty
-> SectionPageBreakConfigurationProperty -> Bool
== :: SectionPageBreakConfigurationProperty
-> SectionPageBreakConfigurationProperty -> Bool
$c/= :: SectionPageBreakConfigurationProperty
-> SectionPageBreakConfigurationProperty -> Bool
/= :: SectionPageBreakConfigurationProperty
-> SectionPageBreakConfigurationProperty -> Bool
Prelude.Eq, Int -> SectionPageBreakConfigurationProperty -> ShowS
[SectionPageBreakConfigurationProperty] -> ShowS
SectionPageBreakConfigurationProperty -> String
(Int -> SectionPageBreakConfigurationProperty -> ShowS)
-> (SectionPageBreakConfigurationProperty -> String)
-> ([SectionPageBreakConfigurationProperty] -> ShowS)
-> Show SectionPageBreakConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SectionPageBreakConfigurationProperty -> ShowS
showsPrec :: Int -> SectionPageBreakConfigurationProperty -> ShowS
$cshow :: SectionPageBreakConfigurationProperty -> String
show :: SectionPageBreakConfigurationProperty -> String
$cshowList :: [SectionPageBreakConfigurationProperty] -> ShowS
showList :: [SectionPageBreakConfigurationProperty] -> ShowS
Prelude.Show)
mkSectionPageBreakConfigurationProperty ::
SectionPageBreakConfigurationProperty
mkSectionPageBreakConfigurationProperty :: SectionPageBreakConfigurationProperty
mkSectionPageBreakConfigurationProperty
= SectionPageBreakConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), after :: Maybe SectionAfterPageBreakProperty
after = Maybe SectionAfterPageBreakProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SectionPageBreakConfigurationProperty where
toResourceProperties :: SectionPageBreakConfigurationProperty -> ResourceProperties
toResourceProperties SectionPageBreakConfigurationProperty {Maybe SectionAfterPageBreakProperty
()
haddock_workaround_ :: SectionPageBreakConfigurationProperty -> ()
after :: SectionPageBreakConfigurationProperty
-> Maybe SectionAfterPageBreakProperty
haddock_workaround_ :: ()
after :: Maybe SectionAfterPageBreakProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.SectionPageBreakConfiguration",
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 -> SectionAfterPageBreakProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"After" (SectionAfterPageBreakProperty -> (Key, Value))
-> Maybe SectionAfterPageBreakProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SectionAfterPageBreakProperty
after])}
instance JSON.ToJSON SectionPageBreakConfigurationProperty where
toJSON :: SectionPageBreakConfigurationProperty -> Value
toJSON SectionPageBreakConfigurationProperty {Maybe SectionAfterPageBreakProperty
()
haddock_workaround_ :: SectionPageBreakConfigurationProperty -> ()
after :: SectionPageBreakConfigurationProperty
-> Maybe SectionAfterPageBreakProperty
haddock_workaround_ :: ()
after :: Maybe SectionAfterPageBreakProperty
..}
= [(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 -> SectionAfterPageBreakProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"After" (SectionAfterPageBreakProperty -> (Key, Value))
-> Maybe SectionAfterPageBreakProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SectionAfterPageBreakProperty
after]))
instance Property "After" SectionPageBreakConfigurationProperty where
type PropertyType "After" SectionPageBreakConfigurationProperty = SectionAfterPageBreakProperty
set :: PropertyType "After" SectionPageBreakConfigurationProperty
-> SectionPageBreakConfigurationProperty
-> SectionPageBreakConfigurationProperty
set PropertyType "After" SectionPageBreakConfigurationProperty
newValue SectionPageBreakConfigurationProperty {Maybe SectionAfterPageBreakProperty
()
haddock_workaround_ :: SectionPageBreakConfigurationProperty -> ()
after :: SectionPageBreakConfigurationProperty
-> Maybe SectionAfterPageBreakProperty
haddock_workaround_ :: ()
after :: Maybe SectionAfterPageBreakProperty
..}
= SectionPageBreakConfigurationProperty
{after :: Maybe SectionAfterPageBreakProperty
after = SectionAfterPageBreakProperty
-> Maybe SectionAfterPageBreakProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "After" SectionPageBreakConfigurationProperty
SectionAfterPageBreakProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}