Skip to content

Commit 25c4b4b

Browse files
authored
feat: new resource - TransitGatewayVPCAttachment (#251)
Issue [#1865](aws-controllers-k8s/community#1865) Description of changes: With these changes we are supporting TransitGatewayVPCAttachment resources. This resource can reference TrasitGatewayID, VPCID, and SubnetID by their resource name. Also adding e2e tests. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 0e08341 commit 25c4b4b

35 files changed

+3468
-52
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-03-25T22:26:20Z"
2+
build_date: "2025-03-28T15:21:59Z"
33
build_hash: 3722729cebe6d3c03c7e442655ef0846f91566a2
44
go_version: go1.24.0
55
version: v0.43.2-7-g3722729
6-
api_directory_checksum: b31faecf6092fab9677498f3624e624fee4cbaed
6+
api_directory_checksum: bb3f7a9b3924fdbe63a4082a9134b3f1f653979b
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 33b2c8e790a68bd28b5efe9faa3b8e5fb980d1f4
10+
file_checksum: 34c308f1552184ca33451041fd787bfd9d32dc5e
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 51 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,52 @@ 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_update_pre_build_request:
849+
template_path: hooks/transit_gateway_vpc_attachment/sdk_update_pre_build_request.go.tpl
850+
sdk_update_post_build_request:
851+
template_path: hooks/transit_gateway_vpc_attachment/sdk_update_post_build_request.go.tpl
802852
Vpc:
803853
update_operation:
804854
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)