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 |
Creates an internet gateway for use with a VPC. After creating the internet gateway, you attach it to a VPC using AttachInternetGateway.
For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.
Synopsis
- data CreateInternetGateway = CreateInternetGateway' {}
- newCreateInternetGateway :: CreateInternetGateway
- createInternetGateway_dryRun :: Lens' CreateInternetGateway (Maybe Bool)
- createInternetGateway_tagSpecifications :: Lens' CreateInternetGateway (Maybe [TagSpecification])
- data CreateInternetGatewayResponse = CreateInternetGatewayResponse' {}
- newCreateInternetGatewayResponse :: Int -> CreateInternetGatewayResponse
- createInternetGatewayResponse_internetGateway :: Lens' CreateInternetGatewayResponse (Maybe InternetGateway)
- createInternetGatewayResponse_httpStatus :: Lens' CreateInternetGatewayResponse Int
Creating a Request
data CreateInternetGateway Source #
See: newCreateInternetGateway
smart constructor.
CreateInternetGateway' | |
|
Instances
newCreateInternetGateway :: CreateInternetGateway Source #
Create a value of CreateInternetGateway
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:CreateInternetGateway'
, createInternetGateway_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
.
CreateInternetGateway
, createInternetGateway_tagSpecifications
- The tags to assign to the internet gateway.
Request Lenses
createInternetGateway_dryRun :: Lens' CreateInternetGateway (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
.
createInternetGateway_tagSpecifications :: Lens' CreateInternetGateway (Maybe [TagSpecification]) Source #
The tags to assign to the internet gateway.
Destructuring the Response
data CreateInternetGatewayResponse Source #
See: newCreateInternetGatewayResponse
smart constructor.
CreateInternetGatewayResponse' | |
|
Instances
newCreateInternetGatewayResponse Source #
Create a value of CreateInternetGatewayResponse
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:
CreateInternetGatewayResponse
, createInternetGatewayResponse_internetGateway
- Information about the internet gateway.
$sel:httpStatus:CreateInternetGatewayResponse'
, createInternetGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
createInternetGatewayResponse_internetGateway :: Lens' CreateInternetGatewayResponse (Maybe InternetGateway) Source #
Information about the internet gateway.
createInternetGatewayResponse_httpStatus :: Lens' CreateInternetGatewayResponse Int Source #
The response's http status code.