module Stratosphere.IoT.AccountAuditConfiguration.DeviceCertAgeAuditCheckConfigurationProperty (
module Exports, DeviceCertAgeAuditCheckConfigurationProperty(..),
mkDeviceCertAgeAuditCheckConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoT.AccountAuditConfiguration.CertAgeCheckCustomConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeviceCertAgeAuditCheckConfigurationProperty
=
DeviceCertAgeAuditCheckConfigurationProperty {DeviceCertAgeAuditCheckConfigurationProperty -> ()
haddock_workaround_ :: (),
DeviceCertAgeAuditCheckConfigurationProperty
-> Maybe CertAgeCheckCustomConfigurationProperty
configuration :: (Prelude.Maybe CertAgeCheckCustomConfigurationProperty),
DeviceCertAgeAuditCheckConfigurationProperty -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty -> Bool
(DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty -> Bool)
-> (DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty -> Bool)
-> Eq DeviceCertAgeAuditCheckConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty -> Bool
== :: DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty -> Bool
$c/= :: DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty -> Bool
/= :: DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty -> Bool
Prelude.Eq, Int -> DeviceCertAgeAuditCheckConfigurationProperty -> ShowS
[DeviceCertAgeAuditCheckConfigurationProperty] -> ShowS
DeviceCertAgeAuditCheckConfigurationProperty -> String
(Int -> DeviceCertAgeAuditCheckConfigurationProperty -> ShowS)
-> (DeviceCertAgeAuditCheckConfigurationProperty -> String)
-> ([DeviceCertAgeAuditCheckConfigurationProperty] -> ShowS)
-> Show DeviceCertAgeAuditCheckConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeviceCertAgeAuditCheckConfigurationProperty -> ShowS
showsPrec :: Int -> DeviceCertAgeAuditCheckConfigurationProperty -> ShowS
$cshow :: DeviceCertAgeAuditCheckConfigurationProperty -> String
show :: DeviceCertAgeAuditCheckConfigurationProperty -> String
$cshowList :: [DeviceCertAgeAuditCheckConfigurationProperty] -> ShowS
showList :: [DeviceCertAgeAuditCheckConfigurationProperty] -> ShowS
Prelude.Show)
mkDeviceCertAgeAuditCheckConfigurationProperty ::
DeviceCertAgeAuditCheckConfigurationProperty
mkDeviceCertAgeAuditCheckConfigurationProperty :: DeviceCertAgeAuditCheckConfigurationProperty
mkDeviceCertAgeAuditCheckConfigurationProperty
= DeviceCertAgeAuditCheckConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), configuration :: Maybe CertAgeCheckCustomConfigurationProperty
configuration = Maybe CertAgeCheckCustomConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DeviceCertAgeAuditCheckConfigurationProperty where
toResourceProperties :: DeviceCertAgeAuditCheckConfigurationProperty -> ResourceProperties
toResourceProperties
DeviceCertAgeAuditCheckConfigurationProperty {Maybe (Value Bool)
Maybe CertAgeCheckCustomConfigurationProperty
()
haddock_workaround_ :: DeviceCertAgeAuditCheckConfigurationProperty -> ()
configuration :: DeviceCertAgeAuditCheckConfigurationProperty
-> Maybe CertAgeCheckCustomConfigurationProperty
enabled :: DeviceCertAgeAuditCheckConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
configuration :: Maybe CertAgeCheckCustomConfigurationProperty
enabled :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::AccountAuditConfiguration.DeviceCertAgeAuditCheckConfiguration",
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 -> CertAgeCheckCustomConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Configuration" (CertAgeCheckCustomConfigurationProperty -> (Key, Value))
-> Maybe CertAgeCheckCustomConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CertAgeCheckCustomConfigurationProperty
configuration,
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 DeviceCertAgeAuditCheckConfigurationProperty where
toJSON :: DeviceCertAgeAuditCheckConfigurationProperty -> Value
toJSON DeviceCertAgeAuditCheckConfigurationProperty {Maybe (Value Bool)
Maybe CertAgeCheckCustomConfigurationProperty
()
haddock_workaround_ :: DeviceCertAgeAuditCheckConfigurationProperty -> ()
configuration :: DeviceCertAgeAuditCheckConfigurationProperty
-> Maybe CertAgeCheckCustomConfigurationProperty
enabled :: DeviceCertAgeAuditCheckConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
configuration :: Maybe CertAgeCheckCustomConfigurationProperty
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 -> CertAgeCheckCustomConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Configuration" (CertAgeCheckCustomConfigurationProperty -> (Key, Value))
-> Maybe CertAgeCheckCustomConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CertAgeCheckCustomConfigurationProperty
configuration,
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 "Configuration" DeviceCertAgeAuditCheckConfigurationProperty where
type PropertyType "Configuration" DeviceCertAgeAuditCheckConfigurationProperty = CertAgeCheckCustomConfigurationProperty
set :: PropertyType
"Configuration" DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty
set PropertyType
"Configuration" DeviceCertAgeAuditCheckConfigurationProperty
newValue DeviceCertAgeAuditCheckConfigurationProperty {Maybe (Value Bool)
Maybe CertAgeCheckCustomConfigurationProperty
()
haddock_workaround_ :: DeviceCertAgeAuditCheckConfigurationProperty -> ()
configuration :: DeviceCertAgeAuditCheckConfigurationProperty
-> Maybe CertAgeCheckCustomConfigurationProperty
enabled :: DeviceCertAgeAuditCheckConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
configuration :: Maybe CertAgeCheckCustomConfigurationProperty
enabled :: Maybe (Value Bool)
..}
= DeviceCertAgeAuditCheckConfigurationProperty
{configuration :: Maybe CertAgeCheckCustomConfigurationProperty
configuration = CertAgeCheckCustomConfigurationProperty
-> Maybe CertAgeCheckCustomConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"Configuration" DeviceCertAgeAuditCheckConfigurationProperty
CertAgeCheckCustomConfigurationProperty
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
..}
instance Property "Enabled" DeviceCertAgeAuditCheckConfigurationProperty where
type PropertyType "Enabled" DeviceCertAgeAuditCheckConfigurationProperty = Value Prelude.Bool
set :: PropertyType "Enabled" DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty
-> DeviceCertAgeAuditCheckConfigurationProperty
set PropertyType "Enabled" DeviceCertAgeAuditCheckConfigurationProperty
newValue DeviceCertAgeAuditCheckConfigurationProperty {Maybe (Value Bool)
Maybe CertAgeCheckCustomConfigurationProperty
()
haddock_workaround_ :: DeviceCertAgeAuditCheckConfigurationProperty -> ()
configuration :: DeviceCertAgeAuditCheckConfigurationProperty
-> Maybe CertAgeCheckCustomConfigurationProperty
enabled :: DeviceCertAgeAuditCheckConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
configuration :: Maybe CertAgeCheckCustomConfigurationProperty
enabled :: Maybe (Value Bool)
..}
= DeviceCertAgeAuditCheckConfigurationProperty
{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" DeviceCertAgeAuditCheckConfigurationProperty
Value Bool
newValue, Maybe CertAgeCheckCustomConfigurationProperty
()
haddock_workaround_ :: ()
configuration :: Maybe CertAgeCheckCustomConfigurationProperty
haddock_workaround_ :: ()
configuration :: Maybe CertAgeCheckCustomConfigurationProperty
..}