Skip to content
v2.278.0

DomainNameAttributes Struct ​

custom domain name attributes.

Example ​

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
# 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
// 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();
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"
};
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 ​

namestringnamestrnameStringNamestringName*string required #
domain name string.
regionalDomainNamestringregional_domain_namestrregionalDomainNameStringRegionalDomainNamestringRegionalDomainName*string required #
The domain name associated with the regional endpoint for this custom domain name.
regionalHostedZoneIdstringregional_hosted_zone_idstrregionalHostedZoneIdStringRegionalHostedZoneIdstringRegionalHostedZoneId*string required #
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint.