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.
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
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);
DisassociateClientVpnTargetNetworkCommandInput for command's
input
shape.DisassociateClientVpnTargetNetworkCommandOutput for command's
response
shape.config for EC2Client's
config
shape.