Skip to content

Commit 60286c5

Browse files
authored
Merge pull request #475 from SumoLogic/ksb-remove-partitions-datatier-regex-check
SUMO-201782: remove regex check from terrafrom partition data dier field
2 parents 0522190 + 0eb163b commit 60286c5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sumologic/resource_sumologic_partition.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ func resourceSumologicPartition() *schema.Resource {
3030
ValidateFunc: validation.StringLenBetween(1, 16384),
3131
},
3232
"analytics_tier": {
33-
Type: schema.TypeString,
34-
Optional: true,
35-
ValidateFunc: validation.StringInSlice([]string{"continuous", "frequent", "infrequent"}, false),
36-
Default: "continuous",
33+
Type: schema.TypeString,
34+
Optional: true,
3735
},
3836
"retention_period": {
3937
Type: schema.TypeInt,

sumologic/resource_sumologic_partition_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ resource "sumologic_partition" "foo" {
9191
routing_expression = "_sourcecategory=*/Terraform"
9292
is_compliant = false
9393
retention_period = 30
94+
analytics_tier = "continuous"
9495
}
9596
`, testName)
9697
}
@@ -102,6 +103,7 @@ resource "sumologic_partition" "foo" {
102103
routing_expression = "_sourcecategory=*/Terraform"
103104
retention_period = 365
104105
is_compliant = false
106+
analytics_tier = "continuous"
105107
}
106108
`, testName)
107109
}

website/docs/r/partition.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The following arguments are supported:
2727

2828
- `name` - (Required, Forces new resource) The name of the partition.
2929
- `routing_expression` - (Required) The query that defines the data to be included in the partition.
30-
- `analytics_tier` - (Required) The Cloud Flex analytics tier for your data; only relevant if your account has basic analytics enabled. Possible values are: `continuous`, `frequent`, `infrequent`
30+
- `analytics_tier` - (Optional) The cloud flex analytics tier for your data; only relevant if your account has basic analytics enabled. If no value is supplied, partition will be created in continuous tier. Other possible values are : "frequent" and "infrequent".
3131
- `retention_period` - (Optional) The number of days to retain data in the partition, or -1 to use the default value for your account. Only relevant if your account has variable retention enabled.
3232
- `is_compliant` - (Optional) Whether the partition is compliant or not. Mark a partition as compliant if it contains data used for compliance or audit purpose. Retention for a compliant partition can only be increased and cannot be reduced after the partition is marked compliant. A partition once marked compliant, cannot be marked non-compliant later.
3333
- `reduce_retention_period_immediately` - (Optional) This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.

0 commit comments

Comments
 (0)