Skip to content

Commit 40a483f

Browse files
committed
Add support for TransitGatewayVPCAttachment resource
With these changes we are supporting TransitGatewayVPCAttachment resources. This resource can reference TrasitGatewayID, VPCID, and SubnetID by their resource name. Also adding e2e tests.
1 parent 0e08341 commit 40a483f

35 files changed

+3471
-49
lines changed

apis/v1alpha1/generator.yaml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ ignore:
4646
- CreateSubnetInput.Ipv6NetmaskLength
4747
- CreateSubnetInput.TagSpecifications
4848
- CreateSubnetOutput.Subnet.BlockPublicAccessStates
49+
- CreateTransitGatewayVpcAttachmentInput.DryRun
50+
- CreateTransitGatewayVpcAttachmentInput.TagSpecifications
4951
- CreateTransitGatewayInput.DryRun
5052
- CreateTransitGatewayInput.Options.SecurityGroupReferencingSupport
5153
- CreateTransitGatewayInput.TagSpecifications
@@ -181,7 +183,7 @@ ignore:
181183
- TransitGatewayRouteTable
182184
- TransitGatewayRoute
183185
- TransitGatewayRouteTableAnnouncement
184-
- TransitGatewayVpcAttachment
186+
# - TransitGatewayVpcAttachment
185187
#- TransitGateway
186188
- VerifiedAccessEndpoint
187189
- VerifiedAccessGroup
@@ -279,6 +281,8 @@ operations:
279281
operation_type:
280282
- Update
281283
resource_name: VpcPeeringConnection
284+
DescribeTransitGatewayVpcAttachments:
285+
custom_check_required_fields_missing_method: checkForMissingRequiredFields
282286
resources:
283287
CapacityReservation:
284288
fields:
@@ -799,6 +803,54 @@ resources:
799803
template_path: hooks/transit_gateway/sdk_file_end.go.tpl
800804
update_operation:
801805
custom_method_name: customUpdateTransitGateway
806+
TransitGatewayVpcAttachment:
807+
renames:
808+
operations:
809+
CreateTransitGatewayVpcAttachment:
810+
output_fields:
811+
TransitGatewayAttachmentId: ID
812+
DescribeTransitGatewayVpcAttachments:
813+
input_fields:
814+
TransitGatewayAttachmentIds: ID
815+
output_fields:
816+
TransitGatewayAttachmentId: ID
817+
ModifyTransitGatewayVpcAttachment:
818+
input_fields:
819+
TransitGatewayAttachmentId: ID
820+
DeleteTransitGatewayVpcAttachment:
821+
input_fields:
822+
TransitGatewayAttachmentId: ID
823+
fields:
824+
Tags:
825+
from:
826+
operation: CreateTags
827+
path: Tags
828+
SubnetIds:
829+
references:
830+
resource: Subnet
831+
path: Status.SubnetID
832+
VpcId:
833+
references:
834+
resource: VPC
835+
path: Status.VPCID
836+
TransitGatewayId:
837+
references:
838+
resource: TransitGateway
839+
path: Status.TransitGatewayID
840+
ID:
841+
is_primary_key: true
842+
print:
843+
path: Status.ID
844+
name: ID
845+
hooks:
846+
sdk_create_post_build_request:
847+
template_path: hooks/transit_gateway_vpc_attachment/sdk_create_post_build_request.go.tpl
848+
sdk_read_many_post_set_output:
849+
template_path: hooks/transit_gateway_vpc_attachment/sdk_read_many_post_set_output.go.tpl
850+
sdk_update_pre_build_request:
851+
template_path: hooks/transit_gateway_vpc_attachment/sdk_update_pre_build_request.go.tpl
852+
sdk_update_post_build_request:
853+
template_path: hooks/transit_gateway_vpc_attachment/sdk_update_post_build_request.go.tpl
802854
Vpc:
803855
update_operation:
804856
custom_method_name: customUpdateVPC

apis/v1alpha1/transit_gateway_vpc_attachment.go

Lines changed: 97 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/types.go

Lines changed: 47 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)