-
Notifications
You must be signed in to change notification settings - Fork 41
feat: implement support for log management resource and data source #354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5d9791e to
f4c0ffb
Compare
f4c0ffb to
2bf9076
Compare
2bf9076 to
859b2d3
Compare
859b2d3 to
5087a79
Compare
5087a79 to
8e873a0
Compare
8e873a0 to
10a9d14
Compare
10a9d14 to
3f40054
Compare
semyonmor
approved these changes
Oct 29, 2025
3f40054 to
689a8af
Compare
Adds `aquasec_log_management` resource with full CRUD and `aquasec_log_managements` data source, wiring them into the provider with client API, tests, docs, and examples. - **Provider**: - Registers `aquasec_log_management` resource and `aquasec_log_managements` data source in `aquasec/provider.go`. - **Resource: `aquasec_log_management`**: - Implements Create/Read/Update/Delete in `aquasec/resource_log_management.go` for multiple backends (e.g., CloudWatch, Splunk, Syslog, Azure, etc.). - Sets `source` to fixed `"aquasec"`; handles sensitive fields and diff suppression for `key`. - **Data Source: `aquasec_log_managements`**: - Adds read-only lookup by `name` in `aquasec/data_log_management.go` with comprehensive computed attributes. - **Client**: - Introduces `client/log_management.go` with `LogService` model and API methods: `GetLogManagement`, `GetLogManagements`, `CreateLogManagement`, `UpdateLogManagement`, `DeleteLogManagement`. - **Tests**: - Adds acceptance tests for resource and data source (`aquasec/resource_log_management_test.go`, `aquasec/data_log_management_test.go`). - **Docs & Examples**: - Adds docs for resource and data source plus example configurations under `docs/...` and `examples/...`.
689a8af to
896e683
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds
aquasec_log_managementresource with full CRUD andaquasec_log_managementsdata source, wiring them into the provider with client API, tests, docs, and examples.aquasec_log_managementresource andaquasec_log_managementsdata source inaquasec/provider.go.aquasec_log_management:aquasec/resource_log_management.gofor multiple backends (e.g., CloudWatch, Splunk, Syslog, Azure, etc.).sourceto fixed"aquasec"; handles sensitive fields and diff suppression forkey.aquasec_log_managements:nameinaquasec/data_log_management.gowith comprehensive computed attributes.client/log_management.gowithLogServicemodel and API methods:GetLogManagement,GetLogManagements,CreateLogManagement,UpdateLogManagement,DeleteLogManagement.aquasec/resource_log_management_test.go,aquasec/data_log_management_test.go).docs/...andexamples/....#243
Note
Adds log management resource and data source with full client support, docs/examples/tests, and bumps version to 0.12.0.
aquasec/resource_log_management.goimplements CRUD with validation, sensitive field handling, and diff suppression; registered inprovider.go.aquasec/data_log_management.goadds lookup bynamewith comprehensive computed attributes; registered inprovider.go.client/log_management.gointroducesLogServicemodel and API methods:GetLogManagement,GetLogManagements,CreateLogManagement,UpdateLogManagement,DeleteLogManagement.docs/resources/log_management.md,docs/data-sources/log_managements.md; examples underexamples/...with new vars and usage.VERSIONto0.12.0inGNUmakefile,README.md,docs/index.md, and examples.Written by Cursor Bugbot for commit 896e683. This will update automatically on new commits. Configure here.