Skip to content

Conversation

@sarvodayaKumar
Copy link
Collaborator

@sarvodayaKumar sarvodayaKumar commented Oct 24, 2025

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/....

#243


Note

Adds log management resource and data source with full client support, docs/examples/tests, and bumps version to 0.12.0.

  • Log Management:
    • Resource: aquasec/resource_log_management.go implements CRUD with validation, sensitive field handling, and diff suppression; registered in provider.go.
    • Data Source: aquasec/data_log_management.go adds lookup by name with comprehensive computed attributes; registered in provider.go.
    • Client: client/log_management.go introduces LogService model and API methods: GetLogManagement, GetLogManagements, CreateLogManagement, UpdateLogManagement, DeleteLogManagement.
    • Tests: Adds acceptance tests (skipped) for resource and data source.
    • Docs: New docs docs/resources/log_management.md, docs/data-sources/log_managements.md; examples under examples/... with new vars and usage.
  • Version bump:
    • Updates provider version references and build VERSION to 0.12.0 in GNUmakefile, README.md, docs/index.md, and examples.

Written by Cursor Bugbot for commit 896e683. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

@sarvodayaKumar sarvodayaKumar force-pushed the SLK-75478 branch 2 times, most recently from 5d9791e to f4c0ffb Compare October 25, 2025 14:30
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

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/...`.
@sarvodayaKumar sarvodayaKumar merged commit 8ce6d3f into main Oct 30, 2025
16 of 19 checks passed
@sarvodayaKumar sarvodayaKumar deleted the SLK-75478 branch October 30, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants