module Stratosphere.QuickSight.Analysis.MaximumMinimumComputationProperty (
        module Exports, MaximumMinimumComputationProperty(..),
        mkMaximumMinimumComputationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.DimensionFieldProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.MeasureFieldProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MaximumMinimumComputationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-maximumminimumcomputation.html>
    MaximumMinimumComputationProperty {MaximumMinimumComputationProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-maximumminimumcomputation.html#cfn-quicksight-analysis-maximumminimumcomputation-computationid>
                                       MaximumMinimumComputationProperty -> Value Text
computationId :: (Value Prelude.Text),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-maximumminimumcomputation.html#cfn-quicksight-analysis-maximumminimumcomputation-name>
                                       MaximumMinimumComputationProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-maximumminimumcomputation.html#cfn-quicksight-analysis-maximumminimumcomputation-time>
                                       MaximumMinimumComputationProperty -> Maybe DimensionFieldProperty
time :: (Prelude.Maybe DimensionFieldProperty),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-maximumminimumcomputation.html#cfn-quicksight-analysis-maximumminimumcomputation-type>
                                       MaximumMinimumComputationProperty -> Value Text
type' :: (Value Prelude.Text),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-maximumminimumcomputation.html#cfn-quicksight-analysis-maximumminimumcomputation-value>
                                       MaximumMinimumComputationProperty -> Maybe MeasureFieldProperty
value :: (Prelude.Maybe MeasureFieldProperty)}
  deriving stock (MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty -> Bool
(MaximumMinimumComputationProperty
 -> MaximumMinimumComputationProperty -> Bool)
-> (MaximumMinimumComputationProperty
    -> MaximumMinimumComputationProperty -> Bool)
-> Eq MaximumMinimumComputationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty -> Bool
== :: MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty -> Bool
$c/= :: MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty -> Bool
/= :: MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty -> Bool
Prelude.Eq, Int -> MaximumMinimumComputationProperty -> ShowS
[MaximumMinimumComputationProperty] -> ShowS
MaximumMinimumComputationProperty -> String
(Int -> MaximumMinimumComputationProperty -> ShowS)
-> (MaximumMinimumComputationProperty -> String)
-> ([MaximumMinimumComputationProperty] -> ShowS)
-> Show MaximumMinimumComputationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MaximumMinimumComputationProperty -> ShowS
showsPrec :: Int -> MaximumMinimumComputationProperty -> ShowS
$cshow :: MaximumMinimumComputationProperty -> String
show :: MaximumMinimumComputationProperty -> String
$cshowList :: [MaximumMinimumComputationProperty] -> ShowS
showList :: [MaximumMinimumComputationProperty] -> ShowS
Prelude.Show)
mkMaximumMinimumComputationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> MaximumMinimumComputationProperty
mkMaximumMinimumComputationProperty :: Value Text -> Value Text -> MaximumMinimumComputationProperty
mkMaximumMinimumComputationProperty Value Text
computationId Value Text
type'
  = MaximumMinimumComputationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), computationId :: Value Text
computationId = Value Text
computationId,
       type' :: Value Text
type' = Value Text
type', name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, time :: Maybe DimensionFieldProperty
time = Maybe DimensionFieldProperty
forall a. Maybe a
Prelude.Nothing,
       value :: Maybe MeasureFieldProperty
value = Maybe MeasureFieldProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MaximumMinimumComputationProperty where
  toResourceProperties :: MaximumMinimumComputationProperty -> ResourceProperties
toResourceProperties MaximumMinimumComputationProperty {Maybe (Value Text)
Maybe MeasureFieldProperty
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: MaximumMinimumComputationProperty -> ()
computationId :: MaximumMinimumComputationProperty -> Value Text
name :: MaximumMinimumComputationProperty -> Maybe (Value Text)
time :: MaximumMinimumComputationProperty -> Maybe DimensionFieldProperty
type' :: MaximumMinimumComputationProperty -> Value Text
value :: MaximumMinimumComputationProperty -> Maybe MeasureFieldProperty
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.MaximumMinimumComputation",
         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
"ComputationId" 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
computationId, Key
"Type" 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
type']
                           ([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
"Name" (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)
name,
                               Key -> DimensionFieldProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Time" (DimensionFieldProperty -> (Key, Value))
-> Maybe DimensionFieldProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DimensionFieldProperty
time,
                               Key -> MeasureFieldProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Value" (MeasureFieldProperty -> (Key, Value))
-> Maybe MeasureFieldProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MeasureFieldProperty
value]))}
instance JSON.ToJSON MaximumMinimumComputationProperty where
  toJSON :: MaximumMinimumComputationProperty -> Value
toJSON MaximumMinimumComputationProperty {Maybe (Value Text)
Maybe MeasureFieldProperty
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: MaximumMinimumComputationProperty -> ()
computationId :: MaximumMinimumComputationProperty -> Value Text
name :: MaximumMinimumComputationProperty -> Maybe (Value Text)
time :: MaximumMinimumComputationProperty -> Maybe DimensionFieldProperty
type' :: MaximumMinimumComputationProperty -> Value Text
value :: MaximumMinimumComputationProperty -> Maybe MeasureFieldProperty
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
..}
    = [(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
"ComputationId" 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
computationId, Key
"Type" 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
type']
              ([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
"Name" (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)
name,
                  Key -> DimensionFieldProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Time" (DimensionFieldProperty -> (Key, Value))
-> Maybe DimensionFieldProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DimensionFieldProperty
time,
                  Key -> MeasureFieldProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Value" (MeasureFieldProperty -> (Key, Value))
-> Maybe MeasureFieldProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MeasureFieldProperty
value])))
instance Property "ComputationId" MaximumMinimumComputationProperty where
  type PropertyType "ComputationId" MaximumMinimumComputationProperty = Value Prelude.Text
  set :: PropertyType "ComputationId" MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty
set PropertyType "ComputationId" MaximumMinimumComputationProperty
newValue MaximumMinimumComputationProperty {Maybe (Value Text)
Maybe MeasureFieldProperty
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: MaximumMinimumComputationProperty -> ()
computationId :: MaximumMinimumComputationProperty -> Value Text
name :: MaximumMinimumComputationProperty -> Maybe (Value Text)
time :: MaximumMinimumComputationProperty -> Maybe DimensionFieldProperty
type' :: MaximumMinimumComputationProperty -> Value Text
value :: MaximumMinimumComputationProperty -> Maybe MeasureFieldProperty
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
..}
    = MaximumMinimumComputationProperty {computationId :: Value Text
computationId = PropertyType "ComputationId" MaximumMinimumComputationProperty
Value Text
newValue, Maybe (Value Text)
Maybe MeasureFieldProperty
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: ()
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
haddock_workaround_ :: ()
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
..}
instance Property "Name" MaximumMinimumComputationProperty where
  type PropertyType "Name" MaximumMinimumComputationProperty = Value Prelude.Text
  set :: PropertyType "Name" MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty
set PropertyType "Name" MaximumMinimumComputationProperty
newValue MaximumMinimumComputationProperty {Maybe (Value Text)
Maybe MeasureFieldProperty
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: MaximumMinimumComputationProperty -> ()
computationId :: MaximumMinimumComputationProperty -> Value Text
name :: MaximumMinimumComputationProperty -> Maybe (Value Text)
time :: MaximumMinimumComputationProperty -> Maybe DimensionFieldProperty
type' :: MaximumMinimumComputationProperty -> Value Text
value :: MaximumMinimumComputationProperty -> Maybe MeasureFieldProperty
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
..}
    = MaximumMinimumComputationProperty
        {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" MaximumMinimumComputationProperty
Value Text
newValue, Maybe MeasureFieldProperty
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: ()
computationId :: Value Text
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
haddock_workaround_ :: ()
computationId :: Value Text
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
..}
instance Property "Time" MaximumMinimumComputationProperty where
  type PropertyType "Time" MaximumMinimumComputationProperty = DimensionFieldProperty
  set :: PropertyType "Time" MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty
set PropertyType "Time" MaximumMinimumComputationProperty
newValue MaximumMinimumComputationProperty {Maybe (Value Text)
Maybe MeasureFieldProperty
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: MaximumMinimumComputationProperty -> ()
computationId :: MaximumMinimumComputationProperty -> Value Text
name :: MaximumMinimumComputationProperty -> Maybe (Value Text)
time :: MaximumMinimumComputationProperty -> Maybe DimensionFieldProperty
type' :: MaximumMinimumComputationProperty -> Value Text
value :: MaximumMinimumComputationProperty -> Maybe MeasureFieldProperty
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
..}
    = MaximumMinimumComputationProperty
        {time :: Maybe DimensionFieldProperty
time = DimensionFieldProperty -> Maybe DimensionFieldProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Time" MaximumMinimumComputationProperty
DimensionFieldProperty
newValue, Maybe (Value Text)
Maybe MeasureFieldProperty
()
Value Text
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
type' :: Value Text
value :: Maybe MeasureFieldProperty
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
type' :: Value Text
value :: Maybe MeasureFieldProperty
..}
instance Property "Type" MaximumMinimumComputationProperty where
  type PropertyType "Type" MaximumMinimumComputationProperty = Value Prelude.Text
  set :: PropertyType "Type" MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty
set PropertyType "Type" MaximumMinimumComputationProperty
newValue MaximumMinimumComputationProperty {Maybe (Value Text)
Maybe MeasureFieldProperty
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: MaximumMinimumComputationProperty -> ()
computationId :: MaximumMinimumComputationProperty -> Value Text
name :: MaximumMinimumComputationProperty -> Maybe (Value Text)
time :: MaximumMinimumComputationProperty -> Maybe DimensionFieldProperty
type' :: MaximumMinimumComputationProperty -> Value Text
value :: MaximumMinimumComputationProperty -> Maybe MeasureFieldProperty
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
..}
    = MaximumMinimumComputationProperty {type' :: Value Text
type' = PropertyType "Type" MaximumMinimumComputationProperty
Value Text
newValue, Maybe (Value Text)
Maybe MeasureFieldProperty
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
value :: Maybe MeasureFieldProperty
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
value :: Maybe MeasureFieldProperty
..}
instance Property "Value" MaximumMinimumComputationProperty where
  type PropertyType "Value" MaximumMinimumComputationProperty = MeasureFieldProperty
  set :: PropertyType "Value" MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty
-> MaximumMinimumComputationProperty
set PropertyType "Value" MaximumMinimumComputationProperty
newValue MaximumMinimumComputationProperty {Maybe (Value Text)
Maybe MeasureFieldProperty
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: MaximumMinimumComputationProperty -> ()
computationId :: MaximumMinimumComputationProperty -> Value Text
name :: MaximumMinimumComputationProperty -> Maybe (Value Text)
time :: MaximumMinimumComputationProperty -> Maybe DimensionFieldProperty
type' :: MaximumMinimumComputationProperty -> Value Text
value :: MaximumMinimumComputationProperty -> Maybe MeasureFieldProperty
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
value :: Maybe MeasureFieldProperty
..}
    = MaximumMinimumComputationProperty
        {value :: Maybe MeasureFieldProperty
value = MeasureFieldProperty -> Maybe MeasureFieldProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" MaximumMinimumComputationProperty
MeasureFieldProperty
newValue, Maybe (Value Text)
Maybe DimensionFieldProperty
()
Value Text
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
haddock_workaround_ :: ()
computationId :: Value Text
name :: Maybe (Value Text)
time :: Maybe DimensionFieldProperty
type' :: Value Text
..}