---
type: resource-type
title: DomainNameV2
description: aws resource type AWS::ApiGateway::DomainNameV2
name: DomainNameV2
lexicon: aws
resource_type: AWS::ApiGateway::DomainNameV2
---
`AWS::ApiGateway::DomainNameV2`, a resource type of the aws lexicon.

## Properties

- `CertificateArn` (`string`, optional)
- `DomainName` (`string`, optional)
- `DomainNameArn` (`string`, optional): The amazon resource name (ARN) of the domain name resource.
- `DomainNameId` (`string`, optional)
- `EndpointAccessMode` (`string`, optional)
- `EndpointConfiguration` (`DomainNameV2_EndpointConfiguration`, optional)
- `Policy` (`Record<string, unknown>`, optional)
- `RoutingMode` (`"BASE_PATH_MAPPING_ONLY" | "ROUTING_RULE_ONLY" | "ROUTING_RULE_THEN_BASE_PATH_MAPPING"`, optional): The valid routing modes are [BASE_PATH_MAPPING_ONLY], [ROUTING_RULE_THEN_BASE_PATH_MAPPING] and [ROUTING_RULE_ONLY]. All other inputs are invalid.
- `SecurityPolicy` (`string`, optional)
- `Tags` (`DomainNameV2_Tag[]`, optional)

## Attributes

- `DomainNameArn`
- `DomainNameId`
