Skip to content

Commit 3a1a56a

Browse files
Add Serverless definitions for v3.25.0
1 parent caefc34 commit 3a1a56a

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

index.d.ts

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export type AwsLambdaRuntime =
5858
| "nodejs12.x"
5959
| "nodejs14.x"
6060
| "nodejs16.x"
61+
| "nodejs18.x"
6162
| "provided"
6263
| "provided.al2"
6364
| "python3.6"
@@ -122,18 +123,7 @@ export interface AWS {
122123
console?:
123124
| boolean
124125
| {
125-
monitoring?: {
126-
logs?: {
127-
disabled?: boolean;
128-
};
129-
request?: {
130-
disabled?: boolean;
131-
};
132-
response?: {
133-
disabled?: boolean;
134-
};
135-
};
136-
org?: string;
126+
[k: string]: unknown;
137127
};
138128
custom?: {
139129
enterprise?: {
@@ -222,7 +212,7 @@ export interface AWS {
222212
managedExternally?: boolean;
223213
name?: string;
224214
resultTtlInSeconds?: number;
225-
scopes?: string[];
215+
scopes?: (string | AwsCfInstruction)[];
226216
type?: string | string | string | string | string;
227217
};
228218
connectionId?: AwsCfInstruction;
@@ -368,7 +358,8 @@ export interface AWS {
368358
maximumBatchingWindow?: number;
369359
enabled?: boolean;
370360
bootstrapServers: string[];
371-
startingPosition?: "LATEST" | "TRIM_HORIZON";
361+
startingPosition?: "LATEST" | "TRIM_HORIZON" | "AT_TIMESTAMP";
362+
startingPositionTimestamp?: number;
372363
topic: string;
373364
consumerGroupId?: string;
374365
};
@@ -797,6 +788,7 @@ export interface AWS {
797788
};
798789
};
799790
shouldStartNameWithService?: boolean;
791+
stage?: string;
800792
usagePlan?:
801793
| {
802794
quota?: {
@@ -1012,11 +1004,14 @@ export interface AWS {
10121004
| "cn-north-1"
10131005
| "cn-northwest-1"
10141006
| "eu-central-1"
1007+
| "eu-central-2"
10151008
| "eu-north-1"
10161009
| "eu-south-1"
1010+
| "eu-south-2"
10171011
| "eu-west-1"
10181012
| "eu-west-2"
10191013
| "eu-west-3"
1014+
| "me-central-1"
10201015
| "me-south-1"
10211016
| "sa-east-1";
10221017
role?: AwsLambdaRole;
@@ -1435,7 +1430,7 @@ export interface AwsLambdaEnvironment {
14351430
* This interface was referenced by `AwsLambdaEnvironment`'s JSON-Schema definition
14361431
* via the `patternProperty` "^[A-Za-z_][a-zA-Z0-9_]*$".
14371432
*/
1438-
[k: string]: "" | AwsCfInstruction | AwsCfIf | AwsCfSelect;
1433+
[k: string]: "" | AwsCfInstruction | AwsCfIf | AwsCfSelect | AwsCfToJsonString;
14391434
}
14401435
export interface AwsCfSelect {
14411436
"Fn::Select": (
@@ -1459,6 +1454,13 @@ export interface AwsCfGetAZs {
14591454
export interface AwsCfSplit {
14601455
"Fn::Split": (string | AwsCfFunction)[];
14611456
}
1457+
export interface AwsCfToJsonString {
1458+
"Fn::ToJsonString":
1459+
| {
1460+
[k: string]: unknown;
1461+
}
1462+
| unknown[];
1463+
}
14621464
export interface AwsResourceTags {
14631465
/**
14641466
* This interface was referenced by `AwsResourceTags`'s JSON-Schema definition

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.23.0",
3+
"version": "3.25.0",
44
"description": "Serverless typescript definitions",
55
"main": "index.d.ts",
66
"scripts": {

0 commit comments

Comments
 (0)