Skip to content

Commit 97f8fab

Browse files
authored
Merge pull request #170 from aws-beam/new-generated-code
Fix type specs with double ()
2 parents 17b2304 + 4786bd3 commit 97f8fab

File tree

399 files changed

+20210
-20210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

399 files changed

+20210
-20210
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
ports:
2020
- 8000:8000
2121
s3mock:
22-
image: adobe/s3mock:2.11.0
22+
image: adobe/s3mock:4.6.0
2323
ports:
2424
- 9090:9090
2525
steps:

src/aws_accessanalyzer.erl

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
%% <<"accessRole">> => string(),
150150
%% <<"endTime">> => non_neg_integer(),
151151
%% <<"startTime">> => non_neg_integer(),
152-
%% <<"trails">> => list(trail()())
152+
%% <<"trails">> => list(trail())
153153
%% }
154154
-type cloud_trail_details() :: #{binary() => any()}.
155155

@@ -200,7 +200,7 @@
200200

201201
%% Example:
202202
%% analysis_rule() :: #{
203-
%% <<"exclusions">> => list(analysis_rule_criteria()())
203+
%% <<"exclusions">> => list(analysis_rule_criteria())
204204
%% }
205205
-type analysis_rule() :: #{binary() => any()}.
206206

@@ -216,7 +216,7 @@
216216
%% Example:
217217
%% check_no_public_access_response() :: #{
218218
%% <<"message">> => [string()],
219-
%% <<"reasons">> => list(reason_summary()()),
219+
%% <<"reasons">> => list(reason_summary()),
220220
%% <<"result">> => string()
221221
%% }
222222
-type check_no_public_access_response() :: #{binary() => any()}.
@@ -244,7 +244,7 @@
244244

245245
%% Example:
246246
%% list_access_previews_response() :: #{
247-
%% <<"accessPreviews">> := list(access_preview_summary()()),
247+
%% <<"accessPreviews">> := list(access_preview_summary()),
248248
%% <<"nextToken">> => string()
249249
%% }
250250
-type list_access_previews_response() :: #{binary() => any()}.
@@ -289,7 +289,7 @@
289289
%% <<"resourceControlPolicyRestriction">> => string(),
290290
%% <<"resourceOwnerAccount">> => [string()],
291291
%% <<"resourceType">> => string(),
292-
%% <<"sources">> => list(finding_source()()),
292+
%% <<"sources">> => list(finding_source()),
293293
%% <<"status">> => string(),
294294
%% <<"updatedAt">> => non_neg_integer()
295295
%% }
@@ -330,7 +330,7 @@
330330

331331
%% Example:
332332
%% get_findings_statistics_response() :: #{
333-
%% <<"findingsStatistics">> => list(list()()),
333+
%% <<"findingsStatistics">> => list(list()),
334334
%% <<"lastUpdatedAt">> => non_neg_integer()
335335
%% }
336336
-type get_findings_statistics_response() :: #{binary() => any()}.
@@ -342,7 +342,7 @@
342342
%% <<"error">> => recommendation_error(),
343343
%% <<"nextToken">> => string(),
344344
%% <<"recommendationType">> => string(),
345-
%% <<"recommendedSteps">> => list(list()()),
345+
%% <<"recommendedSteps">> => list(list()),
346346
%% <<"resourceArn">> => string(),
347347
%% <<"startedAt">> => non_neg_integer(),
348348
%% <<"status">> => string()
@@ -378,14 +378,14 @@
378378
%% internal_access_analysis_rule_criteria() :: #{
379379
%% <<"accountIds">> => list([string()]()),
380380
%% <<"resourceArns">> => list([string()]()),
381-
%% <<"resourceTypes">> => list(string()())
381+
%% <<"resourceTypes">> => list(string())
382382
%% }
383383
-type internal_access_analysis_rule_criteria() :: #{binary() => any()}.
384384

385385

386386
%% Example:
387387
%% list_findings_response() :: #{
388-
%% <<"findings">> => list(finding_summary()()),
388+
%% <<"findings">> => list(finding_summary()),
389389
%% <<"nextToken">> => string()
390390
%% }
391391
-type list_findings_response() :: #{binary() => any()}.
@@ -394,7 +394,7 @@
394394
%% Example:
395395
%% create_analyzer_request() :: #{
396396
%% <<"analyzerName">> => string(),
397-
%% <<"archiveRules">> => list(inline_archive_rule()()),
397+
%% <<"archiveRules">> => list(inline_archive_rule()),
398398
%% <<"clientToken">> => [string()],
399399
%% <<"configuration">> => list(),
400400
%% <<"tags">> => map(),
@@ -419,7 +419,7 @@
419419

420420
%% Example:
421421
%% unused_permission_details() :: #{
422-
%% <<"actions">> => list(unused_action()()),
422+
%% <<"actions">> => list(unused_action()),
423423
%% <<"lastAccessed">> => non_neg_integer(),
424424
%% <<"serviceNamespace">> => [string()]
425425
%% }
@@ -484,7 +484,7 @@
484484

485485
%% Example:
486486
%% list_analyzers_response() :: #{
487-
%% <<"analyzers">> => list(analyzer_summary()()),
487+
%% <<"analyzers">> => list(analyzer_summary()),
488488
%% <<"nextToken">> => string()
489489
%% }
490490
-type list_analyzers_response() :: #{binary() => any()}.
@@ -493,15 +493,15 @@
493493
%% Example:
494494
%% analysis_rule_criteria() :: #{
495495
%% <<"accountIds">> => list([string()]()),
496-
%% <<"resourceTags">> => list(map()())
496+
%% <<"resourceTags">> => list(map())
497497
%% }
498498
-type analysis_rule_criteria() :: #{binary() => any()}.
499499

500500

501501
%% Example:
502502
%% check_access_not_granted_response() :: #{
503503
%% <<"message">> => [string()],
504-
%% <<"reasons">> => list(reason_summary()()),
504+
%% <<"reasons">> => list(reason_summary()),
505505
%% <<"result">> => string()
506506
%% }
507507
-type check_access_not_granted_response() :: #{binary() => any()}.
@@ -572,7 +572,7 @@
572572

573573
%% Example:
574574
%% list_analyzed_resources_response() :: #{
575-
%% <<"analyzedResources">> => list(analyzed_resource_summary()()),
575+
%% <<"analyzedResources">> => list(analyzed_resource_summary()),
576576
%% <<"nextToken">> => string()
577577
%% }
578578
-type list_analyzed_resources_response() :: #{binary() => any()}.
@@ -594,7 +594,7 @@
594594
%% <<"resourceControlPolicyRestriction">> => string(),
595595
%% <<"resourceOwnerAccount">> => [string()],
596596
%% <<"resourceType">> => string(),
597-
%% <<"sources">> => list(finding_source()()),
597+
%% <<"sources">> => list(finding_source()),
598598
%% <<"status">> => string()
599599
%% }
600600
-type access_preview_finding() :: #{binary() => any()}.
@@ -663,7 +663,7 @@
663663

664664
%% Example:
665665
%% internal_access_analysis_rule() :: #{
666-
%% <<"inclusions">> => list(internal_access_analysis_rule_criteria()())
666+
%% <<"inclusions">> => list(internal_access_analysis_rule_criteria())
667667
%% }
668668
-type internal_access_analysis_rule() :: #{binary() => any()}.
669669

@@ -699,14 +699,14 @@
699699
%% <<"findingType">> => string(),
700700
%% <<"issueCode">> => string(),
701701
%% <<"learnMoreLink">> => string(),
702-
%% <<"locations">> => list(location()())
702+
%% <<"locations">> => list(location())
703703
%% }
704704
-type validate_policy_finding() :: #{binary() => any()}.
705705

706706

707707
%% Example:
708708
%% list_archive_rules_response() :: #{
709-
%% <<"archiveRules">> => list(archive_rule_summary()()),
709+
%% <<"archiveRules">> => list(archive_rule_summary()),
710710
%% <<"nextToken">> => string()
711711
%% }
712712
-type list_archive_rules_response() :: #{binary() => any()}.
@@ -743,7 +743,7 @@
743743
%% <<"resourceControlPolicyRestriction">> => string(),
744744
%% <<"resourceOwnerAccount">> => [string()],
745745
%% <<"resourceType">> => string(),
746-
%% <<"sources">> => list(finding_source()()),
746+
%% <<"sources">> => list(finding_source()),
747747
%% <<"status">> => string(),
748748
%% <<"updatedAt">> => non_neg_integer()
749749
%% }
@@ -755,7 +755,7 @@
755755
%% <<"constraints">> => kms_grant_constraints(),
756756
%% <<"granteePrincipal">> => string(),
757757
%% <<"issuingAccount">> => string(),
758-
%% <<"operations">> => list(string()()),
758+
%% <<"operations">> => list(string()),
759759
%% <<"retiringPrincipal">> => string()
760760
%% }
761761
-type kms_grant_configuration() :: #{binary() => any()}.
@@ -764,7 +764,7 @@
764764
%% Example:
765765
%% check_no_new_access_response() :: #{
766766
%% <<"message">> => [string()],
767-
%% <<"reasons">> => list(reason_summary()()),
767+
%% <<"reasons">> => list(reason_summary()),
768768
%% <<"result">> => string()
769769
%% }
770770
-type check_no_new_access_response() :: #{binary() => any()}.
@@ -807,14 +807,14 @@
807807
%% <<"principalType">> => string(),
808808
%% <<"resourceControlPolicyRestriction">> => string(),
809809
%% <<"serviceControlPolicyRestriction">> => string(),
810-
%% <<"sources">> => list(finding_source()())
810+
%% <<"sources">> => list(finding_source())
811811
%% }
812812
-type internal_access_details() :: #{binary() => any()}.
813813

814814

815815
%% Example:
816816
%% generated_policy_result() :: #{
817-
%% <<"generatedPolicies">> => list(generated_policy()()),
817+
%% <<"generatedPolicies">> => list(generated_policy()),
818818
%% <<"properties">> => generated_policy_properties()
819819
%% }
820820
-type generated_policy_result() :: #{binary() => any()}.
@@ -845,7 +845,7 @@
845845

846846
%% Example:
847847
%% location() :: #{
848-
%% <<"path">> => list(list()()),
848+
%% <<"path">> => list(list()),
849849
%% <<"span">> => span()
850850
%% }
851851
-type location() :: #{binary() => any()}.
@@ -882,7 +882,7 @@
882882
%% Example:
883883
%% list_policy_generations_response() :: #{
884884
%% <<"nextToken">> => string(),
885-
%% <<"policyGenerations">> := list(policy_generation()())
885+
%% <<"policyGenerations">> := list(policy_generation())
886886
%% }
887887
-type list_policy_generations_response() :: #{binary() => any()}.
888888

@@ -905,7 +905,7 @@
905905

906906
%% Example:
907907
%% kms_key_configuration() :: #{
908-
%% <<"grants">> => list(kms_grant_configuration()()),
908+
%% <<"grants">> => list(kms_grant_configuration()),
909909
%% <<"keyPolicies">> => map()
910910
%% }
911911
-type kms_key_configuration() :: #{binary() => any()}.
@@ -932,9 +932,9 @@
932932

933933
%% Example:
934934
%% ebs_snapshot_configuration() :: #{
935-
%% <<"groups">> => list(string()()),
935+
%% <<"groups">> => list(string()),
936936
%% <<"kmsKeyId">> => string(),
937-
%% <<"userIds">> => list(string()())
937+
%% <<"userIds">> => list(string())
938938
%% }
939939
-type ebs_snapshot_configuration() :: #{binary() => any()}.
940940

@@ -970,7 +970,7 @@
970970

971971
%% Example:
972972
%% validate_policy_response() :: #{
973-
%% <<"findings">> := list(validate_policy_finding()()),
973+
%% <<"findings">> := list(validate_policy_finding()),
974974
%% <<"nextToken">> => string()
975975
%% }
976976
-type validate_policy_response() :: #{binary() => any()}.
@@ -1007,7 +1007,7 @@
10071007
%% <<"isPublic">> => [boolean()],
10081008
%% <<"principal">> => map(),
10091009
%% <<"resourceControlPolicyRestriction">> => string(),
1010-
%% <<"sources">> => list(finding_source()())
1010+
%% <<"sources">> => list(finding_source())
10111011
%% }
10121012
-type external_access_details() :: #{binary() => any()}.
10131013

@@ -1031,7 +1031,7 @@
10311031
%% cloud_trail_properties() :: #{
10321032
%% <<"endTime">> => non_neg_integer(),
10331033
%% <<"startTime">> => non_neg_integer(),
1034-
%% <<"trailProperties">> => list(trail_properties()())
1034+
%% <<"trailProperties">> => list(trail_properties())
10351035
%% }
10361036
-type cloud_trail_properties() :: #{binary() => any()}.
10371037

@@ -1122,19 +1122,19 @@
11221122

11231123
%% Example:
11241124
%% unused_access_findings_statistics() :: #{
1125-
%% <<"topAccounts">> => list(finding_aggregation_account_details()()),
1125+
%% <<"topAccounts">> => list(finding_aggregation_account_details()),
11261126
%% <<"totalActiveFindings">> => [integer()],
11271127
%% <<"totalArchivedFindings">> => [integer()],
11281128
%% <<"totalResolvedFindings">> => [integer()],
1129-
%% <<"unusedAccessTypeStatistics">> => list(unused_access_type_statistics()())
1129+
%% <<"unusedAccessTypeStatistics">> => list(unused_access_type_statistics())
11301130
%% }
11311131
-type unused_access_findings_statistics() :: #{binary() => any()}.
11321132

11331133

11341134
%% Example:
11351135
%% s3_bucket_configuration() :: #{
11361136
%% <<"accessPoints">> => map(),
1137-
%% <<"bucketAclGrants">> => list(s3_bucket_acl_grant_configuration()()),
1137+
%% <<"bucketAclGrants">> => list(s3_bucket_acl_grant_configuration()),
11381138
%% <<"bucketPolicy">> => string(),
11391139
%% <<"bucketPublicAccessBlock">> => s3_public_access_block_configuration()
11401140
%% }
@@ -1143,7 +1143,7 @@
11431143

11441144
%% Example:
11451145
%% validation_exception() :: #{
1146-
%% <<"fieldList">> => list(validation_exception_field()()),
1146+
%% <<"fieldList">> => list(validation_exception_field()),
11471147
%% <<"message">> => [string()],
11481148
%% <<"reason">> => string()
11491149
%% }
@@ -1158,7 +1158,7 @@
11581158
%% update_findings_request() :: #{
11591159
%% <<"analyzerArn">> => string(),
11601160
%% <<"clientToken">> => [string()],
1161-
%% <<"ids">> => list(string()()),
1161+
%% <<"ids">> => list(string()),
11621162
%% <<"resourceArn">> => string(),
11631163
%% <<"status">> => string()
11641164
%% }
@@ -1199,8 +1199,8 @@
11991199

12001200
%% Example:
12011201
%% access() :: #{
1202-
%% <<"actions">> => list(string()()),
1203-
%% <<"resources">> => list(string()())
1202+
%% <<"actions">> => list(string()),
1203+
%% <<"resources">> => list(string())
12041204
%% }
12051205
-type access() :: #{binary() => any()}.
12061206

@@ -1218,7 +1218,7 @@
12181218
%% <<"analyzedAt">> => non_neg_integer(),
12191219
%% <<"createdAt">> => non_neg_integer(),
12201220
%% <<"error">> => [string()],
1221-
%% <<"findingDetails">> => list(list()()),
1221+
%% <<"findingDetails">> => list(list()),
12221222
%% <<"findingType">> => string(),
12231223
%% <<"id">> => string(),
12241224
%% <<"nextToken">> => string(),
@@ -1289,7 +1289,7 @@
12891289

12901290
%% Example:
12911291
%% check_access_not_granted_request() :: #{
1292-
%% <<"access">> := list(access()()),
1292+
%% <<"access">> := list(access()),
12931293
%% <<"policyDocument">> := string(),
12941294
%% <<"policyType">> := string()
12951295
%% }
@@ -1336,7 +1336,7 @@
13361336

13371337
%% Example:
13381338
%% list_findings_v2_response() :: #{
1339-
%% <<"findings">> => list(finding_summary_v2()()),
1339+
%% <<"findings">> => list(finding_summary_v2()),
13401340
%% <<"nextToken">> => string()
13411341
%% }
13421342
-type list_findings_v2_response() :: #{binary() => any()}.
@@ -1457,7 +1457,7 @@
14571457

14581458
%% Example:
14591459
%% list_access_preview_findings_response() :: #{
1460-
%% <<"findings">> := list(access_preview_finding()()),
1460+
%% <<"findings">> := list(access_preview_finding()),
14611461
%% <<"nextToken">> => string()
14621462
%% }
14631463
-type list_access_preview_findings_response() :: #{binary() => any()}.

0 commit comments

Comments
 (0)