module Stratosphere.EC2.NetworkPerformanceMetricSubscription (
NetworkPerformanceMetricSubscription(..),
mkNetworkPerformanceMetricSubscription
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NetworkPerformanceMetricSubscription
=
NetworkPerformanceMetricSubscription {NetworkPerformanceMetricSubscription -> ()
haddock_workaround_ :: (),
NetworkPerformanceMetricSubscription -> Value Text
destination :: (Value Prelude.Text),
NetworkPerformanceMetricSubscription -> Value Text
metric :: (Value Prelude.Text),
NetworkPerformanceMetricSubscription -> Value Text
source :: (Value Prelude.Text),
NetworkPerformanceMetricSubscription -> Value Text
statistic :: (Value Prelude.Text)}
deriving stock (NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription -> Bool
(NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription -> Bool)
-> (NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription -> Bool)
-> Eq NetworkPerformanceMetricSubscription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription -> Bool
== :: NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription -> Bool
$c/= :: NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription -> Bool
/= :: NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription -> Bool
Prelude.Eq, Int -> NetworkPerformanceMetricSubscription -> ShowS
[NetworkPerformanceMetricSubscription] -> ShowS
NetworkPerformanceMetricSubscription -> String
(Int -> NetworkPerformanceMetricSubscription -> ShowS)
-> (NetworkPerformanceMetricSubscription -> String)
-> ([NetworkPerformanceMetricSubscription] -> ShowS)
-> Show NetworkPerformanceMetricSubscription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NetworkPerformanceMetricSubscription -> ShowS
showsPrec :: Int -> NetworkPerformanceMetricSubscription -> ShowS
$cshow :: NetworkPerformanceMetricSubscription -> String
show :: NetworkPerformanceMetricSubscription -> String
$cshowList :: [NetworkPerformanceMetricSubscription] -> ShowS
showList :: [NetworkPerformanceMetricSubscription] -> ShowS
Prelude.Show)
mkNetworkPerformanceMetricSubscription ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> NetworkPerformanceMetricSubscription
mkNetworkPerformanceMetricSubscription :: Value Text
-> Value Text
-> Value Text
-> Value Text
-> NetworkPerformanceMetricSubscription
mkNetworkPerformanceMetricSubscription
Value Text
destination
Value Text
metric
Value Text
source
Value Text
statistic
= NetworkPerformanceMetricSubscription
{haddock_workaround_ :: ()
haddock_workaround_ = (), destination :: Value Text
destination = Value Text
destination,
metric :: Value Text
metric = Value Text
metric, source :: Value Text
source = Value Text
source, statistic :: Value Text
statistic = Value Text
statistic}
instance ToResourceProperties NetworkPerformanceMetricSubscription where
toResourceProperties :: NetworkPerformanceMetricSubscription -> ResourceProperties
toResourceProperties NetworkPerformanceMetricSubscription {()
Value Text
haddock_workaround_ :: NetworkPerformanceMetricSubscription -> ()
destination :: NetworkPerformanceMetricSubscription -> Value Text
metric :: NetworkPerformanceMetricSubscription -> Value Text
source :: NetworkPerformanceMetricSubscription -> Value Text
statistic :: NetworkPerformanceMetricSubscription -> Value Text
haddock_workaround_ :: ()
destination :: Value Text
metric :: Value Text
source :: Value Text
statistic :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::NetworkPerformanceMetricSubscription",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Destination" 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
destination,
Key
"Metric" 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
metric, Key
"Source" 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
source,
Key
"Statistic" 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
statistic]}
instance JSON.ToJSON NetworkPerformanceMetricSubscription where
toJSON :: NetworkPerformanceMetricSubscription -> Value
toJSON NetworkPerformanceMetricSubscription {()
Value Text
haddock_workaround_ :: NetworkPerformanceMetricSubscription -> ()
destination :: NetworkPerformanceMetricSubscription -> Value Text
metric :: NetworkPerformanceMetricSubscription -> Value Text
source :: NetworkPerformanceMetricSubscription -> Value Text
statistic :: NetworkPerformanceMetricSubscription -> Value Text
haddock_workaround_ :: ()
destination :: Value Text
metric :: Value Text
source :: Value Text
statistic :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Destination" 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
destination, Key
"Metric" 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
metric,
Key
"Source" 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
source, Key
"Statistic" 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
statistic]
instance Property "Destination" NetworkPerformanceMetricSubscription where
type PropertyType "Destination" NetworkPerformanceMetricSubscription = Value Prelude.Text
set :: PropertyType "Destination" NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription
set PropertyType "Destination" NetworkPerformanceMetricSubscription
newValue NetworkPerformanceMetricSubscription {()
Value Text
haddock_workaround_ :: NetworkPerformanceMetricSubscription -> ()
destination :: NetworkPerformanceMetricSubscription -> Value Text
metric :: NetworkPerformanceMetricSubscription -> Value Text
source :: NetworkPerformanceMetricSubscription -> Value Text
statistic :: NetworkPerformanceMetricSubscription -> Value Text
haddock_workaround_ :: ()
destination :: Value Text
metric :: Value Text
source :: Value Text
statistic :: Value Text
..}
= NetworkPerformanceMetricSubscription {destination :: Value Text
destination = PropertyType "Destination" NetworkPerformanceMetricSubscription
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
metric :: Value Text
source :: Value Text
statistic :: Value Text
haddock_workaround_ :: ()
metric :: Value Text
source :: Value Text
statistic :: Value Text
..}
instance Property "Metric" NetworkPerformanceMetricSubscription where
type PropertyType "Metric" NetworkPerformanceMetricSubscription = Value Prelude.Text
set :: PropertyType "Metric" NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription
set PropertyType "Metric" NetworkPerformanceMetricSubscription
newValue NetworkPerformanceMetricSubscription {()
Value Text
haddock_workaround_ :: NetworkPerformanceMetricSubscription -> ()
destination :: NetworkPerformanceMetricSubscription -> Value Text
metric :: NetworkPerformanceMetricSubscription -> Value Text
source :: NetworkPerformanceMetricSubscription -> Value Text
statistic :: NetworkPerformanceMetricSubscription -> Value Text
haddock_workaround_ :: ()
destination :: Value Text
metric :: Value Text
source :: Value Text
statistic :: Value Text
..}
= NetworkPerformanceMetricSubscription {metric :: Value Text
metric = PropertyType "Metric" NetworkPerformanceMetricSubscription
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
destination :: Value Text
source :: Value Text
statistic :: Value Text
haddock_workaround_ :: ()
destination :: Value Text
source :: Value Text
statistic :: Value Text
..}
instance Property "Source" NetworkPerformanceMetricSubscription where
type PropertyType "Source" NetworkPerformanceMetricSubscription = Value Prelude.Text
set :: PropertyType "Source" NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription
set PropertyType "Source" NetworkPerformanceMetricSubscription
newValue NetworkPerformanceMetricSubscription {()
Value Text
haddock_workaround_ :: NetworkPerformanceMetricSubscription -> ()
destination :: NetworkPerformanceMetricSubscription -> Value Text
metric :: NetworkPerformanceMetricSubscription -> Value Text
source :: NetworkPerformanceMetricSubscription -> Value Text
statistic :: NetworkPerformanceMetricSubscription -> Value Text
haddock_workaround_ :: ()
destination :: Value Text
metric :: Value Text
source :: Value Text
statistic :: Value Text
..}
= NetworkPerformanceMetricSubscription {source :: Value Text
source = PropertyType "Source" NetworkPerformanceMetricSubscription
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
destination :: Value Text
metric :: Value Text
statistic :: Value Text
haddock_workaround_ :: ()
destination :: Value Text
metric :: Value Text
statistic :: Value Text
..}
instance Property "Statistic" NetworkPerformanceMetricSubscription where
type PropertyType "Statistic" NetworkPerformanceMetricSubscription = Value Prelude.Text
set :: PropertyType "Statistic" NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription
-> NetworkPerformanceMetricSubscription
set PropertyType "Statistic" NetworkPerformanceMetricSubscription
newValue NetworkPerformanceMetricSubscription {()
Value Text
haddock_workaround_ :: NetworkPerformanceMetricSubscription -> ()
destination :: NetworkPerformanceMetricSubscription -> Value Text
metric :: NetworkPerformanceMetricSubscription -> Value Text
source :: NetworkPerformanceMetricSubscription -> Value Text
statistic :: NetworkPerformanceMetricSubscription -> Value Text
haddock_workaround_ :: ()
destination :: Value Text
metric :: Value Text
source :: Value Text
statistic :: Value Text
..}
= NetworkPerformanceMetricSubscription {statistic :: Value Text
statistic = PropertyType "Statistic" NetworkPerformanceMetricSubscription
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
destination :: Value Text
metric :: Value Text
source :: Value Text
haddock_workaround_ :: ()
destination :: Value Text
metric :: Value Text
source :: Value Text
..}