module Stratosphere.EC2.ClientVpnEndpoint.ClientConnectOptionsProperty (
        ClientConnectOptionsProperty(..), mkClientConnectOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ClientConnectOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-clientconnectoptions.html>
    ClientConnectOptionsProperty {ClientConnectOptionsProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-clientconnectoptions.html#cfn-ec2-clientvpnendpoint-clientconnectoptions-enabled>
                                  ClientConnectOptionsProperty -> Value Bool
enabled :: (Value Prelude.Bool),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-clientvpnendpoint-clientconnectoptions.html#cfn-ec2-clientvpnendpoint-clientconnectoptions-lambdafunctionarn>
                                  ClientConnectOptionsProperty -> Maybe (Value Text)
lambdaFunctionArn :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ClientConnectOptionsProperty
-> ClientConnectOptionsProperty -> Bool
(ClientConnectOptionsProperty
 -> ClientConnectOptionsProperty -> Bool)
-> (ClientConnectOptionsProperty
    -> ClientConnectOptionsProperty -> Bool)
-> Eq ClientConnectOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClientConnectOptionsProperty
-> ClientConnectOptionsProperty -> Bool
== :: ClientConnectOptionsProperty
-> ClientConnectOptionsProperty -> Bool
$c/= :: ClientConnectOptionsProperty
-> ClientConnectOptionsProperty -> Bool
/= :: ClientConnectOptionsProperty
-> ClientConnectOptionsProperty -> Bool
Prelude.Eq, Int -> ClientConnectOptionsProperty -> ShowS
[ClientConnectOptionsProperty] -> ShowS
ClientConnectOptionsProperty -> String
(Int -> ClientConnectOptionsProperty -> ShowS)
-> (ClientConnectOptionsProperty -> String)
-> ([ClientConnectOptionsProperty] -> ShowS)
-> Show ClientConnectOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClientConnectOptionsProperty -> ShowS
showsPrec :: Int -> ClientConnectOptionsProperty -> ShowS
$cshow :: ClientConnectOptionsProperty -> String
show :: ClientConnectOptionsProperty -> String
$cshowList :: [ClientConnectOptionsProperty] -> ShowS
showList :: [ClientConnectOptionsProperty] -> ShowS
Prelude.Show)
mkClientConnectOptionsProperty ::
  Value Prelude.Bool -> ClientConnectOptionsProperty
mkClientConnectOptionsProperty :: Value Bool -> ClientConnectOptionsProperty
mkClientConnectOptionsProperty Value Bool
enabled
  = ClientConnectOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Value Bool
enabled = Value Bool
enabled,
       lambdaFunctionArn :: Maybe (Value Text)
lambdaFunctionArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ClientConnectOptionsProperty where
  toResourceProperties :: ClientConnectOptionsProperty -> ResourceProperties
toResourceProperties ClientConnectOptionsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ClientConnectOptionsProperty -> ()
enabled :: ClientConnectOptionsProperty -> Value Bool
lambdaFunctionArn :: ClientConnectOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
lambdaFunctionArn :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::ClientVpnEndpoint.ClientConnectOptions",
         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
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]
                           ([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
"LambdaFunctionArn" (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)
lambdaFunctionArn]))}
instance JSON.ToJSON ClientConnectOptionsProperty where
  toJSON :: ClientConnectOptionsProperty -> Value
toJSON ClientConnectOptionsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ClientConnectOptionsProperty -> ()
enabled :: ClientConnectOptionsProperty -> Value Bool
lambdaFunctionArn :: ClientConnectOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
lambdaFunctionArn :: 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
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]
              ([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
"LambdaFunctionArn" (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)
lambdaFunctionArn])))
instance Property "Enabled" ClientConnectOptionsProperty where
  type PropertyType "Enabled" ClientConnectOptionsProperty = Value Prelude.Bool
  set :: PropertyType "Enabled" ClientConnectOptionsProperty
-> ClientConnectOptionsProperty -> ClientConnectOptionsProperty
set PropertyType "Enabled" ClientConnectOptionsProperty
newValue ClientConnectOptionsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ClientConnectOptionsProperty -> ()
enabled :: ClientConnectOptionsProperty -> Value Bool
lambdaFunctionArn :: ClientConnectOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
lambdaFunctionArn :: Maybe (Value Text)
..}
    = ClientConnectOptionsProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" ClientConnectOptionsProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
lambdaFunctionArn :: Maybe (Value Text)
haddock_workaround_ :: ()
lambdaFunctionArn :: Maybe (Value Text)
..}
instance Property "LambdaFunctionArn" ClientConnectOptionsProperty where
  type PropertyType "LambdaFunctionArn" ClientConnectOptionsProperty = Value Prelude.Text
  set :: PropertyType "LambdaFunctionArn" ClientConnectOptionsProperty
-> ClientConnectOptionsProperty -> ClientConnectOptionsProperty
set PropertyType "LambdaFunctionArn" ClientConnectOptionsProperty
newValue ClientConnectOptionsProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ClientConnectOptionsProperty -> ()
enabled :: ClientConnectOptionsProperty -> Value Bool
lambdaFunctionArn :: ClientConnectOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Value Bool
lambdaFunctionArn :: Maybe (Value Text)
..}
    = ClientConnectOptionsProperty
        {lambdaFunctionArn :: Maybe (Value Text)
lambdaFunctionArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LambdaFunctionArn" ClientConnectOptionsProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
haddock_workaround_ :: ()
enabled :: Value Bool
..}