module Stratosphere.CustomerProfiles.SegmentDefinition.CalculatedAttributeDimensionProperty (
module Exports, CalculatedAttributeDimensionProperty(..),
mkCalculatedAttributeDimensionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CustomerProfiles.SegmentDefinition.ConditionOverridesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CalculatedAttributeDimensionProperty
=
CalculatedAttributeDimensionProperty {CalculatedAttributeDimensionProperty -> ()
haddock_workaround_ :: (),
CalculatedAttributeDimensionProperty
-> Maybe ConditionOverridesProperty
conditionOverrides :: (Prelude.Maybe ConditionOverridesProperty),
CalculatedAttributeDimensionProperty -> Value Text
dimensionType :: (Value Prelude.Text),
CalculatedAttributeDimensionProperty -> ValueList Text
values :: (ValueList Prelude.Text)}
deriving stock (CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty -> Bool
(CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty -> Bool)
-> (CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty -> Bool)
-> Eq CalculatedAttributeDimensionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty -> Bool
== :: CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty -> Bool
$c/= :: CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty -> Bool
/= :: CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty -> Bool
Prelude.Eq, Int -> CalculatedAttributeDimensionProperty -> ShowS
[CalculatedAttributeDimensionProperty] -> ShowS
CalculatedAttributeDimensionProperty -> String
(Int -> CalculatedAttributeDimensionProperty -> ShowS)
-> (CalculatedAttributeDimensionProperty -> String)
-> ([CalculatedAttributeDimensionProperty] -> ShowS)
-> Show CalculatedAttributeDimensionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CalculatedAttributeDimensionProperty -> ShowS
showsPrec :: Int -> CalculatedAttributeDimensionProperty -> ShowS
$cshow :: CalculatedAttributeDimensionProperty -> String
show :: CalculatedAttributeDimensionProperty -> String
$cshowList :: [CalculatedAttributeDimensionProperty] -> ShowS
showList :: [CalculatedAttributeDimensionProperty] -> ShowS
Prelude.Show)
mkCalculatedAttributeDimensionProperty ::
Value Prelude.Text
-> ValueList Prelude.Text -> CalculatedAttributeDimensionProperty
mkCalculatedAttributeDimensionProperty :: Value Text
-> ValueList Text -> CalculatedAttributeDimensionProperty
mkCalculatedAttributeDimensionProperty Value Text
dimensionType ValueList Text
values
= CalculatedAttributeDimensionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), dimensionType :: Value Text
dimensionType = Value Text
dimensionType,
values :: ValueList Text
values = ValueList Text
values, conditionOverrides :: Maybe ConditionOverridesProperty
conditionOverrides = Maybe ConditionOverridesProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CalculatedAttributeDimensionProperty where
toResourceProperties :: CalculatedAttributeDimensionProperty -> ResourceProperties
toResourceProperties CalculatedAttributeDimensionProperty {Maybe ConditionOverridesProperty
()
ValueList Text
Value Text
haddock_workaround_ :: CalculatedAttributeDimensionProperty -> ()
conditionOverrides :: CalculatedAttributeDimensionProperty
-> Maybe ConditionOverridesProperty
dimensionType :: CalculatedAttributeDimensionProperty -> Value Text
values :: CalculatedAttributeDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
conditionOverrides :: Maybe ConditionOverridesProperty
dimensionType :: Value Text
values :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CustomerProfiles::SegmentDefinition.CalculatedAttributeDimension",
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
"DimensionType" 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
dimensionType, Key
"Values" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
values]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ConditionOverridesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConditionOverrides" (ConditionOverridesProperty -> (Key, Value))
-> Maybe ConditionOverridesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConditionOverridesProperty
conditionOverrides]))}
instance JSON.ToJSON CalculatedAttributeDimensionProperty where
toJSON :: CalculatedAttributeDimensionProperty -> Value
toJSON CalculatedAttributeDimensionProperty {Maybe ConditionOverridesProperty
()
ValueList Text
Value Text
haddock_workaround_ :: CalculatedAttributeDimensionProperty -> ()
conditionOverrides :: CalculatedAttributeDimensionProperty
-> Maybe ConditionOverridesProperty
dimensionType :: CalculatedAttributeDimensionProperty -> Value Text
values :: CalculatedAttributeDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
conditionOverrides :: Maybe ConditionOverridesProperty
dimensionType :: Value Text
values :: ValueList 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
"DimensionType" 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
dimensionType, Key
"Values" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
values]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ConditionOverridesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConditionOverrides" (ConditionOverridesProperty -> (Key, Value))
-> Maybe ConditionOverridesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConditionOverridesProperty
conditionOverrides])))
instance Property "ConditionOverrides" CalculatedAttributeDimensionProperty where
type PropertyType "ConditionOverrides" CalculatedAttributeDimensionProperty = ConditionOverridesProperty
set :: PropertyType
"ConditionOverrides" CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty
set PropertyType
"ConditionOverrides" CalculatedAttributeDimensionProperty
newValue CalculatedAttributeDimensionProperty {Maybe ConditionOverridesProperty
()
ValueList Text
Value Text
haddock_workaround_ :: CalculatedAttributeDimensionProperty -> ()
conditionOverrides :: CalculatedAttributeDimensionProperty
-> Maybe ConditionOverridesProperty
dimensionType :: CalculatedAttributeDimensionProperty -> Value Text
values :: CalculatedAttributeDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
conditionOverrides :: Maybe ConditionOverridesProperty
dimensionType :: Value Text
values :: ValueList Text
..}
= CalculatedAttributeDimensionProperty
{conditionOverrides :: Maybe ConditionOverridesProperty
conditionOverrides = ConditionOverridesProperty -> Maybe ConditionOverridesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ConditionOverrides" CalculatedAttributeDimensionProperty
ConditionOverridesProperty
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
dimensionType :: Value Text
values :: ValueList Text
haddock_workaround_ :: ()
dimensionType :: Value Text
values :: ValueList Text
..}
instance Property "DimensionType" CalculatedAttributeDimensionProperty where
type PropertyType "DimensionType" CalculatedAttributeDimensionProperty = Value Prelude.Text
set :: PropertyType "DimensionType" CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty
set PropertyType "DimensionType" CalculatedAttributeDimensionProperty
newValue CalculatedAttributeDimensionProperty {Maybe ConditionOverridesProperty
()
ValueList Text
Value Text
haddock_workaround_ :: CalculatedAttributeDimensionProperty -> ()
conditionOverrides :: CalculatedAttributeDimensionProperty
-> Maybe ConditionOverridesProperty
dimensionType :: CalculatedAttributeDimensionProperty -> Value Text
values :: CalculatedAttributeDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
conditionOverrides :: Maybe ConditionOverridesProperty
dimensionType :: Value Text
values :: ValueList Text
..}
= CalculatedAttributeDimensionProperty
{dimensionType :: Value Text
dimensionType = PropertyType "DimensionType" CalculatedAttributeDimensionProperty
Value Text
newValue, Maybe ConditionOverridesProperty
()
ValueList Text
haddock_workaround_ :: ()
conditionOverrides :: Maybe ConditionOverridesProperty
values :: ValueList Text
haddock_workaround_ :: ()
conditionOverrides :: Maybe ConditionOverridesProperty
values :: ValueList Text
..}
instance Property "Values" CalculatedAttributeDimensionProperty where
type PropertyType "Values" CalculatedAttributeDimensionProperty = ValueList Prelude.Text
set :: PropertyType "Values" CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty
-> CalculatedAttributeDimensionProperty
set PropertyType "Values" CalculatedAttributeDimensionProperty
newValue CalculatedAttributeDimensionProperty {Maybe ConditionOverridesProperty
()
ValueList Text
Value Text
haddock_workaround_ :: CalculatedAttributeDimensionProperty -> ()
conditionOverrides :: CalculatedAttributeDimensionProperty
-> Maybe ConditionOverridesProperty
dimensionType :: CalculatedAttributeDimensionProperty -> Value Text
values :: CalculatedAttributeDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
conditionOverrides :: Maybe ConditionOverridesProperty
dimensionType :: Value Text
values :: ValueList Text
..}
= CalculatedAttributeDimensionProperty {values :: ValueList Text
values = PropertyType "Values" CalculatedAttributeDimensionProperty
ValueList Text
newValue, Maybe ConditionOverridesProperty
()
Value Text
haddock_workaround_ :: ()
conditionOverrides :: Maybe ConditionOverridesProperty
dimensionType :: Value Text
haddock_workaround_ :: ()
conditionOverrides :: Maybe ConditionOverridesProperty
dimensionType :: Value Text
..}