// Code generated by user config generator. DO NOT EDIT.

package serviceintegration

import (
	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

	"github.com/aiven/terraform-provider-aiven/internal/sdkprovider/userconfig/diff"
)

func clickhouseCredentialsUserConfig() *schema.Schema {
	return &schema.Schema{
		Description:      "ClickhouseCredentials user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later",
		DiffSuppressFunc: diff.SuppressUnchanged,
		Elem: &schema.Resource{Schema: map[string]*schema.Schema{"grants": {
			Description: "Grants to assign",
			Elem: &schema.Resource{Schema: map[string]*schema.Schema{"user": {
				Description: "User or role to assign the grant to. Example: `alice`.",
				Required:    true,
				Type:        schema.TypeString,
			}}},
			MaxItems: 64,
			Optional: true,
			Type:     schema.TypeList,
		}}},
		MaxItems: 1,
		Optional: true,
		Type:     schema.TypeList,
	}
}
