module Stratosphere.IoT.TopicRuleDestination.HttpUrlDestinationSummaryProperty (
        HttpUrlDestinationSummaryProperty(..),
        mkHttpUrlDestinationSummaryProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HttpUrlDestinationSummaryProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicruledestination-httpurldestinationsummary.html>
    HttpUrlDestinationSummaryProperty {HttpUrlDestinationSummaryProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicruledestination-httpurldestinationsummary.html#cfn-iot-topicruledestination-httpurldestinationsummary-confirmationurl>
                                       HttpUrlDestinationSummaryProperty -> Maybe (Value Text)
confirmationUrl :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (HttpUrlDestinationSummaryProperty
-> HttpUrlDestinationSummaryProperty -> Bool
(HttpUrlDestinationSummaryProperty
 -> HttpUrlDestinationSummaryProperty -> Bool)
-> (HttpUrlDestinationSummaryProperty
    -> HttpUrlDestinationSummaryProperty -> Bool)
-> Eq HttpUrlDestinationSummaryProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HttpUrlDestinationSummaryProperty
-> HttpUrlDestinationSummaryProperty -> Bool
== :: HttpUrlDestinationSummaryProperty
-> HttpUrlDestinationSummaryProperty -> Bool
$c/= :: HttpUrlDestinationSummaryProperty
-> HttpUrlDestinationSummaryProperty -> Bool
/= :: HttpUrlDestinationSummaryProperty
-> HttpUrlDestinationSummaryProperty -> Bool
Prelude.Eq, Int -> HttpUrlDestinationSummaryProperty -> ShowS
[HttpUrlDestinationSummaryProperty] -> ShowS
HttpUrlDestinationSummaryProperty -> String
(Int -> HttpUrlDestinationSummaryProperty -> ShowS)
-> (HttpUrlDestinationSummaryProperty -> String)
-> ([HttpUrlDestinationSummaryProperty] -> ShowS)
-> Show HttpUrlDestinationSummaryProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HttpUrlDestinationSummaryProperty -> ShowS
showsPrec :: Int -> HttpUrlDestinationSummaryProperty -> ShowS
$cshow :: HttpUrlDestinationSummaryProperty -> String
show :: HttpUrlDestinationSummaryProperty -> String
$cshowList :: [HttpUrlDestinationSummaryProperty] -> ShowS
showList :: [HttpUrlDestinationSummaryProperty] -> ShowS
Prelude.Show)
mkHttpUrlDestinationSummaryProperty ::
  HttpUrlDestinationSummaryProperty
mkHttpUrlDestinationSummaryProperty :: HttpUrlDestinationSummaryProperty
mkHttpUrlDestinationSummaryProperty
  = HttpUrlDestinationSummaryProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), confirmationUrl :: Maybe (Value Text)
confirmationUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HttpUrlDestinationSummaryProperty where
  toResourceProperties :: HttpUrlDestinationSummaryProperty -> ResourceProperties
toResourceProperties HttpUrlDestinationSummaryProperty {Maybe (Value Text)
()
haddock_workaround_ :: HttpUrlDestinationSummaryProperty -> ()
confirmationUrl :: HttpUrlDestinationSummaryProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
confirmationUrl :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoT::TopicRuleDestination.HttpUrlDestinationSummary",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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..=) Key
"ConfirmationUrl" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
confirmationUrl])}
instance JSON.ToJSON HttpUrlDestinationSummaryProperty where
  toJSON :: HttpUrlDestinationSummaryProperty -> Value
toJSON HttpUrlDestinationSummaryProperty {Maybe (Value Text)
()
haddock_workaround_ :: HttpUrlDestinationSummaryProperty -> ()
confirmationUrl :: HttpUrlDestinationSummaryProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
confirmationUrl :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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..=) Key
"ConfirmationUrl" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
confirmationUrl]))
instance Property "ConfirmationUrl" HttpUrlDestinationSummaryProperty where
  type PropertyType "ConfirmationUrl" HttpUrlDestinationSummaryProperty = Value Prelude.Text
  set :: PropertyType "ConfirmationUrl" HttpUrlDestinationSummaryProperty
-> HttpUrlDestinationSummaryProperty
-> HttpUrlDestinationSummaryProperty
set PropertyType "ConfirmationUrl" HttpUrlDestinationSummaryProperty
newValue HttpUrlDestinationSummaryProperty {Maybe (Value Text)
()
haddock_workaround_ :: HttpUrlDestinationSummaryProperty -> ()
confirmationUrl :: HttpUrlDestinationSummaryProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
confirmationUrl :: Maybe (Value Text)
..}
    = HttpUrlDestinationSummaryProperty
        {confirmationUrl :: Maybe (Value Text)
confirmationUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConfirmationUrl" HttpUrlDestinationSummaryProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}