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