module Stratosphere.CustomerProfiles.SegmentDefinition.AttributeDimensionProperty (
        AttributeDimensionProperty(..), mkAttributeDimensionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AttributeDimensionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-segmentdefinition-attributedimension.html>
    AttributeDimensionProperty {AttributeDimensionProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-segmentdefinition-attributedimension.html#cfn-customerprofiles-segmentdefinition-attributedimension-dimensiontype>
                                AttributeDimensionProperty -> Value Text
dimensionType :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-segmentdefinition-attributedimension.html#cfn-customerprofiles-segmentdefinition-attributedimension-values>
                                AttributeDimensionProperty -> ValueList Text
values :: (ValueList Prelude.Text)}
  deriving stock (AttributeDimensionProperty -> AttributeDimensionProperty -> Bool
(AttributeDimensionProperty -> AttributeDimensionProperty -> Bool)
-> (AttributeDimensionProperty
    -> AttributeDimensionProperty -> Bool)
-> Eq AttributeDimensionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AttributeDimensionProperty -> AttributeDimensionProperty -> Bool
== :: AttributeDimensionProperty -> AttributeDimensionProperty -> Bool
$c/= :: AttributeDimensionProperty -> AttributeDimensionProperty -> Bool
/= :: AttributeDimensionProperty -> AttributeDimensionProperty -> Bool
Prelude.Eq, Int -> AttributeDimensionProperty -> ShowS
[AttributeDimensionProperty] -> ShowS
AttributeDimensionProperty -> String
(Int -> AttributeDimensionProperty -> ShowS)
-> (AttributeDimensionProperty -> String)
-> ([AttributeDimensionProperty] -> ShowS)
-> Show AttributeDimensionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AttributeDimensionProperty -> ShowS
showsPrec :: Int -> AttributeDimensionProperty -> ShowS
$cshow :: AttributeDimensionProperty -> String
show :: AttributeDimensionProperty -> String
$cshowList :: [AttributeDimensionProperty] -> ShowS
showList :: [AttributeDimensionProperty] -> ShowS
Prelude.Show)
mkAttributeDimensionProperty ::
  Value Prelude.Text
  -> ValueList Prelude.Text -> AttributeDimensionProperty
mkAttributeDimensionProperty :: Value Text -> ValueList Text -> AttributeDimensionProperty
mkAttributeDimensionProperty Value Text
dimensionType ValueList Text
values
  = AttributeDimensionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), dimensionType :: Value Text
dimensionType = Value Text
dimensionType,
       values :: ValueList Text
values = ValueList Text
values}
instance ToResourceProperties AttributeDimensionProperty where
  toResourceProperties :: AttributeDimensionProperty -> ResourceProperties
toResourceProperties AttributeDimensionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: AttributeDimensionProperty -> ()
dimensionType :: AttributeDimensionProperty -> Value Text
values :: AttributeDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
dimensionType :: Value Text
values :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CustomerProfiles::SegmentDefinition.AttributeDimension",
         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 AttributeDimensionProperty where
  toJSON :: AttributeDimensionProperty -> Value
toJSON AttributeDimensionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: AttributeDimensionProperty -> ()
dimensionType :: AttributeDimensionProperty -> Value Text
values :: AttributeDimensionProperty -> 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" AttributeDimensionProperty where
  type PropertyType "DimensionType" AttributeDimensionProperty = Value Prelude.Text
  set :: PropertyType "DimensionType" AttributeDimensionProperty
-> AttributeDimensionProperty -> AttributeDimensionProperty
set PropertyType "DimensionType" AttributeDimensionProperty
newValue AttributeDimensionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: AttributeDimensionProperty -> ()
dimensionType :: AttributeDimensionProperty -> Value Text
values :: AttributeDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
dimensionType :: Value Text
values :: ValueList Text
..}
    = AttributeDimensionProperty {dimensionType :: Value Text
dimensionType = PropertyType "DimensionType" AttributeDimensionProperty
Value Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
values :: ValueList Text
haddock_workaround_ :: ()
values :: ValueList Text
..}
instance Property "Values" AttributeDimensionProperty where
  type PropertyType "Values" AttributeDimensionProperty = ValueList Prelude.Text
  set :: PropertyType "Values" AttributeDimensionProperty
-> AttributeDimensionProperty -> AttributeDimensionProperty
set PropertyType "Values" AttributeDimensionProperty
newValue AttributeDimensionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: AttributeDimensionProperty -> ()
dimensionType :: AttributeDimensionProperty -> Value Text
values :: AttributeDimensionProperty -> ValueList Text
haddock_workaround_ :: ()
dimensionType :: Value Text
values :: ValueList Text
..}
    = AttributeDimensionProperty {values :: ValueList Text
values = PropertyType "Values" AttributeDimensionProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
dimensionType :: Value Text
haddock_workaround_ :: ()
dimensionType :: Value Text
..}