Skip to content

Commit 5c803a6

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 ddbd123 commit 5c803a6

File tree

84 files changed

+3879
-886
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+3879
-886
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-03-10T20:08:48Z"
3-
build_hash: cfbd9fc8a32a564e2f05252b60248053ff09e744
2+
build_date: "2025-03-25T21:39:00Z"
3+
build_hash: 3722729cebe6d3c03c7e442655ef0846f91566a2
44
go_version: go1.24.0
5-
version: v0.43.2-4-gcfbd9fc
6-
api_directory_checksum: b31faecf6092fab9677498f3624e624fee4cbaed
5+
version: v0.43.2-7-g3722729
6+
api_directory_checksum: 8903a11c76314a71475e5e5295bc471ff03e9943
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 4f9d21bd7c46b495cd9374e454a3a0e1e6de5d08
10+
file_checksum: c9bb25b8dbff655ebda2ff7d1b18110b9c56c039
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 35 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
@@ -797,6 +799,38 @@ resources:
797799
template_path: hooks/transit_gateway/sdk_file_end.go.tpl
798800
update_operation:
799801
custom_method_name: customUpdateTransitGateway
802+
TransitGatewayVpcAttachment:
803+
fields:
804+
Tags:
805+
from:
806+
operation: CreateTags
807+
path: Tags
808+
SubnetIds:
809+
references:
810+
resource: Subnet
811+
path: Status.SubnetID
812+
VpcId:
813+
references:
814+
resource: VPC
815+
path: Status.VPCID
816+
TransitGatewayId:
817+
references:
818+
resource: TransitGateway
819+
path: Status.TransitGatewayID
820+
TransitGatewayAttachmentID:
821+
is_primary_key: true
822+
print:
823+
path: Status.TransitGatewayAttachmentID
824+
name: ID
825+
hooks:
826+
sdk_create_post_build_request:
827+
template_path: hooks/transit_gateway_vpc_attachment/sdk_create_post_build_request.go.tpl
828+
sdk_read_many_post_set_output:
829+
template_path: hooks/transit_gateway_vpc_attachment/sdk_read_many_post_set_output.go.tpl
830+
sdk_update_pre_build_request:
831+
template_path: hooks/transit_gateway_vpc_attachment/sdk_update_pre_build_request.go.tpl
832+
sdk_update_post_build_request:
833+
template_path: hooks/transit_gateway_vpc_attachment/sdk_update_post_build_request.go.tpl
800834
Vpc:
801835
update_operation:
802836
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)