Skip to content

Commit

Permalink
set policyDocument required
Browse files Browse the repository at this point in the history
Signed-off-by: Stephane Selim <stephane.selim@swisscom.com>
  • Loading branch information
stefnans committed Aug 13, 2024
1 parent 1039961 commit 784eb5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apis/cloudwatchlogs/generator-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ resources:
operation: DescribeLogGroups
path: LogGroups.StoredBytes
ResourcePolicy:
fields:
policyDocument:
is_required: true
exceptions:
errors:
404:
Expand Down
3 changes: 2 additions & 1 deletion apis/cloudwatchlogs/v1alpha1/zz_resource_policy.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ spec:
created.
type: string
required:
- policyDocument
- region
type: object
managementPolicies:
Expand Down

0 comments on commit 784eb5a

Please sign in to comment.