Skip to content

Commit f3c73c4

Browse files
committed
fix(scf): invoke support qualifier option
1 parent 1821701 commit f3c73c4

File tree

4 files changed

+3
-112
lines changed

4 files changed

+3
-112
lines changed

__tests__/scf.sp.test.ts

Lines changed: 0 additions & 112 deletions
This file was deleted.

src/modules/scf/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const CONFIGS = {
22
defaultNamespace: 'default',
3+
defaultQualifier: '$LATEST',
34
defaultMemorySize: 128,
45
defaultTimeout: 3,
56
defaultInitTimeout: 3,

src/modules/scf/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ export default class Scf {
432432
const Response = await this.request({
433433
Action: 'Invoke',
434434
FunctionName: inputs.functionName,
435+
Qualifier: inputs.qualifier ?? CONFIGS.defaultQualifier,
435436
Namespace: inputs.namespace ?? CONFIGS.defaultNamespace,
436437
ClientContext: JSON.stringify(inputs.clientContext ?? {}),
437438
LogType: inputs.logType ?? 'Tail',

src/modules/scf/interface.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ export interface ScfRemoveInputs {
286286
export interface ScfInvokeInputs {
287287
functionName: string;
288288
namespace?: string;
289+
qualifier?: string;
289290
logType?: string;
290291
clientContext?: any;
291292
invocationType?: string;

0 commit comments

Comments
 (0)