Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new resource ec2launch template and test caes #151

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2023-09-18T23:03:44Z"
build_date: "2023-09-25T13:55:32Z"
build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d
go_version: go1.20.3
version: v0.27.1
api_directory_checksum: 6e2d850d97f2f72db31c9bef522eca4ab95b3fcd
api_directory_checksum: a140282832f4c32ff278bae9db193bc184772dab
api_version: v1alpha1
aws_sdk_go_version: v1.44.93
generator_config_info:
file_checksum: c474e6cdec9622afad4b4cef415483a7bd0eda41
file_checksum: bb7c8de43438e51832d3fb3458a456ee1afe7bd0
original_file_name: generator.yaml
last_modification:
reason: API generation
56 changes: 55 additions & 1 deletion apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ ignore:
- SecurityGroupRule.GroupOwnerId
- SecurityGroupRule.ReferencedGroupInfo
- TerminateInstancesInput.DryRun
- CreateLaunchTemplateInput.DryRun
- CreateLaunchTemplateInput.ClientToken
resource_names:
- AccountAttribute
- CapacityReservation
Expand All @@ -77,7 +79,7 @@ ignore:
- IpamScope
- KeyPair
- LaunchTemplateVersion
- LaunchTemplate
#- LaunchTemplate
- LocalGatewayRouteTableVpcAssociation
- LocalGatewayRoute
- ManagedPrefixList
Expand Down Expand Up @@ -144,6 +146,8 @@ operations:
output_wrapper_field_path: NatGateway
CreateNetworkAcl:
output_wrapper_field_path: NetworkAcl
CreateLaunchTemplate:
output_wrapper_field_path: LaunchTemplate
CreateVpcEndpoint:
output_wrapper_field_path: VpcEndpoint
DeleteVpcEndpoints:
Expand Down Expand Up @@ -185,6 +189,56 @@ operations:
- Delete
resource_name: Instance
resources:
LaunchTemplate:
exceptions:
errors:
404:
code: InvalidLaunchTemplateName.NotFoundException
terminal_codes:
- InvalidParameterValue
- InvalidTagSpecification
fields:
LaunchTemplateID:
is_primary_key: true
print:
path: Status.LaunchTemplateID
name: LaunchTemplateID
DefaultVersionNumber:
type: int
print:
path: Status.defaultVersionNumber
name: DefaultVersion
LatestVersionNumber:
print:
path: Status.latestVersionNumber
name: LatestVersion
Tags:
from:
operation: CreateTags
path: Tags
compare:
is_ignored: True
tags:
ignore: true
renames:
operations:
CreateLaunchTemplate:
input_fields:
LaunchTemplateName: Name
output_fields:
LaunchTemplateId: LaunchTemplateId
DeleteLaunchTemplate:
input_fields:
LaunchTemplateId: LaunchTemplateId
LaunchTemplateName: Name
DescribeLaunchTemplate:
input_fields:
LaunchTemplateName: Name
hooks:
sdk_update_post_build_request:
template_path: hooks/launch_template/sdk_update_post_build_request.go.tpl
sdk_delete_post_build_request:
template_path: hooks/launch_template/sdk_delete_post_build_request.go.tpl
DhcpOptions:
exceptions:
terminal_codes:
Expand Down
100 changes: 100 additions & 0 deletions apis/v1alpha1/launch_template.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading