AWS::ApiGateway::DomainNameV2The `AWS::ApiGateway::DomainNameV2` resource specifies a custom domain name for your private APIs in API Gateway. You can use a private custom domain name to provide a URL for your private API that's more intuitive and easier to recall.
import { CfnDomainNameV2 } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.CfnDomainNameV2Configuration passed to the constructor as CfnDomainNameV2Props.
certificateArnOptionalstringThe reference to an AWS -managed certificate that will be used by the private endpoint for this domain name. AWS Certificate Manager is the only supported source.
domainNameOptionalstringRepresents a custom domain name as a user-friendly host name of an API (RestApi).
endpointAccessModeOptionalstringThe endpoint access mode for your DomainName.
endpointConfigurationOptionalIResolvable | EndpointConfigurationPropertyThe endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it.
policyOptionalanyA stringified JSON policy document that applies to the `execute-api` service for this DomainName regardless of the caller and Method configuration. You can use `Fn::ToJsonString` to enter your `policy` . For more information, see [Fn::ToJsonString](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ToJsonString.html) .
routingModeOptionalstringThe routing mode for this domain name. The routing mode determines how API Gateway sends traffic from your custom domain name to your private APIs.
Default: - "BASE_PATH_MAPPING_ONLY"
securityPolicyOptionalstringThe Transport Layer Security (TLS) version + cipher suite for this DomainName.
tagsOptionalCfnTag[]The collection of tags. Each tag element is associated with a given resource.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigatewayAWS::ApiGateway::DomainNameV2