Skip to content

Commit

Permalink
Add Serverless definitions for v3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericbarthelet committed Mar 22, 2022
1 parent dac7573 commit d416a95
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
25 changes: 22 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,24 @@ export type AwsResourceCondition = string;
export type AwsResourceDependsOn = string[];
export type EcrImageUri = string;
export type AwsLambdaLayers = AwsArn[];
export type AwsLogRetentionInDays =
| 1
| 3
| 5
| 7
| 14
| 30
| 60
| 90
| 120
| 150
| 180
| 365
| 400
| 545
| 731
| 1827
| 3653;
export type AwsLambdaMemorySize = number;
export type AwsLambdaRole = string | AwsCfSub | AwsCfImport | AwsCfGetAtt;
export type AwsLambdaRuntime =
Expand Down Expand Up @@ -588,6 +606,7 @@ export interface AWS {
};
kmsKeyArn?: AwsKmsArn;
layers?: AwsLambdaLayers;
logRetentionInDays?: AwsLogRetentionInDays;
maximumEventAge?: number;
maximumRetryAttempts?: number;
memorySize?: AwsLambdaMemorySize;
Expand Down Expand Up @@ -865,7 +884,7 @@ export interface AWS {
kmsKeyArn?: AwsKmsArn;
lambdaHashingVersion?: "20200924" | "20201221";
layers?: AwsLambdaLayers;
logRetentionInDays?: 1 | 3 | 5 | 7 | 14 | 30 | 60 | 90 | 120 | 150 | 180 | 365 | 400 | 545 | 731 | 1827 | 3653;
logRetentionInDays?: AwsLogRetentionInDays;
logs?: {
frameworkLambda?: boolean;
httpApi?:
Expand Down Expand Up @@ -1346,8 +1365,8 @@ export interface AwsResourceTags {
[k: string]: string;
}
export interface AwsLambdaVpcConfig {
securityGroupIds: AwsCfInstruction[] | AwsCfSplit | AwsCfFindInMap;
subnetIds: AwsCfInstruction[] | AwsCfSplit | AwsCfFindInMap;
securityGroupIds: (AwsCfInstruction | AwsCfIf)[] | AwsCfSplit | AwsCfFindInMap;
subnetIds: (AwsCfInstruction | AwsCfIf)[] | AwsCfSplit | AwsCfFindInMap;
}
export interface AwsCfSplit {
"Fn::Split": (string | AwsCfFunction)[];
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.7.5",
"version": "3.8.0",
"description": "Serverless typescript definitions",
"main": "index.d.ts",
"scripts": {
Expand Down

0 comments on commit d416a95

Please sign in to comment.