module Stratosphere.ACMPCA.CertificateAuthority.RevocationConfigurationProperty (
module Exports, RevocationConfigurationProperty(..),
mkRevocationConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ACMPCA.CertificateAuthority.CrlConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.ACMPCA.CertificateAuthority.OcspConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data RevocationConfigurationProperty
=
RevocationConfigurationProperty {RevocationConfigurationProperty -> ()
haddock_workaround_ :: (),
RevocationConfigurationProperty -> Maybe CrlConfigurationProperty
crlConfiguration :: (Prelude.Maybe CrlConfigurationProperty),
RevocationConfigurationProperty -> Maybe OcspConfigurationProperty
ocspConfiguration :: (Prelude.Maybe OcspConfigurationProperty)}
deriving stock (RevocationConfigurationProperty
-> RevocationConfigurationProperty -> Bool
(RevocationConfigurationProperty
-> RevocationConfigurationProperty -> Bool)
-> (RevocationConfigurationProperty
-> RevocationConfigurationProperty -> Bool)
-> Eq RevocationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RevocationConfigurationProperty
-> RevocationConfigurationProperty -> Bool
== :: RevocationConfigurationProperty
-> RevocationConfigurationProperty -> Bool
$c/= :: RevocationConfigurationProperty
-> RevocationConfigurationProperty -> Bool
/= :: RevocationConfigurationProperty
-> RevocationConfigurationProperty -> Bool
Prelude.Eq, Int -> RevocationConfigurationProperty -> ShowS
[RevocationConfigurationProperty] -> ShowS
RevocationConfigurationProperty -> String
(Int -> RevocationConfigurationProperty -> ShowS)
-> (RevocationConfigurationProperty -> String)
-> ([RevocationConfigurationProperty] -> ShowS)
-> Show RevocationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RevocationConfigurationProperty -> ShowS
showsPrec :: Int -> RevocationConfigurationProperty -> ShowS
$cshow :: RevocationConfigurationProperty -> String
show :: RevocationConfigurationProperty -> String
$cshowList :: [RevocationConfigurationProperty] -> ShowS
showList :: [RevocationConfigurationProperty] -> ShowS
Prelude.Show)
mkRevocationConfigurationProperty ::
RevocationConfigurationProperty
mkRevocationConfigurationProperty :: RevocationConfigurationProperty
mkRevocationConfigurationProperty
= RevocationConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), crlConfiguration :: Maybe CrlConfigurationProperty
crlConfiguration = Maybe CrlConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
ocspConfiguration :: Maybe OcspConfigurationProperty
ocspConfiguration = Maybe OcspConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RevocationConfigurationProperty where
toResourceProperties :: RevocationConfigurationProperty -> ResourceProperties
toResourceProperties RevocationConfigurationProperty {Maybe CrlConfigurationProperty
Maybe OcspConfigurationProperty
()
haddock_workaround_ :: RevocationConfigurationProperty -> ()
crlConfiguration :: RevocationConfigurationProperty -> Maybe CrlConfigurationProperty
ocspConfiguration :: RevocationConfigurationProperty -> Maybe OcspConfigurationProperty
haddock_workaround_ :: ()
crlConfiguration :: Maybe CrlConfigurationProperty
ocspConfiguration :: Maybe OcspConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ACMPCA::CertificateAuthority.RevocationConfiguration",
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 -> CrlConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CrlConfiguration" (CrlConfigurationProperty -> (Key, Value))
-> Maybe CrlConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CrlConfigurationProperty
crlConfiguration,
Key -> OcspConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OcspConfiguration" (OcspConfigurationProperty -> (Key, Value))
-> Maybe OcspConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OcspConfigurationProperty
ocspConfiguration])}
instance JSON.ToJSON RevocationConfigurationProperty where
toJSON :: RevocationConfigurationProperty -> Value
toJSON RevocationConfigurationProperty {Maybe CrlConfigurationProperty
Maybe OcspConfigurationProperty
()
haddock_workaround_ :: RevocationConfigurationProperty -> ()
crlConfiguration :: RevocationConfigurationProperty -> Maybe CrlConfigurationProperty
ocspConfiguration :: RevocationConfigurationProperty -> Maybe OcspConfigurationProperty
haddock_workaround_ :: ()
crlConfiguration :: Maybe CrlConfigurationProperty
ocspConfiguration :: Maybe OcspConfigurationProperty
..}
= [(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 -> CrlConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CrlConfiguration" (CrlConfigurationProperty -> (Key, Value))
-> Maybe CrlConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CrlConfigurationProperty
crlConfiguration,
Key -> OcspConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OcspConfiguration" (OcspConfigurationProperty -> (Key, Value))
-> Maybe OcspConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OcspConfigurationProperty
ocspConfiguration]))
instance Property "CrlConfiguration" RevocationConfigurationProperty where
type PropertyType "CrlConfiguration" RevocationConfigurationProperty = CrlConfigurationProperty
set :: PropertyType "CrlConfiguration" RevocationConfigurationProperty
-> RevocationConfigurationProperty
-> RevocationConfigurationProperty
set PropertyType "CrlConfiguration" RevocationConfigurationProperty
newValue RevocationConfigurationProperty {Maybe CrlConfigurationProperty
Maybe OcspConfigurationProperty
()
haddock_workaround_ :: RevocationConfigurationProperty -> ()
crlConfiguration :: RevocationConfigurationProperty -> Maybe CrlConfigurationProperty
ocspConfiguration :: RevocationConfigurationProperty -> Maybe OcspConfigurationProperty
haddock_workaround_ :: ()
crlConfiguration :: Maybe CrlConfigurationProperty
ocspConfiguration :: Maybe OcspConfigurationProperty
..}
= RevocationConfigurationProperty
{crlConfiguration :: Maybe CrlConfigurationProperty
crlConfiguration = CrlConfigurationProperty -> Maybe CrlConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CrlConfiguration" RevocationConfigurationProperty
CrlConfigurationProperty
newValue, Maybe OcspConfigurationProperty
()
haddock_workaround_ :: ()
ocspConfiguration :: Maybe OcspConfigurationProperty
haddock_workaround_ :: ()
ocspConfiguration :: Maybe OcspConfigurationProperty
..}
instance Property "OcspConfiguration" RevocationConfigurationProperty where
type PropertyType "OcspConfiguration" RevocationConfigurationProperty = OcspConfigurationProperty
set :: PropertyType "OcspConfiguration" RevocationConfigurationProperty
-> RevocationConfigurationProperty
-> RevocationConfigurationProperty
set PropertyType "OcspConfiguration" RevocationConfigurationProperty
newValue RevocationConfigurationProperty {Maybe CrlConfigurationProperty
Maybe OcspConfigurationProperty
()
haddock_workaround_ :: RevocationConfigurationProperty -> ()
crlConfiguration :: RevocationConfigurationProperty -> Maybe CrlConfigurationProperty
ocspConfiguration :: RevocationConfigurationProperty -> Maybe OcspConfigurationProperty
haddock_workaround_ :: ()
crlConfiguration :: Maybe CrlConfigurationProperty
ocspConfiguration :: Maybe OcspConfigurationProperty
..}
= RevocationConfigurationProperty
{ocspConfiguration :: Maybe OcspConfigurationProperty
ocspConfiguration = OcspConfigurationProperty -> Maybe OcspConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OcspConfiguration" RevocationConfigurationProperty
OcspConfigurationProperty
newValue, Maybe CrlConfigurationProperty
()
haddock_workaround_ :: ()
crlConfiguration :: Maybe CrlConfigurationProperty
haddock_workaround_ :: ()
crlConfiguration :: Maybe CrlConfigurationProperty
..}