Skip to content

Commit 4927448

Browse files
authored
Generate Security Group using ACK Runtime v0.15.2 (#20)
Issue #, if available: aws-controllers-k8s/community#489 Description of changes: * Adds Create/Delete functionality and tests for Security Group resource using ACK runtime `v0.15.2` at [this commit](aws-controllers-k8s/code-generator@6ce1a67) By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 318a159 commit 4927448

25 files changed

+2153
-74
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2021-10-27T21:06:25Z"
3-
build_hash: d2b063806d25cfcae4f2d4eb44f8e3f713b23e8e
4-
go_version: go1.15
2+
build_date: "2021-11-08T20:16:44Z"
3+
build_hash: 6ce1a672eabd3908bdaa4ace356e1b58ee3e80ba
4+
go_version: go1.17
55
version: v0.15.2
6-
api_directory_checksum: c42ae0549361b86a2d5c112b556b6a715ee976ab
6+
api_directory_checksum: 231335e65c729f31ac368b1483a38c2964b3219a
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.37.10
99
generator_config_info:
10-
file_checksum: ed3e48785dc25e784dee76fa7b20248fdc1a170d
10+
file_checksum: 438c2600566029a9ab883076d641246f0a8fbb88
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ ignore:
33
- ModifyTransitGateway
44
- ModifyVpcEndpoint
55
field_paths:
6-
- CreateVpcEndpointInput.DryRun
7-
- CreateVpcInput.DryRun
8-
- CreateSubnetInput.DryRun
9-
- CreateRouteTableInput.DryRun
106
- CreateInternetGatewayInput.DryRun
7+
- CreateRouteTableInput.DryRun
8+
- CreateSecurityGroupInput.DryRun
9+
- CreateSubnetInput.DryRun
1110
- CreateTransitGatewayInput.DryRun
11+
- CreateVpcInput.DryRun
12+
- CreateVpcEndpointInput.DryRun
13+
# support EC2-VPC only
14+
- DeleteSecurityGroupInput.GroupName
1215
resource_names:
1316
- AccountAttribute
1417
- CapacityReservation
@@ -41,7 +44,7 @@ ignore:
4144
- ReservedInstancesListing
4245
#- RouteTable
4346
- Route
44-
- SecurityGroup
47+
#- SecurityGroup
4548
- Snapshot
4649
- SpotDatafeedSubscription
4750
#- Subnet
@@ -78,12 +81,39 @@ operations:
7881
resource_name: VpcEndpoint
7982

8083
resources:
81-
Subnet:
84+
RouteTable:
8285
exceptions:
8386
terminal_codes:
8487
- InvalidVpcID.Malformed
8588
- InvalidVpcID.NotFound
86-
RouteTable:
89+
SecurityGroup:
90+
fields:
91+
# support EC2-VPC only
92+
Id:
93+
is_primary_key: true
94+
VpcId:
95+
is_required: true
96+
renames:
97+
operations:
98+
CreateSecurityGroup:
99+
input_fields:
100+
GroupName: Name
101+
output_fields:
102+
GroupId: Id
103+
DeleteSecurityGroup:
104+
input_fields:
105+
GroupId: Id
106+
GroupName: Name
107+
DescribeSecurityGroups:
108+
input_fields:
109+
GroupIds: Ids
110+
GroupNames: Names
111+
exceptions:
112+
terminal_codes:
113+
- InvalidVpcID.Malformed
114+
- InvalidVpcID.NotFound
115+
- VPCIdNotSpecified
116+
Subnet:
87117
exceptions:
88118
terminal_codes:
89119
- InvalidVpcID.Malformed

apis/v1alpha1/security_group.go

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

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)