module Stratosphere.Timestream.ScheduledQuery.TargetConfigurationProperty (
module Exports, TargetConfigurationProperty(..),
mkTargetConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Timestream.ScheduledQuery.TimestreamConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data TargetConfigurationProperty
=
TargetConfigurationProperty {TargetConfigurationProperty -> ()
haddock_workaround_ :: (),
TargetConfigurationProperty -> TimestreamConfigurationProperty
timestreamConfiguration :: TimestreamConfigurationProperty}
deriving stock (TargetConfigurationProperty -> TargetConfigurationProperty -> Bool
(TargetConfigurationProperty
-> TargetConfigurationProperty -> Bool)
-> (TargetConfigurationProperty
-> TargetConfigurationProperty -> Bool)
-> Eq TargetConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TargetConfigurationProperty -> TargetConfigurationProperty -> Bool
== :: TargetConfigurationProperty -> TargetConfigurationProperty -> Bool
$c/= :: TargetConfigurationProperty -> TargetConfigurationProperty -> Bool
/= :: TargetConfigurationProperty -> TargetConfigurationProperty -> Bool
Prelude.Eq, Int -> TargetConfigurationProperty -> ShowS
[TargetConfigurationProperty] -> ShowS
TargetConfigurationProperty -> String
(Int -> TargetConfigurationProperty -> ShowS)
-> (TargetConfigurationProperty -> String)
-> ([TargetConfigurationProperty] -> ShowS)
-> Show TargetConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TargetConfigurationProperty -> ShowS
showsPrec :: Int -> TargetConfigurationProperty -> ShowS
$cshow :: TargetConfigurationProperty -> String
show :: TargetConfigurationProperty -> String
$cshowList :: [TargetConfigurationProperty] -> ShowS
showList :: [TargetConfigurationProperty] -> ShowS
Prelude.Show)
mkTargetConfigurationProperty ::
TimestreamConfigurationProperty -> TargetConfigurationProperty
mkTargetConfigurationProperty :: TimestreamConfigurationProperty -> TargetConfigurationProperty
mkTargetConfigurationProperty TimestreamConfigurationProperty
timestreamConfiguration
= TargetConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
timestreamConfiguration :: TimestreamConfigurationProperty
timestreamConfiguration = TimestreamConfigurationProperty
timestreamConfiguration}
instance ToResourceProperties TargetConfigurationProperty where
toResourceProperties :: TargetConfigurationProperty -> ResourceProperties
toResourceProperties TargetConfigurationProperty {()
TimestreamConfigurationProperty
haddock_workaround_ :: TargetConfigurationProperty -> ()
timestreamConfiguration :: TargetConfigurationProperty -> TimestreamConfigurationProperty
haddock_workaround_ :: ()
timestreamConfiguration :: TimestreamConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Timestream::ScheduledQuery.TargetConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"TimestreamConfiguration"
Key -> TimestreamConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TimestreamConfigurationProperty
timestreamConfiguration]}
instance JSON.ToJSON TargetConfigurationProperty where
toJSON :: TargetConfigurationProperty -> Value
toJSON TargetConfigurationProperty {()
TimestreamConfigurationProperty
haddock_workaround_ :: TargetConfigurationProperty -> ()
timestreamConfiguration :: TargetConfigurationProperty -> TimestreamConfigurationProperty
haddock_workaround_ :: ()
timestreamConfiguration :: TimestreamConfigurationProperty
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"TimestreamConfiguration" Key -> TimestreamConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TimestreamConfigurationProperty
timestreamConfiguration]
instance Property "TimestreamConfiguration" TargetConfigurationProperty where
type PropertyType "TimestreamConfiguration" TargetConfigurationProperty = TimestreamConfigurationProperty
set :: PropertyType "TimestreamConfiguration" TargetConfigurationProperty
-> TargetConfigurationProperty -> TargetConfigurationProperty
set PropertyType "TimestreamConfiguration" TargetConfigurationProperty
newValue TargetConfigurationProperty {()
TimestreamConfigurationProperty
haddock_workaround_ :: TargetConfigurationProperty -> ()
timestreamConfiguration :: TargetConfigurationProperty -> TimestreamConfigurationProperty
haddock_workaround_ :: ()
timestreamConfiguration :: TimestreamConfigurationProperty
..}
= TargetConfigurationProperty
{timestreamConfiguration :: TimestreamConfigurationProperty
timestreamConfiguration = PropertyType "TimestreamConfiguration" TargetConfigurationProperty
TimestreamConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}