Skip to content

Commit 29ea18f

Browse files
Add Serverless definitions for v3.34.0
1 parent 43e10aa commit 29ea18f

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

index.d.ts

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,23 @@ export type AwsLambdaMemorySize = number;
5757
export type AwsLambdaRole = string | AwsCfSub | AwsCfImport | AwsCfGetAtt;
5858
export type AwsLambdaRuntime =
5959
| "dotnet6"
60-
| "dotnetcore3.1"
6160
| "go1.x"
61+
| "java17"
6262
| "java11"
6363
| "java8"
6464
| "java8.al2"
65-
| "nodejs12.x"
6665
| "nodejs14.x"
6766
| "nodejs16.x"
6867
| "nodejs18.x"
6968
| "provided"
7069
| "provided.al2"
71-
| "python3.6"
7270
| "python3.7"
7371
| "python3.8"
7472
| "python3.9"
75-
| "ruby2.7";
73+
| "python3.10"
74+
| "python3.11"
75+
| "ruby2.7"
76+
| "ruby3.2";
7677
export type AwsLambdaRuntimeManagement =
7778
| ("auto" | "onFunctionUpdate")
7879
| {
@@ -193,6 +194,8 @@ export interface AWS {
193194
[k: string]: unknown;
194195
};
195196
};
197+
method?: "eventBus" | "scheduler";
198+
timezone?: string;
196199
};
197200
}
198201
| {
@@ -407,7 +410,8 @@ export interface AWS {
407410
batchSize?: number;
408411
maximumBatchingWindow?: number;
409412
enabled?: boolean;
410-
startingPosition?: "LATEST" | "TRIM_HORIZON";
413+
startingPosition?: "LATEST" | "TRIM_HORIZON" | "AT_TIMESTAMP";
414+
startingPositionTimestamp?: number;
411415
topic: string;
412416
saslScram512?: AwsArnString;
413417
consumerGroupId?: string;
@@ -418,12 +422,17 @@ export interface AWS {
418422
alb: {
419423
authorizer?: string[];
420424
conditions: {
421-
header?: {
422-
name: string;
423-
values: string[];
424-
};
425+
header?:
426+
| {
427+
name: string;
428+
values: string[];
429+
}[]
430+
| {
431+
name: string;
432+
values: string[];
433+
};
425434
host?: string[];
426-
ip?: (string | string)[];
435+
ip?: string[];
427436
method?: string[];
428437
path?: string[];
429438
query?: {
@@ -567,8 +576,8 @@ export interface AWS {
567576
CachePolicyId?: string;
568577
Compress?: boolean;
569578
FieldLevelEncryptionId?: string;
570-
OriginRequestPolicyId?: string;
571-
ResponseHeadersPolicyId?: string;
579+
OriginRequestPolicyId?: string | AwsCfFunction;
580+
ResponseHeadersPolicyId?: string | AwsCfFunction;
572581
SmoothStreaming?: boolean;
573582
TrustedSigners?: string[];
574583
ViewerProtocolPolicy?: "allow-all" | "redirect-to-https" | "https-only";
@@ -709,6 +718,7 @@ export interface AWS {
709718
exposedResponseHeaders?: string[];
710719
maxAge?: number;
711720
};
721+
invokeMode?: "BUFFERED" | "RESPONSE_STREAM";
712722
};
713723
versionFunction?: AwsLambdaVersioning;
714724
vpc?: AwsLambdaVpcConfig;
@@ -1320,6 +1330,9 @@ export interface AWS {
13201330
useProviderTags?: boolean;
13211331
};
13221332
websocketsApiName?: string;
1333+
kinesis?: {
1334+
consumerNamingMode?: "serviceSpecific";
1335+
};
13231336
websocketsApiRouteSelectionExpression?: string;
13241337
websocketsDescription?: string;
13251338
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@serverless/typescript",
3-
"version": "3.30.1",
3+
"version": "3.34.0",
44
"description": "Serverless typescript definitions",
55
"main": "index.d.ts",
66
"scripts": {

0 commit comments

Comments
 (0)