Skip to content

Add ElasticIPAddress CRD #39

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

Merged
merged 7 commits into from
Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from all 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: "2022-03-14T23:35:32Z"
build_date: "2022-03-15T18:06:47Z"
build_hash: 00cd850c16117752abe18558326a508436565b1a
go_version: go1.17.8
version: v0.17.2
api_directory_checksum: 45311575b1cf56326ccad9a2caea143fc104b630
api_directory_checksum: 380fda39b038b24d5cb78d2680fdfd8f3ac42607
api_version: v1alpha1
aws_sdk_go_version: v1.42.0
generator_config_info:
file_checksum: b588c7e44229d7db3737b17b76a68708c71e5b68
file_checksum: 8f2761c7fff3c2af0a06aa95685d7a47b8a69345
original_file_name: generator.yaml
last_modification:
reason: API generation
102 changes: 102 additions & 0 deletions apis/v1alpha1/elastic_ip_address.go

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

61 changes: 58 additions & 3 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ignore:
- ModifyTransitGateway
- ModifyVpcEndpoint
field_paths:
- AllocateAddressInput.DryRun
- CreateDhcpOptionsInput.DryRun
- CreateInternetGatewayInput.DryRun
- CreateRouteInput.DryRun
Expand All @@ -17,6 +18,9 @@ ignore:
- DeleteRouteInput.RouteTableId
# support EC2-VPC only
- DeleteSecurityGroupInput.GroupName
# support EC2-VPC only
- AllocateAddressInput.Domain
- AllocateAddressOutput.Domain
resource_names:
- AccountAttribute
- CapacityReservation
Expand Down Expand Up @@ -85,13 +89,24 @@ ignore:
- VpnGateway

operations:
AllocateAddress:
operation_type:
- Create
resource_name: ElasticIPAddress
DescribeAddresses:
operation_type:
- List
resource_name: ElasticIPAddress
ReleaseAddress:
operation_type:
- Delete
resource_name: ElasticIPAddress
CreateVpcEndpoint:
output_wrapper_field_path: VpcEndpoint
DeleteVpcEndpoints:
operation_type:
- Delete
resource_name: VpcEndpoint

resources:
DhcpOptions:
fields:
Expand Down Expand Up @@ -131,6 +146,47 @@ resources:
template_path: hooks/route_table/sdk_file_end.go.tpl
update_operation:
custom_method_name: customUpdateRouteTable
ElasticIPAddress:
exceptions:
terminal_codes:
- IdempotentParameterMismatch
- InvalidAction
- InvalidCharacter
- InvalidClientTokenId
- InvalidPaginationToken
- InvalidParameter
- InvalidParameterCombination
- InvalidParameterValue
- InvalidQueryParameter
- MalformedQueryString
- MissingAction
- MissingAuthenticationToken
- MissingParameter
- UnknownParameter
- UnsupportedInstanceAttribute
- UnsupportedOperation
- UnsupportedProtocol
- ValidationError
fields:
AllocationId:
is_primary_key: true
print:
name: ALLOCATION-ID
PublicIp:
print:
name: PUBLIC-IP
list_operation:
match_fields:
- AllocationId
hooks:
sdk_create_post_build_request:
template_path: hooks/elastic_ip_address/sdk_create_post_build_request.go.tpl
sdk_delete_post_build_request:
template_path: hooks/elastic_ip_address/sdk_delete_post_build_request.go.tpl
sdk_read_many_pre_build_request:
template_path: hooks/elastic_ip_address/sdk_read_many_pre_build_request.go.tpl
sdk_read_many_post_build_request:
template_path: hooks/elastic_ip_address/sdk_read_many_post_build_request.go.tpl
SecurityGroup:
fields:
# support EC2-VPC only
Expand Down Expand Up @@ -196,5 +252,4 @@ resources:
- InvalidServiceName
hooks:
sdk_delete_post_build_request:
template_path: hooks/vpc_endpoint/sdk_delete_post_build_request.go.tpl

template_path: hooks/vpc_endpoint/sdk_delete_post_build_request.go.tpl
5 changes: 4 additions & 1 deletion apis/v1alpha1/types.go

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

Loading