# DomainNameAttributes

custom domain name attributes.

Used as argument in: [DomainName.fromDomainNameAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.DomainName.html#fromdomainnameattributes)

- Source: [`aws-apigatewayv2/lib/common/domain-name.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/common/domain-name.ts#L70)
- Type last changed: v2.112.0 · 1 Dec 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const domainNameAttributes: apigatewayv2.DomainNameAttributes = {
  name: 'name',
  regionalDomainName: 'regionalDomainName',
  regionalHostedZoneId: 'regionalHostedZoneId',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigatewayv2 as apigatewayv2

domain_name_attributes = apigatewayv2.DomainNameAttributes(
    name="name",
    regional_domain_name="regionalDomainName",
    regional_hosted_zone_id="regionalHostedZoneId"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;

DomainNameAttributes domainNameAttributes = DomainNameAttributes.builder()
        .name("name")
        .regionalDomainName("regionalDomainName")
        .regionalHostedZoneId("regionalHostedZoneId")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Apigatewayv2;

var domainNameAttributes = new DomainNameAttributes {
    Name = "name",
    RegionalDomainName = "regionalDomainName",
    RegionalHostedZoneId = "regionalHostedZoneId"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

domainNameAttributes := &DomainNameAttributes{
	Name: jsii.String("name"),
	RegionalDomainName: jsii.String("regionalDomainName"),
	RegionalHostedZoneId: jsii.String("regionalHostedZoneId"),
}
```

## Properties

- `name`: string (required) — domain name string.

- `regionalDomainName`: string (required) — The domain name associated with the regional endpoint for this custom domain name.

- `regionalHostedZoneId`: string (required) — The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint.
