stratosphere-acmpca-1.0.0: gen/Stratosphere/ACMPCA/CertificateAuthority/RevocationConfigurationProperty.hs
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
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-revocationconfiguration.html>
RevocationConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-revocationconfiguration.html#cfn-acmpca-certificateauthority-revocationconfiguration-crlconfiguration>
crlConfiguration :: (Prelude.Maybe CrlConfigurationProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificateauthority-revocationconfiguration.html#cfn-acmpca-certificateauthority-revocationconfiguration-ocspconfiguration>
ocspConfiguration :: (Prelude.Maybe OcspConfigurationProperty)}
deriving stock (Prelude.Eq, Prelude.Show)
mkRevocationConfigurationProperty ::
RevocationConfigurationProperty
mkRevocationConfigurationProperty
= RevocationConfigurationProperty
{haddock_workaround_ = (), crlConfiguration = Prelude.Nothing,
ocspConfiguration = Prelude.Nothing}
instance ToResourceProperties RevocationConfigurationProperty where
toResourceProperties RevocationConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::ACMPCA::CertificateAuthority.RevocationConfiguration",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "CrlConfiguration" Prelude.<$> crlConfiguration,
(JSON..=) "OcspConfiguration" Prelude.<$> ocspConfiguration])}
instance JSON.ToJSON RevocationConfigurationProperty where
toJSON RevocationConfigurationProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "CrlConfiguration" Prelude.<$> crlConfiguration,
(JSON..=) "OcspConfiguration" Prelude.<$> ocspConfiguration]))
instance Property "CrlConfiguration" RevocationConfigurationProperty where
type PropertyType "CrlConfiguration" RevocationConfigurationProperty = CrlConfigurationProperty
set newValue RevocationConfigurationProperty {..}
= RevocationConfigurationProperty
{crlConfiguration = Prelude.pure newValue, ..}
instance Property "OcspConfiguration" RevocationConfigurationProperty where
type PropertyType "OcspConfiguration" RevocationConfigurationProperty = OcspConfigurationProperty
set newValue RevocationConfigurationProperty {..}
= RevocationConfigurationProperty
{ocspConfiguration = Prelude.pure newValue, ..}