module Stratosphere.Timestream.ScheduledQuery.MultiMeasureMappingsProperty (
module Exports, MultiMeasureMappingsProperty(..),
mkMultiMeasureMappingsProperty
) 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 MultiMeasureMappingsProperty
=
MultiMeasureMappingsProperty {MultiMeasureMappingsProperty -> ()
haddock_workaround_ :: (),
MultiMeasureMappingsProperty
-> [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings :: [MultiMeasureAttributeMappingProperty],
MultiMeasureMappingsProperty -> Maybe (Value Text)
targetMultiMeasureName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MultiMeasureMappingsProperty
-> MultiMeasureMappingsProperty -> Bool
(MultiMeasureMappingsProperty
-> MultiMeasureMappingsProperty -> Bool)
-> (MultiMeasureMappingsProperty
-> MultiMeasureMappingsProperty -> Bool)
-> Eq MultiMeasureMappingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MultiMeasureMappingsProperty
-> MultiMeasureMappingsProperty -> Bool
== :: MultiMeasureMappingsProperty
-> MultiMeasureMappingsProperty -> Bool
$c/= :: MultiMeasureMappingsProperty
-> MultiMeasureMappingsProperty -> Bool
/= :: MultiMeasureMappingsProperty
-> MultiMeasureMappingsProperty -> Bool
Prelude.Eq, Int -> MultiMeasureMappingsProperty -> ShowS
[MultiMeasureMappingsProperty] -> ShowS
MultiMeasureMappingsProperty -> String
(Int -> MultiMeasureMappingsProperty -> ShowS)
-> (MultiMeasureMappingsProperty -> String)
-> ([MultiMeasureMappingsProperty] -> ShowS)
-> Show MultiMeasureMappingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MultiMeasureMappingsProperty -> ShowS
showsPrec :: Int -> MultiMeasureMappingsProperty -> ShowS
$cshow :: MultiMeasureMappingsProperty -> String
show :: MultiMeasureMappingsProperty -> String
$cshowList :: [MultiMeasureMappingsProperty] -> ShowS
showList :: [MultiMeasureMappingsProperty] -> ShowS
Prelude.Show)
mkMultiMeasureMappingsProperty ::
[MultiMeasureAttributeMappingProperty]
-> MultiMeasureMappingsProperty
mkMultiMeasureMappingsProperty :: [MultiMeasureAttributeMappingProperty]
-> MultiMeasureMappingsProperty
mkMultiMeasureMappingsProperty [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings
= MultiMeasureMappingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
multiMeasureAttributeMappings :: [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings = [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings,
targetMultiMeasureName :: Maybe (Value Text)
targetMultiMeasureName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MultiMeasureMappingsProperty where
toResourceProperties :: MultiMeasureMappingsProperty -> ResourceProperties
toResourceProperties MultiMeasureMappingsProperty {[MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: MultiMeasureMappingsProperty -> ()
multiMeasureAttributeMappings :: MultiMeasureMappingsProperty
-> [MultiMeasureAttributeMappingProperty]
targetMultiMeasureName :: MultiMeasureMappingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
multiMeasureAttributeMappings :: [MultiMeasureAttributeMappingProperty]
targetMultiMeasureName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Timestream::ScheduledQuery.MultiMeasureMappings",
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
"MultiMeasureAttributeMappings"
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..= [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings]
([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
"TargetMultiMeasureName"
(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)
targetMultiMeasureName]))}
instance JSON.ToJSON MultiMeasureMappingsProperty where
toJSON :: MultiMeasureMappingsProperty -> Value
toJSON MultiMeasureMappingsProperty {[MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: MultiMeasureMappingsProperty -> ()
multiMeasureAttributeMappings :: MultiMeasureMappingsProperty
-> [MultiMeasureAttributeMappingProperty]
targetMultiMeasureName :: MultiMeasureMappingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
multiMeasureAttributeMappings :: [MultiMeasureAttributeMappingProperty]
targetMultiMeasureName :: 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
"MultiMeasureAttributeMappings"
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..= [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings]
([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
"TargetMultiMeasureName"
(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)
targetMultiMeasureName])))
instance Property "MultiMeasureAttributeMappings" MultiMeasureMappingsProperty where
type PropertyType "MultiMeasureAttributeMappings" MultiMeasureMappingsProperty = [MultiMeasureAttributeMappingProperty]
set :: PropertyType
"MultiMeasureAttributeMappings" MultiMeasureMappingsProperty
-> MultiMeasureMappingsProperty -> MultiMeasureMappingsProperty
set PropertyType
"MultiMeasureAttributeMappings" MultiMeasureMappingsProperty
newValue MultiMeasureMappingsProperty {[MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: MultiMeasureMappingsProperty -> ()
multiMeasureAttributeMappings :: MultiMeasureMappingsProperty
-> [MultiMeasureAttributeMappingProperty]
targetMultiMeasureName :: MultiMeasureMappingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
multiMeasureAttributeMappings :: [MultiMeasureAttributeMappingProperty]
targetMultiMeasureName :: Maybe (Value Text)
..}
= MultiMeasureMappingsProperty
{multiMeasureAttributeMappings :: [MultiMeasureAttributeMappingProperty]
multiMeasureAttributeMappings = [MultiMeasureAttributeMappingProperty]
PropertyType
"MultiMeasureAttributeMappings" MultiMeasureMappingsProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
targetMultiMeasureName :: Maybe (Value Text)
haddock_workaround_ :: ()
targetMultiMeasureName :: Maybe (Value Text)
..}
instance Property "TargetMultiMeasureName" MultiMeasureMappingsProperty where
type PropertyType "TargetMultiMeasureName" MultiMeasureMappingsProperty = Value Prelude.Text
set :: PropertyType "TargetMultiMeasureName" MultiMeasureMappingsProperty
-> MultiMeasureMappingsProperty -> MultiMeasureMappingsProperty
set PropertyType "TargetMultiMeasureName" MultiMeasureMappingsProperty
newValue MultiMeasureMappingsProperty {[MultiMeasureAttributeMappingProperty]
Maybe (Value Text)
()
haddock_workaround_ :: MultiMeasureMappingsProperty -> ()
multiMeasureAttributeMappings :: MultiMeasureMappingsProperty
-> [MultiMeasureAttributeMappingProperty]
targetMultiMeasureName :: MultiMeasureMappingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
multiMeasureAttributeMappings :: [MultiMeasureAttributeMappingProperty]
targetMultiMeasureName :: Maybe (Value Text)
..}
= MultiMeasureMappingsProperty
{targetMultiMeasureName :: Maybe (Value Text)
targetMultiMeasureName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TargetMultiMeasureName" MultiMeasureMappingsProperty
Value Text
newValue, [MultiMeasureAttributeMappingProperty]
()
haddock_workaround_ :: ()
multiMeasureAttributeMappings :: [MultiMeasureAttributeMappingProperty]
haddock_workaround_ :: ()
multiMeasureAttributeMappings :: [MultiMeasureAttributeMappingProperty]
..}