From 7dc91267cc9b09c2eaf43da878f6c09bfc7d99d0 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Mon, 7 Nov 2022 10:09:44 +0100 Subject: [PATCH] [2/4] Deprecate api_user field in auth0_email resource (#392) --- docs/resources/email.md | 2 +- internal/provider/resource_auth0_email.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/resources/email.md b/docs/resources/email.md index d989f462d..26adca64d 100644 --- a/docs/resources/email.md +++ b/docs/resources/email.md @@ -74,7 +74,7 @@ Optional: - `access_key_id` (String, Sensitive) AWS Access Key ID. Used only for AWS. - `api_key` (String, Sensitive) API Key for your email service. Will always be encrypted in our database. -- `api_user` (String) API User for your email service. +- `api_user` (String, Deprecated) API User for your email service. - `domain` (String) Domain name. - `region` (String) Default region. Used only for AWS, Mailgun, and SparkPost. - `secret_access_key` (String, Sensitive) AWS Secret Key. Will always be encrypted in our database. Used only for AWS. diff --git a/internal/provider/resource_auth0_email.go b/internal/provider/resource_auth0_email.go index d2ce12fec..3a71dae62 100644 --- a/internal/provider/resource_auth0_email.go +++ b/internal/provider/resource_auth0_email.go @@ -60,6 +60,7 @@ func newEmail() *schema.Resource { "api_user": { Type: schema.TypeString, Optional: true, + Deprecated: "This field is not accepted by the API any more so it will be removed soon.", Description: "API User for your email service.", }, "api_key": {