Skip to content
v2.278.0

CustomEndpointOptions Struct ​

Configures a custom domain endpoint for the ES domain.

Example ​

ts
new es.Domain(this, 'Domain', {
  version: es.ElasticsearchVersion.V7_7,
  customEndpoint: {
    domainName: 'search.example.com',
  },
});
python
es.Domain(self, "Domain",
    version=es.ElasticsearchVersion.V7_7,
    custom_endpoint=es.CustomEndpointOptions(
        domain_name="search.example.com"
    )
)
java
Domain.Builder.create(this, "Domain")
        .version(ElasticsearchVersion.V7_7)
        .customEndpoint(CustomEndpointOptions.builder()
                .domainName("search.example.com")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new Domain(this, "Domain", new DomainProps {
    Version = ElasticsearchVersion.V7_7,
    CustomEndpoint = new CustomEndpointOptions {
        DomainName = "search.example.com"
    }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
es.NewDomain(this, jsii.String("Domain"), &DomainProps{
	Version: es.ElasticsearchVersion_V7_7(),
	CustomEndpoint: &CustomEndpointOptions{
		DomainName: jsii.String("search.example.com"),
	},
})

Properties ​

certificateoptionalICertificateRefcertificateoptionalICertificateRefcertificateoptionalICertificateRefCertificateoptionalICertificateRefCertificateoptionalICertificateRef deprecated #
use opensearchservice module instead

Default: create a new one

domainNamestringdomain_namestrdomainNameStringDomainNamestringDomainName*string required deprecated #
use opensearchservice module instead
hostedZoneoptionalIHostedZonehosted_zoneoptionalIHostedZonehostedZoneoptionalIHostedZoneHostedZoneoptionalIHostedZoneHostedZoneoptionalIHostedZone deprecated #
use opensearchservice module instead

Default: do not create a CNAME