Skip to content

Commit 7c753f6

Browse files
michaelhtmrkurduka
andcommitted
feat: new resource - LaunchTemplate
Adding support for LaunchTemplate. Co-Authored-By: Rohit Kurdukar - Amazon <[email protected]>
1 parent 25c4b4b commit 7c753f6

32 files changed

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

apis/v1alpha1/generator.yaml

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ ignore:
113113
- SubnetIpv6CidrBlockAssociation.Ipv6AddressAttribute
114114
- VpcIpv6CidrBlockAssociation.IpSource
115115
- VpcIpv6CidrBlockAssociation.Ipv6AddressAttribute
116+
- CreateLaunchTemplateInput.DryRun
117+
- CreateLaunchTemplateInput.ClientToken
118+
- CreateLaunchTemplateInput.TagSpecifications
119+
- CreateLaunchTemplateVersionInput.LaunchTemplateData.TagSpecifications
120+
- CreateLaunchTemplateVersionOutput.LaunchTemplateVersion.DefaultVersion
116121
resource_names:
117122
- CapacityReservationBySplitting
118123
- IpamExternalResourceVerificationToken
@@ -144,7 +149,7 @@ ignore:
144149
- IpamScope
145150
- KeyPair
146151
- LaunchTemplateVersion
147-
- LaunchTemplate
152+
# - LaunchTemplate
148153
- LocalGatewayRouteTable
149154
- LocalGatewayRouteTableVpcAssociation
150155
- LocalGatewayRouteTableVirtualInterfaceGroupAssociation
@@ -217,6 +222,18 @@ operations:
217222
operation_type:
218223
- Delete
219224
resource_name: ElasticIPAddress
225+
CreateLaunchTemplate:
226+
operation_type:
227+
- Create
228+
output_wrapper_field_path: LaunchTemplate
229+
resource_name: LaunchTemplate
230+
CreateLaunchTemplateVersion:
231+
operation_type:
232+
- Update
233+
output_wrapper_field_path: LaunchTemplateVersion
234+
resource_name: LaunchTemplate
235+
DescribeLaunchTemplates:
236+
custom_check_required_fields_missing_method: checkForMissingRequiredFields
220237
CreateNatGateway:
221238
output_wrapper_field_path: NatGateway
222239
CreateNetworkAcl:
@@ -485,6 +502,62 @@ resources:
485502
template_path: hooks/internet_gateway/sdk_file_end.go.tpl
486503
update_operation:
487504
custom_method_name: customUpdateInternetGateway
505+
LaunchTemplate:
506+
hooks:
507+
sdk_create_post_build_request:
508+
template_path: hooks/launch_template/sdk_create_post_build_request.go.tpl
509+
sdk_update_pre_build_request:
510+
template_path: hooks/launch_template/sdk_update_pre_build_request.go.tpl
511+
sdk_read_many_post_set_output:
512+
template_path: hooks/launch_template/sdk_read_many_post_set_output.go.tpl
513+
exceptions:
514+
errors:
515+
404:
516+
code: InvalidLaunchTemplateName.NotFoundException
517+
renames:
518+
operations:
519+
CreateLaunchTemplate:
520+
input_fields:
521+
LaunchTemplateName: Name
522+
LaunchTemplateData: Data
523+
output_fields:
524+
LaunchTemplateId: ID
525+
# Note: maybe we can rename this to just version?
526+
# thoughts...
527+
DefaultVersionNumber: DefaultVersion
528+
LatestVersionNumber: LatestVersion
529+
CreateLaunchTemplateVersion:
530+
input_fields:
531+
LaunchTemplateId: ID
532+
LaunchTemplateName: Name
533+
LaunchTemplateData: Data
534+
output_fields:
535+
LaunchTemplateData: Data
536+
LaunchTemplateName: Name
537+
LaunchTemplateId: ID
538+
DeleteLaunchTemplate:
539+
input_fields:
540+
LaunchTemplateId: ID
541+
DescribeLaunchTemplates:
542+
input_fields:
543+
LaunchTemplateIds: ID
544+
output_fields:
545+
LaunchTemplate.LatestVersionNumber: LatestVersion
546+
LaunchTemplate.DefaultVersionNumber: DefaultVersion
547+
fields:
548+
ID:
549+
is_primary_key: true
550+
print:
551+
path: Status.ID
552+
name: ID
553+
Tags:
554+
from:
555+
operation: CreateTags
556+
path: Tags
557+
DefaultVersion:
558+
from:
559+
operation: ModifyLaunchTemplate
560+
path: LaunchTemplate.DefaultVersionNumber
488561
NatGateway:
489562
exceptions:
490563
terminal_codes:

apis/v1alpha1/launch_template.go

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

0 commit comments

Comments
 (0)