Class CfnDomainNameProps
- Namespace
- Amazon.CDK.AWS.APIGateway
- Assembly
- Amazon.CDK.AWS.APIGateway.dll
Properties for defining a CfnDomainName
.
public class CfnDomainNameProps : ICfnDomainNameProps
- Inheritance
-
CfnDomainNameProps
- Implements
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;
var cfnDomainNameProps = new CfnDomainNameProps {
CertificateArn = "certificateArn",
DomainName = "domainName",
EndpointConfiguration = new EndpointConfigurationProperty {
Types = new [] { "types" }
},
MutualTlsAuthentication = new MutualTlsAuthenticationProperty {
TruststoreUri = "truststoreUri",
TruststoreVersion = "truststoreVersion"
},
OwnershipVerificationCertificateArn = "ownershipVerificationCertificateArn",
RegionalCertificateArn = "regionalCertificateArn",
SecurityPolicy = "securityPolicy",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Remarks
ExampleMetadata: fixture=_generated
Constructors
CfnDomainNameProps()
public CfnDomainNameProps()
Properties
CertificateArn
The reference to an AWS -managed certificate that will be used by edge-optimized endpoint for this domain name.
public string? CertificateArn { get; set; }
Property Value
Remarks
AWS Certificate Manager is the only supported source.
DomainName
The custom domain name as an API host name, for example, my-api.example.com
.
public string? DomainName { get; set; }
Property Value
Remarks
EndpointConfiguration
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
public object? EndpointConfiguration { get; set; }
Property Value
Remarks
MutualTlsAuthentication
The mutual TLS authentication configuration for a custom domain name.
public object? MutualTlsAuthentication { get; set; }
Property Value
Remarks
If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.
OwnershipVerificationCertificateArn
The ARN of the public certificate issued by ACM to validate ownership of your custom domain.
public string? OwnershipVerificationCertificateArn { get; set; }
Property Value
Remarks
Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the RegionalCertificateArn.
RegionalCertificateArn
The reference to an AWS -managed certificate that will be used for validating the regional domain name.
public string? RegionalCertificateArn { get; set; }
Property Value
Remarks
AWS Certificate Manager is the only supported source.
SecurityPolicy
The Transport Layer Security (TLS) version + cipher suite for this DomainName.
public string? SecurityPolicy { get; set; }
Property Value
Remarks
The valid values are TLS_1_0
and TLS_1_2
.
Tags
The collection of tags.
public ICfnTag[]? Tags { get; set; }
Property Value
- ICfnTag[]
Remarks
Each tag element is associated with a given resource.