Skip to content

Commit 7f614c3

Browse files
committed
uses output_wrapper_field_path for sdkFind && updates code-gen to 0.35.0
1 parent 64965cf commit 7f614c3

File tree

5 files changed

+48
-19
lines changed

5 files changed

+48
-19
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-08-08T06:37:35Z"
2+
build_date: "2024-08-08T06:38:41Z"
33
build_hash: 587b90dc860e91ee9a763e9e3bc4d3f1b2fbddb7
44
go_version: go1.22.4
55
version: v0.36.0-dirty
66
api_directory_checksum: 96fa226bb4286e852c4c5c3431fd48aa3de6e430
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.51.21
99
generator_config_info:
10-
file_checksum: e8beb0f75f405a8b5d5f850ea62f5a088eb970c1
10+
file_checksum: 8105dfd6cd8450bbeebbf515820ac6f96b10e89a
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ ignore:
66
- RuleGroup
77
- WebACL
88
model_name: wafv2
9+
operations:
10+
GetIPSet:
11+
output_wrapper_field_path: IPSet
912
resources:
1013
IPSet:
1114
fields:

generator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ ignore:
66
- RuleGroup
77
- WebACL
88
model_name: wafv2
9+
operations:
10+
GetIPSet:
11+
output_wrapper_field_path: IPSet
912
resources:
1013
IPSet:
1114
fields:

pkg/resource/ip_set/sdk.go

Lines changed: 38 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
if resp.IPSet != nil {
2-
if resp.IPSet.Description != nil {
3-
ko.Spec.Description = resp.IPSet.Description
4-
}
5-
if resp.IPSet.Addresses != nil {
6-
ko.Spec.Addresses = resp.IPSet.Addresses
7-
}
1+
if resp.LockToken != nil {
2+
ko.Status.LockToken = resp.LockToken
83
}

0 commit comments

Comments
 (0)