Class CfnDomainName
The AWS::ApiGatewayV2::DomainName
resource specifies a custom domain name for your API in Amazon API Gateway (API Gateway).
Inherited Members
Namespace: Amazon.CDK.AWS.Apigatewayv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDomainName : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnDomainName
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
You can use a custom domain name to provide a URL that's more intuitive and easier to recall. For more information about using custom domain names, see Set up Custom Domain Name for an API in API Gateway in the API Gateway Developer Guide .
CloudformationResource: AWS::ApiGatewayV2::DomainName
ExampleMetadata: fixture=_generated
Examples
// 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 cfnDomainName = new CfnDomainName(this, "MyCfnDomainName", new CfnDomainNameProps {
DomainName = "domainName",
// the properties below are optional
DomainNameConfigurations = new [] { new DomainNameConfigurationProperty {
CertificateArn = "certificateArn",
CertificateName = "certificateName",
EndpointType = "endpointType",
OwnershipVerificationCertificateArn = "ownershipVerificationCertificateArn",
SecurityPolicy = "securityPolicy"
} },
MutualTlsAuthentication = new MutualTlsAuthenticationProperty {
TruststoreUri = "truststoreUri",
TruststoreVersion = "truststoreVersion"
},
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
});
Synopsis
Constructors
CfnDomainName(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnDomainName(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnDomainName(Construct, String, ICfnDomainNameProps) |
Properties
AttrRegionalDomainName | The domain name associated with the regional endpoint for this custom domain name. |
AttrRegionalHostedZoneId | The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DomainName | The custom domain name for your API in Amazon API Gateway. |
DomainNameConfigurations | The domain name configurations. |
MutualTlsAuthentication | The mutual TLS authentication configuration for a custom domain name. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | The collection of tags associated with a domain name. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnDomainName(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnDomainName(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnDomainName(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnDomainName(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnDomainName(Construct, String, ICfnDomainNameProps)
public CfnDomainName(Construct scope, string id, ICfnDomainNameProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnDomainNameProps
Resource properties.
Properties
AttrRegionalDomainName
The domain name associated with the regional endpoint for this custom domain name.
public virtual string AttrRegionalDomainName { get; }
Property Value
System.String
Remarks
You set up this association by adding a DNS record that points the custom domain name to this regional domain name.
CloudformationAttribute: RegionalDomainName
AttrRegionalHostedZoneId
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint.
public virtual string AttrRegionalHostedZoneId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: RegionalHostedZoneId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DomainName
The custom domain name for your API in Amazon API Gateway.
public virtual string DomainName { get; set; }
Property Value
System.String
DomainNameConfigurations
The domain name configurations.
public virtual object DomainNameConfigurations { get; set; }
Property Value
System.Object
MutualTlsAuthentication
The mutual TLS authentication configuration for a custom domain name.
public virtual object MutualTlsAuthentication { get; set; }
Property Value
System.Object
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The collection of tags associated with a domain name.
public virtual IDictionary<string, string> TagsRaw { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>