module Stratosphere.ACMPCA.CertificateAuthorityActivation (
CertificateAuthorityActivation(..),
mkCertificateAuthorityActivation
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CertificateAuthorityActivation
=
CertificateAuthorityActivation {CertificateAuthorityActivation -> ()
haddock_workaround_ :: (),
CertificateAuthorityActivation -> Value Text
certificate :: (Value Prelude.Text),
CertificateAuthorityActivation -> Value Text
certificateAuthorityArn :: (Value Prelude.Text),
CertificateAuthorityActivation -> Maybe (Value Text)
certificateChain :: (Prelude.Maybe (Value Prelude.Text)),
CertificateAuthorityActivation -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CertificateAuthorityActivation
-> CertificateAuthorityActivation -> Bool
(CertificateAuthorityActivation
-> CertificateAuthorityActivation -> Bool)
-> (CertificateAuthorityActivation
-> CertificateAuthorityActivation -> Bool)
-> Eq CertificateAuthorityActivation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CertificateAuthorityActivation
-> CertificateAuthorityActivation -> Bool
== :: CertificateAuthorityActivation
-> CertificateAuthorityActivation -> Bool
$c/= :: CertificateAuthorityActivation
-> CertificateAuthorityActivation -> Bool
/= :: CertificateAuthorityActivation
-> CertificateAuthorityActivation -> Bool
Prelude.Eq, Int -> CertificateAuthorityActivation -> ShowS
[CertificateAuthorityActivation] -> ShowS
CertificateAuthorityActivation -> String
(Int -> CertificateAuthorityActivation -> ShowS)
-> (CertificateAuthorityActivation -> String)
-> ([CertificateAuthorityActivation] -> ShowS)
-> Show CertificateAuthorityActivation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CertificateAuthorityActivation -> ShowS
showsPrec :: Int -> CertificateAuthorityActivation -> ShowS
$cshow :: CertificateAuthorityActivation -> String
show :: CertificateAuthorityActivation -> String
$cshowList :: [CertificateAuthorityActivation] -> ShowS
showList :: [CertificateAuthorityActivation] -> ShowS
Prelude.Show)
mkCertificateAuthorityActivation ::
Value Prelude.Text
-> Value Prelude.Text -> CertificateAuthorityActivation
mkCertificateAuthorityActivation :: Value Text -> Value Text -> CertificateAuthorityActivation
mkCertificateAuthorityActivation
Value Text
certificate
Value Text
certificateAuthorityArn
= CertificateAuthorityActivation
{haddock_workaround_ :: ()
haddock_workaround_ = (), certificate :: Value Text
certificate = Value Text
certificate,
certificateAuthorityArn :: Value Text
certificateAuthorityArn = Value Text
certificateAuthorityArn,
certificateChain :: Maybe (Value Text)
certificateChain = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CertificateAuthorityActivation where
toResourceProperties :: CertificateAuthorityActivation -> ResourceProperties
toResourceProperties CertificateAuthorityActivation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CertificateAuthorityActivation -> ()
certificate :: CertificateAuthorityActivation -> Value Text
certificateAuthorityArn :: CertificateAuthorityActivation -> Value Text
certificateChain :: CertificateAuthorityActivation -> Maybe (Value Text)
status :: CertificateAuthorityActivation -> Maybe (Value Text)
haddock_workaround_ :: ()
certificate :: Value Text
certificateAuthorityArn :: Value Text
certificateChain :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ACMPCA::CertificateAuthorityActivation",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Certificate" 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..= Value Text
certificate,
Key
"CertificateAuthorityArn" 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..= Value Text
certificateAuthorityArn]
([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
"CertificateChain" (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)
certificateChain,
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
"Status" (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)
status]))}
instance JSON.ToJSON CertificateAuthorityActivation where
toJSON :: CertificateAuthorityActivation -> Value
toJSON CertificateAuthorityActivation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CertificateAuthorityActivation -> ()
certificate :: CertificateAuthorityActivation -> Value Text
certificateAuthorityArn :: CertificateAuthorityActivation -> Value Text
certificateChain :: CertificateAuthorityActivation -> Maybe (Value Text)
status :: CertificateAuthorityActivation -> Maybe (Value Text)
haddock_workaround_ :: ()
certificate :: Value Text
certificateAuthorityArn :: Value Text
certificateChain :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Certificate" 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..= Value Text
certificate,
Key
"CertificateAuthorityArn" 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..= Value Text
certificateAuthorityArn]
([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
"CertificateChain" (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)
certificateChain,
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
"Status" (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)
status])))
instance Property "Certificate" CertificateAuthorityActivation where
type PropertyType "Certificate" CertificateAuthorityActivation = Value Prelude.Text
set :: PropertyType "Certificate" CertificateAuthorityActivation
-> CertificateAuthorityActivation -> CertificateAuthorityActivation
set PropertyType "Certificate" CertificateAuthorityActivation
newValue CertificateAuthorityActivation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CertificateAuthorityActivation -> ()
certificate :: CertificateAuthorityActivation -> Value Text
certificateAuthorityArn :: CertificateAuthorityActivation -> Value Text
certificateChain :: CertificateAuthorityActivation -> Maybe (Value Text)
status :: CertificateAuthorityActivation -> Maybe (Value Text)
haddock_workaround_ :: ()
certificate :: Value Text
certificateAuthorityArn :: Value Text
certificateChain :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
= CertificateAuthorityActivation {certificate :: Value Text
certificate = PropertyType "Certificate" CertificateAuthorityActivation
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
certificateChain :: Maybe (Value Text)
status :: Maybe (Value Text)
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
certificateChain :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
instance Property "CertificateAuthorityArn" CertificateAuthorityActivation where
type PropertyType "CertificateAuthorityArn" CertificateAuthorityActivation = Value Prelude.Text
set :: PropertyType
"CertificateAuthorityArn" CertificateAuthorityActivation
-> CertificateAuthorityActivation -> CertificateAuthorityActivation
set PropertyType
"CertificateAuthorityArn" CertificateAuthorityActivation
newValue CertificateAuthorityActivation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CertificateAuthorityActivation -> ()
certificate :: CertificateAuthorityActivation -> Value Text
certificateAuthorityArn :: CertificateAuthorityActivation -> Value Text
certificateChain :: CertificateAuthorityActivation -> Maybe (Value Text)
status :: CertificateAuthorityActivation -> Maybe (Value Text)
haddock_workaround_ :: ()
certificate :: Value Text
certificateAuthorityArn :: Value Text
certificateChain :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
= CertificateAuthorityActivation
{certificateAuthorityArn :: Value Text
certificateAuthorityArn = PropertyType
"CertificateAuthorityArn" CertificateAuthorityActivation
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
certificate :: Value Text
certificateChain :: Maybe (Value Text)
status :: Maybe (Value Text)
haddock_workaround_ :: ()
certificate :: Value Text
certificateChain :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
instance Property "CertificateChain" CertificateAuthorityActivation where
type PropertyType "CertificateChain" CertificateAuthorityActivation = Value Prelude.Text
set :: PropertyType "CertificateChain" CertificateAuthorityActivation
-> CertificateAuthorityActivation -> CertificateAuthorityActivation
set PropertyType "CertificateChain" CertificateAuthorityActivation
newValue CertificateAuthorityActivation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CertificateAuthorityActivation -> ()
certificate :: CertificateAuthorityActivation -> Value Text
certificateAuthorityArn :: CertificateAuthorityActivation -> Value Text
certificateChain :: CertificateAuthorityActivation -> Maybe (Value Text)
status :: CertificateAuthorityActivation -> Maybe (Value Text)
haddock_workaround_ :: ()
certificate :: Value Text
certificateAuthorityArn :: Value Text
certificateChain :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
= CertificateAuthorityActivation
{certificateChain :: Maybe (Value Text)
certificateChain = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CertificateChain" CertificateAuthorityActivation
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
certificate :: Value Text
certificateAuthorityArn :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
certificate :: Value Text
certificateAuthorityArn :: Value Text
status :: Maybe (Value Text)
..}
instance Property "Status" CertificateAuthorityActivation where
type PropertyType "Status" CertificateAuthorityActivation = Value Prelude.Text
set :: PropertyType "Status" CertificateAuthorityActivation
-> CertificateAuthorityActivation -> CertificateAuthorityActivation
set PropertyType "Status" CertificateAuthorityActivation
newValue CertificateAuthorityActivation {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CertificateAuthorityActivation -> ()
certificate :: CertificateAuthorityActivation -> Value Text
certificateAuthorityArn :: CertificateAuthorityActivation -> Value Text
certificateChain :: CertificateAuthorityActivation -> Maybe (Value Text)
status :: CertificateAuthorityActivation -> Maybe (Value Text)
haddock_workaround_ :: ()
certificate :: Value Text
certificateAuthorityArn :: Value Text
certificateChain :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
= CertificateAuthorityActivation
{status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" CertificateAuthorityActivation
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
certificate :: Value Text
certificateAuthorityArn :: Value Text
certificateChain :: Maybe (Value Text)
haddock_workaround_ :: ()
certificate :: Value Text
certificateAuthorityArn :: Value Text
certificateChain :: Maybe (Value Text)
..}