# VpcEndpointServiceDomainNameProps

Properties to configure a VPC Endpoint Service domain name.

Used as props by: [VpcEndpointServiceDomainName](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53.VpcEndpointServiceDomainName.html)

- Source: [`aws-route53/lib/vpc-endpoint-service-domain-name.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-route53/lib/vpc-endpoint-service-domain-name.ts#L14)
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```ts
import { PublicHostedZone, VpcEndpointServiceDomainName } from 'aws-cdk-lib/aws-route53';
declare const zone: PublicHostedZone;
declare const vpces: ec2.VpcEndpointService;

new VpcEndpointServiceDomainName(this, 'EndpointDomain', {
  endpointService: vpces,
  domainName: 'my-stuff.aws-cdk.dev',
  publicHostedZone: zone,
});
```

Python:

```python
from aws_cdk.aws_route53 import PublicHostedZone, VpcEndpointServiceDomainName
# zone: PublicHostedZone
# vpces: ec2.VpcEndpointService

VpcEndpointServiceDomainName(self, "EndpointDomain",
    endpoint_service=vpces,
    domain_name="my-stuff.aws-cdk.dev",
    public_hosted_zone=zone
)
```

Java:

```java
import software.amazon.awscdk.services.route53.PublicHostedZone;
import software.amazon.awscdk.services.route53.VpcEndpointServiceDomainName;
PublicHostedZone zone;
VpcEndpointService vpces;

VpcEndpointServiceDomainName.Builder.create(this, "EndpointDomain")
        .endpointService(vpces)
        .domainName("my-stuff.aws-cdk.dev")
        .publicHostedZone(zone)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
using Amazon.CDK.AWS.Route53;
PublicHostedZone zone;
VpcEndpointService vpces;

new VpcEndpointServiceDomainName(this, "EndpointDomain", new VpcEndpointServiceDomainNameProps {
    EndpointService = vpces,
    DomainName = "my-stuff.aws-cdk.dev",
    PublicHostedZone = zone
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
import "github.com/aws/aws-cdk-go/awscdk"
var zone PublicHostedZone
var vpces VpcEndpointService

awscdk.NewVpcEndpointServiceDomainName(this, jsii.String("EndpointDomain"), &VpcEndpointServiceDomainNameProps{
	EndpointService: vpces,
	DomainName: jsii.String("my-stuff.aws-cdk.dev"),
	PublicHostedZone: zone,
})
```

## Properties

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

  This domain name must be owned by this account (registered through Route53),
  or delegated to this account. Domain ownership will be verified by AWS before
  private DNS can be used.

- `endpointService`: [IVPCEndpointServiceRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IVPCEndpointServiceRef.html) (required) — The VPC Endpoint Service to configure Private DNS for.

- `publicHostedZone`: [IPublicHostedZone](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53.IPublicHostedZone.html) (required) — The public hosted zone to use for the domain.
