CustomEndpointOptions Struct
Configures a custom domain endpoint for the Amazon OpenSearch Service domain.
| Source | aws-opensearchservice/lib/domain.ts |
|---|---|
| Type last changed |
Example
ts
new Domain(this, 'Domain', {
version: EngineVersion.OPENSEARCH_1_0,
customEndpoint: {
domainName: 'search.example.com',
},
});
python
from aws_cdk.aws_opensearchservice import CustomEndpointOptions
Domain(self, "Domain",
version=EngineVersion.OPENSEARCH_1_0,
custom_endpoint=CustomEndpointOptions(
domain_name="search.example.com"
)
)
java
Domain.Builder.create(this, "Domain")
.version(EngineVersion.OPENSEARCH_1_0)
.customEndpoint(CustomEndpointOptions.builder()
.domainName("search.example.com")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
new Domain(this, "Domain", new DomainProps {
Version = EngineVersion.OPENSEARCH_1_0,
CustomEndpoint = new CustomEndpointOptions {
DomainName = "search.example.com"
}
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
awscdk.NewDomain(this, jsii.String("Domain"), &DomainProps{
Version: awscdk.EngineVersion_OPENSEARCH_1_0(),
CustomEndpoint: &CustomEndpointOptions{
DomainName: jsii.String("search.example.com"),
},
})
Properties
certificateoptionalICertificateRefcertificateoptionalICertificateRefcertificateoptionalICertificateRefCertificateoptionalICertificateRefCertificateoptionalICertificateRef #The certificate to use.
Default: create a new one
The custom domain name to assign.
hostedZoneoptionalIHostedZonehosted_zoneoptionalIHostedZonehostedZoneoptionalIHostedZoneHostedZoneoptionalIHostedZoneHostedZoneoptionalIHostedZone #The hosted zone in Route53 to create the CNAME record in.
Default: do not create a CNAME