module Stratosphere.IoT.AccountAuditConfiguration.CertExpirationCheckCustomConfigurationProperty (
CertExpirationCheckCustomConfigurationProperty(..),
mkCertExpirationCheckCustomConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CertExpirationCheckCustomConfigurationProperty
=
CertExpirationCheckCustomConfigurationProperty {CertExpirationCheckCustomConfigurationProperty -> ()
haddock_workaround_ :: (),
CertExpirationCheckCustomConfigurationProperty
-> Maybe (Value Text)
certExpirationThresholdInDays :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CertExpirationCheckCustomConfigurationProperty
-> CertExpirationCheckCustomConfigurationProperty -> Bool
(CertExpirationCheckCustomConfigurationProperty
-> CertExpirationCheckCustomConfigurationProperty -> Bool)
-> (CertExpirationCheckCustomConfigurationProperty
-> CertExpirationCheckCustomConfigurationProperty -> Bool)
-> Eq CertExpirationCheckCustomConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CertExpirationCheckCustomConfigurationProperty
-> CertExpirationCheckCustomConfigurationProperty -> Bool
== :: CertExpirationCheckCustomConfigurationProperty
-> CertExpirationCheckCustomConfigurationProperty -> Bool
$c/= :: CertExpirationCheckCustomConfigurationProperty
-> CertExpirationCheckCustomConfigurationProperty -> Bool
/= :: CertExpirationCheckCustomConfigurationProperty
-> CertExpirationCheckCustomConfigurationProperty -> Bool
Prelude.Eq, Int -> CertExpirationCheckCustomConfigurationProperty -> ShowS
[CertExpirationCheckCustomConfigurationProperty] -> ShowS
CertExpirationCheckCustomConfigurationProperty -> String
(Int -> CertExpirationCheckCustomConfigurationProperty -> ShowS)
-> (CertExpirationCheckCustomConfigurationProperty -> String)
-> ([CertExpirationCheckCustomConfigurationProperty] -> ShowS)
-> Show CertExpirationCheckCustomConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CertExpirationCheckCustomConfigurationProperty -> ShowS
showsPrec :: Int -> CertExpirationCheckCustomConfigurationProperty -> ShowS
$cshow :: CertExpirationCheckCustomConfigurationProperty -> String
show :: CertExpirationCheckCustomConfigurationProperty -> String
$cshowList :: [CertExpirationCheckCustomConfigurationProperty] -> ShowS
showList :: [CertExpirationCheckCustomConfigurationProperty] -> ShowS
Prelude.Show)
mkCertExpirationCheckCustomConfigurationProperty ::
CertExpirationCheckCustomConfigurationProperty
mkCertExpirationCheckCustomConfigurationProperty :: CertExpirationCheckCustomConfigurationProperty
mkCertExpirationCheckCustomConfigurationProperty
= CertExpirationCheckCustomConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
certExpirationThresholdInDays :: Maybe (Value Text)
certExpirationThresholdInDays = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CertExpirationCheckCustomConfigurationProperty where
toResourceProperties :: CertExpirationCheckCustomConfigurationProperty
-> ResourceProperties
toResourceProperties
CertExpirationCheckCustomConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: CertExpirationCheckCustomConfigurationProperty -> ()
certExpirationThresholdInDays :: CertExpirationCheckCustomConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
certExpirationThresholdInDays :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::AccountAuditConfiguration.CertExpirationCheckCustomConfiguration",
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
"CertExpirationThresholdInDays"
(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)
certExpirationThresholdInDays])}
instance JSON.ToJSON CertExpirationCheckCustomConfigurationProperty where
toJSON :: CertExpirationCheckCustomConfigurationProperty -> Value
toJSON CertExpirationCheckCustomConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: CertExpirationCheckCustomConfigurationProperty -> ()
certExpirationThresholdInDays :: CertExpirationCheckCustomConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
certExpirationThresholdInDays :: 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
"CertExpirationThresholdInDays"
(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)
certExpirationThresholdInDays]))
instance Property "CertExpirationThresholdInDays" CertExpirationCheckCustomConfigurationProperty where
type PropertyType "CertExpirationThresholdInDays" CertExpirationCheckCustomConfigurationProperty = Value Prelude.Text
set :: PropertyType
"CertExpirationThresholdInDays"
CertExpirationCheckCustomConfigurationProperty
-> CertExpirationCheckCustomConfigurationProperty
-> CertExpirationCheckCustomConfigurationProperty
set PropertyType
"CertExpirationThresholdInDays"
CertExpirationCheckCustomConfigurationProperty
newValue CertExpirationCheckCustomConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: CertExpirationCheckCustomConfigurationProperty -> ()
certExpirationThresholdInDays :: CertExpirationCheckCustomConfigurationProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
certExpirationThresholdInDays :: Maybe (Value Text)
..}
= CertExpirationCheckCustomConfigurationProperty
{certExpirationThresholdInDays :: Maybe (Value Text)
certExpirationThresholdInDays = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CertExpirationThresholdInDays"
CertExpirationCheckCustomConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}