Skip to content

Commit

Permalink
Deprecating resource okta_template_email
Browse files Browse the repository at this point in the history
  • Loading branch information
monde committed May 5, 2022
1 parent 9e4ebd1 commit 2c82723
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions okta/resource_okta_template_email.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ var (

func resourceTemplateEmail() *schema.Resource {
return &schema.Resource{
CreateContext: resourceTemplateEmailCreate,
ReadContext: resourceTemplateEmailRead,
UpdateContext: resourceTemplateEmailUpdate,
DeleteContext: resourceTemplateEmailDelete,
DeprecationMessage: "Resource okta_template_email utilizes a private Okta API whose behavior may change or even removed. Resource okta_template_emal has been replaced by resource okta_email_customization which is supported by public Okta API.",
CreateContext: resourceTemplateEmailCreate,
ReadContext: resourceTemplateEmailRead,
UpdateContext: resourceTemplateEmailUpdate,
DeleteContext: resourceTemplateEmailDelete,
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/template_email.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ description: |-

# okta_template_email

** This resource is deprecated. Swith over to the email_customization resource.

Creates an Okta Email Template.

This resource allows you to create and configure an Okta Email Template.
Expand Down

0 comments on commit 2c82723

Please sign in to comment.