in ec/ecdatasource/deploymentdatasource/schema.go [28:74]
func (d *DataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
resp.Schema = schema.Schema{
Description: "Use this data source to retrieve information about an existing Elastic Cloud deployment.",
Attributes: map[string]schema.Attribute{
"alias": schema.StringAttribute{
Description: "Deployment alias.",
Computed: true,
},
"healthy": schema.BoolAttribute{
Description: "Overall health status of the deployment.",
Computed: true,
},
"id": schema.StringAttribute{
Description: "The unique ID of the deployment.",
Required: true,
},
"name": schema.StringAttribute{
Description: "The name of the deployment.",
Computed: true,
},
"region": schema.StringAttribute{
Description: "Region where the deployment is hosted.",
Computed: true,
},
"deployment_template_id": schema.StringAttribute{
Description: "ID of the deployment template this deployment is based off.",
Computed: true,
},
"traffic_filter": schema.ListAttribute{
ElementType: types.StringType,
Description: "Traffic filter block, which contains a list of traffic filter rule identifiers.",
Computed: true,
},
"tags": schema.MapAttribute{
ElementType: types.StringType,
Description: "Key value map of arbitrary string tags.",
Computed: true,
},
"observability": observabilitySettingsSchema(),
"elasticsearch": elasticsearchResourceInfoSchema(),
"kibana": kibanaResourceInfoSchema(),
"apm": apmResourceInfoSchema(),
"integrations_server": integrationsServerResourceInfoSchema(),
"enterprise_search": enterpriseSearchResourceInfoSchema(),
},
}
}