Skip to content

VPC Flowlogs feature implementation #138

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 1 commit into from
Jun 14, 2023
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
12 changes: 6 additions & 6 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-05-15T23:06:36Z"
build_hash: 8f3ba427974fd6e769926778d54834eaee3b81a3
go_version: go1.19
version: v0.26.1
api_directory_checksum: 6e86aa4f26729ce014485b1096286db654459af7
build_date: "2023-06-14T17:05:27Z"
build_hash: e04fca8e1fa32e988ff4dd9425d758ecc8a2a178
go_version: go1.20.3
version: v0.26.1-6-ge04fca8
api_directory_checksum: a930caa16911411d04c5e7c14b27e077993d93a1
api_version: v1alpha1
aws_sdk_go_version: v1.44.93
generator_config_info:
file_checksum: cc2c6590c6e77a6125d5eec82ff5f693109d4f99
file_checksum: dbba229402fe462b5d6b0b57027b3cfafd6bad61
original_file_name: generator.yaml
last_modification:
reason: API generation
146 changes: 146 additions & 0 deletions apis/v1alpha1/flow_log.go

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

51 changes: 50 additions & 1 deletion apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ ignore:
- AllocateAddressInput.TagSpecifications
- CreateDhcpOptionsInput.DryRun
- CreateDhcpOptionsInput.TagSpecifications
- CreateFlowLogsInput.DryRun
- CreateFlowLogsInput.ClientToken
- CreateFlowLogsInput.TagSpecifications
- CreateFlowLogsInput.ResourceIds
- CreateFlowLogsOutput.FlowLogIds
- CreateInternetGatewayInput.DryRun
- CreateInternetGatewayInput.TagSpecifications
- CreateNatGatewayInput.ClientToken
Expand Down Expand Up @@ -141,6 +146,14 @@ operations:
operation_type:
- Delete
resource_name: VpcEndpoint
CreateFlowLogs:
operation_type:
- Create
resource_name: FlowLog
DeleteFlowLogs:
operation_type:
- Delete
resource_name: FlowLog
RunInstances:
#ouput shape: Reservation
output_wrapper_field_path: Instances
Expand Down Expand Up @@ -268,6 +281,42 @@ resources:
template_path: hooks/elastic_ip_address/sdk_file_end.go.tpl
update_operation:
custom_method_name: customUpdateElasticIP
FlowLog:
exceptions:
terminal_codes:
- InvalidParameter
- InvalidParameterValue
fields:
ResourceID:
type: string
is_required: true
FlowLogID:
type: string
is_read_only: true
is_primary_key: true
Tags:
from:
operation: CreateTags
path: Tags
compare:
is_ignored: True
hooks:
delta_pre_compare:
code: compareTags(delta, a, b)
sdk_create_post_build_request:
template_path: hooks/flow_log/sdk_create_post_build_request.go.tpl
sdk_create_post_set_output:
template_path: hooks/flow_log/sdk_create_post_set_output.go.tpl
sdk_delete_post_build_request:
template_path: hooks/flow_log/sdk_delete_post_build_request.go.tpl
sdk_read_many_pre_build_request:
template_path: hooks/flow_log/sdk_read_many_pre_build_request.go.tpl
sdk_read_many_post_build_request:
template_path: hooks/flow_log/sdk_read_many_post_build_request.go.tpl
sdk_file_end:
template_path: hooks/flow_log/sdk_file_end.go.tpl
update_operation:
custom_method_name: customUpdateFlowLog
InternetGateway:
fields:
Tags:
Expand Down Expand Up @@ -649,4 +698,4 @@ resources:
template_path: hooks/vpc_endpoint/sdk_file_end.go.tpl
update_operation:
custom_method_name: customUpdateVPCEndpoint


32 changes: 19 additions & 13 deletions apis/v1alpha1/types.go

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

Loading