Skip to content

Commit 29b318d

Browse files
Add Serverless definitions for v3.27.0
1 parent 3a1a56a commit 29b318d

File tree

2 files changed

+39
-12
lines changed

2 files changed

+39
-12
lines changed

index.d.ts

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,25 @@
77

88
export type AwsArnString = string;
99
export type ErrorCode = string;
10-
export type AwsCfFunction = AwsCfImport | AwsCfJoin | AwsCfGetAtt | AwsCfRef | AwsCfSub;
10+
export type AwsCfFunction =
11+
| AwsCfImport
12+
| AwsCfJoin
13+
| AwsCfGetAtt
14+
| AwsCfRef
15+
| AwsCfSub
16+
| AwsCfBase64
17+
| AwsCfToJsonString;
1118
export type AwsCfInstruction = string | AwsCfFunction;
1219
export type AwsArn = AwsArnString | AwsCfFunction;
1320
export type FunctionName = string;
1421
export type AwsSecretsManagerArnString = string;
22+
export type FilterPatterns = {
23+
[k: string]: unknown;
24+
}[];
1525
export type AwsAlbListenerArn = string;
1626
export type AwsAlexaEventToken = string;
1727
export type AwsLogGroupName = string;
1828
export type AwsKmsArn = AwsCfFunction | string;
19-
export type FilterPatterns = {
20-
[k: string]: unknown;
21-
}[];
2229
export type AwsLambdaArchitecture = "arm64" | "x86_64";
2330
export type AwsResourceCondition = string;
2431
export type AwsResourceDependsOn = string[];
@@ -362,6 +369,7 @@ export interface AWS {
362369
startingPositionTimestamp?: number;
363370
topic: string;
364371
consumerGroupId?: string;
372+
filterPatterns?: FilterPatterns;
365373
};
366374
}
367375
| {
@@ -372,6 +380,7 @@ export interface AWS {
372380
maximumBatchingWindow?: number;
373381
enabled?: boolean;
374382
queue: string;
383+
filterPatterns?: FilterPatterns;
375384
};
376385
}
377386
| {
@@ -383,6 +392,7 @@ export interface AWS {
383392
enabled?: boolean;
384393
queue: string;
385394
virtualHost?: string;
395+
filterPatterns?: FilterPatterns;
386396
};
387397
}
388398
| {
@@ -395,6 +405,7 @@ export interface AWS {
395405
topic: string;
396406
saslScram512?: AwsArnString;
397407
consumerGroupId?: string;
408+
filterPatterns?: FilterPatterns;
398409
};
399410
}
400411
| {
@@ -536,6 +547,7 @@ export interface AWS {
536547
maximumBatchingWindow?: number;
537548
functionResponseType?: "ReportBatchItemFailures";
538549
filterPatterns?: FilterPatterns;
550+
maximumConcurrency?: number;
539551
};
540552
}
541553
| {
@@ -550,6 +562,7 @@ export interface AWS {
550562
Compress?: boolean;
551563
FieldLevelEncryptionId?: string;
552564
OriginRequestPolicyId?: string;
565+
ResponseHeadersPolicyId?: string;
553566
SmoothStreaming?: boolean;
554567
TrustedSigners?: string[];
555568
ViewerProtocolPolicy?: "allow-all" | "redirect-to-https" | "https-only";
@@ -653,8 +666,10 @@ export interface AWS {
653666
entryPoint?: string[];
654667
};
655668
kmsKeyArn?: AwsKmsArn;
669+
snapStart?: boolean;
656670
layers?: AwsLambdaLayers;
657671
logRetentionInDays?: AwsLogRetentionInDays;
672+
logDataProtectionPolicy?: AwsLogDataProtectionPolicy;
658673
maximumEventAge?: number;
659674
maximumRetryAttempts?: number;
660675
memorySize?: AwsLambdaMemorySize;
@@ -949,6 +964,7 @@ export interface AWS {
949964
lambdaHashingVersion?: "20200924" | "20201221";
950965
layers?: AwsLambdaLayers;
951966
logRetentionInDays?: AwsLogRetentionInDays;
967+
logDataProtectionPolicy?: AwsLogDataProtectionPolicy;
952968
logs?: {
953969
frameworkLambda?: boolean;
954970
httpApi?:
@@ -1000,6 +1016,7 @@ export interface AWS {
10001016
| "ap-southeast-1"
10011017
| "ap-southeast-2"
10021018
| "ap-southeast-3"
1019+
| "ap-southeast-4"
10031020
| "ca-central-1"
10041021
| "cn-north-1"
10051022
| "cn-northwest-1"
@@ -1422,6 +1439,17 @@ export interface AwsCfRef {
14221439
export interface AwsCfSub {
14231440
"Fn::Sub": unknown;
14241441
}
1442+
export interface AwsCfBase64 {
1443+
"Fn::Base64"?: unknown;
1444+
[k: string]: unknown;
1445+
}
1446+
export interface AwsCfToJsonString {
1447+
"Fn::ToJsonString":
1448+
| {
1449+
[k: string]: unknown;
1450+
}
1451+
| unknown[];
1452+
}
14251453
export interface AwsCfIf {
14261454
"Fn::If": AwsCfInstruction[];
14271455
}
@@ -1430,7 +1458,7 @@ export interface AwsLambdaEnvironment {
14301458
* This interface was referenced by `AwsLambdaEnvironment`'s JSON-Schema definition
14311459
* via the `patternProperty` "^[A-Za-z_][a-zA-Z0-9_]*$".
14321460
*/
1433-
[k: string]: "" | AwsCfInstruction | AwsCfIf | AwsCfSelect | AwsCfToJsonString;
1461+
[k: string]: "" | AwsCfInstruction | AwsCfIf | AwsCfSelect;
14341462
}
14351463
export interface AwsCfSelect {
14361464
"Fn::Select": (
@@ -1454,12 +1482,11 @@ export interface AwsCfGetAZs {
14541482
export interface AwsCfSplit {
14551483
"Fn::Split": (string | AwsCfFunction)[];
14561484
}
1457-
export interface AwsCfToJsonString {
1458-
"Fn::ToJsonString":
1459-
| {
1460-
[k: string]: unknown;
1461-
}
1462-
| unknown[];
1485+
export interface AwsLogDataProtectionPolicy {
1486+
Name: string;
1487+
Description?: string;
1488+
Version: string;
1489+
Statement: unknown[];
14631490
}
14641491
export interface AwsResourceTags {
14651492
/**

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

0 commit comments

Comments
 (0)