From 8a133780c6dc3114a286691d0025ab5a4ca117ea Mon Sep 17 00:00:00 2001 From: Richard Joerger <131180173+richard-joerger-aiven@users.noreply.github.com> Date: Tue, 14 May 2024 11:13:55 -0500 Subject: [PATCH] docs(mirromaker): added valid options for config (#1722) --- docs/data-sources/mirrormaker_replication_flow.md | 2 +- docs/resources/mirrormaker_replication_flow.md | 2 +- .../sdkprovider/service/kafka/mirrormaker_replication_flow.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/data-sources/mirrormaker_replication_flow.md b/docs/data-sources/mirrormaker_replication_flow.md index 3a74ce62f..f4164b6fb 100644 --- a/docs/data-sources/mirrormaker_replication_flow.md +++ b/docs/data-sources/mirrormaker_replication_flow.md @@ -37,7 +37,7 @@ data "aiven_mirrormaker_replication_flow" "f1" { - `emit_heartbeats_enabled` (Boolean) Whether to emit heartbeats to the target cluster. The default value is `false`. - `enable` (Boolean) Enable of disable replication flows for a service. - `id` (String) The ID of this resource. -- `offset_syncs_topic_location` (String) Offset syncs topic location. +- `offset_syncs_topic_location` (String) Offset syncs topic location. Possible values are `source` & `target`. There is no default value. - `replication_policy_class` (String) Replication policy class. The possible values are `org.apache.kafka.connect.mirror.DefaultReplicationPolicy` and `org.apache.kafka.connect.mirror.IdentityReplicationPolicy`. The default value is `org.apache.kafka.connect.mirror.DefaultReplicationPolicy`. - `sync_group_offsets_enabled` (Boolean) Sync consumer group offsets. The default value is `false`. - `sync_group_offsets_interval_seconds` (Number) Frequency of consumer group offset sync. The default value is `1`. diff --git a/docs/resources/mirrormaker_replication_flow.md b/docs/resources/mirrormaker_replication_flow.md index f750498b7..89a592703 100644 --- a/docs/resources/mirrormaker_replication_flow.md +++ b/docs/resources/mirrormaker_replication_flow.md @@ -38,7 +38,7 @@ resource "aiven_mirrormaker_replication_flow" "f1" { ### Required - `enable` (Boolean) Enable of disable replication flows for a service. -- `offset_syncs_topic_location` (String) Offset syncs topic location. +- `offset_syncs_topic_location` (String) Offset syncs topic location. Possible values are `source` & `target`. There is no default value. - `project` (String) The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. - `replication_policy_class` (String) Replication policy class. The possible values are `org.apache.kafka.connect.mirror.DefaultReplicationPolicy` and `org.apache.kafka.connect.mirror.IdentityReplicationPolicy`. The default value is `org.apache.kafka.connect.mirror.DefaultReplicationPolicy`. - `service_name` (String) The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource. diff --git a/internal/sdkprovider/service/kafka/mirrormaker_replication_flow.go b/internal/sdkprovider/service/kafka/mirrormaker_replication_flow.go index 830e30416..e1bf5c31e 100644 --- a/internal/sdkprovider/service/kafka/mirrormaker_replication_flow.go +++ b/internal/sdkprovider/service/kafka/mirrormaker_replication_flow.go @@ -104,7 +104,7 @@ var aivenMirrorMakerReplicationFlowSchema = map[string]*schema.Schema{ "offset_syncs_topic_location": { Type: schema.TypeString, Required: true, - Description: "Offset syncs topic location.", + Description: "Offset syncs topic location. Possible values are `source` & `target`. There is no default value.", ValidateFunc: validation.StringInSlice([]string{"source", "target"}, false), }, }