module Stratosphere.SMSVOICE.ConfigurationSet.SnsDestinationProperty (
        SnsDestinationProperty(..), mkSnsDestinationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SnsDestinationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-smsvoice-configurationset-snsdestination.html>
    SnsDestinationProperty {SnsDestinationProperty -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-smsvoice-configurationset-snsdestination.html#cfn-smsvoice-configurationset-snsdestination-topicarn>
                            SnsDestinationProperty -> Value Text
topicArn :: (Value Prelude.Text)}
  deriving stock (SnsDestinationProperty -> SnsDestinationProperty -> Bool
(SnsDestinationProperty -> SnsDestinationProperty -> Bool)
-> (SnsDestinationProperty -> SnsDestinationProperty -> Bool)
-> Eq SnsDestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SnsDestinationProperty -> SnsDestinationProperty -> Bool
== :: SnsDestinationProperty -> SnsDestinationProperty -> Bool
$c/= :: SnsDestinationProperty -> SnsDestinationProperty -> Bool
/= :: SnsDestinationProperty -> SnsDestinationProperty -> Bool
Prelude.Eq, Int -> SnsDestinationProperty -> ShowS
[SnsDestinationProperty] -> ShowS
SnsDestinationProperty -> String
(Int -> SnsDestinationProperty -> ShowS)
-> (SnsDestinationProperty -> String)
-> ([SnsDestinationProperty] -> ShowS)
-> Show SnsDestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SnsDestinationProperty -> ShowS
showsPrec :: Int -> SnsDestinationProperty -> ShowS
$cshow :: SnsDestinationProperty -> String
show :: SnsDestinationProperty -> String
$cshowList :: [SnsDestinationProperty] -> ShowS
showList :: [SnsDestinationProperty] -> ShowS
Prelude.Show)
mkSnsDestinationProperty ::
  Value Prelude.Text -> SnsDestinationProperty
mkSnsDestinationProperty :: Value Text -> SnsDestinationProperty
mkSnsDestinationProperty Value Text
topicArn
  = SnsDestinationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), topicArn :: Value Text
topicArn = Value Text
topicArn}
instance ToResourceProperties SnsDestinationProperty where
  toResourceProperties :: SnsDestinationProperty -> ResourceProperties
toResourceProperties SnsDestinationProperty {()
Value Text
haddock_workaround_ :: SnsDestinationProperty -> ()
topicArn :: SnsDestinationProperty -> Value Text
haddock_workaround_ :: ()
topicArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SMSVOICE::ConfigurationSet.SnsDestination",
         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 SnsDestinationProperty where
  toJSON :: SnsDestinationProperty -> Value
toJSON SnsDestinationProperty {()
Value Text
haddock_workaround_ :: SnsDestinationProperty -> ()
topicArn :: SnsDestinationProperty -> 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" SnsDestinationProperty where
  type PropertyType "TopicArn" SnsDestinationProperty = Value Prelude.Text
  set :: PropertyType "TopicArn" SnsDestinationProperty
-> SnsDestinationProperty -> SnsDestinationProperty
set PropertyType "TopicArn" SnsDestinationProperty
newValue SnsDestinationProperty {()
Value Text
haddock_workaround_ :: SnsDestinationProperty -> ()
topicArn :: SnsDestinationProperty -> Value Text
haddock_workaround_ :: ()
topicArn :: Value Text
..}
    = SnsDestinationProperty {topicArn :: Value Text
topicArn = PropertyType "TopicArn" SnsDestinationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}