# SubDomainSettingProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `branchName`: string (required) — The branch name setting for the subdomain.

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

  *Pattern:* (?s).+

- `prefix`: string (required) — The prefix setting for the subdomain.
