Skip to content

Commit 0720028

Browse files
feat: Add Account resource (#38)
Adds Account resource Issue #, if available: Description of changes: Adds account resource. Needs to use DescribeCreateAccountStatus instead of DescribeAccount and there's no DeleteAccount and as such we use CloseAccount By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent f53bb50 commit 0720028

32 files changed

+3349
-9
lines changed

apis/v1alpha1/account.go

Lines changed: 208 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-02-20T18:37:09Z"
2+
build_date: "2025-03-05T00:25:57Z"
33
build_hash: a326346bd3a6973254d247c9ab2dc76790c36241
44
go_version: go1.24.0
55
version: v0.43.2
6-
api_directory_checksum: cd6e02a1663d02ea996de4af20239f6d49c54640
6+
api_directory_checksum: 4b40afb9ed679f81061b976518fa76adedec1288
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 126f69fc5150ad38b50044c98271d2498d1cf597
10+
file_checksum: ecc92fb5816a1c84fd3a6a7a9f40aa6040c5414a
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/enums.go

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

apis/v1alpha1/generator.yaml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,42 @@
11
ignore:
22
resource_names:
3-
- Account
3+
#- Account
44
- GovCloudAccount
55
- Organization
66
#- OrganizationalUnit
77
- Policy
8+
operations:
9+
CloseAccount:
10+
operation_type: Delete
11+
resource_name: Account
12+
DescribeCreateAccountStatus:
13+
operation_type: ReadOne
14+
resource_name: Account
815
resources:
16+
Account:
17+
hooks:
18+
sdk_read_one_post_set_output:
19+
template_path: hooks/account/sdk_read_one_post_set_output.go.tpl
20+
fields:
21+
AccountID:
22+
is_primary_key: true
23+
renames:
24+
operations:
25+
CreateAccount:
26+
input_fields:
27+
AccountName: Name
28+
output_fields:
29+
Id: CreateAccountRequestId
30+
DescribeAccount:
31+
input_fields:
32+
AccountName: Name
33+
update_operation:
34+
custom_method_name: customUpdateAccount
35+
synced:
36+
when:
37+
- path: Status.State
38+
in:
39+
- SUCCEEDED
940
OrganizationalUnit:
1041
renames:
1142
operations:

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)