Skip to content

Commit c917872

Browse files
committed
Add Serverless definitions for v4.20.2
1 parent 4d1ceef commit c917872

File tree

2 files changed

+33
-14
lines changed

2 files changed

+33
-14
lines changed

index.d.ts

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* and run json-schema-to-typescript to regenerate this file.
66
*/
77

8-
export type ErrorCode = string;
8+
export type AwsArn = AwsArnString | AwsCfFunction;
9+
export type AwsArnString = string;
910
export type AwsCfFunction =
1011
| AwsCfImport
1112
| AwsCfJoin
@@ -14,9 +15,8 @@ export type AwsCfFunction =
1415
| AwsCfSub
1516
| AwsCfBase64
1617
| AwsCfToJsonString;
18+
export type ErrorCode = string;
1719
export type AwsCfInstruction = string | AwsCfFunction;
18-
export type AwsArn = AwsArnString | AwsCfFunction;
19-
export type AwsArnString = string;
2020
export type FunctionName = string;
2121
export type AwsSecretsManagerArnString = string;
2222
export type FilterPatterns = {
@@ -92,14 +92,7 @@ export type AwsLambdaTimeout = number;
9292
export type AwsLambdaTracing = ("Active" | "PassThrough") | boolean;
9393
export type AwsLambdaVersioning = boolean;
9494
export type AwsHttpApiPayload = "1.0" | "2.0";
95-
export type AwsApiGatewayApiKeys = (
96-
| string
97-
| AwsApiGatewayApiKeysProperties
98-
| {
99-
[k: string]: (string | AwsApiGatewayApiKeysProperties)[];
100-
}
101-
)[];
102-
export type AwsResourcePolicyStatements = ({
95+
export type AwsIamPolicyStatements = ({
10396
[k: string]: unknown;
10497
} & (
10598
| {
@@ -117,8 +110,14 @@ export type AwsResourcePolicyStatements = ({
117110
[k: string]: unknown;
118111
}
119112
))[];
120-
export type AwsS3BucketName = string;
121-
export type AwsIamPolicyStatements = ({
113+
export type AwsApiGatewayApiKeys = (
114+
| string
115+
| AwsApiGatewayApiKeysProperties
116+
| {
117+
[k: string]: (string | AwsApiGatewayApiKeysProperties)[];
118+
}
119+
)[];
120+
export type AwsResourcePolicyStatements = ({
122121
[k: string]: unknown;
123122
} & (
124123
| {
@@ -136,6 +135,7 @@ export type AwsIamPolicyStatements = ({
136135
[k: string]: unknown;
137136
}
138137
))[];
138+
export type AwsS3BucketName = string;
139139
export type Stage = string;
140140
export type AwsCfArrayInstruction = AwsCfInstruction[] | AwsCfSplit;
141141
export type ServiceName = string;
@@ -160,6 +160,10 @@ export interface AWS {
160160
[k: string]: unknown;
161161
};
162162
custom?: {
163+
"serverless-iam-roles-per-function"?: {
164+
defaultInherit?: boolean;
165+
iamGlobalPermissionsBoundary?: AwsArn;
166+
};
163167
[k: string]: unknown;
164168
};
165169
dashboard?: {
@@ -770,6 +774,21 @@ export interface AWS {
770774
httpApi?: {
771775
payload?: AwsHttpApiPayload;
772776
};
777+
iam?: {
778+
inheritStatements?: boolean;
779+
role?: {
780+
name?: string;
781+
statements?: AwsIamPolicyStatements;
782+
permissionsBoundary?: AwsArn;
783+
managedPolicies?: AwsArn[];
784+
path?: string;
785+
tags?: AwsResourceTags;
786+
};
787+
};
788+
iamRoleStatementsInherit?: boolean;
789+
iamRoleStatementsName?: string;
790+
iamPermissionsBoundary?: AwsArn;
791+
iamRoleStatements?: AwsIamPolicyStatements;
773792
alarms?: unknown[];
774793
};
775794
};

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

0 commit comments

Comments
 (0)