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