Skip to content
v2.278.0

DomainNameConfigurationProperty Struct ​

The DomainNameConfiguration property type specifies the configuration for an API's domain name.

DomainNameConfiguration is a property of the AWS::ApiGatewayV2::DomainName resource.

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 domainNameConfigurationProperty: apigatewayv2.CfnDomainName.DomainNameConfigurationProperty = {
  certificateArn: 'certificateArn',
  certificateName: 'certificateName',
  endpointType: 'endpointType',
  ipAddressType: 'ipAddressType',
  ownershipVerificationCertificateArn: 'ownershipVerificationCertificateArn',
  securityPolicy: 'securityPolicy',
};
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_configuration_property = apigatewayv2.CfnDomainName.DomainNameConfigurationProperty(
    certificate_arn="certificateArn",
    certificate_name="certificateName",
    endpoint_type="endpointType",
    ip_address_type="ipAddressType",
    ownership_verification_certificate_arn="ownershipVerificationCertificateArn",
    security_policy="securityPolicy"
)
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.*;

DomainNameConfigurationProperty domainNameConfigurationProperty = DomainNameConfigurationProperty.builder()
        .certificateArn("certificateArn")
        .certificateName("certificateName")
        .endpointType("endpointType")
        .ipAddressType("ipAddressType")
        .ownershipVerificationCertificateArn("ownershipVerificationCertificateArn")
        .securityPolicy("securityPolicy")
        .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 domainNameConfigurationProperty = new DomainNameConfigurationProperty {
    CertificateArn = "certificateArn",
    CertificateName = "certificateName",
    EndpointType = "endpointType",
    IpAddressType = "ipAddressType",
    OwnershipVerificationCertificateArn = "ownershipVerificationCertificateArn",
    SecurityPolicy = "securityPolicy"
};
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"

domainNameConfigurationProperty := &DomainNameConfigurationProperty{
	CertificateArn: jsii.String("certificateArn"),
	CertificateName: jsii.String("certificateName"),
	EndpointType: jsii.String("endpointType"),
	IpAddressType: jsii.String("ipAddressType"),
	OwnershipVerificationCertificateArn: jsii.String("ownershipVerificationCertificateArn"),
	SecurityPolicy: jsii.String("securityPolicy"),
}

Properties ​

certificateArnoptionalstringcertificate_arnoptionalstrcertificateArnoptionalStringCertificateArnoptionalstringCertificateArnoptional*string #
An AWS -managed certificate that will be used by the edge-optimized endpoint for this domain name.

AWS Certificate Manager is the only supported source.

certificateNameoptionalstringcertificate_nameoptionalstrcertificateNameoptionalStringCertificateNameoptionalstringCertificateNameoptional*string #
The user-friendly name of the certificate that will be used by the edge-optimized endpoint for this domain name.
endpointTypeoptionalstringendpoint_typeoptionalstrendpointTypeoptionalStringEndpointTypeoptionalstringEndpointTypeoptional*string #
The endpoint type.
ipAddressTypeoptionalstringip_address_typeoptionalstripAddressTypeoptionalStringIpAddressTypeoptionalstringIpAddressTypeoptional*string #
The IP address types that can invoke the domain name.

Use ipv4 to allow only IPv4 addresses to invoke your domain name, or use dualstack to allow both IPv4 and IPv6 addresses to invoke your domain name.

ownershipVerificationCertificateArnoptionalstringownership_verification_certificate_arnoptionalstrownershipVerificationCertificateArnoptionalStringOwnershipVerificationCertificateArnoptionalstringOwnershipVerificationCertificateArnoptional*string #
The Amazon resource name (ARN) for the public certificate issued by Certificate Manager .

This ARN is used to validate custom domain ownership. It's required only if you configure mutual TLS and use either an ACM-imported or a private CA certificate ARN as the regionalCertificateArn.

securityPolicyoptionalstringsecurity_policyoptionalstrsecurityPolicyoptionalStringSecurityPolicyoptionalstringSecurityPolicyoptional*string #
The Transport Layer Security (TLS) version of the security policy for this domain name.

The valid values are TLS_1_0 and TLS_1_2 .