# DomainAttributes

Reference to an Elasticsearch domain.

Used as argument in: [Domain.fromDomainAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticsearch.Domain.html#fromdomainattributes)

- Source: [`aws-elasticsearch/lib/domain.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-elasticsearch/lib/domain.ts#L1356)
- Type last changed: v2.17.0 · 17 Mar 2022

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticsearch as elasticsearch } from 'aws-cdk-lib';
const domainAttributes: elasticsearch.DomainAttributes = {
  domainArn: 'domainArn',
  domainEndpoint: 'domainEndpoint',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticsearch as elasticsearch

domain_attributes = elasticsearch.DomainAttributes(
    domain_arn="domainArn",
    domain_endpoint="domainEndpoint"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticsearch.*;

DomainAttributes domainAttributes = DomainAttributes.builder()
        .domainArn("domainArn")
        .domainEndpoint("domainEndpoint")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Elasticsearch;

var domainAttributes = new DomainAttributes {
    DomainArn = "domainArn",
    DomainEndpoint = "domainEndpoint"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

domainAttributes := &DomainAttributes{
	DomainArn: jsii.String("domainArn"),
	DomainEndpoint: jsii.String("domainEndpoint"),
}
```

## Properties

- `domainArn`: string (required) — use opensearchservice module instead

- `domainEndpoint`: string (required) — use opensearchservice module instead
