@aws-lite/lambda-types 0.0.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +180 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,11 +1,34 @@
1
1
  import {
2
2
  /* ! Do not remove IMPORTS_START / IMPORTS_END ! */
3
3
  // $IMPORTS_START
4
+ AddLayerVersionPermissionCommandOutput as AddLayerVersionPermissionResponse,
5
+ AddPermissionCommandOutput as AddPermissionResponse,
6
+ CreateAliasCommandOutput as CreateAliasResponse,
7
+ CreateCodeSigningConfigCommandOutput as CreateCodeSigningConfigResponse,
4
8
  CreateFunctionCommandOutput as CreateFunctionResponse,
9
+ DeleteAliasCommandOutput as DeleteAliasResponse,
10
+ DeleteCodeSigningConfigCommandOutput as DeleteCodeSigningConfigResponse,
11
+ DeleteEventSourceMappingCommandOutput as DeleteEventSourceMappingResponse,
5
12
  DeleteFunctionConcurrencyCommandOutput as DeleteFunctionConcurrencyResponse,
13
+ GetAccountSettingsCommandOutput as GetAccountSettingsResponse,
14
+ GetAliasCommandOutput as GetAliasResponse,
15
+ GetCodeSigningConfigCommandOutput as GetCodeSigningConfigResponse,
16
+ GetEventSourceMappingCommandOutput as GetEventSourceMappingResponse,
17
+ GetFunctionCommandOutput as GetFunctionResponse,
18
+ GetFunctionCodeSigningConfigCommandOutput as GetFunctionCodeSigningConfigResponse,
19
+ GetFunctionConcurrencyCommandOutput as GetFunctionConcurrencyResponse,
6
20
  GetFunctionConfigurationCommandOutput as GetFunctionConfigurationResponse,
21
+ GetFunctionEventInvokeConfigCommandOutput as GetFunctionEventInvokeConfigResponse,
22
+ GetFunctionUrlConfigCommandOutput as GetFunctionUrlConfigResponse,
23
+ GetLayerVersionCommandOutput as GetLayerVersionResponse,
24
+ GetLayerVersionByArnCommandOutput as GetLayerVersionByArnResponse,
25
+ GetLayerVersionPolicyCommandOutput as GetLayerVersionPolicyResponse,
26
+ GetPolicyCommandOutput as GetPolicyResponse,
27
+ GetProvisionedConcurrencyConfigCommandOutput as GetProvisionedConcurrencyConfigResponse,
28
+ GetRuntimeManagementConfigCommandOutput as GetRuntimeManagementConfigResponse,
7
29
  InvokeCommandOutput as InvokeResponse,
8
30
  PutFunctionConcurrencyCommandOutput as PutFunctionConcurrencyResponse,
31
+ UpdateAliasCommandOutput as UpdateAliasResponse,
9
32
  UpdateFunctionCodeCommandOutput as UpdateFunctionCodeResponse,
10
33
  UpdateFunctionConfigurationCommandOutput as UpdateFunctionConfigurationResponse,
11
34
  // $IMPORTS_END
@@ -14,24 +37,152 @@ import {
14
37
  declare interface AwsLiteLambda {
15
38
  /* ! Do not remove METHODS_START / METHODS_END ! */
16
39
  // $METHODS_START
40
+ /**
41
+ * @description
42
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_AddLayerVersionPermission.html Lambda: AddLayerVersionPermission}
43
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#AddLayerVersionPermission Lambda: AddLayerVersionPermission}
44
+ */
45
+ AddLayerVersionPermission: (input: { LayerName: string, RevisionId?: string, VersionNumber: number, Action: string, OrganizationId?: string, Principal?: string, StatementId: string }) => Promise<AddLayerVersionPermissionResponse>
46
+ /**
47
+ * @description
48
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_AddPermission.html Lambda: AddPermission}
49
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#AddPermission Lambda: AddPermission}
50
+ */
51
+ AddPermission: (input: { FunctionName: string, Qualifier?: string, Action: string, EventSourceToken?: string, FunctionUrlAuthType?: string, Principal: string, PrincipalOrgID?: string, RevisionId?: string, SourceAccount?: string, SourceArn?: string, StatementId: string }) => Promise<AddPermissionResponse>
52
+ /**
53
+ * @description
54
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_CreateAlias.html Lambda: CreateAlias}
55
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#CreateAlias Lambda: CreateAlias}
56
+ */
57
+ CreateAlias: (input: { FunctionName: string, Description?: string, FunctionVersion: string, Name: string, RoutingConfig?: Record<string, any> }) => Promise<CreateAliasResponse>
58
+ /**
59
+ * @description
60
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_CreateCodeSigningConfig.html Lambda: CreateCodeSigningConfig}
61
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#CreateCodeSigningConfig Lambda: CreateCodeSigningConfig}
62
+ */
63
+ CreateCodeSigningConfig: (input: { AllowedPublishers: Record<string, any>, CodeSigningPolicies?: Record<string, any>, Description?: string }) => Promise<CreateCodeSigningConfigResponse>
17
64
  /**
18
65
  * @description
19
66
  * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html Lambda: CreateFunction}
20
67
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#CreateFunction Lambda: CreateFunction}
21
68
  */
22
69
  CreateFunction: (input: { Code: Record<string, any>, FunctionName: string, Role: string, Architectures?: any[], CodeSigningConfigArn?: string, DeadLetterConfig?: Record<string, any>, Description?: string, Environment?: Record<string, any>, EphemeralStorage?: Record<string, any>, FileSystemConfigs?: any[], Handler?: string, ImageConfig?: Record<string, any>, KMSKeyArn?: string, Layers?: any[], MemorySize?: number, PackageType?: string, Publish?: boolean, Runtime?: string, SnapStart?: Record<string, any>, Tags?: any[], Timeout?: number, TracingConfig?: Record<string, any>, VpcConfig?: Record<string, any> }) => Promise<CreateFunctionResponse>
70
+ /**
71
+ * @description
72
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteAlias.html Lambda: DeleteAlias}
73
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteAlias Lambda: DeleteAlias}
74
+ */
75
+ DeleteAlias: (input: { FunctionName: string, Name: string }) => Promise<DeleteAliasResponse>
76
+ /**
77
+ * @description
78
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteCodeSigningConfig.html Lambda: DeleteCodeSigningConfig}
79
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteCodeSigningConfig Lambda: DeleteCodeSigningConfig}
80
+ */
81
+ DeleteCodeSigningConfig: (input: { CodeSigningConfigArn: string }) => Promise<DeleteCodeSigningConfigResponse>
82
+ /**
83
+ * @description
84
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteEventSourceMapping.html Lambda: DeleteEventSourceMapping}
85
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteEventSourceMapping Lambda: DeleteEventSourceMapping}
86
+ */
87
+ DeleteEventSourceMapping: (input: { UUID: string }) => Promise<DeleteEventSourceMappingResponse>
23
88
  /**
24
89
  * @description
25
90
  * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_DeleteFunctionConcurrency.html Lambda: DeleteFunctionConcurrency}
26
91
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#DeleteFunctionConcurrency Lambda: DeleteFunctionConcurrency}
27
92
  */
28
93
  DeleteFunctionConcurrency: (input: { FunctionName: string }) => Promise<DeleteFunctionConcurrencyResponse>
94
+ /** @description aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetAccountSettings Lambda: GetAccountSettings} */
95
+ GetAccountSettings: () => Promise<GetAccountSettingsResponse>
96
+ /**
97
+ * @description
98
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetAlias.html Lambda: GetAlias}
99
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetAlias Lambda: GetAlias}
100
+ */
101
+ GetAlias: (input: { FunctionName: string, Name: string }) => Promise<GetAliasResponse>
102
+ /**
103
+ * @description
104
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetCodeSigningConfig.html Lambda: GetCodeSigningConfig}
105
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetCodeSigningConfig Lambda: GetCodeSigningConfig}
106
+ */
107
+ GetCodeSigningConfig: (input: { CodeSigningConfigArn: string }) => Promise<GetCodeSigningConfigResponse>
108
+ /**
109
+ * @description
110
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetEventSourceMapping.html Lambda: GetEventSourceMapping}
111
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetEventSourceMapping Lambda: GetEventSourceMapping}
112
+ */
113
+ GetEventSourceMapping: (input: { UUID: string }) => Promise<GetEventSourceMappingResponse>
114
+ /**
115
+ * @description
116
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetFunction.html Lambda: GetFunction}
117
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetFunction Lambda: GetFunction}
118
+ */
119
+ GetFunction: (input: { FunctionName: string, Qualifier?: string }) => Promise<GetFunctionResponse>
120
+ /**
121
+ * @description
122
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionCodeSigningConfig.html Lambda: GetFunctionCodeSigningConfig}
123
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetFunctionCodeSigningConfig Lambda: GetFunctionCodeSigningConfig}
124
+ */
125
+ GetFunctionCodeSigningConfig: (input: { FunctionName: string }) => Promise<GetFunctionCodeSigningConfigResponse>
126
+ /**
127
+ * @description
128
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionConcurrency.html Lambda: GetFunctionConcurrency}
129
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetFunctionConcurrency Lambda: GetFunctionConcurrency}
130
+ */
131
+ GetFunctionConcurrency: (input: { FunctionName: string }) => Promise<GetFunctionConcurrencyResponse>
29
132
  /**
30
133
  * @description
31
134
  * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionConfiguration.html Lambda: GetFunctionConfiguration}
32
135
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetFunctionConfiguration Lambda: GetFunctionConfiguration}
33
136
  */
34
137
  GetFunctionConfiguration: (input: { FunctionName: string, Qualifier?: string }) => Promise<GetFunctionConfigurationResponse>
138
+ /**
139
+ * @description
140
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionEventInvokeConfig.html Lambda: GetFunctionEventInvokeConfig}
141
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetFunctionEventInvokeConfig Lambda: GetFunctionEventInvokeConfig}
142
+ */
143
+ GetFunctionEventInvokeConfig: (input: { FunctionName: string, Qualifier?: string }) => Promise<GetFunctionEventInvokeConfigResponse>
144
+ /**
145
+ * @description
146
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionUrlConfig.html Lambda: GetFunctionUrlConfig}
147
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetFunctionUrlConfig Lambda: GetFunctionUrlConfig}
148
+ */
149
+ GetFunctionUrlConfig: (input: { FunctionName: string, Qualifier?: string }) => Promise<GetFunctionUrlConfigResponse>
150
+ /**
151
+ * @description
152
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVersion.html Lambda: GetLayerVersion}
153
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetLayerVersion Lambda: GetLayerVersion}
154
+ */
155
+ GetLayerVersion: (input: { LayerName: string, VersionNumber: number }) => Promise<GetLayerVersionResponse>
156
+ /**
157
+ * @description
158
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVersionByArn.html Lambda: GetLayerVersionByArn}
159
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetLayerVersionByArn Lambda: GetLayerVersionByArn}
160
+ */
161
+ GetLayerVersionByArn: (input: { Arn: string }) => Promise<GetLayerVersionByArnResponse>
162
+ /**
163
+ * @description
164
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVersionPolicy.html Lambda: GetLayerVersionPolicy}
165
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetLayerVersionPolicy Lambda: GetLayerVersionPolicy}
166
+ */
167
+ GetLayerVersionPolicy: (input: { LayerName: string, VersionNumber: number }) => Promise<GetLayerVersionPolicyResponse>
168
+ /**
169
+ * @description
170
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetPolicy.html Lambda: GetPolicy}
171
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetPolicy Lambda: GetPolicy}
172
+ */
173
+ GetPolicy: (input: { FunctionName: string, Qualifier?: string }) => Promise<GetPolicyResponse>
174
+ /**
175
+ * @description
176
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetProvisionedConcurrencyConfig.html Lambda: GetProvisionedConcurrencyConfig}
177
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetProvisionedConcurrencyConfig Lambda: GetProvisionedConcurrencyConfig}
178
+ */
179
+ GetProvisionedConcurrencyConfig: (input: { FunctionName: string, Qualifier: string }) => Promise<GetProvisionedConcurrencyConfigResponse>
180
+ /**
181
+ * @description
182
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_GetRuntimeManagementConfig.html Lambda: GetRuntimeManagementConfig}
183
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#GetRuntimeManagementConfig Lambda: GetRuntimeManagementConfig}
184
+ */
185
+ GetRuntimeManagementConfig: (input: { FunctionName: string, Qualifier?: string }) => Promise<GetRuntimeManagementConfigResponse>
35
186
  /**
36
187
  * @description
37
188
  * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html Lambda: Invoke}
@@ -44,6 +195,12 @@ declare interface AwsLiteLambda {
44
195
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#PutFunctionConcurrency Lambda: PutFunctionConcurrency}
45
196
  */
46
197
  PutFunctionConcurrency: (input: { FunctionName: string, ReservedConcurrentExecutions: number }) => Promise<PutFunctionConcurrencyResponse>
198
+ /**
199
+ * @description
200
+ * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_UpdateAlias.html Lambda: UpdateAlias}
201
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/lambda/readme.md#UpdateAlias Lambda: UpdateAlias}
202
+ */
203
+ UpdateAlias: (input: { FunctionName: string, Name: string, Description?: string, FunctionVersion?: string, RevisionId?: string, RoutingConfig?: Record<string, any> }) => Promise<UpdateAliasResponse>
47
204
  /**
48
205
  * @description
49
206
  * - AWS docs: {@link https://docs.aws.amazon.com/lambda/latest/dg/API_UpdateFunctionCode.html Lambda: UpdateFunctionCode}
@@ -69,11 +226,34 @@ export type {
69
226
  AwsLiteLambda,
70
227
  /* ! Do not remove EXPORT_START / EXPORT_END ! */
71
228
  // $EXPORT_START
229
+ AddLayerVersionPermissionResponse,
230
+ AddPermissionResponse,
231
+ CreateAliasResponse,
232
+ CreateCodeSigningConfigResponse,
72
233
  CreateFunctionResponse,
234
+ DeleteAliasResponse,
235
+ DeleteCodeSigningConfigResponse,
236
+ DeleteEventSourceMappingResponse,
73
237
  DeleteFunctionConcurrencyResponse,
238
+ GetAccountSettingsResponse,
239
+ GetAliasResponse,
240
+ GetCodeSigningConfigResponse,
241
+ GetEventSourceMappingResponse,
242
+ GetFunctionResponse,
243
+ GetFunctionCodeSigningConfigResponse,
244
+ GetFunctionConcurrencyResponse,
74
245
  GetFunctionConfigurationResponse,
246
+ GetFunctionEventInvokeConfigResponse,
247
+ GetFunctionUrlConfigResponse,
248
+ GetLayerVersionResponse,
249
+ GetLayerVersionByArnResponse,
250
+ GetLayerVersionPolicyResponse,
251
+ GetPolicyResponse,
252
+ GetProvisionedConcurrencyConfigResponse,
253
+ GetRuntimeManagementConfigResponse,
75
254
  InvokeResponse,
76
255
  PutFunctionConcurrencyResponse,
256
+ UpdateAliasResponse,
77
257
  UpdateFunctionCodeResponse,
78
258
  UpdateFunctionConfigurationResponse,
79
259
  // $EXPORT_END
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-lite/lambda-types",
3
- "version": "0.0.8",
3
+ "version": "0.1.0",
4
4
  "description": "Type definitions for the `@aws-lite/lambda` plugin",
5
5
  "homepage": "https://aws-lite.org/services/lambda",
6
6
  "repository": {