# ElasticClientsElasticsearchSettings

- Kind: `class`
- Package: [Aspire.Elastic.Clients.Elasticsearch](/reference/api/csharp/aspire.elastic.clients.elasticsearch.md)
- Version: `13.3.0`
- Namespace: `Aspire.Elastic.Clients.Elasticsearch`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/elastic/elastic-aspire-dotnet/blob/cb75438c68bc9385b00564d69ba8f537c26a696d/src/Aspire.Elastic.Clients.Elasticsearch/ElasticClientsElasticsearchSettings.cs)

Provides the client configuration settings for connecting to a Elasticsearch using Elastic.Clients.Elasticsearch.

## Definition

```csharp
namespace Aspire.Elastic.Clients.Elasticsearch;

public sealed class ElasticClientsElasticsearchSettings
{
    // ...
}
```

## Constructors

- [ElasticClientsElasticsearchSettings](/reference/api/csharp/aspire.elastic.clients.elasticsearch/elasticclientselasticsearchsettings/constructors.md#constructor)

## Properties

- [ApiKey](/reference/api/csharp/aspire.elastic.clients.elasticsearch/elasticclientselasticsearchsettings/properties.md#apikey) : `string?` `get; set` -- The API Key of the Elastic Cloud to connect to.
- [CloudId](/reference/api/csharp/aspire.elastic.clients.elasticsearch/elasticclientselasticsearchsettings/properties.md#cloudid) : `string?` `get; set` -- The CloudId of the Elastic Cloud to connect to.
- [DisableHealthChecks](/reference/api/csharp/aspire.elastic.clients.elasticsearch/elasticclientselasticsearchsettings/properties.md#disablehealthchecks) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the Elasticsearch health check is disabled or not.
- [DisableTracing](/reference/api/csharp/aspire.elastic.clients.elasticsearch/elasticclientselasticsearchsettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
- [Endpoint](/reference/api/csharp/aspire.elastic.clients.elasticsearch/elasticclientselasticsearchsettings/properties.md#endpoint) : `Uri?` `get; set` -- The endpoint URI string of the Elasticsearch to connect to.
- [HealthCheckTimeout](/reference/api/csharp/aspire.elastic.clients.elasticsearch/elasticclientselasticsearchsettings/properties.md#healthchecktimeout) : `int?` `get; set` -- Gets or sets a integer value that indicates the Elasticsearch health check timeout in milliseconds.
