Skip to content

Disassociate Client Vpn Target Network

ec2_disassociate_client_vpn_target_network R Documentation

Disassociates a target network from the specified Client VPN endpoint

Description

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

Usage

ec2_disassociate_client_vpn_target_network(ClientVpnEndpointId,
  AssociationId, DryRun)

Arguments

ClientVpnEndpointId

[required] The ID of the Client VPN endpoint from which to disassociate the target network.

AssociationId

[required] The ID of the target network association.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Value

A list with the following syntax:

list(
  AssociationId = "string",
  Status = list(
    Code = "associating"|"associated"|"association-failed"|"disassociating"|"disassociated",
    Message = "string"
  )
)

Request syntax

svc$disassociate_client_vpn_target_network(
  ClientVpnEndpointId = "string",
  AssociationId = "string",
  DryRun = TRUE|FALSE
)