Skip to content
v2.278.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_appsync as appsync } from 'aws-cdk-lib';
const cfnDomainNameProps: appsync.CfnDomainNameProps = {
  certificateArn: 'certificateArn',
  domainName: 'domainName',

  // the properties below are optional
  description: 'description',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appsync as appsync

cfn_domain_name_props = appsync.CfnDomainNameProps(
    certificate_arn="certificateArn",
    domain_name="domainName",

    # the properties below are optional
    description="description",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.appsync.*;

CfnDomainNameProps cfnDomainNameProps = CfnDomainNameProps.builder()
        .certificateArn("certificateArn")
        .domainName("domainName")

        // the properties below are optional
        .description("description")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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.AppSync;

var cfnDomainNameProps = new CfnDomainNameProps {
    CertificateArn = "certificateArn",
    DomainName = "domainName",

    // the properties below are optional
    Description = "description",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnDomainNameProps := &CfnDomainNameProps{
	CertificateArn: jsii.String("certificateArn"),
	DomainName: jsii.String("domainName"),

	// the properties below are optional
	Description: jsii.String("description"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

certificateArnstringcertificate_arnstrcertificateArnStringCertificateArnstringCertificateArn*string required #
The Amazon Resource Name (ARN) of the certificate.

This will be an Certificate Manager certificate.

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The decription for your domain name.
domainNamestringdomain_namestrdomainNameStringDomainNamestringDomainName*string required #
The domain name.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A set of tags (key-value pairs) for this domain name.