diff --git a/clickhouse/datasource.go b/clickhouse/datasource.go index 1aceb8ad..2a52bfb0 100644 --- a/clickhouse/datasource.go +++ b/clickhouse/datasource.go @@ -12,8 +12,9 @@ import ( ) const ( - CloudProviderGCP = "gcp" CloudProviderAWS = "aws" + CloudProviderGCP = "gcp" + CloudProviderAzure = "azure" ) // Ensure the implementation satisfies the desired interfaces. @@ -50,10 +51,10 @@ func (d *privateEndpointConfigDataSource) Schema(ctx context.Context, req dataso resp.Schema = schema.Schema{ Attributes: map[string]schema.Attribute{ "cloud_provider": schema.StringAttribute{ - Description: "The cloud provider for the private endpoint. Valid values are 'aws' or 'gcp'.", + Description: "The cloud provider for the private endpoint. Valid values are 'aws', 'gcp', or 'azure'.", Required: true, Validators: []validator.String{ - stringvalidator.OneOf(CloudProviderAWS, CloudProviderGCP), + stringvalidator.OneOf(CloudProviderAWS, CloudProviderGCP, CloudProviderAzure), }, }, "region": schema.StringAttribute{ diff --git a/clickhouse/service.go b/clickhouse/service.go index c10fbae9..4b97b403 100644 --- a/clickhouse/service.go +++ b/clickhouse/service.go @@ -114,7 +114,7 @@ func (r *ServiceResource) Schema(_ context.Context, _ resource.SchemaRequest, re Sensitive: true, }, "cloud_provider": schema.StringAttribute{ - Description: "Cloud provider ('aws' or 'gcp') in which the service is deployed in.", + Description: "Cloud provider ('aws', 'gcp', or 'azure') in which the service is deployed in.", Required: true, }, "region": schema.StringAttribute{ diff --git a/docs/data-sources/private_endpoint_config.md b/docs/data-sources/private_endpoint_config.md index cb777671..ec212328 100644 --- a/docs/data-sources/private_endpoint_config.md +++ b/docs/data-sources/private_endpoint_config.md @@ -3,25 +3,19 @@ page_title: "clickhouse_private_endpoint_config Data Source - clickhouse" subcategory: "" description: |- - --- # clickhouse_private_endpoint_config (Data Source) - - - - + ## Schema ### Required -- `cloud_provider` (String) The cloud provider for the private endpoint. Valid values are 'aws' or 'gcp'. +- `cloud_provider` (String) The cloud provider for the private endpoint. Valid values are 'aws', 'gcp', or 'azure'. - `region` (String) The region for the private endpoint. Valid values are specific to the cloud provider i.e. us-east-2 ### Read-Only - `endpoint_service_id` (String) The ID of the private endpoint that is used to securely connect to ClickHouse. This is a read-only attribute. - - diff --git a/docs/resources/service.md b/docs/resources/service.md index 4536fec4..78d9300d 100644 --- a/docs/resources/service.md +++ b/docs/resources/service.md @@ -3,21 +3,17 @@ page_title: "clickhouse_service Resource - clickhouse" subcategory: "" description: |- - --- # clickhouse_service (Resource) - - - - + ## Schema ### Required -- `cloud_provider` (String) Cloud provider ('aws' or 'gcp') in which the service is deployed in. +- `cloud_provider` (String) Cloud provider ('aws', 'gcp', or 'azure') in which the service is deployed in. - `ip_access` (Attributes List) List of IP addresses allowed to access the service. (see [below for nested schema](#nestedatt--ip_access)) - `name` (String) User defined identifier for the service. - `region` (String) Region within the cloud provider in which the service is deployed in. @@ -43,6 +39,7 @@ description: |- - `private_endpoint_config` (Attributes) Service config for private endpoints (see [below for nested schema](#nestedatt--private_endpoint_config)) + ### Nested Schema for `ip_access` Required: @@ -53,8 +50,8 @@ Optional: - `description` (String) Description of the IP address. - + ### Nested Schema for `endpoints` Read-Only: @@ -63,13 +60,11 @@ Read-Only: - `port` (Number) Endpoint port. - `protocol` (String) Endpoint protocol: https or nativesecure - + ### Nested Schema for `private_endpoint_config` Read-Only: - `endpoint_service_id` (String) Unique identifier of the interface endpoint you created in your VPC with the AWS(Service Name) or GCP(Target Service) resource - `private_dns_hostname` (String) Private DNS Hostname of the VPC you created - -