File tree Expand file tree Collapse file tree 6 files changed +21
-4
lines changed Expand file tree Collapse file tree 6 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,11 @@ export default class Apigw {
8080 } 
8181
8282 /** 部署 API 网关 */ 
83-  async  deploy ( inputs : ApigwDeployInputs )  { 
83+  async  deploy ( inputs : ApigwDeployInputs ) : Promise < ApigwDeployOutputs  |  undefined >  { 
84+  if  ( inputs . ignoreUpdate )  { 
85+  console . log ( 'API Gateway update ignored' ) ; 
86+  return ; 
87+  } 
8488 const  { 
8589 environment =  'release'  as  const , 
8690 oldState =  { } , 
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ export interface ApiDeployInputs {
181181} 
182182
183183export  interface  ApigwDeployInputs  extends  ApigwCreateServiceInputs ,  ApigwBindCustomDomainInputs  { 
184+  ignoreUpdate : boolean ; 
184185 region ?: RegionType ; 
185186 oldState ?: any ; 
186187 environment ?: EnviromentType ; 
Original file line number Diff line number Diff line change @@ -65,7 +65,11 @@ export default class Cdn {
6565 } 
6666
6767 /** 部署 CDN */ 
68-  async  deploy ( inputs : CdnDeployInputs )  { 
68+  async  deploy ( inputs : CdnDeployInputs ) : Promise < CdnOutputs  |  undefined >  { 
69+  if  ( inputs . ignoreUpdate )  { 
70+  console . log ( 'CDN update ignored' ) ; 
71+  return ; 
72+  } 
6973 await  openCdnService ( this . capi ) ; 
7074 const  {  oldState =  { }  }  =  inputs ; 
7175 delete  inputs . oldState ; 
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ export interface CertInfo {
1010export  interface  CdnDeployInputs  { 
1111 oldState ?: any ; 
1212
13+  ignoreUpdate ?: boolean ; 
14+ 
1315 area : string ; 
1416
1517 /** 是否等待 CDN 部署完毕 */ 
@@ -102,8 +104,9 @@ export interface CdnOutputs {
102104 domain : string ; 
103105 origins : string [ ] ; 
104106 cname : string ; 
105-  inputCache : string ; 
107+  inputCache ? : string ; 
106108 resourceId ?: string ; 
107109
108110 tags ?: TagInput [ ] ; 
111+  refreshUrls ?: string [ ] ; 
109112} 
Original file line number Diff line number Diff line change @@ -628,7 +628,11 @@ export default class Cos {
628628 return  `${ inputs . bucket } ${ this . region }  ; 
629629 } 
630630
631-  async  deploy ( inputs : CosDeployInputs  =  { } )  { 
631+  async  deploy ( inputs : CosDeployInputs  =  { } ) : Promise < CosDeployInputs  |  undefined >  { 
632+  if  ( inputs . ignoreUpdate )  { 
633+  console . log ( 'COS update ignored' ) ; 
634+  return ; 
635+  } 
632636 await  this . createBucket ( inputs ) ; 
633637 if  ( inputs . acl )  { 
634638 await  this . setAcl ( inputs ) ; 
Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ export interface CosDeployInputs
192192 CosSetLifecycleInputs , 
193193 CosSetVersioningInputs , 
194194 CosWebsiteInputs  { 
195+  ignoreUpdate ?: boolean ; 
195196 keyPrefix ?: string ; 
196197 rules ?: { 
197198 status ?: string ; 
                         You can’t perform that action at this time. 
           
                  
0 commit comments