@aws-lite/lambda-types 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +21 -0
- package/package.json +16 -3
package/index.d.ts
CHANGED
|
@@ -2,8 +2,11 @@ import {
|
|
|
2
2
|
/* ! Do not remove IMPORTS_START / IMPORTS_END ! */
|
|
3
3
|
// $IMPORTS_START
|
|
4
4
|
CreateFunctionCommandOutput as CreateFunctionResponse,
|
|
5
|
+
DeleteFunctionConcurrencyCommandOutput as DeleteFunctionConcurrencyResponse,
|
|
5
6
|
GetFunctionConfigurationCommandOutput as GetFunctionConfigurationResponse,
|
|
6
7
|
InvokeCommandOutput as InvokeResponse,
|
|
8
|
+
PutFunctionConcurrencyCommandOutput as PutFunctionConcurrencyResponse,
|
|
9
|
+
UpdateFunctionCodeCommandOutput as UpdateFunctionCodeResponse,
|
|
7
10
|
UpdateFunctionConfigurationCommandOutput as UpdateFunctionConfigurationResponse,
|
|
8
11
|
// $IMPORTS_END
|
|
9
12
|
} from "@aws-sdk/client-lambda";
|
|
@@ -17,6 +20,12 @@ declare interface AwsLiteLambda {
|
|
|
17
20
|
* - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#CreateFunction Lambda: CreateFunction}
|
|
18
21
|
*/
|
|
19
22
|
CreateFunction: (input: { Code: Record<string, any>, FunctionName: string, Role: string, Architectures?: any[], CodeSigningConfigArn?: string, DeadLetterConfig?: Record<string, any>, Description?: string, Environment?: Record<string, any>, EphemeralStorage?: Record<string, any>, FileSystemConfigs?: any[], Handler?: string, ImageConfig?: Record<string, any>, KMSKeyArn?: string, Layers?: any[], MemorySize?: number, PackageType?: string, Publish?: boolean, Runtime?: string, SnapStart?: Record<string, any>, Tags?: any[], Timeout?: number, TracingConfig?: Record<string, any>, VpcConfig?: Record<string, any> }) => Promise<CreateFunctionResponse>
|
|
23
|
+
/**
|
|
24
|
+
* @description
|
|
25
|
+
* - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteFunctionConcurrency.html Lambda: DeleteFunctionConcurrency}
|
|
26
|
+
* - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteFunctionConcurrency Lambda: DeleteFunctionConcurrency}
|
|
27
|
+
*/
|
|
28
|
+
DeleteFunctionConcurrency: (input: { FunctionName: string }) => Promise<DeleteFunctionConcurrencyResponse>
|
|
20
29
|
/**
|
|
21
30
|
* @description
|
|
22
31
|
* - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionConfiguration.html Lambda: GetFunctionConfiguration}
|
|
@@ -29,6 +38,18 @@ declare interface AwsLiteLambda {
|
|
|
29
38
|
* - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#Invoke Lambda: Invoke}
|
|
30
39
|
*/
|
|
31
40
|
Invoke: (input: { FunctionName: string, InvocationType?: string, Payload: array,object, LogType?: string, ClientContext?: string, Qualifier?: string }) => Promise<InvokeResponse>
|
|
41
|
+
/**
|
|
42
|
+
* @description
|
|
43
|
+
* - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_PutFunctionConcurrency.html Lambda: PutFunctionConcurrency}
|
|
44
|
+
* - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#PutFunctionConcurrency Lambda: PutFunctionConcurrency}
|
|
45
|
+
*/
|
|
46
|
+
PutFunctionConcurrency: (input: { FunctionName: string, ReservedConcurrentExecutions: number }) => Promise<PutFunctionConcurrencyResponse>
|
|
47
|
+
/**
|
|
48
|
+
* @description
|
|
49
|
+
* - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_UpdateFunctionCode.html Lambda: UpdateFunctionCode}
|
|
50
|
+
* - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#UpdateFunctionCode Lambda: UpdateFunctionCode}
|
|
51
|
+
*/
|
|
52
|
+
UpdateFunctionCode: (input: { FunctionName: string, Architectures?: any[], DryRun?: string, ImageUri?: string, Publish?: boolean, RevisionId?: string, S3Bucket?: string, S3Key?: string, S3ObjectVersion?: string, ZipFile?: string,object }) => Promise<UpdateFunctionCodeResponse>
|
|
32
53
|
/**
|
|
33
54
|
* @description
|
|
34
55
|
* - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_UpdateFunctionConfiguration.html Lambda: UpdateFunctionConfiguration}
|
package/package.json
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-lite/lambda-types",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Type definitions for the `@aws-lite/lambda` plugin",
|
|
5
|
+
"homepage": "https://aws-lite.org/services/lambda",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/architect/aws-lite.git",
|
|
9
|
+
"directory": "plugins/lambda/types"
|
|
10
|
+
},
|
|
11
|
+
"bugs": "https://github.com/architect/aws-lite/issues",
|
|
5
12
|
"main": "",
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=16"
|
|
15
|
+
},
|
|
16
|
+
"author": "@architect",
|
|
17
|
+
"license": "Apache-2.0",
|
|
6
18
|
"types": "index.d.ts",
|
|
7
19
|
"files": [
|
|
8
20
|
"index.d.ts"
|
|
9
21
|
],
|
|
10
22
|
"dependencies": {
|
|
11
23
|
"@aws-sdk/client-lambda": "3"
|
|
12
|
-
}
|
|
24
|
+
},
|
|
25
|
+
"scripts": {}
|
|
13
26
|
}
|