module Stratosphere.IoT.AccountAuditConfiguration.AuditNotificationTargetConfigurationsProperty (
        module Exports, AuditNotificationTargetConfigurationsProperty(..),
        mkAuditNotificationTargetConfigurationsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoT.AccountAuditConfiguration.AuditNotificationTargetProperty as Exports
import Stratosphere.ResourceProperties
data AuditNotificationTargetConfigurationsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-accountauditconfiguration-auditnotificationtargetconfigurations.html>
    AuditNotificationTargetConfigurationsProperty {AuditNotificationTargetConfigurationsProperty -> ()
haddock_workaround_ :: (),
                                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-accountauditconfiguration-auditnotificationtargetconfigurations.html#cfn-iot-accountauditconfiguration-auditnotificationtargetconfigurations-sns>
                                                   AuditNotificationTargetConfigurationsProperty
-> Maybe AuditNotificationTargetProperty
sns :: (Prelude.Maybe AuditNotificationTargetProperty)}
  deriving stock (AuditNotificationTargetConfigurationsProperty
-> AuditNotificationTargetConfigurationsProperty -> Bool
(AuditNotificationTargetConfigurationsProperty
 -> AuditNotificationTargetConfigurationsProperty -> Bool)
-> (AuditNotificationTargetConfigurationsProperty
    -> AuditNotificationTargetConfigurationsProperty -> Bool)
-> Eq AuditNotificationTargetConfigurationsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AuditNotificationTargetConfigurationsProperty
-> AuditNotificationTargetConfigurationsProperty -> Bool
== :: AuditNotificationTargetConfigurationsProperty
-> AuditNotificationTargetConfigurationsProperty -> Bool
$c/= :: AuditNotificationTargetConfigurationsProperty
-> AuditNotificationTargetConfigurationsProperty -> Bool
/= :: AuditNotificationTargetConfigurationsProperty
-> AuditNotificationTargetConfigurationsProperty -> Bool
Prelude.Eq, Int -> AuditNotificationTargetConfigurationsProperty -> ShowS
[AuditNotificationTargetConfigurationsProperty] -> ShowS
AuditNotificationTargetConfigurationsProperty -> String
(Int -> AuditNotificationTargetConfigurationsProperty -> ShowS)
-> (AuditNotificationTargetConfigurationsProperty -> String)
-> ([AuditNotificationTargetConfigurationsProperty] -> ShowS)
-> Show AuditNotificationTargetConfigurationsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AuditNotificationTargetConfigurationsProperty -> ShowS
showsPrec :: Int -> AuditNotificationTargetConfigurationsProperty -> ShowS
$cshow :: AuditNotificationTargetConfigurationsProperty -> String
show :: AuditNotificationTargetConfigurationsProperty -> String
$cshowList :: [AuditNotificationTargetConfigurationsProperty] -> ShowS
showList :: [AuditNotificationTargetConfigurationsProperty] -> ShowS
Prelude.Show)
mkAuditNotificationTargetConfigurationsProperty ::
  AuditNotificationTargetConfigurationsProperty
mkAuditNotificationTargetConfigurationsProperty :: AuditNotificationTargetConfigurationsProperty
mkAuditNotificationTargetConfigurationsProperty
  = AuditNotificationTargetConfigurationsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), sns :: Maybe AuditNotificationTargetProperty
sns = Maybe AuditNotificationTargetProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AuditNotificationTargetConfigurationsProperty where
  toResourceProperties :: AuditNotificationTargetConfigurationsProperty -> ResourceProperties
toResourceProperties
    AuditNotificationTargetConfigurationsProperty {Maybe AuditNotificationTargetProperty
()
haddock_workaround_ :: AuditNotificationTargetConfigurationsProperty -> ()
sns :: AuditNotificationTargetConfigurationsProperty
-> Maybe AuditNotificationTargetProperty
haddock_workaround_ :: ()
sns :: Maybe AuditNotificationTargetProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoT::AccountAuditConfiguration.AuditNotificationTargetConfigurations",
         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 -> AuditNotificationTargetProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Sns" (AuditNotificationTargetProperty -> (Key, Value))
-> Maybe AuditNotificationTargetProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AuditNotificationTargetProperty
sns])}
instance JSON.ToJSON AuditNotificationTargetConfigurationsProperty where
  toJSON :: AuditNotificationTargetConfigurationsProperty -> Value
toJSON AuditNotificationTargetConfigurationsProperty {Maybe AuditNotificationTargetProperty
()
haddock_workaround_ :: AuditNotificationTargetConfigurationsProperty -> ()
sns :: AuditNotificationTargetConfigurationsProperty
-> Maybe AuditNotificationTargetProperty
haddock_workaround_ :: ()
sns :: Maybe AuditNotificationTargetProperty
..}
    = [(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 -> AuditNotificationTargetProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Sns" (AuditNotificationTargetProperty -> (Key, Value))
-> Maybe AuditNotificationTargetProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AuditNotificationTargetProperty
sns]))
instance Property "Sns" AuditNotificationTargetConfigurationsProperty where
  type PropertyType "Sns" AuditNotificationTargetConfigurationsProperty = AuditNotificationTargetProperty
  set :: PropertyType "Sns" AuditNotificationTargetConfigurationsProperty
-> AuditNotificationTargetConfigurationsProperty
-> AuditNotificationTargetConfigurationsProperty
set PropertyType "Sns" AuditNotificationTargetConfigurationsProperty
newValue AuditNotificationTargetConfigurationsProperty {Maybe AuditNotificationTargetProperty
()
haddock_workaround_ :: AuditNotificationTargetConfigurationsProperty -> ()
sns :: AuditNotificationTargetConfigurationsProperty
-> Maybe AuditNotificationTargetProperty
haddock_workaround_ :: ()
sns :: Maybe AuditNotificationTargetProperty
..}
    = AuditNotificationTargetConfigurationsProperty
        {sns :: Maybe AuditNotificationTargetProperty
sns = AuditNotificationTargetProperty
-> Maybe AuditNotificationTargetProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Sns" AuditNotificationTargetConfigurationsProperty
AuditNotificationTargetProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}