> **Experimental**
>
> `@aws-cdk/aws-amplify-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# SubDomain

Sub domain settings.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/domain.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-amplify-alpha/lib/domain.ts#L213)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as amplify_alpha from '@aws-cdk/aws-amplify-alpha';

declare const branch: amplify_alpha.Branch;
const subDomain: amplify_alpha.SubDomain = {
  branch: branch,

  // the properties below are optional
  prefix: 'prefix',
};
```

## Properties

- `branch`: [IBranch](/cdk/api/v2/docs/@aws-cdk_aws-amplify-alpha.IBranch.html) (required) — The branch.

- `prefix`: string — The prefix.

  **Default:** the branch name

  Use '' to map to the root of the domain
