Skip to content
v2.274.0

CfnDomainNameProps Struct ​

Properties for defining a CfnDomainName.

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 cfnDomainNameProps: apigatewayv2.CfnDomainNameProps = {
  domainName: 'domainName',

  // the properties below are optional
  domainNameConfigurations: [{
    certificateArn: 'certificateArn',
    certificateName: 'certificateName',
    endpointType: 'endpointType',
    ipAddressType: 'ipAddressType',
    ownershipVerificationCertificateArn: 'ownershipVerificationCertificateArn',
    securityPolicy: 'securityPolicy',
  }],
  mutualTlsAuthentication: {
    truststoreUri: 'truststoreUri',
    truststoreVersion: 'truststoreVersion',
  },
  routingMode: 'routingMode',
  tags: {
    tagsKey: 'tags',
  },
};

Properties ​

domainNamestringdomain_namestrdomainNameStringDomainNamestringDomainName*stringrequired#
The custom domain name for your API in Amazon API Gateway.

Uppercase letters and the underscore ( _ ) character are not supported.

domainNameConfigurationsIResolvable | IResolvable | CfnDomainName.DomainNameConfigurationProperty[]domain_name_configurationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DomainNameConfigurationProperty]]]domainNameConfigurationsIResolvableDomainNameConfigurationsIResolvableDomainNameConfigurationsinterface{}#
The domain name configurations.
mutualTlsAuthenticationIResolvable | CfnDomainName.MutualTlsAuthenticationPropertymutual_tls_authenticationtyping.Union[IResolvable, MutualTlsAuthenticationProperty]mutualTlsAuthenticationIResolvableMutualTlsAuthenticationIResolvableMutualTlsAuthenticationinterface{}#
The mutual TLS authentication configuration for a custom domain name.
routingModestringrouting_modestrroutingModeStringRoutingModestringRoutingMode*string= "API_MAPPING_ONLY"#
The routing mode API Gateway uses to route traffic to your APIs.
tags{ [key: string]: string }tagstyping.Mapping[str, str]tagsMap<String, String>TagsIDictionary<string, string>Tags*map[string]*string#
The collection of tags associated with a domain name.