Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data DetachClassicLinkVpc
- detachClassicLinkVpc :: Text -> Text -> DetachClassicLinkVpc
- dclvDryRun :: Lens' DetachClassicLinkVpc (Maybe Bool)
- dclvInstanceId :: Lens' DetachClassicLinkVpc Text
- dclvVpcId :: Lens' DetachClassicLinkVpc Text
- data DetachClassicLinkVpcResponse
- detachClassicLinkVpcResponse :: DetachClassicLinkVpcResponse
- dclvrReturn :: Lens' DetachClassicLinkVpcResponse (Maybe Bool)
Request
data DetachClassicLinkVpc Source
Request constructor
DetachClassicLinkVpc
constructor.
The fields accessible through corresponding lenses are:
dclvDryRun
::
Maybe
Bool
dclvInstanceId
::
Text
dclvVpcId
::
Text
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:
dclvrReturn
::
Maybe
Bool
Response lenses
dclvrReturn :: Lens' DetachClassicLinkVpcResponse (Maybe Bool) Source
Returns true
if the request succeeds; otherwise, it returns an error.