Skip to content

Detach Classic Link Vpc

ec2_detach_classic_link_vpc R Documentation

This action is deprecated

Description

This action is deprecated.

Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped.

Usage

ec2_detach_classic_link_vpc(DryRun, InstanceId, VpcId)

Arguments

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.

InstanceId

[required] The ID of the instance to unlink from the VPC.

VpcId

[required] The ID of the VPC to which the instance is linked.

Value

A list with the following syntax:

list(
  Return = TRUE|FALSE
)

Request syntax

svc$detach_classic_link_vpc(
  DryRun = TRUE|FALSE,
  InstanceId = "string",
  VpcId = "string"
)