Skip to content

Conversation

@sarvodayaKumar
Copy link
Collaborator

@sarvodayaKumar sarvodayaKumar commented Nov 24, 2025

Introduces unified_mode for Enforcer Groups across client, Terraform resource, data source, tests, and docs.

  • Terraform Provider:
    • Resource aquasec_enforcer_groups: Add optional unified_mode (bool) to schema; read/write via resourceEnforcerGroupRead/UpdateandexpandEnforcerGroup`.
    • Data Source aquasec_enforcer_groups: Add computed unified_mode (bool) to schema; populated in dataEnforcerGroupRead.
  • Client:
    • Extend client.EnforcerGroup with UnifiedMode (bool, json:"unified_mode").
  • Tests:
    • Update resource_enforcer_group_test.go to include UnifiedMode in fixtures, HCL configs, and assertions.
  • Docs:
    • Update docs/resources/enforcer_groups.md and docs/data-sources/enforcer_groups.md to document unified_mode.

…nd data source

Implemantation:
- Updated `resource_enforcer_group.go` to include the `unified_mode` attribute in
  the schema, allowing users to set and retrieve this property.
- Modified `data_enforcer_group.go` to read the `unified_mode` attribute from
  the API response and set it in the Terraform state.
- Updated `resource_enforcer_group_test.go` to include test cases that verify
  the correct handling of the `unified_mode` attribute during creation, update,
  and read operations.
- Revised documentation in `docs/resources/enforcer_groups.md` and
  `docs/data-sources/enforcer_groups.md` to reflect the addition of the
  `unified_mode` attribute, including usage examples.
@semyonmor semyonmor merged commit a5069e2 into main Nov 25, 2025
9 checks passed
@semyonmor semyonmor deleted the feature/SLK-106518-unified-mode branch November 25, 2025 15:54
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