Skip to content

Commit

Permalink
CDPCP-10291 - datalake instancegroup recipe names should be a set ins…
Browse files Browse the repository at this point in the history
…tead of a string (#53)
  • Loading branch information
gregito committed Sep 12, 2023
1 parent 42fb7b4 commit 8baa5b6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
6 changes: 5 additions & 1 deletion docs/resources/datalake_aws_datalake.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ Optional:
Required:

- `instance_group_name` (String)
- `recipe_names` (String)
- `recipe_names` (Attributes Set) (see [below for nested schema](#nestedatt--recipes--recipe_names))

<a id="nestedatt--recipes--recipe_names"></a>
### Nested Schema for `recipes.recipe_names`



<a id="nestedatt--cloudera_manager"></a>
Expand Down
6 changes: 5 additions & 1 deletion docs/resources/datalake_azure_datalake.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ Optional:
Required:

- `instance_group_name` (String)
- `recipe_names` (String)
- `recipe_names` (Attributes Set) (see [below for nested schema](#nestedatt--recipes--recipe_names))

<a id="nestedatt--recipes--recipe_names"></a>
### Nested Schema for `recipes.recipe_names`



<a id="nestedatt--cloudera_manager"></a>
Expand Down
4 changes: 2 additions & 2 deletions resources/datalake/schema_aws_datalake.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types"
)

var awsDatalakeResourceSchema schema.Schema = schema.Schema{
var awsDatalakeResourceSchema = schema.Schema{
MarkdownDescription: "A Data Lake is a service which provides a protective ring around the data stored in a cloud object store, including authentication, authorization, and governance support.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Expand Down Expand Up @@ -307,7 +307,7 @@ var awsDatalakeResourceSchema schema.Schema = schema.Schema{
"instance_group_name": schema.StringAttribute{
Required: true,
},
"recipe_names": schema.StringAttribute{
"recipe_names": schema.SetNestedAttribute{
Required: true,
},
},
Expand Down
4 changes: 2 additions & 2 deletions resources/datalake/schema_azure_datalake.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types"
)

var azureDatalakeResourceSchema schema.Schema = schema.Schema{
var azureDatalakeResourceSchema = schema.Schema{
MarkdownDescription: "A Data Lake is a service which provides a protective ring around the data stored in a cloud object store, including authentication, authorization, and governance support.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Expand Down Expand Up @@ -287,7 +287,7 @@ var azureDatalakeResourceSchema schema.Schema = schema.Schema{
"instance_group_name": schema.StringAttribute{
Required: true,
},
"recipe_names": schema.StringAttribute{
"recipe_names": schema.SetNestedAttribute{
Required: true,
},
},
Expand Down

0 comments on commit 8baa5b6

Please sign in to comment.