module Stratosphere.IAM.ServerCertificate (
ServerCertificate(..), mkServerCertificate
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ServerCertificate
=
ServerCertificate {ServerCertificate -> ()
haddock_workaround_ :: (),
ServerCertificate -> Maybe (Value Text)
certificateBody :: (Prelude.Maybe (Value Prelude.Text)),
ServerCertificate -> Maybe (Value Text)
certificateChain :: (Prelude.Maybe (Value Prelude.Text)),
ServerCertificate -> Maybe (Value Text)
path :: (Prelude.Maybe (Value Prelude.Text)),
ServerCertificate -> Maybe (Value Text)
privateKey :: (Prelude.Maybe (Value Prelude.Text)),
ServerCertificate -> Maybe (Value Text)
serverCertificateName :: (Prelude.Maybe (Value Prelude.Text)),
ServerCertificate -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (ServerCertificate -> ServerCertificate -> Bool
(ServerCertificate -> ServerCertificate -> Bool)
-> (ServerCertificate -> ServerCertificate -> Bool)
-> Eq ServerCertificate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServerCertificate -> ServerCertificate -> Bool
== :: ServerCertificate -> ServerCertificate -> Bool
$c/= :: ServerCertificate -> ServerCertificate -> Bool
/= :: ServerCertificate -> ServerCertificate -> Bool
Prelude.Eq, Int -> ServerCertificate -> ShowS
[ServerCertificate] -> ShowS
ServerCertificate -> String
(Int -> ServerCertificate -> ShowS)
-> (ServerCertificate -> String)
-> ([ServerCertificate] -> ShowS)
-> Show ServerCertificate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServerCertificate -> ShowS
showsPrec :: Int -> ServerCertificate -> ShowS
$cshow :: ServerCertificate -> String
show :: ServerCertificate -> String
$cshowList :: [ServerCertificate] -> ShowS
showList :: [ServerCertificate] -> ShowS
Prelude.Show)
mkServerCertificate :: ServerCertificate
mkServerCertificate :: ServerCertificate
mkServerCertificate
= ServerCertificate
{haddock_workaround_ :: ()
haddock_workaround_ = (), certificateBody :: Maybe (Value Text)
certificateBody = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
certificateChain :: Maybe (Value Text)
certificateChain = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, path :: Maybe (Value Text)
path = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
privateKey :: Maybe (Value Text)
privateKey = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
serverCertificateName :: Maybe (Value Text)
serverCertificateName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServerCertificate where
toResourceProperties :: ServerCertificate -> ResourceProperties
toResourceProperties ServerCertificate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificate -> ()
certificateBody :: ServerCertificate -> Maybe (Value Text)
certificateChain :: ServerCertificate -> Maybe (Value Text)
path :: ServerCertificate -> Maybe (Value Text)
privateKey :: ServerCertificate -> Maybe (Value Text)
serverCertificateName :: ServerCertificate -> Maybe (Value Text)
tags :: ServerCertificate -> Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IAM::ServerCertificate",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"CertificateBody" (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)
certificateBody,
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
"Path" (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)
path,
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
"PrivateKey" (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)
privateKey,
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
"ServerCertificateName"
(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)
serverCertificateName,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])}
instance JSON.ToJSON ServerCertificate where
toJSON :: ServerCertificate -> Value
toJSON ServerCertificate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificate -> ()
certificateBody :: ServerCertificate -> Maybe (Value Text)
certificateChain :: ServerCertificate -> Maybe (Value Text)
path :: ServerCertificate -> Maybe (Value Text)
privateKey :: ServerCertificate -> Maybe (Value Text)
serverCertificateName :: ServerCertificate -> Maybe (Value Text)
tags :: ServerCertificate -> Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= [(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
"CertificateBody" (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)
certificateBody,
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
"Path" (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)
path,
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
"PrivateKey" (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)
privateKey,
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
"ServerCertificateName"
(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)
serverCertificateName,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))
instance Property "CertificateBody" ServerCertificate where
type PropertyType "CertificateBody" ServerCertificate = Value Prelude.Text
set :: PropertyType "CertificateBody" ServerCertificate
-> ServerCertificate -> ServerCertificate
set PropertyType "CertificateBody" ServerCertificate
newValue ServerCertificate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificate -> ()
certificateBody :: ServerCertificate -> Maybe (Value Text)
certificateChain :: ServerCertificate -> Maybe (Value Text)
path :: ServerCertificate -> Maybe (Value Text)
privateKey :: ServerCertificate -> Maybe (Value Text)
serverCertificateName :: ServerCertificate -> Maybe (Value Text)
tags :: ServerCertificate -> Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ServerCertificate {certificateBody :: Maybe (Value Text)
certificateBody = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CertificateBody" ServerCertificate
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "CertificateChain" ServerCertificate where
type PropertyType "CertificateChain" ServerCertificate = Value Prelude.Text
set :: PropertyType "CertificateChain" ServerCertificate
-> ServerCertificate -> ServerCertificate
set PropertyType "CertificateChain" ServerCertificate
newValue ServerCertificate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificate -> ()
certificateBody :: ServerCertificate -> Maybe (Value Text)
certificateChain :: ServerCertificate -> Maybe (Value Text)
path :: ServerCertificate -> Maybe (Value Text)
privateKey :: ServerCertificate -> Maybe (Value Text)
serverCertificateName :: ServerCertificate -> Maybe (Value Text)
tags :: ServerCertificate -> Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ServerCertificate {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" ServerCertificate
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Path" ServerCertificate where
type PropertyType "Path" ServerCertificate = Value Prelude.Text
set :: PropertyType "Path" ServerCertificate
-> ServerCertificate -> ServerCertificate
set PropertyType "Path" ServerCertificate
newValue ServerCertificate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificate -> ()
certificateBody :: ServerCertificate -> Maybe (Value Text)
certificateChain :: ServerCertificate -> Maybe (Value Text)
path :: ServerCertificate -> Maybe (Value Text)
privateKey :: ServerCertificate -> Maybe (Value Text)
serverCertificateName :: ServerCertificate -> Maybe (Value Text)
tags :: ServerCertificate -> Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ServerCertificate {path :: Maybe (Value Text)
path = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Path" ServerCertificate
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "PrivateKey" ServerCertificate where
type PropertyType "PrivateKey" ServerCertificate = Value Prelude.Text
set :: PropertyType "PrivateKey" ServerCertificate
-> ServerCertificate -> ServerCertificate
set PropertyType "PrivateKey" ServerCertificate
newValue ServerCertificate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificate -> ()
certificateBody :: ServerCertificate -> Maybe (Value Text)
certificateChain :: ServerCertificate -> Maybe (Value Text)
path :: ServerCertificate -> Maybe (Value Text)
privateKey :: ServerCertificate -> Maybe (Value Text)
serverCertificateName :: ServerCertificate -> Maybe (Value Text)
tags :: ServerCertificate -> Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ServerCertificate {privateKey :: Maybe (Value Text)
privateKey = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PrivateKey" ServerCertificate
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "ServerCertificateName" ServerCertificate where
type PropertyType "ServerCertificateName" ServerCertificate = Value Prelude.Text
set :: PropertyType "ServerCertificateName" ServerCertificate
-> ServerCertificate -> ServerCertificate
set PropertyType "ServerCertificateName" ServerCertificate
newValue ServerCertificate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificate -> ()
certificateBody :: ServerCertificate -> Maybe (Value Text)
certificateChain :: ServerCertificate -> Maybe (Value Text)
path :: ServerCertificate -> Maybe (Value Text)
privateKey :: ServerCertificate -> Maybe (Value Text)
serverCertificateName :: ServerCertificate -> Maybe (Value Text)
tags :: ServerCertificate -> Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ServerCertificate
{serverCertificateName :: Maybe (Value Text)
serverCertificateName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ServerCertificateName" ServerCertificate
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" ServerCertificate where
type PropertyType "Tags" ServerCertificate = [Tag]
set :: PropertyType "Tags" ServerCertificate
-> ServerCertificate -> ServerCertificate
set PropertyType "Tags" ServerCertificate
newValue ServerCertificate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificate -> ()
certificateBody :: ServerCertificate -> Maybe (Value Text)
certificateChain :: ServerCertificate -> Maybe (Value Text)
path :: ServerCertificate -> Maybe (Value Text)
privateKey :: ServerCertificate -> Maybe (Value Text)
serverCertificateName :: ServerCertificate -> Maybe (Value Text)
tags :: ServerCertificate -> Maybe [Tag]
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ServerCertificate {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" ServerCertificate
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
haddock_workaround_ :: ()
certificateBody :: Maybe (Value Text)
certificateChain :: Maybe (Value Text)
path :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
serverCertificateName :: Maybe (Value Text)
..}