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 |
Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses.
Synopsis
- data DetachInternetGateway = DetachInternetGateway' {}
- newDetachInternetGateway :: Text -> Text -> DetachInternetGateway
- detachInternetGateway_dryRun :: Lens' DetachInternetGateway (Maybe Bool)
- detachInternetGateway_internetGatewayId :: Lens' DetachInternetGateway Text
- detachInternetGateway_vpcId :: Lens' DetachInternetGateway Text
- data DetachInternetGatewayResponse = DetachInternetGatewayResponse' {
- newDetachInternetGatewayResponse :: DetachInternetGatewayResponse
Creating a Request
data DetachInternetGateway Source #
See: newDetachInternetGateway
smart constructor.
DetachInternetGateway' | |
|
Instances
newDetachInternetGateway Source #
Create a value of DetachInternetGateway
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:DetachInternetGateway'
, detachInternetGateway_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
.
DetachInternetGateway
, detachInternetGateway_internetGatewayId
- The ID of the internet gateway.
DetachInternetGateway
, detachInternetGateway_vpcId
- The ID of the VPC.
Request Lenses
detachInternetGateway_dryRun :: Lens' DetachInternetGateway (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
.
detachInternetGateway_internetGatewayId :: Lens' DetachInternetGateway Text Source #
The ID of the internet gateway.
detachInternetGateway_vpcId :: Lens' DetachInternetGateway Text Source #
The ID of the VPC.
Destructuring the Response
data DetachInternetGatewayResponse Source #
See: newDetachInternetGatewayResponse
smart constructor.
Instances
newDetachInternetGatewayResponse :: DetachInternetGatewayResponse Source #
Create a value of DetachInternetGatewayResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.