Skip to content
v2.277.0

SubDomainSettingProperty Struct ​

The SubDomainSetting property type enables you to connect a subdomain (for example, example.exampledomain.com) to a specific branch.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplify as amplify } from 'aws-cdk-lib';
const subDomainSettingProperty: amplify.CfnDomain.SubDomainSettingProperty = {
  branchName: 'branchName',
  prefix: 'prefix',
};
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_amplify as amplify

sub_domain_setting_property = amplify.CfnDomain.SubDomainSettingProperty(
    branch_name="branchName",
    prefix="prefix"
)
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.amplify.*;

SubDomainSettingProperty subDomainSettingProperty = SubDomainSettingProperty.builder()
        .branchName("branchName")
        .prefix("prefix")
        .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.Amplify;

var subDomainSettingProperty = new SubDomainSettingProperty {
    BranchName = "branchName",
    Prefix = "prefix"
};
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"

subDomainSettingProperty := &SubDomainSettingProperty{
	BranchName: jsii.String("branchName"),
	Prefix: jsii.String("prefix"),
}

Properties ​

branchNamestringbranch_namestrbranchNameStringBranchNamestringBranchName*stringrequired#
The branch name setting for the subdomain.

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: (?s).+

prefixstringprefixstrprefixStringPrefixstringPrefix*stringrequired#
The prefix setting for the subdomain.