Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DisassociateClientVpnTargetNetworkCommand

Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:

  • The route that was automatically added for the VPC is deleted

  • All active client connections are terminated

  • New client connections are disallowed

  • The Client VPN endpoint's status changes to pending-associate

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, DisassociateClientVpnTargetNetworkCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, DisassociateClientVpnTargetNetworkCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new DisassociateClientVpnTargetNetworkCommand(input);
const response = await client.send(command);
see

DisassociateClientVpnTargetNetworkCommandInput for command's input shape.

see

DisassociateClientVpnTargetNetworkCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DisassociateClientVpnTargetNetworkCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions