Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data DetachClassicLinkVpc = DetachClassicLinkVpc' {}
- newDetachClassicLinkVpc :: Text -> Text -> DetachClassicLinkVpc
- detachClassicLinkVpc_dryRun :: Lens' DetachClassicLinkVpc (Maybe Bool)
- detachClassicLinkVpc_instanceId :: Lens' DetachClassicLinkVpc Text
- detachClassicLinkVpc_vpcId :: Lens' DetachClassicLinkVpc Text
- data DetachClassicLinkVpcResponse = DetachClassicLinkVpcResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newDetachClassicLinkVpcResponse :: Int -> DetachClassicLinkVpcResponse
- detachClassicLinkVpcResponse_return :: Lens' DetachClassicLinkVpcResponse (Maybe Bool)
- detachClassicLinkVpcResponse_httpStatus :: Lens' DetachClassicLinkVpcResponse Int
Creating a Request
data DetachClassicLinkVpc Source #
See: newDetachClassicLinkVpc
smart constructor.
DetachClassicLinkVpc' | |
|
Instances
newDetachClassicLinkVpc Source #
Create a value of DetachClassicLinkVpc
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:DetachClassicLinkVpc'
, detachClassicLinkVpc_dryRun
- 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
.
DetachClassicLinkVpc
, detachClassicLinkVpc_instanceId
- The ID of the instance to unlink from the VPC.
DetachClassicLinkVpc
, detachClassicLinkVpc_vpcId
- The ID of the VPC to which the instance is linked.
Request Lenses
detachClassicLinkVpc_dryRun :: 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
.
detachClassicLinkVpc_instanceId :: Lens' DetachClassicLinkVpc Text Source #
The ID of the instance to unlink from the VPC.
detachClassicLinkVpc_vpcId :: Lens' DetachClassicLinkVpc Text Source #
The ID of the VPC to which the instance is linked.
Destructuring the Response
data DetachClassicLinkVpcResponse Source #
See: newDetachClassicLinkVpcResponse
smart constructor.
DetachClassicLinkVpcResponse' | |
|
Instances
newDetachClassicLinkVpcResponse Source #
Create a value of DetachClassicLinkVpcResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:return':DetachClassicLinkVpcResponse'
, detachClassicLinkVpcResponse_return
- Returns true
if the request succeeds; otherwise, it returns an error.
$sel:httpStatus:DetachClassicLinkVpcResponse'
, detachClassicLinkVpcResponse_httpStatus
- The response's http status code.
Response Lenses
detachClassicLinkVpcResponse_return :: Lens' DetachClassicLinkVpcResponse (Maybe Bool) Source #
Returns true
if the request succeeds; otherwise, it returns an error.
detachClassicLinkVpcResponse_httpStatus :: Lens' DetachClassicLinkVpcResponse Int Source #
The response's http status code.