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