Skip to content

Commit 9a4b40d

Browse files
committed
Rename properties and adjusted optional. Code review suggestions
1 parent 30f7530 commit 9a4b40d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/@aws-cdk/aws-amplify/lib/domain.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export interface DomainOptions {
2727
*
2828
* @default false
2929
*/
30-
readonly domainEnableAutoSubDomain: boolean;
30+
readonly enableAutoSubdomain?: boolean;
3131

3232
/**
3333
* Branches which should automatically create subdomains
3434
*
3535
* @default - all repository branches *, pr*
3636
*/
37-
readonly domainAutoSubDomainCreationPatterns?: string[];
37+
readonly autoSubdomainCreationPatterns?: string[];
3838
}
3939

4040
/**
@@ -120,8 +120,8 @@ export class Domain extends Resource {
120120
appId: props.app.appId,
121121
domainName,
122122
subDomainSettings: Lazy.any({ produce: () => this.renderSubDomainSettings() }, { omitEmptyArray: true }),
123-
enableAutoSubDomain: !!props.domainEnableAutoSubDomain,
124-
autoSubDomainCreationPatterns: props.domainAutoSubDomainCreationPatterns,
123+
enableAutoSubDomain: !!props.enableAutoSubdomain,
124+
autoSubDomainCreationPatterns: props.autoSubdomainCreationPatterns,
125125
});
126126

127127
this.arn = domain.attrArn;

0 commit comments

Comments
 (0)