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

Copyright (c) 2013-2016 Brendan Hay Mozilla Public License, v. 2.0. Brendan Hay auto-generated non-portable (GHC extensions) None Haskell2010

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.

# Creating a Request

Arguments

 :: Text dclvInstanceId -> Text dclvVPCId -> DetachClassicLinkVPC

Creates a value of DetachClassicLinkVPC with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

• dclvDryRun - 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 - The ID of the instance to unlink from the VPC.
• dclvVPCId - The ID of the VPC to which the instance is linked.

See: detachClassicLinkVPC smart constructor.

Instances

# Request Lenses

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 .

The ID of the instance to unlink from the VPC.

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

# Destructuring the Response

Arguments

 :: Int dclvrsResponseStatus -> DetachClassicLinkVPCResponse

Creates a value of DetachClassicLinkVPCResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

• dclvrsReturn - Returns true if the request succeeds; otherwise, it returns an error.
• dclvrsResponseStatus - -- | The response status code.

See: detachClassicLinkVPCResponse smart constructor.
Returns true if the request succeeds; otherwise, it returns an error.