@aws-lite/lambda-types 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/index.d.ts +112 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -5,11 +5,19 @@ import {
5
5
  AddPermissionCommandOutput as AddPermissionResponse,
6
6
  CreateAliasCommandOutput as CreateAliasResponse,
7
7
  CreateCodeSigningConfigCommandOutput as CreateCodeSigningConfigResponse,
8
+ CreateEventSourceMappingCommandOutput as CreateEventSourceMappingResponse,
8
9
  CreateFunctionCommandOutput as CreateFunctionResponse,
10
+ CreateFunctionUrlConfigCommandOutput as CreateFunctionUrlConfigResponse,
9
11
  DeleteAliasCommandOutput as DeleteAliasResponse,
10
12
  DeleteCodeSigningConfigCommandOutput as DeleteCodeSigningConfigResponse,
11
13
  DeleteEventSourceMappingCommandOutput as DeleteEventSourceMappingResponse,
14
+ DeleteFunctionCommandOutput as DeleteFunctionResponse,
15
+ DeleteFunctionCodeSigningConfigCommandOutput as DeleteFunctionCodeSigningConfigResponse,
12
16
  DeleteFunctionConcurrencyCommandOutput as DeleteFunctionConcurrencyResponse,
17
+ DeleteFunctionEventInvokeConfigCommandOutput as DeleteFunctionEventInvokeConfigResponse,
18
+ DeleteFunctionUrlConfigCommandOutput as DeleteFunctionUrlConfigResponse,
19
+ DeleteLayerVersionCommandOutput as DeleteLayerVersionResponse,
20
+ DeleteProvisionedConcurrencyConfigCommandOutput as DeleteProvisionedConcurrencyConfigResponse,
13
21
  GetAccountSettingsCommandOutput as GetAccountSettingsResponse,
14
22
  GetAliasCommandOutput as GetAliasResponse,
15
23
  GetCodeSigningConfigCommandOutput as GetCodeSigningConfigResponse,
@@ -27,6 +35,12 @@ import {
27
35
  GetProvisionedConcurrencyConfigCommandOutput as GetProvisionedConcurrencyConfigResponse,
28
36
  GetRuntimeManagementConfigCommandOutput as GetRuntimeManagementConfigResponse,
29
37
  InvokeCommandOutput as InvokeResponse,
38
+ ListAliasesCommandOutput as ListAliasesResponse,
39
+ ListCodeSigningConfigsCommandOutput as ListCodeSigningConfigsResponse,
40
+ ListFunctionsCommandOutput as ListFunctionsResponse,
41
+ ListFunctionUrlConfigsCommandOutput as ListFunctionUrlConfigsResponse,
42
+ ListLayersCommandOutput as ListLayersResponse,
43
+ ListLayerVersionsCommandOutput as ListLayerVersionsResponse,
30
44
  PutFunctionConcurrencyCommandOutput as PutFunctionConcurrencyResponse,
31
45
  UpdateAliasCommandOutput as UpdateAliasResponse,
32
46
  UpdateFunctionCodeCommandOutput as UpdateFunctionCodeResponse,
@@ -61,12 +75,24 @@ declare interface AwsLiteLambda {
61
75
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#CreateCodeSigningConfig Lambda: CreateCodeSigningConfig}
62
76
  */
63
77
  CreateCodeSigningConfig: (input: { AllowedPublishers: Record<string, any>, CodeSigningPolicies?: Record<string, any>, Description?: string }) => Promise<CreateCodeSigningConfigResponse>
78
+ /**
79
+ * @description
80
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_CreateEventSourceMapping.html Lambda: CreateEventSourceMapping}
81
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#CreateEventSourceMapping Lambda: CreateEventSourceMapping}
82
+ */
83
+ CreateEventSourceMapping: (input: { FunctionName: string, AmazonManagedKafkaEventSourceConfig?: Record<string, any>, BatchSize?: number, BisectBatchOnFunctionError?: boolean, DestinationConfig?: Record<string, any>, DocumentDBEventSourceConfig?: Record<string, any>, Enabled?: boolean, EventSourceArn?: string, FilterCriteria?: Record<string, any>, FunctionResponseTypes?: any[], MaximumBatchingWindowInSeconds?: number, MaximumRecordAgeInSeconds?: number, MaximumRetryAttempts?: number, ParallelizationFactor?: number, Queues?: any[], ScalingConfig?: Record<string, any>, SelfManagedEventSource?: Record<string, any>, SelfManagedKafkaEventSourceConfig?: Record<string, any>, SourceAccessConfigurations?: any[], StartingPosition?: string, StartingPositionTimestamp?: Record<string, any>, Topics?: any[], TumblingWindowInSeconds?: number }) => Promise<CreateEventSourceMappingResponse>
64
84
  /**
65
85
  * @description
66
86
  * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html Lambda: CreateFunction}
67
87
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#CreateFunction Lambda: CreateFunction}
68
88
  */
69
89
  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>
90
+ /**
91
+ * @description
92
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunctionUrlConfig.html Lambda: CreateFunctionUrlConfig}
93
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#CreateFunctionUrlConfig Lambda: CreateFunctionUrlConfig}
94
+ */
95
+ CreateFunctionUrlConfig: (input: { AuthType: string, FunctionName: string, Cors?: Record<string, any>, InvokeMode?: string, Qualifier?: string }) => Promise<CreateFunctionUrlConfigResponse>
70
96
  /**
71
97
  * @description
72
98
  * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteAlias.html Lambda: DeleteAlias}
@@ -85,12 +111,48 @@ declare interface AwsLiteLambda {
85
111
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteEventSourceMapping Lambda: DeleteEventSourceMapping}
86
112
  */
87
113
  DeleteEventSourceMapping: (input: { UUID: string }) => Promise<DeleteEventSourceMappingResponse>
114
+ /**
115
+ * @description
116
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteFunction.html Lambda: DeleteFunction}
117
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteFunction Lambda: DeleteFunction}
118
+ */
119
+ DeleteFunction: (input: { FunctionName: string, Qualifier?: string }) => Promise<DeleteFunctionResponse>
120
+ /**
121
+ * @description
122
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteFunctionCodeSigningConfig.html Lambda: DeleteFunctionCodeSigningConfig}
123
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteFunctionCodeSigningConfig Lambda: DeleteFunctionCodeSigningConfig}
124
+ */
125
+ DeleteFunctionCodeSigningConfig: (input: { FunctionName: string }) => Promise<DeleteFunctionCodeSigningConfigResponse>
88
126
  /**
89
127
  * @description
90
128
  * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteFunctionConcurrency.html Lambda: DeleteFunctionConcurrency}
91
129
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteFunctionConcurrency Lambda: DeleteFunctionConcurrency}
92
130
  */
93
131
  DeleteFunctionConcurrency: (input: { FunctionName: string }) => Promise<DeleteFunctionConcurrencyResponse>
132
+ /**
133
+ * @description
134
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteFunctionEventInvokeConfig.html Lambda: DeleteFunctionEventInvokeConfig}
135
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteFunctionEventInvokeConfig Lambda: DeleteFunctionEventInvokeConfig}
136
+ */
137
+ DeleteFunctionEventInvokeConfig: (input: { FunctionName: string, Qualifier?: string }) => Promise<DeleteFunctionEventInvokeConfigResponse>
138
+ /**
139
+ * @description
140
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteFunctionUrlConfig.html Lambda: DeleteFunctionUrlConfig}
141
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteFunctionUrlConfig Lambda: DeleteFunctionUrlConfig}
142
+ */
143
+ DeleteFunctionUrlConfig: (input: { FunctionName: string, Qualifier?: string }) => Promise<DeleteFunctionUrlConfigResponse>
144
+ /**
145
+ * @description
146
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteLayerVersion.html Lambda: DeleteLayerVersion}
147
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteLayerVersion Lambda: DeleteLayerVersion}
148
+ */
149
+ DeleteLayerVersion: (input: { LayerName: string, VersionNumber: number }) => Promise<DeleteLayerVersionResponse>
150
+ /**
151
+ * @description
152
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteProvisionedConcurrencyConfig.html Lambda: DeleteProvisionedConcurrencyConfig}
153
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteProvisionedConcurrencyConfig Lambda: DeleteProvisionedConcurrencyConfig}
154
+ */
155
+ DeleteProvisionedConcurrencyConfig: (input: { FunctionName: string, Qualifier: string }) => Promise<DeleteProvisionedConcurrencyConfigResponse>
94
156
  /** @description aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetAccountSettings Lambda: GetAccountSettings} */
95
157
  GetAccountSettings: () => Promise<GetAccountSettingsResponse>
96
158
  /**
@@ -189,6 +251,42 @@ declare interface AwsLiteLambda {
189
251
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#Invoke Lambda: Invoke}
190
252
  */
191
253
  Invoke: (input: { FunctionName: string, InvocationType?: string, Payload: any[] | Record<string, any>, LogType?: string, ClientContext?: string, Qualifier?: string }) => Promise<InvokeResponse>
254
+ /**
255
+ * @description
256
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_ListAliases.html Lambda: ListAliases}
257
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#ListAliases Lambda: ListAliases}
258
+ */
259
+ ListAliases: (input: { FunctionName: string, FunctionVersion?: string, Marker?: string, MaxItems?: number, paginate?: boolean }) => Promise<ListAliasesResponse>
260
+ /**
261
+ * @description
262
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_ListCodeSigningConfigs.html Lambda: ListCodeSigningConfigs}
263
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#ListCodeSigningConfigs Lambda: ListCodeSigningConfigs}
264
+ */
265
+ ListCodeSigningConfigs: (input: { Marker?: string, MaxItems?: number, paginate?: boolean }) => Promise<ListCodeSigningConfigsResponse>
266
+ /**
267
+ * @description
268
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_ListFunctions.html Lambda: ListFunctions}
269
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#ListFunctions Lambda: ListFunctions}
270
+ */
271
+ ListFunctions: (input: { FunctionVersion?: string, Marker?: string, MasterRegion?: string, MaxItems?: number, paginate?: boolean }) => Promise<ListFunctionsResponse>
272
+ /**
273
+ * @description
274
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_ListFunctionUrlConfigs.html Lambda: ListFunctionUrlConfigs}
275
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#ListFunctionUrlConfigs Lambda: ListFunctionUrlConfigs}
276
+ */
277
+ ListFunctionUrlConfigs: (input: { FunctionName: string, Marker?: string, MaxItems?: number, paginate?: boolean }) => Promise<ListFunctionUrlConfigsResponse>
278
+ /**
279
+ * @description
280
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayers.html Lambda: ListLayers}
281
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#ListLayers Lambda: ListLayers}
282
+ */
283
+ ListLayers: (input: { CompatibleArchitecture?: string, CompatibleRuntime?: string, Marker?: string, MaxItems?: number, paginate?: boolean }) => Promise<ListLayersResponse>
284
+ /**
285
+ * @description
286
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayerVersions.html Lambda: ListLayerVersions}
287
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#ListLayerVersions Lambda: ListLayerVersions}
288
+ */
289
+ ListLayerVersions: (input: { LayerName: string, CompatibleArchitecture?: string, CompatibleRuntime?: string, Marker?: string, MaxItems?: number, paginate?: boolean }) => Promise<ListLayerVersionsResponse>
192
290
  /**
193
291
  * @description
194
292
  * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_PutFunctionConcurrency.html Lambda: PutFunctionConcurrency}
@@ -230,11 +328,19 @@ export type {
230
328
  AddPermissionResponse,
231
329
  CreateAliasResponse,
232
330
  CreateCodeSigningConfigResponse,
331
+ CreateEventSourceMappingResponse,
233
332
  CreateFunctionResponse,
333
+ CreateFunctionUrlConfigResponse,
234
334
  DeleteAliasResponse,
235
335
  DeleteCodeSigningConfigResponse,
236
336
  DeleteEventSourceMappingResponse,
337
+ DeleteFunctionResponse,
338
+ DeleteFunctionCodeSigningConfigResponse,
237
339
  DeleteFunctionConcurrencyResponse,
340
+ DeleteFunctionEventInvokeConfigResponse,
341
+ DeleteFunctionUrlConfigResponse,
342
+ DeleteLayerVersionResponse,
343
+ DeleteProvisionedConcurrencyConfigResponse,
238
344
  GetAccountSettingsResponse,
239
345
  GetAliasResponse,
240
346
  GetCodeSigningConfigResponse,
@@ -252,6 +358,12 @@ export type {
252
358
  GetProvisionedConcurrencyConfigResponse,
253
359
  GetRuntimeManagementConfigResponse,
254
360
  InvokeResponse,
361
+ ListAliasesResponse,
362
+ ListCodeSigningConfigsResponse,
363
+ ListFunctionsResponse,
364
+ ListFunctionUrlConfigsResponse,
365
+ ListLayersResponse,
366
+ ListLayerVersionsResponse,
255
367
  PutFunctionConcurrencyResponse,
256
368
  UpdateAliasResponse,
257
369
  UpdateFunctionCodeResponse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-lite/lambda-types",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Type definitions for the `@aws-lite/lambda` plugin",
5
5
  "homepage": "https://aws-lite.org/services/lambda",
6
6
  "repository": {