From 29ea18f8eae4ab8329391d8d3986cda1d1c92728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Barthelet?= Date: Thu, 10 Aug 2023 10:13:28 +0000 Subject: [PATCH] Add Serverless definitions for v3.34.0 --- index.d.ts | 37 +++++++++++++++++++++++++------------ package.json | 2 +- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/index.d.ts b/index.d.ts index b31fde1..0b971e3 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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") | { @@ -193,6 +194,8 @@ export interface AWS { [k: string]: unknown; }; }; + method?: "eventBus" | "scheduler"; + timezone?: string; }; } | { @@ -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; @@ -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?: { @@ -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"; @@ -709,6 +718,7 @@ export interface AWS { exposedResponseHeaders?: string[]; maxAge?: number; }; + invokeMode?: "BUFFERED" | "RESPONSE_STREAM"; }; versionFunction?: AwsLambdaVersioning; vpc?: AwsLambdaVpcConfig; @@ -1320,6 +1330,9 @@ export interface AWS { useProviderTags?: boolean; }; websocketsApiName?: string; + kinesis?: { + consumerNamingMode?: "serviceSpecific"; + }; websocketsApiRouteSelectionExpression?: string; websocketsDescription?: string; }; diff --git a/package.json b/package.json index 32b6109..d1d6fba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@serverless/typescript", - "version": "3.30.1", + "version": "3.34.0", "description": "Serverless typescript definitions", "main": "index.d.ts", "scripts": {