Skip to content

Commit 62b1d04

Browse files
Make sgacls attribute optional (#10)
1 parent abbee8f commit 62b1d04

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

docs/resources/trustsec_egress_matrix_cell.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This resource can manage a TrustSec Egress Matrix Cell.
1515
```terraform
1616
resource "ise_trustsec_egress_matrix_cell" "example" {
1717
description = "EgressMatrixCell Description"
18+
default_rule = "NONE"
1819
matrix_cell_status = "ENABLED"
1920
sgacls = ["26b76b10-66e6-11ee-9cc1-9eb2a3ecc82a, 9d64dcd0-6384-11ee-9cc1-9eb2a3ecc82a"]
2021
source_sgt_id = "93c66ed0-8c01-11e6-996c-525400b48521"
@@ -28,7 +29,6 @@ resource "ise_trustsec_egress_matrix_cell" "example" {
2829
### Required
2930

3031
- `destination_sgt_id` (String) Destination Trustsec Security Group ID
31-
- `sgacls` (List of String) List of TrustSec Security Groups ACLs
3232
- `source_sgt_id` (String) Source Trustsec Security Group ID
3333

3434
### Optional
@@ -40,6 +40,7 @@ resource "ise_trustsec_egress_matrix_cell" "example" {
4040
- `matrix_cell_status` (String) Matrix Cell Status
4141
- Choices: `DISABLED`, `ENABLED`, `MONITOR`
4242
- Default value: `DISABLED`
43+
- `sgacls` (List of String) List of TrustSec Security Groups ACLs
4344

4445
### Read-Only
4546

examples/resources/ise_trustsec_egress_matrix_cell/resource.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
resource "ise_trustsec_egress_matrix_cell" "example" {
22
description = "EgressMatrixCell Description"
3+
default_rule = "NONE"
34
matrix_cell_status = "ENABLED"
45
sgacls = ["26b76b10-66e6-11ee-9cc1-9eb2a3ecc82a, 9d64dcd0-6384-11ee-9cc1-9eb2a3ecc82a"]
56
source_sgt_id = "93c66ed0-8c01-11e6-996c-525400b48521"

gen/definitions/trustsec_egress_matrix_cell.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ attributes:
1515
type: String
1616
enum_values: [NONE, DENY_IP, PERMIT_IP]
1717
description: "Can be used only if sgacls not specified."
18-
example: "PERMIT_IP"
18+
example: "NONE"
1919
default_value: "NONE"
20-
exclude_test: true
20+
minimum_test_value: '"PERMIT_IP"'
2121
- model_name: matrixCellStatus
2222
data_path: [EgressMatrixCell]
2323
type: String
@@ -28,7 +28,6 @@ attributes:
2828
- model_name: sgacls
2929
data_path: [EgressMatrixCell]
3030
tf_name: sgacls
31-
mandatory: true
3231
type: StringList
3332
test_value: "[ise_trustsec_security_group_acl.test.id]"
3433
description: List of TrustSec Security Groups ACLs

internal/provider/data_source_ise_trustsec_egress_matrix_cell_test.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_ise_trustsec_egress_matrix_cell.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_ise_trustsec_egress_matrix_cell_test.go

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)