module Stratosphere.EC2.ClientVpnEndpoint.ClientAuthenticationRequestProperty (
        module Exports, ClientAuthenticationRequestProperty(..),
        mkClientAuthenticationRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EC2.ClientVpnEndpoint.CertificateAuthenticationRequestProperty as Exports
import {-# SOURCE #-} Stratosphere.EC2.ClientVpnEndpoint.DirectoryServiceAuthenticationRequestProperty as Exports
import {-# SOURCE #-} Stratosphere.EC2.ClientVpnEndpoint.FederatedAuthenticationRequestProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ClientAuthenticationRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest.html>
    ClientAuthenticationRequestProperty {ClientAuthenticationRequestProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest.html#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-activedirectory>
                                         ClientAuthenticationRequestProperty
-> Maybe DirectoryServiceAuthenticationRequestProperty
activeDirectory :: (Prelude.Maybe DirectoryServiceAuthenticationRequestProperty),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest.html#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-federatedauthentication>
                                         ClientAuthenticationRequestProperty
-> Maybe FederatedAuthenticationRequestProperty
federatedAuthentication :: (Prelude.Maybe FederatedAuthenticationRequestProperty),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest.html#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-mutualauthentication>
                                         ClientAuthenticationRequestProperty
-> Maybe CertificateAuthenticationRequestProperty
mutualAuthentication :: (Prelude.Maybe CertificateAuthenticationRequestProperty),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-clientauthenticationrequest.html#cfn-ec2-clientvpnendpoint-clientauthenticationrequest-type>
                                         ClientAuthenticationRequestProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty -> Bool
(ClientAuthenticationRequestProperty
 -> ClientAuthenticationRequestProperty -> Bool)
-> (ClientAuthenticationRequestProperty
    -> ClientAuthenticationRequestProperty -> Bool)
-> Eq ClientAuthenticationRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty -> Bool
== :: ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty -> Bool
$c/= :: ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty -> Bool
/= :: ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty -> Bool
Prelude.Eq, Int -> ClientAuthenticationRequestProperty -> ShowS
[ClientAuthenticationRequestProperty] -> ShowS
ClientAuthenticationRequestProperty -> String
(Int -> ClientAuthenticationRequestProperty -> ShowS)
-> (ClientAuthenticationRequestProperty -> String)
-> ([ClientAuthenticationRequestProperty] -> ShowS)
-> Show ClientAuthenticationRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClientAuthenticationRequestProperty -> ShowS
showsPrec :: Int -> ClientAuthenticationRequestProperty -> ShowS
$cshow :: ClientAuthenticationRequestProperty -> String
show :: ClientAuthenticationRequestProperty -> String
$cshowList :: [ClientAuthenticationRequestProperty] -> ShowS
showList :: [ClientAuthenticationRequestProperty] -> ShowS
Prelude.Show)
mkClientAuthenticationRequestProperty ::
  Value Prelude.Text -> ClientAuthenticationRequestProperty
mkClientAuthenticationRequestProperty :: Value Text -> ClientAuthenticationRequestProperty
mkClientAuthenticationRequestProperty Value Text
type'
  = ClientAuthenticationRequestProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
       activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
activeDirectory = Maybe DirectoryServiceAuthenticationRequestProperty
forall a. Maybe a
Prelude.Nothing,
       federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
federatedAuthentication = Maybe FederatedAuthenticationRequestProperty
forall a. Maybe a
Prelude.Nothing,
       mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
mutualAuthentication = Maybe CertificateAuthenticationRequestProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ClientAuthenticationRequestProperty where
  toResourceProperties :: ClientAuthenticationRequestProperty -> ResourceProperties
toResourceProperties ClientAuthenticationRequestProperty {Maybe CertificateAuthenticationRequestProperty
Maybe DirectoryServiceAuthenticationRequestProperty
Maybe FederatedAuthenticationRequestProperty
()
Value Text
haddock_workaround_ :: ClientAuthenticationRequestProperty -> ()
activeDirectory :: ClientAuthenticationRequestProperty
-> Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: ClientAuthenticationRequestProperty
-> Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: ClientAuthenticationRequestProperty
-> Maybe CertificateAuthenticationRequestProperty
type' :: ClientAuthenticationRequestProperty -> Value Text
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::ClientVpnEndpoint.ClientAuthenticationRequest",
         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
"Type" 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
type']
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key
-> DirectoryServiceAuthenticationRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ActiveDirectory" (DirectoryServiceAuthenticationRequestProperty -> (Key, Value))
-> Maybe DirectoryServiceAuthenticationRequestProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DirectoryServiceAuthenticationRequestProperty
activeDirectory,
                               Key -> FederatedAuthenticationRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FederatedAuthentication"
                                 (FederatedAuthenticationRequestProperty -> (Key, Value))
-> Maybe FederatedAuthenticationRequestProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FederatedAuthenticationRequestProperty
federatedAuthentication,
                               Key -> CertificateAuthenticationRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MutualAuthentication"
                                 (CertificateAuthenticationRequestProperty -> (Key, Value))
-> Maybe CertificateAuthenticationRequestProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CertificateAuthenticationRequestProperty
mutualAuthentication]))}
instance JSON.ToJSON ClientAuthenticationRequestProperty where
  toJSON :: ClientAuthenticationRequestProperty -> Value
toJSON ClientAuthenticationRequestProperty {Maybe CertificateAuthenticationRequestProperty
Maybe DirectoryServiceAuthenticationRequestProperty
Maybe FederatedAuthenticationRequestProperty
()
Value Text
haddock_workaround_ :: ClientAuthenticationRequestProperty -> ()
activeDirectory :: ClientAuthenticationRequestProperty
-> Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: ClientAuthenticationRequestProperty
-> Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: ClientAuthenticationRequestProperty
-> Maybe CertificateAuthenticationRequestProperty
type' :: ClientAuthenticationRequestProperty -> Value Text
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
type' :: 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
"Type" 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
type']
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key
-> DirectoryServiceAuthenticationRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ActiveDirectory" (DirectoryServiceAuthenticationRequestProperty -> (Key, Value))
-> Maybe DirectoryServiceAuthenticationRequestProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DirectoryServiceAuthenticationRequestProperty
activeDirectory,
                  Key -> FederatedAuthenticationRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FederatedAuthentication"
                    (FederatedAuthenticationRequestProperty -> (Key, Value))
-> Maybe FederatedAuthenticationRequestProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FederatedAuthenticationRequestProperty
federatedAuthentication,
                  Key -> CertificateAuthenticationRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MutualAuthentication"
                    (CertificateAuthenticationRequestProperty -> (Key, Value))
-> Maybe CertificateAuthenticationRequestProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CertificateAuthenticationRequestProperty
mutualAuthentication])))
instance Property "ActiveDirectory" ClientAuthenticationRequestProperty where
  type PropertyType "ActiveDirectory" ClientAuthenticationRequestProperty = DirectoryServiceAuthenticationRequestProperty
  set :: PropertyType "ActiveDirectory" ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty
set PropertyType "ActiveDirectory" ClientAuthenticationRequestProperty
newValue ClientAuthenticationRequestProperty {Maybe CertificateAuthenticationRequestProperty
Maybe DirectoryServiceAuthenticationRequestProperty
Maybe FederatedAuthenticationRequestProperty
()
Value Text
haddock_workaround_ :: ClientAuthenticationRequestProperty -> ()
activeDirectory :: ClientAuthenticationRequestProperty
-> Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: ClientAuthenticationRequestProperty
-> Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: ClientAuthenticationRequestProperty
-> Maybe CertificateAuthenticationRequestProperty
type' :: ClientAuthenticationRequestProperty -> Value Text
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
type' :: Value Text
..}
    = ClientAuthenticationRequestProperty
        {activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
activeDirectory = DirectoryServiceAuthenticationRequestProperty
-> Maybe DirectoryServiceAuthenticationRequestProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ActiveDirectory" ClientAuthenticationRequestProperty
DirectoryServiceAuthenticationRequestProperty
newValue, Maybe CertificateAuthenticationRequestProperty
Maybe FederatedAuthenticationRequestProperty
()
Value Text
haddock_workaround_ :: ()
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
type' :: Value Text
haddock_workaround_ :: ()
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
type' :: Value Text
..}
instance Property "FederatedAuthentication" ClientAuthenticationRequestProperty where
  type PropertyType "FederatedAuthentication" ClientAuthenticationRequestProperty = FederatedAuthenticationRequestProperty
  set :: PropertyType
  "FederatedAuthentication" ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty
set PropertyType
  "FederatedAuthentication" ClientAuthenticationRequestProperty
newValue ClientAuthenticationRequestProperty {Maybe CertificateAuthenticationRequestProperty
Maybe DirectoryServiceAuthenticationRequestProperty
Maybe FederatedAuthenticationRequestProperty
()
Value Text
haddock_workaround_ :: ClientAuthenticationRequestProperty -> ()
activeDirectory :: ClientAuthenticationRequestProperty
-> Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: ClientAuthenticationRequestProperty
-> Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: ClientAuthenticationRequestProperty
-> Maybe CertificateAuthenticationRequestProperty
type' :: ClientAuthenticationRequestProperty -> Value Text
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
type' :: Value Text
..}
    = ClientAuthenticationRequestProperty
        {federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
federatedAuthentication = FederatedAuthenticationRequestProperty
-> Maybe FederatedAuthenticationRequestProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "FederatedAuthentication" ClientAuthenticationRequestProperty
FederatedAuthenticationRequestProperty
newValue, Maybe CertificateAuthenticationRequestProperty
Maybe DirectoryServiceAuthenticationRequestProperty
()
Value Text
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
type' :: Value Text
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
type' :: Value Text
..}
instance Property "MutualAuthentication" ClientAuthenticationRequestProperty where
  type PropertyType "MutualAuthentication" ClientAuthenticationRequestProperty = CertificateAuthenticationRequestProperty
  set :: PropertyType
  "MutualAuthentication" ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty
set PropertyType
  "MutualAuthentication" ClientAuthenticationRequestProperty
newValue ClientAuthenticationRequestProperty {Maybe CertificateAuthenticationRequestProperty
Maybe DirectoryServiceAuthenticationRequestProperty
Maybe FederatedAuthenticationRequestProperty
()
Value Text
haddock_workaround_ :: ClientAuthenticationRequestProperty -> ()
activeDirectory :: ClientAuthenticationRequestProperty
-> Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: ClientAuthenticationRequestProperty
-> Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: ClientAuthenticationRequestProperty
-> Maybe CertificateAuthenticationRequestProperty
type' :: ClientAuthenticationRequestProperty -> Value Text
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
type' :: Value Text
..}
    = ClientAuthenticationRequestProperty
        {mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
mutualAuthentication = CertificateAuthenticationRequestProperty
-> Maybe CertificateAuthenticationRequestProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "MutualAuthentication" ClientAuthenticationRequestProperty
CertificateAuthenticationRequestProperty
newValue, Maybe DirectoryServiceAuthenticationRequestProperty
Maybe FederatedAuthenticationRequestProperty
()
Value Text
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
type' :: Value Text
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
type' :: Value Text
..}
instance Property "Type" ClientAuthenticationRequestProperty where
  type PropertyType "Type" ClientAuthenticationRequestProperty = Value Prelude.Text
  set :: PropertyType "Type" ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty
-> ClientAuthenticationRequestProperty
set PropertyType "Type" ClientAuthenticationRequestProperty
newValue ClientAuthenticationRequestProperty {Maybe CertificateAuthenticationRequestProperty
Maybe DirectoryServiceAuthenticationRequestProperty
Maybe FederatedAuthenticationRequestProperty
()
Value Text
haddock_workaround_ :: ClientAuthenticationRequestProperty -> ()
activeDirectory :: ClientAuthenticationRequestProperty
-> Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: ClientAuthenticationRequestProperty
-> Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: ClientAuthenticationRequestProperty
-> Maybe CertificateAuthenticationRequestProperty
type' :: ClientAuthenticationRequestProperty -> Value Text
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
type' :: Value Text
..}
    = ClientAuthenticationRequestProperty {type' :: Value Text
type' = PropertyType "Type" ClientAuthenticationRequestProperty
Value Text
newValue, Maybe CertificateAuthenticationRequestProperty
Maybe DirectoryServiceAuthenticationRequestProperty
Maybe FederatedAuthenticationRequestProperty
()
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
haddock_workaround_ :: ()
activeDirectory :: Maybe DirectoryServiceAuthenticationRequestProperty
federatedAuthentication :: Maybe FederatedAuthenticationRequestProperty
mutualAuthentication :: Maybe CertificateAuthenticationRequestProperty
..}