From 8baa5b6c1b1f3f22c0e1a9bb8592e5b3273e1462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Gergely?= <16577123+gregito@users.noreply.github.com> Date: Wed, 23 Aug 2023 17:36:17 +0200 Subject: [PATCH] CDPCP-10291 - datalake instancegroup recipe names should be a set instead of a string (#53) --- docs/resources/datalake_aws_datalake.md | 6 +++++- docs/resources/datalake_azure_datalake.md | 6 +++++- resources/datalake/schema_aws_datalake.go | 4 ++-- resources/datalake/schema_azure_datalake.go | 4 ++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/resources/datalake_aws_datalake.md b/docs/resources/datalake_aws_datalake.md index 8e67ade0..da9cdb2c 100644 --- a/docs/resources/datalake_aws_datalake.md +++ b/docs/resources/datalake_aws_datalake.md @@ -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)) + + +### Nested Schema for `recipes.recipe_names` + diff --git a/docs/resources/datalake_azure_datalake.md b/docs/resources/datalake_azure_datalake.md index a36b2ed6..7e658fa2 100644 --- a/docs/resources/datalake_azure_datalake.md +++ b/docs/resources/datalake_azure_datalake.md @@ -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)) + + +### Nested Schema for `recipes.recipe_names` + diff --git a/resources/datalake/schema_aws_datalake.go b/resources/datalake/schema_aws_datalake.go index 6e3fa074..cf3639ed 100644 --- a/resources/datalake/schema_aws_datalake.go +++ b/resources/datalake/schema_aws_datalake.go @@ -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{ @@ -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, }, }, diff --git a/resources/datalake/schema_azure_datalake.go b/resources/datalake/schema_azure_datalake.go index 63309d02..172f394b 100644 --- a/resources/datalake/schema_azure_datalake.go +++ b/resources/datalake/schema_azure_datalake.go @@ -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{ @@ -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, }, },