Skip to content

Commit

Permalink
docs: add deprecation notice to account and authentication resources
Browse files Browse the repository at this point in the history
  • Loading branch information
staceysalamon-aiven committed Feb 25, 2024
1 parent 2694b32 commit c739c2c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
7 changes: 5 additions & 2 deletions docs/resources/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
page_title: "aiven_account Resource - terraform-provider-aiven"
subcategory: ""
description: |-
The Account resource allows the creation and management of an Aiven Account.
Creates and manages an Aiven account.
This resource is deprecated. Use aiven_organization instead.
---

# aiven_account (Resource)

The Account resource allows the creation and management of an Aiven Account.
Creates and manages an Aiven account.

**This resource is deprecated.** Use `aiven_organization` instead.

## Example Usage

Expand Down
7 changes: 5 additions & 2 deletions docs/resources/account_authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
page_title: "aiven_account_authentication Resource - terraform-provider-aiven"
subcategory: ""
description: |-
The Account Authentication resource allows the creation and management of an Aiven Account Authentications.
This resource is deprecated.
Creates and manages an authentication method.
---

# aiven_account_authentication (Resource)

The Account Authentication resource allows the creation and management of an Aiven Account Authentications.
**This resource is deprecated**.

Creates and manages an authentication method.

## Example Usage

Expand Down
7 changes: 5 additions & 2 deletions internal/sdkprovider/service/account/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ var aivenAccountSchema = map[string]*schema.Schema{

func ResourceAccount() *schema.Resource {
return &schema.Resource{
Description: "The Account resource allows the creation and management of an Aiven Account.",
Description: `Creates and manages an Aiven account.
**This resource is deprecated.** Use ` + "`aiven_organization`" + ` instead.
`,
CreateContext: resourceAccountCreate,
ReadContext: resourceAccountRead,
UpdateContext: resourceAccountUpdate,
Expand All @@ -75,7 +78,7 @@ func ResourceAccount() *schema.Resource {

Schema: aivenAccountSchema,

DeprecationMessage: "This resource will be removed in v5.0.0, use aiven_organization instead.",
DeprecationMessage: "This resource will be removed in v5.0.0. Use aiven_organization instead.",
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ var aivenAccountAuthenticationSchema = map[string]*schema.Schema{

func ResourceAccountAuthentication() *schema.Resource {
return &schema.Resource{
Description: "The Account Authentication resource allows the creation and management of an Aiven Account Authentications.",
Description: `**This resource is deprecated**.
Creates and manages an authentication method.
`,
CreateContext: resourceAccountAuthenticationCreate,
ReadContext: resourceAccountAuthenticationRead,
UpdateContext: resourceAccountAuthenticationUpdate,
Expand All @@ -155,7 +158,7 @@ func ResourceAccountAuthentication() *schema.Resource {
Timeouts: schemautil.DefaultResourceTimeouts(),

Schema: aivenAccountAuthenticationSchema,
DeprecationMessage: "This resource is deprecated",
DeprecationMessage: "This resource is deprecated.",
}
}

Expand Down

0 comments on commit c739c2c

Please sign in to comment.