module Stratosphere.PinpointEmail.ConfigurationSetEventDestination.DimensionConfigurationProperty (
DimensionConfigurationProperty(..),
mkDimensionConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DimensionConfigurationProperty
=
DimensionConfigurationProperty {DimensionConfigurationProperty -> ()
haddock_workaround_ :: (),
DimensionConfigurationProperty -> Value Text
defaultDimensionValue :: (Value Prelude.Text),
DimensionConfigurationProperty -> Value Text
dimensionName :: (Value Prelude.Text),
DimensionConfigurationProperty -> Value Text
dimensionValueSource :: (Value Prelude.Text)}
deriving stock (DimensionConfigurationProperty
-> DimensionConfigurationProperty -> Bool
(DimensionConfigurationProperty
-> DimensionConfigurationProperty -> Bool)
-> (DimensionConfigurationProperty
-> DimensionConfigurationProperty -> Bool)
-> Eq DimensionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DimensionConfigurationProperty
-> DimensionConfigurationProperty -> Bool
== :: DimensionConfigurationProperty
-> DimensionConfigurationProperty -> Bool
$c/= :: DimensionConfigurationProperty
-> DimensionConfigurationProperty -> Bool
/= :: DimensionConfigurationProperty
-> DimensionConfigurationProperty -> Bool
Prelude.Eq, Int -> DimensionConfigurationProperty -> ShowS
[DimensionConfigurationProperty] -> ShowS
DimensionConfigurationProperty -> String
(Int -> DimensionConfigurationProperty -> ShowS)
-> (DimensionConfigurationProperty -> String)
-> ([DimensionConfigurationProperty] -> ShowS)
-> Show DimensionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DimensionConfigurationProperty -> ShowS
showsPrec :: Int -> DimensionConfigurationProperty -> ShowS
$cshow :: DimensionConfigurationProperty -> String
show :: DimensionConfigurationProperty -> String
$cshowList :: [DimensionConfigurationProperty] -> ShowS
showList :: [DimensionConfigurationProperty] -> ShowS
Prelude.Show)
mkDimensionConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> DimensionConfigurationProperty
mkDimensionConfigurationProperty :: Value Text
-> Value Text -> Value Text -> DimensionConfigurationProperty
mkDimensionConfigurationProperty
Value Text
defaultDimensionValue
Value Text
dimensionName
Value Text
dimensionValueSource
= DimensionConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
defaultDimensionValue :: Value Text
defaultDimensionValue = Value Text
defaultDimensionValue,
dimensionName :: Value Text
dimensionName = Value Text
dimensionName,
dimensionValueSource :: Value Text
dimensionValueSource = Value Text
dimensionValueSource}
instance ToResourceProperties DimensionConfigurationProperty where
toResourceProperties :: DimensionConfigurationProperty -> ResourceProperties
toResourceProperties DimensionConfigurationProperty {()
Value Text
haddock_workaround_ :: DimensionConfigurationProperty -> ()
defaultDimensionValue :: DimensionConfigurationProperty -> Value Text
dimensionName :: DimensionConfigurationProperty -> Value Text
dimensionValueSource :: DimensionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
defaultDimensionValue :: Value Text
dimensionName :: Value Text
dimensionValueSource :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::PinpointEmail::ConfigurationSetEventDestination.DimensionConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"DefaultDimensionValue"
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
defaultDimensionValue,
Key
"DimensionName" 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
dimensionName,
Key
"DimensionValueSource" 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
dimensionValueSource]}
instance JSON.ToJSON DimensionConfigurationProperty where
toJSON :: DimensionConfigurationProperty -> Value
toJSON DimensionConfigurationProperty {()
Value Text
haddock_workaround_ :: DimensionConfigurationProperty -> ()
defaultDimensionValue :: DimensionConfigurationProperty -> Value Text
dimensionName :: DimensionConfigurationProperty -> Value Text
dimensionValueSource :: DimensionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
defaultDimensionValue :: Value Text
dimensionName :: Value Text
dimensionValueSource :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"DefaultDimensionValue" 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
defaultDimensionValue,
Key
"DimensionName" 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
dimensionName,
Key
"DimensionValueSource" 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
dimensionValueSource]
instance Property "DefaultDimensionValue" DimensionConfigurationProperty where
type PropertyType "DefaultDimensionValue" DimensionConfigurationProperty = Value Prelude.Text
set :: PropertyType "DefaultDimensionValue" DimensionConfigurationProperty
-> DimensionConfigurationProperty -> DimensionConfigurationProperty
set PropertyType "DefaultDimensionValue" DimensionConfigurationProperty
newValue DimensionConfigurationProperty {()
Value Text
haddock_workaround_ :: DimensionConfigurationProperty -> ()
defaultDimensionValue :: DimensionConfigurationProperty -> Value Text
dimensionName :: DimensionConfigurationProperty -> Value Text
dimensionValueSource :: DimensionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
defaultDimensionValue :: Value Text
dimensionName :: Value Text
dimensionValueSource :: Value Text
..}
= DimensionConfigurationProperty
{defaultDimensionValue :: Value Text
defaultDimensionValue = PropertyType "DefaultDimensionValue" DimensionConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
dimensionName :: Value Text
dimensionValueSource :: Value Text
haddock_workaround_ :: ()
dimensionName :: Value Text
dimensionValueSource :: Value Text
..}
instance Property "DimensionName" DimensionConfigurationProperty where
type PropertyType "DimensionName" DimensionConfigurationProperty = Value Prelude.Text
set :: PropertyType "DimensionName" DimensionConfigurationProperty
-> DimensionConfigurationProperty -> DimensionConfigurationProperty
set PropertyType "DimensionName" DimensionConfigurationProperty
newValue DimensionConfigurationProperty {()
Value Text
haddock_workaround_ :: DimensionConfigurationProperty -> ()
defaultDimensionValue :: DimensionConfigurationProperty -> Value Text
dimensionName :: DimensionConfigurationProperty -> Value Text
dimensionValueSource :: DimensionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
defaultDimensionValue :: Value Text
dimensionName :: Value Text
dimensionValueSource :: Value Text
..}
= DimensionConfigurationProperty {dimensionName :: Value Text
dimensionName = PropertyType "DimensionName" DimensionConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
defaultDimensionValue :: Value Text
dimensionValueSource :: Value Text
haddock_workaround_ :: ()
defaultDimensionValue :: Value Text
dimensionValueSource :: Value Text
..}
instance Property "DimensionValueSource" DimensionConfigurationProperty where
type PropertyType "DimensionValueSource" DimensionConfigurationProperty = Value Prelude.Text
set :: PropertyType "DimensionValueSource" DimensionConfigurationProperty
-> DimensionConfigurationProperty -> DimensionConfigurationProperty
set PropertyType "DimensionValueSource" DimensionConfigurationProperty
newValue DimensionConfigurationProperty {()
Value Text
haddock_workaround_ :: DimensionConfigurationProperty -> ()
defaultDimensionValue :: DimensionConfigurationProperty -> Value Text
dimensionName :: DimensionConfigurationProperty -> Value Text
dimensionValueSource :: DimensionConfigurationProperty -> Value Text
haddock_workaround_ :: ()
defaultDimensionValue :: Value Text
dimensionName :: Value Text
dimensionValueSource :: Value Text
..}
= DimensionConfigurationProperty
{dimensionValueSource :: Value Text
dimensionValueSource = PropertyType "DimensionValueSource" DimensionConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
defaultDimensionValue :: Value Text
dimensionName :: Value Text
haddock_workaround_ :: ()
defaultDimensionValue :: Value Text
dimensionName :: Value Text
..}