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

package serviceintegrationendpoint

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

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

func externalAwsCloudwatchMetricsUserConfig() *schema.Schema {
	return &schema.Schema{
		Description:      "ExternalAwsCloudwatchMetrics 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{
			"access_key": {
				Description: "AWS access key. Required permissions are cloudwatch:PutMetricData. Example: `AAAAAAAAAAAAAAAAAAAA`.",
				Required:    true,
				Type:        schema.TypeString,
			},
			"namespace": {
				Description: "AWS CloudWatch Metrics Namespace. Example: `my-metrics-namespace`.",
				Required:    true,
				Type:        schema.TypeString,
			},
			"region": {
				Description: "AWS region. Example: `us-east-1`.",
				Required:    true,
				Type:        schema.TypeString,
			},
			"secret_key": {
				Description: "AWS secret key. Example: `AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA`.",
				Required:    true,
				Sensitive:   true,
				Type:        schema.TypeString,
			},
		}},
		MaxItems: 1,
		Optional: true,
		Type:     schema.TypeList,
	}
}
