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 |
Amazonka.EC2.AttachInternetGateway
Description
Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.
Synopsis
- data AttachInternetGateway = AttachInternetGateway' {}
- newAttachInternetGateway :: Text -> Text -> AttachInternetGateway
- attachInternetGateway_dryRun :: Lens' AttachInternetGateway (Maybe Bool)
- attachInternetGateway_internetGatewayId :: Lens' AttachInternetGateway Text
- attachInternetGateway_vpcId :: Lens' AttachInternetGateway Text
- data AttachInternetGatewayResponse = AttachInternetGatewayResponse' {
- newAttachInternetGatewayResponse :: AttachInternetGatewayResponse
Creating a Request
data AttachInternetGateway Source #
See: newAttachInternetGateway
smart constructor.
Constructors
AttachInternetGateway' | |
Fields
|
Instances
newAttachInternetGateway Source #
Arguments
:: Text | |
-> Text | |
-> AttachInternetGateway |
Create a value of AttachInternetGateway
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:AttachInternetGateway'
, attachInternetGateway_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
.
AttachInternetGateway
, attachInternetGateway_internetGatewayId
- The ID of the internet gateway.
AttachInternetGateway
, attachInternetGateway_vpcId
- The ID of the VPC.
Request Lenses
attachInternetGateway_dryRun :: Lens' AttachInternetGateway (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
.
attachInternetGateway_internetGatewayId :: Lens' AttachInternetGateway Text Source #
The ID of the internet gateway.
attachInternetGateway_vpcId :: Lens' AttachInternetGateway Text Source #
The ID of the VPC.
Destructuring the Response
data AttachInternetGatewayResponse Source #
See: newAttachInternetGatewayResponse
smart constructor.
Constructors
AttachInternetGatewayResponse' | |
Instances
Generic AttachInternetGatewayResponse Source # | |
Defined in Amazonka.EC2.AttachInternetGateway Associated Types type Rep AttachInternetGatewayResponse :: Type -> Type # | |
Read AttachInternetGatewayResponse Source # | |
Show AttachInternetGatewayResponse Source # | |
Defined in Amazonka.EC2.AttachInternetGateway Methods showsPrec :: Int -> AttachInternetGatewayResponse -> ShowS # show :: AttachInternetGatewayResponse -> String # showList :: [AttachInternetGatewayResponse] -> ShowS # | |
NFData AttachInternetGatewayResponse Source # | |
Defined in Amazonka.EC2.AttachInternetGateway Methods rnf :: AttachInternetGatewayResponse -> () # | |
Eq AttachInternetGatewayResponse Source # | |
Defined in Amazonka.EC2.AttachInternetGateway | |
type Rep AttachInternetGatewayResponse Source # | |
Defined in Amazonka.EC2.AttachInternetGateway |
newAttachInternetGatewayResponse :: AttachInternetGatewayResponse Source #
Create a value of AttachInternetGatewayResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.