module Stratosphere.Timestream.ScheduledQuery.MixedMeasureMappingProperty (
module Exports, MixedMeasureMappingProperty(..),
mkMixedMeasureMappingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Timestream.ScheduledQuery.MultiMeasureAttributeMappingProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MixedMeasureMappingProperty
=
MixedMeasureMappingProperty {MixedMeasureMappingProperty -> ()
haddock_workaround_ :: (),
MixedMeasureMappingProperty -> Maybe (Value Text)
measureName :: (Prelude.Maybe (Value Prelude.Text)),
MixedMeasureMappingProperty -> Value Text
measureValueType :: (Value Prelude.Text),
MixedMeasureMappingProperty
-> Maybe [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings :: (Prelude.Maybe [MultiMeasureAttributeMappingProperty]),
MixedMeasureMappingProperty -> Maybe (Value Text)
sourceColumn :: (Prelude.Maybe (Value Prelude.Text)),
MixedMeasureMappingProperty -> Maybe (Value Text)
targetMeasureName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MixedMeasureMappingProperty -> MixedMeasureMappingProperty -> Bool
(MixedMeasureMappingProperty
-> MixedMeasureMappingProperty -> Bool)
-> (MixedMeasureMappingProperty
-> MixedMeasureMappingProperty -> Bool)
-> Eq MixedMeasureMappingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MixedMeasureMappingProperty -> MixedMeasureMappingProperty -> Bool
== :: MixedMeasureMappingProperty -> MixedMeasureMappingProperty -> Bool
$c/= :: MixedMeasureMappingProperty -> MixedMeasureMappingProperty -> Bool
/= :: MixedMeasureMappingProperty -> MixedMeasureMappingProperty -> Bool
Prelude.Eq, Int -> MixedMeasureMappingProperty -> ShowS
[MixedMeasureMappingProperty] -> ShowS
MixedMeasureMappingProperty -> String
(Int -> MixedMeasureMappingProperty -> ShowS)
-> (MixedMeasureMappingProperty -> String)
-> ([MixedMeasureMappingProperty] -> ShowS)
-> Show MixedMeasureMappingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MixedMeasureMappingProperty -> ShowS
showsPrec :: Int -> MixedMeasureMappingProperty -> ShowS
$cshow :: MixedMeasureMappingProperty -> String
show :: MixedMeasureMappingProperty -> String
$cshowList :: [MixedMeasureMappingProperty] -> ShowS
showList :: [MixedMeasureMappingProperty] -> ShowS
Prelude.Show)
mkMixedMeasureMappingProperty ::
Value Prelude.Text -> MixedMeasureMappingProperty
mkMixedMeasureMappingProperty :: Value Text -> MixedMeasureMappingProperty
mkMixedMeasureMappingProperty Value Text
measureValueType
= MixedMeasureMappingProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), measureValueType :: Value Text
measureValueType = Value Text
measureValueType,
measureName :: Maybe (Value Text)
measureName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings = Maybe [MultiMeasureAttributeMappingProperty]
forall a. Maybe a
Prelude.Nothing,
sourceColumn :: Maybe (Value Text)
sourceColumn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
targetMeasureName :: Maybe (Value Text)
targetMeasureName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MixedMeasureMappingProperty where
toResourceProperties :: MixedMeasureMappingProperty -> ResourceProperties
toResourceProperties MixedMeasureMappingProperty {Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MixedMeasureMappingProperty -> ()
measureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
measureValueType :: MixedMeasureMappingProperty -> Value Text
multiMeasureAttributeMappings :: MixedMeasureMappingProperty
-> Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: MixedMeasureMappingProperty -> Maybe (Value Text)
targetMeasureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Timestream::ScheduledQuery.MixedMeasureMapping",
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
"MeasureValueType" 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
measureValueType]
([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
"MeasureName" (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)
measureName,
Key -> [MultiMeasureAttributeMappingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MultiMeasureAttributeMappings"
([MultiMeasureAttributeMappingProperty] -> (Key, Value))
-> Maybe [MultiMeasureAttributeMappingProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings,
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
"SourceColumn" (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)
sourceColumn,
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
"TargetMeasureName" (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)
targetMeasureName]))}
instance JSON.ToJSON MixedMeasureMappingProperty where
toJSON :: MixedMeasureMappingProperty -> Value
toJSON MixedMeasureMappingProperty {Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MixedMeasureMappingProperty -> ()
measureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
measureValueType :: MixedMeasureMappingProperty -> Value Text
multiMeasureAttributeMappings :: MixedMeasureMappingProperty
-> Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: MixedMeasureMappingProperty -> Maybe (Value Text)
targetMeasureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value 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
"MeasureValueType" 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
measureValueType]
([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
"MeasureName" (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)
measureName,
Key -> [MultiMeasureAttributeMappingProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MultiMeasureAttributeMappings"
([MultiMeasureAttributeMappingProperty] -> (Key, Value))
-> Maybe [MultiMeasureAttributeMappingProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings,
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
"SourceColumn" (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)
sourceColumn,
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
"TargetMeasureName" (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)
targetMeasureName])))
instance Property "MeasureName" MixedMeasureMappingProperty where
type PropertyType "MeasureName" MixedMeasureMappingProperty = Value Prelude.Text
set :: PropertyType "MeasureName" MixedMeasureMappingProperty
-> MixedMeasureMappingProperty -> MixedMeasureMappingProperty
set PropertyType "MeasureName" MixedMeasureMappingProperty
newValue MixedMeasureMappingProperty {Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MixedMeasureMappingProperty -> ()
measureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
measureValueType :: MixedMeasureMappingProperty -> Value Text
multiMeasureAttributeMappings :: MixedMeasureMappingProperty
-> Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: MixedMeasureMappingProperty -> Maybe (Value Text)
targetMeasureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
..}
= MixedMeasureMappingProperty
{measureName :: Maybe (Value Text)
measureName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MeasureName" MixedMeasureMappingProperty
Value Text
newValue, Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
haddock_workaround_ :: ()
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
..}
instance Property "MeasureValueType" MixedMeasureMappingProperty where
type PropertyType "MeasureValueType" MixedMeasureMappingProperty = Value Prelude.Text
set :: PropertyType "MeasureValueType" MixedMeasureMappingProperty
-> MixedMeasureMappingProperty -> MixedMeasureMappingProperty
set PropertyType "MeasureValueType" MixedMeasureMappingProperty
newValue MixedMeasureMappingProperty {Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MixedMeasureMappingProperty -> ()
measureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
measureValueType :: MixedMeasureMappingProperty -> Value Text
multiMeasureAttributeMappings :: MixedMeasureMappingProperty
-> Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: MixedMeasureMappingProperty -> Maybe (Value Text)
targetMeasureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
..}
= MixedMeasureMappingProperty {measureValueType :: Value Text
measureValueType = PropertyType "MeasureValueType" MixedMeasureMappingProperty
Value Text
newValue, Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
..}
instance Property "MultiMeasureAttributeMappings" MixedMeasureMappingProperty where
type PropertyType "MultiMeasureAttributeMappings" MixedMeasureMappingProperty = [MultiMeasureAttributeMappingProperty]
set :: PropertyType
"MultiMeasureAttributeMappings" MixedMeasureMappingProperty
-> MixedMeasureMappingProperty -> MixedMeasureMappingProperty
set PropertyType
"MultiMeasureAttributeMappings" MixedMeasureMappingProperty
newValue MixedMeasureMappingProperty {Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MixedMeasureMappingProperty -> ()
measureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
measureValueType :: MixedMeasureMappingProperty -> Value Text
multiMeasureAttributeMappings :: MixedMeasureMappingProperty
-> Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: MixedMeasureMappingProperty -> Maybe (Value Text)
targetMeasureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
..}
= MixedMeasureMappingProperty
{multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings = [MultiMeasureAttributeMappingProperty]
-> Maybe [MultiMeasureAttributeMappingProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [MultiMeasureAttributeMappingProperty]
PropertyType
"MultiMeasureAttributeMappings" MixedMeasureMappingProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
..}
instance Property "SourceColumn" MixedMeasureMappingProperty where
type PropertyType "SourceColumn" MixedMeasureMappingProperty = Value Prelude.Text
set :: PropertyType "SourceColumn" MixedMeasureMappingProperty
-> MixedMeasureMappingProperty -> MixedMeasureMappingProperty
set PropertyType "SourceColumn" MixedMeasureMappingProperty
newValue MixedMeasureMappingProperty {Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MixedMeasureMappingProperty -> ()
measureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
measureValueType :: MixedMeasureMappingProperty -> Value Text
multiMeasureAttributeMappings :: MixedMeasureMappingProperty
-> Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: MixedMeasureMappingProperty -> Maybe (Value Text)
targetMeasureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
..}
= MixedMeasureMappingProperty
{sourceColumn :: Maybe (Value Text)
sourceColumn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SourceColumn" MixedMeasureMappingProperty
Value Text
newValue, Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
targetMeasureName :: Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
targetMeasureName :: Maybe (Value Text)
..}
instance Property "TargetMeasureName" MixedMeasureMappingProperty where
type PropertyType "TargetMeasureName" MixedMeasureMappingProperty = Value Prelude.Text
set :: PropertyType "TargetMeasureName" MixedMeasureMappingProperty
-> MixedMeasureMappingProperty -> MixedMeasureMappingProperty
set PropertyType "TargetMeasureName" MixedMeasureMappingProperty
newValue MixedMeasureMappingProperty {Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MixedMeasureMappingProperty -> ()
measureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
measureValueType :: MixedMeasureMappingProperty -> Value Text
multiMeasureAttributeMappings :: MixedMeasureMappingProperty
-> Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: MixedMeasureMappingProperty -> Maybe (Value Text)
targetMeasureName :: MixedMeasureMappingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
targetMeasureName :: Maybe (Value Text)
..}
= MixedMeasureMappingProperty
{targetMeasureName :: Maybe (Value Text)
targetMeasureName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TargetMeasureName" MixedMeasureMappingProperty
Value Text
newValue, Maybe [MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
haddock_workaround_ :: ()
measureName :: Maybe (Value Text)
measureValueType :: Value Text
multiMeasureAttributeMappings :: Maybe [MultiMeasureAttributeMappingProperty]
sourceColumn :: Maybe (Value Text)
..}