@@ -16,15 +16,26 @@ export default class Sync {
1616 private fcSdk : FC ;
1717 private target : string ;
1818 private qualifier : string ;
19+ private disable_list_remote_eb_triggers : string ;
20+ private disable_list_remote_alb_triggers : string ;
1921
2022 constructor ( private inputs : IInputs ) {
2123 const {
2224 'target-dir' : target ,
2325 'function-name' : functionName ,
2426 qualifier,
2527 region,
28+ 'disable-list-remote-eb-triggers' : disable_list_remote_eb_triggers ,
29+ 'disable-list-remote-alb-triggers' : disable_list_remote_alb_triggers ,
2630 } = parseArgv ( inputs . args , {
27- string : [ 'target-dir' , 'function-name' , 'qualifier' , 'region' ] ,
31+ string : [
32+ 'target-dir' ,
33+ 'function-name' ,
34+ 'qualifier' ,
35+ 'region' ,
36+ 'disable-list-remote-eb-triggers' ,
37+ 'disable-list-remote-alb-triggers' ,
38+ ] ,
2839 alias : { 'assume-yes' : 'y' } ,
2940 } ) ;
3041
@@ -41,6 +52,10 @@ export default class Sync {
4152 checkRegion ( this . region ) ;
4253 this . functionName = functionName || _ . get ( inputs , 'props.functionName' ) ;
4354 logger . debug ( `function name: ${ this . functionName } ` ) ;
55+ this . disable_list_remote_eb_triggers = disable_list_remote_eb_triggers ;
56+ logger . debug ( `disable_list_remote_eb_triggers: ${ disable_list_remote_eb_triggers } ` ) ;
57+ this . disable_list_remote_alb_triggers = disable_list_remote_alb_triggers ;
58+ logger . debug ( `disable_list_remote_alb_triggers: ${ disable_list_remote_alb_triggers } ` ) ;
4459 if ( ! this . functionName ) {
4560 throw new Error ( 'Function name not specified, please specify --function-name' ) ;
4661 }
@@ -55,7 +70,11 @@ export default class Sync {
5570
5671 async getTriggers ( ) : Promise < any [ ] > {
5772 const result : any [ ] = [ ] ;
58- const triggers = await this . fcSdk . listTriggers ( this . functionName ) ;
73+ const triggers = await this . fcSdk . listTriggers (
74+ this . functionName ,
75+ this . disable_list_remote_eb_triggers ,
76+ this . disable_list_remote_alb_triggers ,
77+ ) ;
5978 logger . debug ( triggers ) ;
6079 for ( const t of triggers ) {
6180 const { triggerName, triggerType, description, qualifier, invocationRole, sourceArn } = t ;
0 commit comments