Skip to content

Commit

Permalink
add support for ResourcePolicy in cloudwatchlogs service
Browse files Browse the repository at this point in the history
Signed-off-by: Stephane Selim <[email protected]>
  • Loading branch information
stefnans committed Aug 14, 2024
1 parent dbe8d46 commit eccae59
Show file tree
Hide file tree
Showing 14 changed files with 1,534 additions and 4 deletions.
23 changes: 23 additions & 0 deletions apis/cloudwatchlogs/generator-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ ignore:
- ExportTask
field_paths:
- CreateLogGroupInput.KmsKeyId
- PutResourcePolicyInput.PolicyName
- DeleteResourcePolicyInput.PolicyName
operations:
PutResourcePolicy:
operation_type:
- Create
resource_name: ResourcePolicy
DescribeResourcePolicies:
operation_type:
- Read
resource_name: ResourcePolicy
DeleteResourcePolicy:
operation_type:
- Delete
resource_name: ResourcePolicy
resources:
LogGroup:
fields:
Expand Down Expand Up @@ -42,3 +57,11 @@ resources:
from:
operation: DescribeLogGroups
path: LogGroups.StoredBytes
ResourcePolicy:
fields:
policyDocument:
is_required: true
exceptions:
errors:
404:
code: ResourceNotFoundException
3 changes: 3 additions & 0 deletions apis/cloudwatchlogs/v1alpha1/custom_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ type CustomLogGroupParameters struct {
// +optional
KMSKeyIDSelector *xpv1.Selector `json:"kmsKeyIDSelector,omitempty"`
}

// CustomResourcePolicyParameters includes the custom fields of ResourcePolicy.
type CustomResourcePolicyParameters struct{}
175 changes: 172 additions & 3 deletions apis/cloudwatchlogs/v1alpha1/zz_generated.deepcopy.go

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

60 changes: 60 additions & 0 deletions apis/cloudwatchlogs/v1alpha1/zz_generated.managed.go

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

9 changes: 9 additions & 0 deletions apis/cloudwatchlogs/v1alpha1/zz_generated.managedlist.go

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

Loading

0 comments on commit eccae59

Please sign in to comment.