module Stratosphere.QuickSight.Analysis.SectionAfterPageBreakProperty (
SectionAfterPageBreakProperty(..), mkSectionAfterPageBreakProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SectionAfterPageBreakProperty
=
SectionAfterPageBreakProperty {SectionAfterPageBreakProperty -> ()
haddock_workaround_ :: (),
SectionAfterPageBreakProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SectionAfterPageBreakProperty
-> SectionAfterPageBreakProperty -> Bool
(SectionAfterPageBreakProperty
-> SectionAfterPageBreakProperty -> Bool)
-> (SectionAfterPageBreakProperty
-> SectionAfterPageBreakProperty -> Bool)
-> Eq SectionAfterPageBreakProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SectionAfterPageBreakProperty
-> SectionAfterPageBreakProperty -> Bool
== :: SectionAfterPageBreakProperty
-> SectionAfterPageBreakProperty -> Bool
$c/= :: SectionAfterPageBreakProperty
-> SectionAfterPageBreakProperty -> Bool
/= :: SectionAfterPageBreakProperty
-> SectionAfterPageBreakProperty -> Bool
Prelude.Eq, Int -> SectionAfterPageBreakProperty -> ShowS
[SectionAfterPageBreakProperty] -> ShowS
SectionAfterPageBreakProperty -> String
(Int -> SectionAfterPageBreakProperty -> ShowS)
-> (SectionAfterPageBreakProperty -> String)
-> ([SectionAfterPageBreakProperty] -> ShowS)
-> Show SectionAfterPageBreakProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SectionAfterPageBreakProperty -> ShowS
showsPrec :: Int -> SectionAfterPageBreakProperty -> ShowS
$cshow :: SectionAfterPageBreakProperty -> String
show :: SectionAfterPageBreakProperty -> String
$cshowList :: [SectionAfterPageBreakProperty] -> ShowS
showList :: [SectionAfterPageBreakProperty] -> ShowS
Prelude.Show)
mkSectionAfterPageBreakProperty :: SectionAfterPageBreakProperty
mkSectionAfterPageBreakProperty :: SectionAfterPageBreakProperty
mkSectionAfterPageBreakProperty
= SectionAfterPageBreakProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SectionAfterPageBreakProperty where
toResourceProperties :: SectionAfterPageBreakProperty -> ResourceProperties
toResourceProperties SectionAfterPageBreakProperty {Maybe (Value Text)
()
haddock_workaround_ :: SectionAfterPageBreakProperty -> ()
status :: SectionAfterPageBreakProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.SectionAfterPageBreak",
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
"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 SectionAfterPageBreakProperty where
toJSON :: SectionAfterPageBreakProperty -> Value
toJSON SectionAfterPageBreakProperty {Maybe (Value Text)
()
haddock_workaround_ :: SectionAfterPageBreakProperty -> ()
status :: SectionAfterPageBreakProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
..}
= [(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
"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 "Status" SectionAfterPageBreakProperty where
type PropertyType "Status" SectionAfterPageBreakProperty = Value Prelude.Text
set :: PropertyType "Status" SectionAfterPageBreakProperty
-> SectionAfterPageBreakProperty -> SectionAfterPageBreakProperty
set PropertyType "Status" SectionAfterPageBreakProperty
newValue SectionAfterPageBreakProperty {Maybe (Value Text)
()
haddock_workaround_ :: SectionAfterPageBreakProperty -> ()
status :: SectionAfterPageBreakProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
..}
= SectionAfterPageBreakProperty
{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" SectionAfterPageBreakProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}