module Stratosphere.CustomerProfiles.SegmentDefinition.ProfileDimensionProperty (
ProfileDimensionProperty(..), mkProfileDimensionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProfileDimensionProperty
=
ProfileDimensionProperty {ProfileDimensionProperty -> ()
haddock_workaround_ :: (),
ProfileDimensionProperty -> Value Text
dimensionType :: (Value Prelude.Text),
ProfileDimensionProperty -> ValueList Text
values :: (ValueList Prelude.Text)}
deriving stock (ProfileDimensionProperty -> ProfileDimensionProperty -> Bool
(ProfileDimensionProperty -> ProfileDimensionProperty -> Bool)
-> (ProfileDimensionProperty -> ProfileDimensionProperty -> Bool)
-> Eq ProfileDimensionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProfileDimensionProperty -> ProfileDimensionProperty -> Bool
== :: ProfileDimensionProperty -> ProfileDimensionProperty -> Bool
$c/= :: ProfileDimensionProperty -> ProfileDimensionProperty -> Bool
/= :: ProfileDimensionProperty -> ProfileDimensionProperty -> Bool
Prelude.Eq, Int -> ProfileDimensionProperty -> ShowS
[ProfileDimensionProperty] -> ShowS
ProfileDimensionProperty -> String
(Int -> ProfileDimensionProperty -> ShowS)
-> (ProfileDimensionProperty -> String)
-> ([ProfileDimensionProperty] -> ShowS)
-> Show ProfileDimensionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProfileDimensionProperty -> ShowS
showsPrec :: Int -> ProfileDimensionProperty -> ShowS
$cshow :: ProfileDimensionProperty -> String
show :: ProfileDimensionProperty -> String
$cshowList :: [ProfileDimensionProperty] -> ShowS
showList :: [ProfileDimensionProperty] -> ShowS
Prelude.Show)
mkProfileDimensionProperty ::
Value Prelude.Text
-> ValueList Prelude.Text -> ProfileDimensionProperty
mkProfileDimensionProperty :: Value Text -> ValueList Text -> ProfileDimensionProperty
mkProfileDimensionProperty Value Text
dimensionType ValueList Text
values
= ProfileDimensionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), dimensionType :: Value Text
dimensionType = Value Text
dimensionType,
values :: ValueList Text
values = ValueList Text
values}
instance ToResourceProperties ProfileDimensionProperty where
toResourceProperties :: ProfileDimensionProperty -> ResourceProperties
toResourceProperties ProfileDimensionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ProfileDimensionProperty -> ()
dimensionType :: ProfileDimensionProperty -> Value Text
values :: ProfileDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
dimensionType :: Value Text
values :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CustomerProfiles::SegmentDefinition.ProfileDimension",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [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]}
instance JSON.ToJSON ProfileDimensionProperty where
toJSON :: ProfileDimensionProperty -> Value
toJSON ProfileDimensionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ProfileDimensionProperty -> ()
dimensionType :: ProfileDimensionProperty -> Value Text
values :: ProfileDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
dimensionType :: Value Text
values :: ValueList Text
..}
= [(Key, Value)] -> Value
JSON.object
[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]
instance Property "DimensionType" ProfileDimensionProperty where
type PropertyType "DimensionType" ProfileDimensionProperty = Value Prelude.Text
set :: PropertyType "DimensionType" ProfileDimensionProperty
-> ProfileDimensionProperty -> ProfileDimensionProperty
set PropertyType "DimensionType" ProfileDimensionProperty
newValue ProfileDimensionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ProfileDimensionProperty -> ()
dimensionType :: ProfileDimensionProperty -> Value Text
values :: ProfileDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
dimensionType :: Value Text
values :: ValueList Text
..}
= ProfileDimensionProperty {dimensionType :: Value Text
dimensionType = PropertyType "DimensionType" ProfileDimensionProperty
Value Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
values :: ValueList Text
haddock_workaround_ :: ()
values :: ValueList Text
..}
instance Property "Values" ProfileDimensionProperty where
type PropertyType "Values" ProfileDimensionProperty = ValueList Prelude.Text
set :: PropertyType "Values" ProfileDimensionProperty
-> ProfileDimensionProperty -> ProfileDimensionProperty
set PropertyType "Values" ProfileDimensionProperty
newValue ProfileDimensionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ProfileDimensionProperty -> ()
dimensionType :: ProfileDimensionProperty -> Value Text
values :: ProfileDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
dimensionType :: Value Text
values :: ValueList Text
..}
= ProfileDimensionProperty {values :: ValueList Text
values = PropertyType "Values" ProfileDimensionProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
dimensionType :: Value Text
haddock_workaround_ :: ()
dimensionType :: Value Text
..}