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 |
Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.
Synopsis
- data DeleteInternetGateway = DeleteInternetGateway' {
- dryRun :: Maybe Bool
- internetGatewayId :: Text
- newDeleteInternetGateway :: Text -> DeleteInternetGateway
- deleteInternetGateway_dryRun :: Lens' DeleteInternetGateway (Maybe Bool)
- deleteInternetGateway_internetGatewayId :: Lens' DeleteInternetGateway Text
- data DeleteInternetGatewayResponse = DeleteInternetGatewayResponse' {
- newDeleteInternetGatewayResponse :: DeleteInternetGatewayResponse
Creating a Request
data DeleteInternetGateway Source #
See: newDeleteInternetGateway
smart constructor.
DeleteInternetGateway' | |
|
Instances
newDeleteInternetGateway Source #
Create a value of DeleteInternetGateway
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:DeleteInternetGateway'
, deleteInternetGateway_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
.
DeleteInternetGateway
, deleteInternetGateway_internetGatewayId
- The ID of the internet gateway.
Request Lenses
deleteInternetGateway_dryRun :: Lens' DeleteInternetGateway (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
.
deleteInternetGateway_internetGatewayId :: Lens' DeleteInternetGateway Text Source #
The ID of the internet gateway.
Destructuring the Response
data DeleteInternetGatewayResponse Source #
See: newDeleteInternetGatewayResponse
smart constructor.
Instances
newDeleteInternetGatewayResponse :: DeleteInternetGatewayResponse Source #
Create a value of DeleteInternetGatewayResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.