func elasticsearchResourceInfoSchema()

in ec/ecdatasource/deploymentdatasource/schema_elasticsearch.go [28:76]


func elasticsearchResourceInfoSchema() schema.Attribute {
	return schema.ListNestedAttribute{
		Description: "Instance configuration of the Elasticsearch Elasticsearch resource.",
		Computed:    true,
		Validators:  []validator.List{listvalidator.SizeAtMost(1)},
		NestedObject: schema.NestedAttributeObject{
			Attributes: map[string]schema.Attribute{
				"autoscale": schema.StringAttribute{
					Description: "Whether or not Elasticsearch autoscaling is enabled.",
					Computed:    true,
				},
				"healthy": schema.BoolAttribute{
					Description: "Elasticsearch resource health status.",
					Computed:    true,
				},
				"cloud_id": schema.StringAttribute{
					Description:         "The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.",
					MarkdownDescription: "The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana. See [Configure Beats and Logstash with Cloud ID](https://www.elastic.co/guide/en/cloud/current/ec-cloud-id.html) for more information.",
					Computed:            true,
				},
				"http_endpoint": schema.StringAttribute{
					Description: "HTTP endpoint for the Elasticsearch resource.",
					Computed:    true,
				},
				"https_endpoint": schema.StringAttribute{
					Description: "HTTPS endpoint for the Elasticsearch resource.",
					Computed:    true,
				},
				"ref_id": schema.StringAttribute{
					Description: "A locally-unique friendly alias for this Elasticsearch cluster.",
					Computed:    true,
				},
				"resource_id": schema.StringAttribute{
					Description: "The resource unique identifier.",
					Computed:    true,
				},
				"status": schema.StringAttribute{
					Description: "Elasticsearch resource status (for example, \"started\", \"stopped\", etc).",
					Computed:    true,
				},
				"version": schema.StringAttribute{
					Description: "Elastic stack version.",
					Computed:    true,
				},
				"topology": elasticsearchTopologySchema(),
			},
		},
	}
}