Skip to content

Commit

Permalink
Add Serverless definitions for v3.34.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericbarthelet committed Aug 10, 2023
1 parent 43e10aa commit 29ea18f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
37 changes: 25 additions & 12 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,23 @@ export type AwsLambdaMemorySize = number;
export type AwsLambdaRole = string | AwsCfSub | AwsCfImport | AwsCfGetAtt;
export type AwsLambdaRuntime =
| "dotnet6"
| "dotnetcore3.1"
| "go1.x"
| "java17"
| "java11"
| "java8"
| "java8.al2"
| "nodejs12.x"
| "nodejs14.x"
| "nodejs16.x"
| "nodejs18.x"
| "provided"
| "provided.al2"
| "python3.6"
| "python3.7"
| "python3.8"
| "python3.9"
| "ruby2.7";
| "python3.10"
| "python3.11"
| "ruby2.7"
| "ruby3.2";
export type AwsLambdaRuntimeManagement =
| ("auto" | "onFunctionUpdate")
| {
Expand Down Expand Up @@ -193,6 +194,8 @@ export interface AWS {
[k: string]: unknown;
};
};
method?: "eventBus" | "scheduler";
timezone?: string;
};
}
| {
Expand Down Expand Up @@ -407,7 +410,8 @@ export interface AWS {
batchSize?: number;
maximumBatchingWindow?: number;
enabled?: boolean;
startingPosition?: "LATEST" | "TRIM_HORIZON";
startingPosition?: "LATEST" | "TRIM_HORIZON" | "AT_TIMESTAMP";
startingPositionTimestamp?: number;
topic: string;
saslScram512?: AwsArnString;
consumerGroupId?: string;
Expand All @@ -418,12 +422,17 @@ export interface AWS {
alb: {
authorizer?: string[];
conditions: {
header?: {
name: string;
values: string[];
};
header?:
| {
name: string;
values: string[];
}[]
| {
name: string;
values: string[];
};
host?: string[];
ip?: (string | string)[];
ip?: string[];
method?: string[];
path?: string[];
query?: {
Expand Down Expand Up @@ -567,8 +576,8 @@ export interface AWS {
CachePolicyId?: string;
Compress?: boolean;
FieldLevelEncryptionId?: string;
OriginRequestPolicyId?: string;
ResponseHeadersPolicyId?: string;
OriginRequestPolicyId?: string | AwsCfFunction;
ResponseHeadersPolicyId?: string | AwsCfFunction;
SmoothStreaming?: boolean;
TrustedSigners?: string[];
ViewerProtocolPolicy?: "allow-all" | "redirect-to-https" | "https-only";
Expand Down Expand Up @@ -709,6 +718,7 @@ export interface AWS {
exposedResponseHeaders?: string[];
maxAge?: number;
};
invokeMode?: "BUFFERED" | "RESPONSE_STREAM";
};
versionFunction?: AwsLambdaVersioning;
vpc?: AwsLambdaVpcConfig;
Expand Down Expand Up @@ -1320,6 +1330,9 @@ export interface AWS {
useProviderTags?: boolean;
};
websocketsApiName?: string;
kinesis?: {
consumerNamingMode?: "serviceSpecific";
};
websocketsApiRouteSelectionExpression?: string;
websocketsDescription?: string;
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@serverless/typescript",
"version": "3.30.1",
"version": "3.34.0",
"description": "Serverless typescript definitions",
"main": "index.d.ts",
"scripts": {
Expand Down

0 comments on commit 29ea18f

Please sign in to comment.