From 8259223cf94440fab3c9331993e659c816a3f04b Mon Sep 17 00:00:00 2001 From: Olexandr Lytvyn Date: Fri, 2 Aug 2024 15:32:14 +0300 Subject: [PATCH] Update cloudconnexa_user resource --- cloudconnexa/resource_user.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cloudconnexa/resource_user.go b/cloudconnexa/resource_user.go index 6bfef0e..2ee2f14 100644 --- a/cloudconnexa/resource_user.go +++ b/cloudconnexa/resource_user.go @@ -29,20 +29,20 @@ func resourceUser() *schema.Resource { }, "email": { Type: schema.TypeString, - Optional: true, - ValidateFunc: validation.StringLenBetween(0, 120), + Required: true, + ValidateFunc: validation.StringLenBetween(1, 120), Description: "An invitation to CloudConnexa account will be sent to this email. It will include an initial password and a VPN setup guide.", }, "first_name": { Type: schema.TypeString, - Optional: true, - ValidateFunc: validation.StringLenBetween(0, 20), + Required: true, + ValidateFunc: validation.StringLenBetween(1, 20), Description: "User's first name.", }, "last_name": { Type: schema.TypeString, - Optional: true, - ValidateFunc: validation.StringLenBetween(0, 20), + Required: true, + ValidateFunc: validation.StringLenBetween(1, 20), Description: "User's last name.", }, "group_id": {