From 2e6f72beba5a398b8430cc8300496bf2458c7daf Mon Sep 17 00:00:00 2001 From: bansal01yash Date: Mon, 27 Jan 2025 12:06:58 +0000 Subject: [PATCH] Changed allowlist description to optional --- docs/resources/allow_list.md | 2 +- managed/resource_allow_list.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/allow_list.md b/docs/resources/allow_list.md index a46e29d..3583302 100644 --- a/docs/resources/allow_list.md +++ b/docs/resources/allow_list.md @@ -24,12 +24,12 @@ resource "ybm_allow_list" "example_allow_list" { ### Required -- `allow_list_description` (String) The description of the allow list. - `allow_list_name` (String) The name of the allow list. - `cidr_list` (Set of String) The CIDR list of the allow list. ### Optional +- `allow_list_description` (String) The description of the allow list. - `allow_list_id` (String) The ID of the allow list. Created automatically when an allow list is created. Use this ID to get a specific allow list. ### Read-Only diff --git a/managed/resource_allow_list.go b/managed/resource_allow_list.go index 83a1daa..48852e3 100644 --- a/managed/resource_allow_list.go +++ b/managed/resource_allow_list.go @@ -52,7 +52,7 @@ func (r resourceAllowListType) GetSchema(_ context.Context) (tfsdk.Schema, diag. "allow_list_description": { Description: "The description of the allow list.", Type: types.StringType, - Required: true, + Optional: true, PlanModifiers: tfsdk.AttributePlanModifiers{tfsdk.RequiresReplace()}, }, "cidr_list": {