func ElasticsearchSchema()

in ec/ecresource/deploymentresource/elasticsearch/v1/schema.go [44:98]


func ElasticsearchSchema() schema.Attribute {
	return schema.ListNestedAttribute{
		Description: "Required Elasticsearch resource definition",
		Required:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: map[string]schema.Attribute{
				"autoscale": schema.StringAttribute{
					Description: `Enable or disable autoscaling. Defaults to the setting coming from the deployment template. Accepted values are "true" or "false".`,
					Computed:    true,
					Optional:    true,
				},
				"ref_id": schema.StringAttribute{
					Description: "Optional ref_id to set on the Elasticsearch resource",
					Optional:    true,
					Computed:    true,
				},
				"resource_id": schema.StringAttribute{
					Description: "The Elasticsearch resource unique identifier",
					Computed:    true,
				},
				"region": schema.StringAttribute{
					Description: "The Elasticsearch resource region",
					Computed:    true,
				},
				"cloud_id": schema.StringAttribute{
					Description: "The encoded Elasticsearch credentials to use in Beats or Logstash",
					Computed:    true,
				},
				"http_endpoint": schema.StringAttribute{
					Description: "The Elasticsearch resource HTTP endpoint",
					Computed:    true,
				},
				"https_endpoint": schema.StringAttribute{
					Description: "The Elasticsearch resource HTTPs endpoint",
					Computed:    true,
				},
				"topology": ElasticsearchTopologySchema(),

				"trust_account": ElasticsearchTrustAccountSchema(),

				"trust_external": ElasticsearchTrustExternalSchema(),

				"config": ElasticsearchConfigSchema(),

				"remote_cluster": ElasticsearchRemoteClusterSchema(),

				"snapshot_source": ElasticsearchSnapshotSourceSchema(),

				"extension": ElasticsearchExtensionSchema(),

				"strategy": ElasticsearchStrategySchema(),
			},
		},
	}
}