Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DetachClassicLinkVpcCommand

We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.

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.

example

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

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

DetachClassicLinkVpcCommandInput for command's input shape.

see

DetachClassicLinkVpcCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DetachClassicLinkVpcCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions