module Stratosphere.QuickSight.Template.ExcludePeriodConfigurationProperty (
        ExcludePeriodConfigurationProperty(..),
        mkExcludePeriodConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ExcludePeriodConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-excludeperiodconfiguration.html>
    ExcludePeriodConfigurationProperty {ExcludePeriodConfigurationProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-excludeperiodconfiguration.html#cfn-quicksight-template-excludeperiodconfiguration-amount>
                                        ExcludePeriodConfigurationProperty -> Value Double
amount :: (Value Prelude.Double),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-excludeperiodconfiguration.html#cfn-quicksight-template-excludeperiodconfiguration-granularity>
                                        ExcludePeriodConfigurationProperty -> Value Text
granularity :: (Value Prelude.Text),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-excludeperiodconfiguration.html#cfn-quicksight-template-excludeperiodconfiguration-status>
                                        ExcludePeriodConfigurationProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty -> Bool
(ExcludePeriodConfigurationProperty
 -> ExcludePeriodConfigurationProperty -> Bool)
-> (ExcludePeriodConfigurationProperty
    -> ExcludePeriodConfigurationProperty -> Bool)
-> Eq ExcludePeriodConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty -> Bool
== :: ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty -> Bool
$c/= :: ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty -> Bool
/= :: ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty -> Bool
Prelude.Eq, Int -> ExcludePeriodConfigurationProperty -> ShowS
[ExcludePeriodConfigurationProperty] -> ShowS
ExcludePeriodConfigurationProperty -> String
(Int -> ExcludePeriodConfigurationProperty -> ShowS)
-> (ExcludePeriodConfigurationProperty -> String)
-> ([ExcludePeriodConfigurationProperty] -> ShowS)
-> Show ExcludePeriodConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExcludePeriodConfigurationProperty -> ShowS
showsPrec :: Int -> ExcludePeriodConfigurationProperty -> ShowS
$cshow :: ExcludePeriodConfigurationProperty -> String
show :: ExcludePeriodConfigurationProperty -> String
$cshowList :: [ExcludePeriodConfigurationProperty] -> ShowS
showList :: [ExcludePeriodConfigurationProperty] -> ShowS
Prelude.Show)
mkExcludePeriodConfigurationProperty ::
  Value Prelude.Double
  -> Value Prelude.Text -> ExcludePeriodConfigurationProperty
mkExcludePeriodConfigurationProperty :: Value Double -> Value Text -> ExcludePeriodConfigurationProperty
mkExcludePeriodConfigurationProperty Value Double
amount Value Text
granularity
  = ExcludePeriodConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), amount :: Value Double
amount = Value Double
amount,
       granularity :: Value Text
granularity = Value Text
granularity, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ExcludePeriodConfigurationProperty where
  toResourceProperties :: ExcludePeriodConfigurationProperty -> ResourceProperties
toResourceProperties ExcludePeriodConfigurationProperty {Maybe (Value Text)
()
Value Double
Value Text
haddock_workaround_ :: ExcludePeriodConfigurationProperty -> ()
amount :: ExcludePeriodConfigurationProperty -> Value Double
granularity :: ExcludePeriodConfigurationProperty -> Value Text
status :: ExcludePeriodConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
amount :: Value Double
granularity :: Value Text
status :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.ExcludePeriodConfiguration",
         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
"Amount" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
amount, Key
"Granularity" 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
granularity]
                           ([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 ExcludePeriodConfigurationProperty where
  toJSON :: ExcludePeriodConfigurationProperty -> Value
toJSON ExcludePeriodConfigurationProperty {Maybe (Value Text)
()
Value Double
Value Text
haddock_workaround_ :: ExcludePeriodConfigurationProperty -> ()
amount :: ExcludePeriodConfigurationProperty -> Value Double
granularity :: ExcludePeriodConfigurationProperty -> Value Text
status :: ExcludePeriodConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
amount :: Value Double
granularity :: Value Text
status :: Maybe (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
"Amount" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
amount, Key
"Granularity" 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
granularity]
              ([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 "Amount" ExcludePeriodConfigurationProperty where
  type PropertyType "Amount" ExcludePeriodConfigurationProperty = Value Prelude.Double
  set :: PropertyType "Amount" ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty
set PropertyType "Amount" ExcludePeriodConfigurationProperty
newValue ExcludePeriodConfigurationProperty {Maybe (Value Text)
()
Value Double
Value Text
haddock_workaround_ :: ExcludePeriodConfigurationProperty -> ()
amount :: ExcludePeriodConfigurationProperty -> Value Double
granularity :: ExcludePeriodConfigurationProperty -> Value Text
status :: ExcludePeriodConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
amount :: Value Double
granularity :: Value Text
status :: Maybe (Value Text)
..}
    = ExcludePeriodConfigurationProperty {amount :: Value Double
amount = PropertyType "Amount" ExcludePeriodConfigurationProperty
Value Double
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
granularity :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
granularity :: Value Text
status :: Maybe (Value Text)
..}
instance Property "Granularity" ExcludePeriodConfigurationProperty where
  type PropertyType "Granularity" ExcludePeriodConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Granularity" ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty
set PropertyType "Granularity" ExcludePeriodConfigurationProperty
newValue ExcludePeriodConfigurationProperty {Maybe (Value Text)
()
Value Double
Value Text
haddock_workaround_ :: ExcludePeriodConfigurationProperty -> ()
amount :: ExcludePeriodConfigurationProperty -> Value Double
granularity :: ExcludePeriodConfigurationProperty -> Value Text
status :: ExcludePeriodConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
amount :: Value Double
granularity :: Value Text
status :: Maybe (Value Text)
..}
    = ExcludePeriodConfigurationProperty {granularity :: Value Text
granularity = PropertyType "Granularity" ExcludePeriodConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Double
haddock_workaround_ :: ()
amount :: Value Double
status :: Maybe (Value Text)
haddock_workaround_ :: ()
amount :: Value Double
status :: Maybe (Value Text)
..}
instance Property "Status" ExcludePeriodConfigurationProperty where
  type PropertyType "Status" ExcludePeriodConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Status" ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty
-> ExcludePeriodConfigurationProperty
set PropertyType "Status" ExcludePeriodConfigurationProperty
newValue ExcludePeriodConfigurationProperty {Maybe (Value Text)
()
Value Double
Value Text
haddock_workaround_ :: ExcludePeriodConfigurationProperty -> ()
amount :: ExcludePeriodConfigurationProperty -> Value Double
granularity :: ExcludePeriodConfigurationProperty -> Value Text
status :: ExcludePeriodConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
amount :: Value Double
granularity :: Value Text
status :: Maybe (Value Text)
..}
    = ExcludePeriodConfigurationProperty
        {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" ExcludePeriodConfigurationProperty
Value Text
newValue, ()
Value Double
Value Text
haddock_workaround_ :: ()
amount :: Value Double
granularity :: Value Text
haddock_workaround_ :: ()
amount :: Value Double
granularity :: Value Text
..}