module Stratosphere.EC2.ClientVpnEndpoint.CertificateAuthenticationRequestProperty (
CertificateAuthenticationRequestProperty(..),
mkCertificateAuthenticationRequestProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CertificateAuthenticationRequestProperty
=
CertificateAuthenticationRequestProperty {CertificateAuthenticationRequestProperty -> ()
haddock_workaround_ :: (),
CertificateAuthenticationRequestProperty -> Value Text
clientRootCertificateChainArn :: (Value Prelude.Text)}
deriving stock (CertificateAuthenticationRequestProperty
-> CertificateAuthenticationRequestProperty -> Bool
(CertificateAuthenticationRequestProperty
-> CertificateAuthenticationRequestProperty -> Bool)
-> (CertificateAuthenticationRequestProperty
-> CertificateAuthenticationRequestProperty -> Bool)
-> Eq CertificateAuthenticationRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CertificateAuthenticationRequestProperty
-> CertificateAuthenticationRequestProperty -> Bool
== :: CertificateAuthenticationRequestProperty
-> CertificateAuthenticationRequestProperty -> Bool
$c/= :: CertificateAuthenticationRequestProperty
-> CertificateAuthenticationRequestProperty -> Bool
/= :: CertificateAuthenticationRequestProperty
-> CertificateAuthenticationRequestProperty -> Bool
Prelude.Eq, Int -> CertificateAuthenticationRequestProperty -> ShowS
[CertificateAuthenticationRequestProperty] -> ShowS
CertificateAuthenticationRequestProperty -> String
(Int -> CertificateAuthenticationRequestProperty -> ShowS)
-> (CertificateAuthenticationRequestProperty -> String)
-> ([CertificateAuthenticationRequestProperty] -> ShowS)
-> Show CertificateAuthenticationRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CertificateAuthenticationRequestProperty -> ShowS
showsPrec :: Int -> CertificateAuthenticationRequestProperty -> ShowS
$cshow :: CertificateAuthenticationRequestProperty -> String
show :: CertificateAuthenticationRequestProperty -> String
$cshowList :: [CertificateAuthenticationRequestProperty] -> ShowS
showList :: [CertificateAuthenticationRequestProperty] -> ShowS
Prelude.Show)
mkCertificateAuthenticationRequestProperty ::
Value Prelude.Text -> CertificateAuthenticationRequestProperty
mkCertificateAuthenticationRequestProperty :: Value Text -> CertificateAuthenticationRequestProperty
mkCertificateAuthenticationRequestProperty
Value Text
clientRootCertificateChainArn
= CertificateAuthenticationRequestProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
clientRootCertificateChainArn :: Value Text
clientRootCertificateChainArn = Value Text
clientRootCertificateChainArn}
instance ToResourceProperties CertificateAuthenticationRequestProperty where
toResourceProperties :: CertificateAuthenticationRequestProperty -> ResourceProperties
toResourceProperties CertificateAuthenticationRequestProperty {()
Value Text
haddock_workaround_ :: CertificateAuthenticationRequestProperty -> ()
clientRootCertificateChainArn :: CertificateAuthenticationRequestProperty -> Value Text
haddock_workaround_ :: ()
clientRootCertificateChainArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::ClientVpnEndpoint.CertificateAuthenticationRequest",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"ClientRootCertificateChainArn"
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
clientRootCertificateChainArn]}
instance JSON.ToJSON CertificateAuthenticationRequestProperty where
toJSON :: CertificateAuthenticationRequestProperty -> Value
toJSON CertificateAuthenticationRequestProperty {()
Value Text
haddock_workaround_ :: CertificateAuthenticationRequestProperty -> ()
clientRootCertificateChainArn :: CertificateAuthenticationRequestProperty -> Value Text
haddock_workaround_ :: ()
clientRootCertificateChainArn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"ClientRootCertificateChainArn"
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
clientRootCertificateChainArn]
instance Property "ClientRootCertificateChainArn" CertificateAuthenticationRequestProperty where
type PropertyType "ClientRootCertificateChainArn" CertificateAuthenticationRequestProperty = Value Prelude.Text
set :: PropertyType
"ClientRootCertificateChainArn"
CertificateAuthenticationRequestProperty
-> CertificateAuthenticationRequestProperty
-> CertificateAuthenticationRequestProperty
set PropertyType
"ClientRootCertificateChainArn"
CertificateAuthenticationRequestProperty
newValue CertificateAuthenticationRequestProperty {()
Value Text
haddock_workaround_ :: CertificateAuthenticationRequestProperty -> ()
clientRootCertificateChainArn :: CertificateAuthenticationRequestProperty -> Value Text
haddock_workaround_ :: ()
clientRootCertificateChainArn :: Value Text
..}
= CertificateAuthenticationRequestProperty
{clientRootCertificateChainArn :: Value Text
clientRootCertificateChainArn = PropertyType
"ClientRootCertificateChainArn"
CertificateAuthenticationRequestProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}