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 |
Attaches the specified VPC to the specified transit gateway.
If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.
To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.
Synopsis
- data CreateTransitGatewayVpcAttachment = CreateTransitGatewayVpcAttachment' {}
- newCreateTransitGatewayVpcAttachment :: Text -> Text -> CreateTransitGatewayVpcAttachment
- createTransitGatewayVpcAttachment_dryRun :: Lens' CreateTransitGatewayVpcAttachment (Maybe Bool)
- createTransitGatewayVpcAttachment_options :: Lens' CreateTransitGatewayVpcAttachment (Maybe CreateTransitGatewayVpcAttachmentRequestOptions)
- createTransitGatewayVpcAttachment_tagSpecifications :: Lens' CreateTransitGatewayVpcAttachment (Maybe [TagSpecification])
- createTransitGatewayVpcAttachment_transitGatewayId :: Lens' CreateTransitGatewayVpcAttachment Text
- createTransitGatewayVpcAttachment_vpcId :: Lens' CreateTransitGatewayVpcAttachment Text
- createTransitGatewayVpcAttachment_subnetIds :: Lens' CreateTransitGatewayVpcAttachment [Text]
- data CreateTransitGatewayVpcAttachmentResponse = CreateTransitGatewayVpcAttachmentResponse' {}
- newCreateTransitGatewayVpcAttachmentResponse :: Int -> CreateTransitGatewayVpcAttachmentResponse
- createTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment :: Lens' CreateTransitGatewayVpcAttachmentResponse (Maybe TransitGatewayVpcAttachment)
- createTransitGatewayVpcAttachmentResponse_httpStatus :: Lens' CreateTransitGatewayVpcAttachmentResponse Int
Creating a Request
data CreateTransitGatewayVpcAttachment Source #
See: newCreateTransitGatewayVpcAttachment
smart constructor.
CreateTransitGatewayVpcAttachment' | |
|
Instances
newCreateTransitGatewayVpcAttachment Source #
Create a value of CreateTransitGatewayVpcAttachment
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:CreateTransitGatewayVpcAttachment'
, createTransitGatewayVpcAttachment_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
.
CreateTransitGatewayVpcAttachment
, createTransitGatewayVpcAttachment_options
- The VPC attachment options.
CreateTransitGatewayVpcAttachment
, createTransitGatewayVpcAttachment_tagSpecifications
- The tags to apply to the VPC attachment.
CreateTransitGatewayVpcAttachment
, createTransitGatewayVpcAttachment_transitGatewayId
- The ID of the transit gateway.
CreateTransitGatewayVpcAttachment
, createTransitGatewayVpcAttachment_vpcId
- The ID of the VPC.
CreateTransitGatewayVpcAttachment
, createTransitGatewayVpcAttachment_subnetIds
- The IDs of one or more subnets. You can specify only one subnet per
Availability Zone. You must specify at least one subnet, but we
recommend that you specify two subnets for better availability. The
transit gateway uses one IP address from each specified subnet.
Request Lenses
createTransitGatewayVpcAttachment_dryRun :: Lens' CreateTransitGatewayVpcAttachment (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
.
createTransitGatewayVpcAttachment_options :: Lens' CreateTransitGatewayVpcAttachment (Maybe CreateTransitGatewayVpcAttachmentRequestOptions) Source #
The VPC attachment options.
createTransitGatewayVpcAttachment_tagSpecifications :: Lens' CreateTransitGatewayVpcAttachment (Maybe [TagSpecification]) Source #
The tags to apply to the VPC attachment.
createTransitGatewayVpcAttachment_transitGatewayId :: Lens' CreateTransitGatewayVpcAttachment Text Source #
The ID of the transit gateway.
createTransitGatewayVpcAttachment_vpcId :: Lens' CreateTransitGatewayVpcAttachment Text Source #
The ID of the VPC.
createTransitGatewayVpcAttachment_subnetIds :: Lens' CreateTransitGatewayVpcAttachment [Text] Source #
The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.
Destructuring the Response
data CreateTransitGatewayVpcAttachmentResponse Source #
See: newCreateTransitGatewayVpcAttachmentResponse
smart constructor.
CreateTransitGatewayVpcAttachmentResponse' | |
|
Instances
newCreateTransitGatewayVpcAttachmentResponse Source #
Create a value of CreateTransitGatewayVpcAttachmentResponse
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:transitGatewayVpcAttachment:CreateTransitGatewayVpcAttachmentResponse'
, createTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment
- Information about the VPC attachment.
$sel:httpStatus:CreateTransitGatewayVpcAttachmentResponse'
, createTransitGatewayVpcAttachmentResponse_httpStatus
- The response's http status code.
Response Lenses
createTransitGatewayVpcAttachmentResponse_transitGatewayVpcAttachment :: Lens' CreateTransitGatewayVpcAttachmentResponse (Maybe TransitGatewayVpcAttachment) Source #
Information about the VPC attachment.
createTransitGatewayVpcAttachmentResponse_httpStatus :: Lens' CreateTransitGatewayVpcAttachmentResponse Int Source #
The response's http status code.