amazonka-ec2-0.2.1: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DetachClassicLinkVpc

Contents

Description

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.

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DetachClassicLinkVpc.html

Synopsis

Request

Request constructor

detachClassicLinkVpc Source

DetachClassicLinkVpc constructor.

The fields accessible through corresponding lenses are:

Request lenses

dclvInstanceId :: Lens' DetachClassicLinkVpc Text Source

The ID of the instance to unlink from the VPC.

dclvVpcId :: Lens' DetachClassicLinkVpc Text Source

The ID of the VPC to which the instance is linked.

Response

Response constructor

detachClassicLinkVpcResponse :: DetachClassicLinkVpcResponse Source

DetachClassicLinkVpcResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

dclvrReturn :: Lens' DetachClassicLinkVpcResponse (Maybe Bool) Source

Returns true if the request succeeds; otherwise, it returns an error.