# CustomEndpointOptions

Configures a custom domain endpoint for the Amazon OpenSearch Service domain.

- Source: [`aws-opensearchservice/lib/domain.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-opensearchservice/lib/domain.ts#L410)
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

```ts
new Domain(this, 'Domain', {
  version: EngineVersion.OPENSEARCH_1_0,
  customEndpoint: {
    domainName: 'search.example.com',
  },
});
```

## Properties

- `certificate`: [ICertificateRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_certificatemanager.ICertificateRef.html) — The certificate to use.

  **Default:** create a new one

- `domainName`: string (required) — The custom domain name to assign.

- `hostedZone`: [IHostedZone](/cdk/api/v2/docs/aws-cdk-lib.aws_route53.IHostedZone.html) — The hosted zone in Route53 to create the CNAME record in.

  **Default:** do not create a CNAME
