module Stratosphere.IoT.SecurityProfile.MetricsExportConfigProperty (
MetricsExportConfigProperty(..), mkMetricsExportConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MetricsExportConfigProperty
=
MetricsExportConfigProperty {MetricsExportConfigProperty -> ()
haddock_workaround_ :: (),
MetricsExportConfigProperty -> Value Text
mqttTopic :: (Value Prelude.Text),
MetricsExportConfigProperty -> Value Text
roleArn :: (Value Prelude.Text)}
deriving stock (MetricsExportConfigProperty -> MetricsExportConfigProperty -> Bool
(MetricsExportConfigProperty
-> MetricsExportConfigProperty -> Bool)
-> (MetricsExportConfigProperty
-> MetricsExportConfigProperty -> Bool)
-> Eq MetricsExportConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MetricsExportConfigProperty -> MetricsExportConfigProperty -> Bool
== :: MetricsExportConfigProperty -> MetricsExportConfigProperty -> Bool
$c/= :: MetricsExportConfigProperty -> MetricsExportConfigProperty -> Bool
/= :: MetricsExportConfigProperty -> MetricsExportConfigProperty -> Bool
Prelude.Eq, Int -> MetricsExportConfigProperty -> ShowS
[MetricsExportConfigProperty] -> ShowS
MetricsExportConfigProperty -> String
(Int -> MetricsExportConfigProperty -> ShowS)
-> (MetricsExportConfigProperty -> String)
-> ([MetricsExportConfigProperty] -> ShowS)
-> Show MetricsExportConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MetricsExportConfigProperty -> ShowS
showsPrec :: Int -> MetricsExportConfigProperty -> ShowS
$cshow :: MetricsExportConfigProperty -> String
show :: MetricsExportConfigProperty -> String
$cshowList :: [MetricsExportConfigProperty] -> ShowS
showList :: [MetricsExportConfigProperty] -> ShowS
Prelude.Show)
mkMetricsExportConfigProperty ::
Value Prelude.Text
-> Value Prelude.Text -> MetricsExportConfigProperty
mkMetricsExportConfigProperty :: Value Text -> Value Text -> MetricsExportConfigProperty
mkMetricsExportConfigProperty Value Text
mqttTopic Value Text
roleArn
= MetricsExportConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), mqttTopic :: Value Text
mqttTopic = Value Text
mqttTopic,
roleArn :: Value Text
roleArn = Value Text
roleArn}
instance ToResourceProperties MetricsExportConfigProperty where
toResourceProperties :: MetricsExportConfigProperty -> ResourceProperties
toResourceProperties MetricsExportConfigProperty {()
Value Text
haddock_workaround_ :: MetricsExportConfigProperty -> ()
mqttTopic :: MetricsExportConfigProperty -> Value Text
roleArn :: MetricsExportConfigProperty -> Value Text
haddock_workaround_ :: ()
mqttTopic :: Value Text
roleArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::SecurityProfile.MetricsExportConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"MqttTopic" 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
mqttTopic,
Key
"RoleArn" 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
roleArn]}
instance JSON.ToJSON MetricsExportConfigProperty where
toJSON :: MetricsExportConfigProperty -> Value
toJSON MetricsExportConfigProperty {()
Value Text
haddock_workaround_ :: MetricsExportConfigProperty -> ()
mqttTopic :: MetricsExportConfigProperty -> Value Text
roleArn :: MetricsExportConfigProperty -> Value Text
haddock_workaround_ :: ()
mqttTopic :: Value Text
roleArn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"MqttTopic" 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
mqttTopic, Key
"RoleArn" 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
roleArn]
instance Property "MqttTopic" MetricsExportConfigProperty where
type PropertyType "MqttTopic" MetricsExportConfigProperty = Value Prelude.Text
set :: PropertyType "MqttTopic" MetricsExportConfigProperty
-> MetricsExportConfigProperty -> MetricsExportConfigProperty
set PropertyType "MqttTopic" MetricsExportConfigProperty
newValue MetricsExportConfigProperty {()
Value Text
haddock_workaround_ :: MetricsExportConfigProperty -> ()
mqttTopic :: MetricsExportConfigProperty -> Value Text
roleArn :: MetricsExportConfigProperty -> Value Text
haddock_workaround_ :: ()
mqttTopic :: Value Text
roleArn :: Value Text
..}
= MetricsExportConfigProperty {mqttTopic :: Value Text
mqttTopic = PropertyType "MqttTopic" MetricsExportConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
..}
instance Property "RoleArn" MetricsExportConfigProperty where
type PropertyType "RoleArn" MetricsExportConfigProperty = Value Prelude.Text
set :: PropertyType "RoleArn" MetricsExportConfigProperty
-> MetricsExportConfigProperty -> MetricsExportConfigProperty
set PropertyType "RoleArn" MetricsExportConfigProperty
newValue MetricsExportConfigProperty {()
Value Text
haddock_workaround_ :: MetricsExportConfigProperty -> ()
mqttTopic :: MetricsExportConfigProperty -> Value Text
roleArn :: MetricsExportConfigProperty -> Value Text
haddock_workaround_ :: ()
mqttTopic :: Value Text
roleArn :: Value Text
..}
= MetricsExportConfigProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" MetricsExportConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
mqttTopic :: Value Text
haddock_workaround_ :: ()
mqttTopic :: Value Text
..}