module Stratosphere.EC2.ClientVpnTargetNetworkAssociation (
        ClientVpnTargetNetworkAssociation(..),
        mkClientVpnTargetNetworkAssociation
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ClientVpnTargetNetworkAssociation
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpntargetnetworkassociation.html>
    ClientVpnTargetNetworkAssociation {ClientVpnTargetNetworkAssociation -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpntargetnetworkassociation.html#cfn-ec2-clientvpntargetnetworkassociation-clientvpnendpointid>
                                       ClientVpnTargetNetworkAssociation -> Value Text
clientVpnEndpointId :: (Value Prelude.Text),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpntargetnetworkassociation.html#cfn-ec2-clientvpntargetnetworkassociation-subnetid>
                                       ClientVpnTargetNetworkAssociation -> Value Text
subnetId :: (Value Prelude.Text)}
  deriving stock (ClientVpnTargetNetworkAssociation
-> ClientVpnTargetNetworkAssociation -> Bool
(ClientVpnTargetNetworkAssociation
 -> ClientVpnTargetNetworkAssociation -> Bool)
-> (ClientVpnTargetNetworkAssociation
    -> ClientVpnTargetNetworkAssociation -> Bool)
-> Eq ClientVpnTargetNetworkAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClientVpnTargetNetworkAssociation
-> ClientVpnTargetNetworkAssociation -> Bool
== :: ClientVpnTargetNetworkAssociation
-> ClientVpnTargetNetworkAssociation -> Bool
$c/= :: ClientVpnTargetNetworkAssociation
-> ClientVpnTargetNetworkAssociation -> Bool
/= :: ClientVpnTargetNetworkAssociation
-> ClientVpnTargetNetworkAssociation -> Bool
Prelude.Eq, Int -> ClientVpnTargetNetworkAssociation -> ShowS
[ClientVpnTargetNetworkAssociation] -> ShowS
ClientVpnTargetNetworkAssociation -> String
(Int -> ClientVpnTargetNetworkAssociation -> ShowS)
-> (ClientVpnTargetNetworkAssociation -> String)
-> ([ClientVpnTargetNetworkAssociation] -> ShowS)
-> Show ClientVpnTargetNetworkAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClientVpnTargetNetworkAssociation -> ShowS
showsPrec :: Int -> ClientVpnTargetNetworkAssociation -> ShowS
$cshow :: ClientVpnTargetNetworkAssociation -> String
show :: ClientVpnTargetNetworkAssociation -> String
$cshowList :: [ClientVpnTargetNetworkAssociation] -> ShowS
showList :: [ClientVpnTargetNetworkAssociation] -> ShowS
Prelude.Show)
mkClientVpnTargetNetworkAssociation ::
  Value Prelude.Text
  -> Value Prelude.Text -> ClientVpnTargetNetworkAssociation
mkClientVpnTargetNetworkAssociation :: Value Text -> Value Text -> ClientVpnTargetNetworkAssociation
mkClientVpnTargetNetworkAssociation Value Text
clientVpnEndpointId Value Text
subnetId
  = ClientVpnTargetNetworkAssociation
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       clientVpnEndpointId :: Value Text
clientVpnEndpointId = Value Text
clientVpnEndpointId, subnetId :: Value Text
subnetId = Value Text
subnetId}
instance ToResourceProperties ClientVpnTargetNetworkAssociation where
  toResourceProperties :: ClientVpnTargetNetworkAssociation -> ResourceProperties
toResourceProperties ClientVpnTargetNetworkAssociation {()
Value Text
haddock_workaround_ :: ClientVpnTargetNetworkAssociation -> ()
clientVpnEndpointId :: ClientVpnTargetNetworkAssociation -> Value Text
subnetId :: ClientVpnTargetNetworkAssociation -> Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
subnetId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::ClientVpnTargetNetworkAssociation",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ClientVpnEndpointId" 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
clientVpnEndpointId,
                       Key
"SubnetId" 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
subnetId]}
instance JSON.ToJSON ClientVpnTargetNetworkAssociation where
  toJSON :: ClientVpnTargetNetworkAssociation -> Value
toJSON ClientVpnTargetNetworkAssociation {()
Value Text
haddock_workaround_ :: ClientVpnTargetNetworkAssociation -> ()
clientVpnEndpointId :: ClientVpnTargetNetworkAssociation -> Value Text
subnetId :: ClientVpnTargetNetworkAssociation -> Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
subnetId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ClientVpnEndpointId" 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
clientVpnEndpointId,
         Key
"SubnetId" 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
subnetId]
instance Property "ClientVpnEndpointId" ClientVpnTargetNetworkAssociation where
  type PropertyType "ClientVpnEndpointId" ClientVpnTargetNetworkAssociation = Value Prelude.Text
  set :: PropertyType
  "ClientVpnEndpointId" ClientVpnTargetNetworkAssociation
-> ClientVpnTargetNetworkAssociation
-> ClientVpnTargetNetworkAssociation
set PropertyType
  "ClientVpnEndpointId" ClientVpnTargetNetworkAssociation
newValue ClientVpnTargetNetworkAssociation {()
Value Text
haddock_workaround_ :: ClientVpnTargetNetworkAssociation -> ()
clientVpnEndpointId :: ClientVpnTargetNetworkAssociation -> Value Text
subnetId :: ClientVpnTargetNetworkAssociation -> Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
subnetId :: Value Text
..}
    = ClientVpnTargetNetworkAssociation
        {clientVpnEndpointId :: Value Text
clientVpnEndpointId = PropertyType
  "ClientVpnEndpointId" ClientVpnTargetNetworkAssociation
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
subnetId :: Value Text
haddock_workaround_ :: ()
subnetId :: Value Text
..}
instance Property "SubnetId" ClientVpnTargetNetworkAssociation where
  type PropertyType "SubnetId" ClientVpnTargetNetworkAssociation = Value Prelude.Text
  set :: PropertyType "SubnetId" ClientVpnTargetNetworkAssociation
-> ClientVpnTargetNetworkAssociation
-> ClientVpnTargetNetworkAssociation
set PropertyType "SubnetId" ClientVpnTargetNetworkAssociation
newValue ClientVpnTargetNetworkAssociation {()
Value Text
haddock_workaround_ :: ClientVpnTargetNetworkAssociation -> ()
clientVpnEndpointId :: ClientVpnTargetNetworkAssociation -> Value Text
subnetId :: ClientVpnTargetNetworkAssociation -> Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
subnetId :: Value Text
..}
    = ClientVpnTargetNetworkAssociation {subnetId :: Value Text
subnetId = PropertyType "SubnetId" ClientVpnTargetNetworkAssociation
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
..}