amazonka-ec2-0.3.6: 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

dclvDryRun :: Lens' DetachClassicLinkVpc (Maybe Bool) Source

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.

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.