Commit b197351 1 parent cbed348 commit b197351 Copy full SHA for b197351
File tree 1 file changed +16
-0
lines changed
packages/@aws-cdk/aws-amplify/lib
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,20 @@ export interface DomainOptions {
21
21
* @default - use `addSubDomain()` to add subdomains
22
22
*/
23
23
readonly subDomains ?: SubDomain [ ] ;
24
+
25
+ /**
26
+ * Automatically create subdomains for connected branches
27
+ *
28
+ * @default false
29
+ */
30
+ readonly domainEnableAutoSubDomain : boolean ;
31
+
32
+ /**
33
+ * Branches which should automatically create subdomains
34
+ *
35
+ * @default - all repository branches *, pr*
36
+ */
37
+ readonly domainAutoSubDomainCreationPatterns ?: string [ ] ;
24
38
}
25
39
26
40
/**
@@ -106,6 +120,8 @@ export class Domain extends Resource {
106
120
appId : props . app . appId ,
107
121
domainName,
108
122
subDomainSettings : Lazy . any ( { produce : ( ) => this . renderSubDomainSettings ( ) } , { omitEmptyArray : true } ) ,
123
+ enableAutoSubDomain : ! ! props . domainEnableAutoSubDomain ,
124
+ autoSubDomainCreationPatterns : props . domainAutoSubDomainCreationPatterns ,
109
125
} ) ;
110
126
111
127
this . arn = domain . attrArn ;
You can’t perform that action at this time.
0 commit comments