# VpcEndpointServiceDomainName

A Private DNS configuration for a VPC endpoint service.

Extends: [Construct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Construct.html) › VpcEndpointServiceDomainName
Implements: [IConstruct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IConstruct.html), [IDependable](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IDependable.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#L40)

## 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,
})
```

## Initializer

TypeScript:

```ts
new VpcEndpointServiceDomainName(scope: Construct, id: string, props: VpcEndpointServiceDomainNameProps)
```

Python:

```python
VpcEndpointServiceDomainName(scope: Construct, id: str, props: VpcEndpointServiceDomainNameProps)
```

Java:

```java
new VpcEndpointServiceDomainName(Construct scope, String id, VpcEndpointServiceDomainNameProps props)
```

C# / .NET:

```csharp
new VpcEndpointServiceDomainName(Construct scope, string id, VpcEndpointServiceDomainNameProps props)
```

Golang:

```go
NewVpcEndpointServiceDomainName(Scope Construct, Id *string, Props VpcEndpointServiceDomainNameProps)
```

## Construct Props

- `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.

## Properties

- `domainName`: string — The domain name associated with the private DNS configuration.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

## Methods

- `isConstruct(x: any): boolean` (static) — Checks if `x` is a construct.

  Use this method instead of `instanceof` to properly detect `Construct`
  instances, even when the construct library is symlinked.

  Explanation: in JavaScript, multiple copies of the `constructs` library on
  disk are seen as independent, completely different libraries. As a
  consequence, the class `Construct` in each copy of the `constructs` library
  is seen as a different class, and an instance of one class will not test as
  `instanceof` the other class. `npm install` will not create installations
  like this, but users may manually symlink construct libraries together or
  use a monorepo tool: in those cases, multiple copies of the `constructs`
  library can be accidentally installed, and `instanceof` will behave
  unpredictably. It is safest to avoid using `instanceof`, and using
  this type-testing method instead.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Construct`.

- `toString(): string` — Returns a string representation of this construct.

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.
  Use multiple `with()` calls if subsequent mixins should apply to added
  constructs.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
