@tradedal/aws-client-lambda 0.0.0-stage → 0.0.5
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.
- package/index.ts +4515 -0
- package/package.json +23 -3
- package/README.md +0 -3
package/index.ts
ADDED
|
@@ -0,0 +1,4515 @@
|
|
|
1
|
+
// Generated from Smithy's official OpenAPI transformation. Do not edit.
|
|
2
|
+
// biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
|
|
3
|
+
|
|
4
|
+
import { AwsClient } from "@tradedal/aws-client-core";
|
|
5
|
+
import {
|
|
6
|
+
awsHttpEndpoint,
|
|
7
|
+
optionalRestJsonMember,
|
|
8
|
+
} from "@tradedal/aws-client-core/http-operation";
|
|
9
|
+
import type {
|
|
10
|
+
AwsRestJsonOperation,
|
|
11
|
+
AwsServiceDefinition,
|
|
12
|
+
} from "@tradedal/aws-client-core/model";
|
|
13
|
+
import { Effect, Schema } from "effect";
|
|
14
|
+
import { HttpApi, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
15
|
+
|
|
16
|
+
export const FunctionUrlAuthType = Schema.Union([
|
|
17
|
+
Schema.Literals(["NONE", "AWS_IAM"]),
|
|
18
|
+
Schema.String,
|
|
19
|
+
]).annotate({ identifier: "FunctionUrlAuthType" });
|
|
20
|
+
|
|
21
|
+
export type FunctionUrlAuthType = typeof FunctionUrlAuthType.Type;
|
|
22
|
+
|
|
23
|
+
export const ThrottleReason = Schema.Union([
|
|
24
|
+
Schema.Literals([
|
|
25
|
+
"ConcurrentInvocationLimitExceeded",
|
|
26
|
+
"FunctionInvocationRateLimitExceeded",
|
|
27
|
+
"ReservedFunctionConcurrentInvocationLimitExceeded",
|
|
28
|
+
"ReservedFunctionInvocationRateLimitExceeded",
|
|
29
|
+
"CallerRateLimitExceeded",
|
|
30
|
+
"ConcurrentSnapshotCreateLimitExceeded",
|
|
31
|
+
]),
|
|
32
|
+
Schema.String,
|
|
33
|
+
]).annotate({ identifier: "ThrottleReason" });
|
|
34
|
+
|
|
35
|
+
export type ThrottleReason = typeof ThrottleReason.Type;
|
|
36
|
+
|
|
37
|
+
export const Runtime = Schema.Union([
|
|
38
|
+
Schema.Literals([
|
|
39
|
+
"nodejs",
|
|
40
|
+
"nodejs4.3",
|
|
41
|
+
"nodejs6.10",
|
|
42
|
+
"nodejs8.10",
|
|
43
|
+
"nodejs10.x",
|
|
44
|
+
"nodejs12.x",
|
|
45
|
+
"nodejs14.x",
|
|
46
|
+
"nodejs16.x",
|
|
47
|
+
"nodejs18.x",
|
|
48
|
+
"nodejs20.x",
|
|
49
|
+
"nodejs22.x",
|
|
50
|
+
"nodejs24.x",
|
|
51
|
+
"java8",
|
|
52
|
+
"java8.al2",
|
|
53
|
+
"java11",
|
|
54
|
+
"java17",
|
|
55
|
+
"java21",
|
|
56
|
+
"java25",
|
|
57
|
+
"python2.7",
|
|
58
|
+
"python3.6",
|
|
59
|
+
"python3.7",
|
|
60
|
+
"python3.8",
|
|
61
|
+
"python3.9",
|
|
62
|
+
"python3.10",
|
|
63
|
+
"python3.11",
|
|
64
|
+
"python3.12",
|
|
65
|
+
"python3.13",
|
|
66
|
+
"python3.14",
|
|
67
|
+
"dotnetcore1.0",
|
|
68
|
+
"dotnetcore2.0",
|
|
69
|
+
"dotnetcore2.1",
|
|
70
|
+
"dotnetcore3.1",
|
|
71
|
+
"dotnet6",
|
|
72
|
+
"dotnet8",
|
|
73
|
+
"dotnet10",
|
|
74
|
+
"nodejs4.3-edge",
|
|
75
|
+
"go1.x",
|
|
76
|
+
"ruby2.5",
|
|
77
|
+
"ruby2.7",
|
|
78
|
+
"ruby3.2",
|
|
79
|
+
"ruby3.3",
|
|
80
|
+
"ruby3.4",
|
|
81
|
+
"ruby4.0",
|
|
82
|
+
"provided",
|
|
83
|
+
"provided.al2",
|
|
84
|
+
"provided.al2023",
|
|
85
|
+
"nodejs26.x",
|
|
86
|
+
"python3.15",
|
|
87
|
+
"java8.al2023",
|
|
88
|
+
"java11.al2023",
|
|
89
|
+
"java17.al2023",
|
|
90
|
+
]),
|
|
91
|
+
Schema.String,
|
|
92
|
+
]).annotate({ identifier: "Runtime" });
|
|
93
|
+
|
|
94
|
+
export type Runtime = typeof Runtime.Type;
|
|
95
|
+
|
|
96
|
+
export const S3ObjectStorageMode = Schema.Union([
|
|
97
|
+
Schema.Literals(["COPY", "REFERENCE"]),
|
|
98
|
+
Schema.String,
|
|
99
|
+
]).annotate({ identifier: "S3ObjectStorageMode" });
|
|
100
|
+
|
|
101
|
+
export type S3ObjectStorageMode = typeof S3ObjectStorageMode.Type;
|
|
102
|
+
|
|
103
|
+
export const FunctionVersionLatestPublished = Schema.Literal(
|
|
104
|
+
"LATEST_PUBLISHED",
|
|
105
|
+
).annotate({ identifier: "FunctionVersionLatestPublished" });
|
|
106
|
+
|
|
107
|
+
export type FunctionVersionLatestPublished =
|
|
108
|
+
typeof FunctionVersionLatestPublished.Type;
|
|
109
|
+
|
|
110
|
+
export const VpcConfig = Schema.StructWithRest(
|
|
111
|
+
Schema.Struct({
|
|
112
|
+
SubnetIds: optionalRestJsonMember(
|
|
113
|
+
Schema.Array(
|
|
114
|
+
Schema.String.check(
|
|
115
|
+
Schema.isMinCodePoints(0).annotate({
|
|
116
|
+
expected: "a string with at least 0 code points",
|
|
117
|
+
}),
|
|
118
|
+
)
|
|
119
|
+
.check(
|
|
120
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
121
|
+
expected: "a string with at most 1024 code points",
|
|
122
|
+
}),
|
|
123
|
+
)
|
|
124
|
+
.check(
|
|
125
|
+
Schema.isPattern(
|
|
126
|
+
new globalThis.RegExp("^subnet-[0-9a-z]*$", "u"),
|
|
127
|
+
).annotate({
|
|
128
|
+
expected: "a string matching the RegExp ^subnet-[0-9a-z]*$",
|
|
129
|
+
}),
|
|
130
|
+
),
|
|
131
|
+
)
|
|
132
|
+
.check(
|
|
133
|
+
Schema.isMinLength(0).annotate({
|
|
134
|
+
expected: "a value with a length of at least 0",
|
|
135
|
+
}),
|
|
136
|
+
)
|
|
137
|
+
.check(
|
|
138
|
+
Schema.isMaxLength(16).annotate({
|
|
139
|
+
expected: "a value with a length of at most 16",
|
|
140
|
+
}),
|
|
141
|
+
),
|
|
142
|
+
),
|
|
143
|
+
SecurityGroupIds: optionalRestJsonMember(
|
|
144
|
+
Schema.Array(
|
|
145
|
+
Schema.String.check(
|
|
146
|
+
Schema.isMinCodePoints(0).annotate({
|
|
147
|
+
expected: "a string with at least 0 code points",
|
|
148
|
+
}),
|
|
149
|
+
)
|
|
150
|
+
.check(
|
|
151
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
152
|
+
expected: "a string with at most 1024 code points",
|
|
153
|
+
}),
|
|
154
|
+
)
|
|
155
|
+
.check(
|
|
156
|
+
Schema.isPattern(
|
|
157
|
+
new globalThis.RegExp("^sg-[0-9a-zA-Z]*$", "u"),
|
|
158
|
+
).annotate({
|
|
159
|
+
expected: "a string matching the RegExp ^sg-[0-9a-zA-Z]*$",
|
|
160
|
+
}),
|
|
161
|
+
),
|
|
162
|
+
)
|
|
163
|
+
.check(
|
|
164
|
+
Schema.isMinLength(0).annotate({
|
|
165
|
+
expected: "a value with a length of at least 0",
|
|
166
|
+
}),
|
|
167
|
+
)
|
|
168
|
+
.check(
|
|
169
|
+
Schema.isMaxLength(5).annotate({
|
|
170
|
+
expected: "a value with a length of at most 5",
|
|
171
|
+
}),
|
|
172
|
+
),
|
|
173
|
+
),
|
|
174
|
+
Ipv6AllowedForDualStack: optionalRestJsonMember(Schema.Boolean),
|
|
175
|
+
}),
|
|
176
|
+
[
|
|
177
|
+
Schema.Record(
|
|
178
|
+
Schema.String,
|
|
179
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
180
|
+
),
|
|
181
|
+
],
|
|
182
|
+
).annotate({ identifier: "VpcConfig" });
|
|
183
|
+
|
|
184
|
+
export type VpcConfig = typeof VpcConfig.Type;
|
|
185
|
+
|
|
186
|
+
export const PackageType = Schema.Union([
|
|
187
|
+
Schema.Literals(["Zip", "Image"]),
|
|
188
|
+
Schema.String,
|
|
189
|
+
]).annotate({ identifier: "PackageType" });
|
|
190
|
+
|
|
191
|
+
export type PackageType = typeof PackageType.Type;
|
|
192
|
+
|
|
193
|
+
export const DeadLetterConfig = Schema.StructWithRest(
|
|
194
|
+
Schema.Struct({
|
|
195
|
+
TargetArn: optionalRestJsonMember(
|
|
196
|
+
Schema.String.check(
|
|
197
|
+
Schema.isMinCodePoints(0).annotate({
|
|
198
|
+
expected: "a string with at least 0 code points",
|
|
199
|
+
}),
|
|
200
|
+
)
|
|
201
|
+
.check(
|
|
202
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
203
|
+
expected: "a string with at most 10000 code points",
|
|
204
|
+
}),
|
|
205
|
+
)
|
|
206
|
+
.check(
|
|
207
|
+
Schema.isPattern(
|
|
208
|
+
new globalThis.RegExp(
|
|
209
|
+
"^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
210
|
+
"u",
|
|
211
|
+
),
|
|
212
|
+
).annotate({
|
|
213
|
+
expected:
|
|
214
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
215
|
+
}),
|
|
216
|
+
),
|
|
217
|
+
),
|
|
218
|
+
}),
|
|
219
|
+
[
|
|
220
|
+
Schema.Record(
|
|
221
|
+
Schema.String,
|
|
222
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
223
|
+
),
|
|
224
|
+
],
|
|
225
|
+
).annotate({ identifier: "DeadLetterConfig" });
|
|
226
|
+
|
|
227
|
+
export type DeadLetterConfig = typeof DeadLetterConfig.Type;
|
|
228
|
+
|
|
229
|
+
export const EnvironmentVariables = Schema.Record(
|
|
230
|
+
Schema.String,
|
|
231
|
+
Schema.String.annotate({ format: "password" }),
|
|
232
|
+
)
|
|
233
|
+
.annotate({ format: "password" })
|
|
234
|
+
.check(
|
|
235
|
+
Schema.isPropertyNames(
|
|
236
|
+
Schema.String.check(
|
|
237
|
+
Schema.isPattern(
|
|
238
|
+
new globalThis.RegExp("^[a-zA-Z]([a-zA-Z0-9_])+$", "u"),
|
|
239
|
+
).annotate({
|
|
240
|
+
expected: "a string matching the RegExp ^[a-zA-Z]([a-zA-Z0-9_])+$",
|
|
241
|
+
format: "password",
|
|
242
|
+
}),
|
|
243
|
+
),
|
|
244
|
+
).annotate({
|
|
245
|
+
expected: "an object with property names matching the schema",
|
|
246
|
+
identifier: "EnvironmentVariables",
|
|
247
|
+
}),
|
|
248
|
+
);
|
|
249
|
+
|
|
250
|
+
export type EnvironmentVariables = typeof EnvironmentVariables.Type;
|
|
251
|
+
|
|
252
|
+
export const TracingMode = Schema.Union([
|
|
253
|
+
Schema.Literals(["Active", "PassThrough"]),
|
|
254
|
+
Schema.String,
|
|
255
|
+
]).annotate({ identifier: "TracingMode" });
|
|
256
|
+
|
|
257
|
+
export type TracingMode = typeof TracingMode.Type;
|
|
258
|
+
|
|
259
|
+
export const Tags = Schema.Record(
|
|
260
|
+
Schema.String,
|
|
261
|
+
Schema.String.check(
|
|
262
|
+
Schema.isMinCodePoints(0).annotate({
|
|
263
|
+
expected: "a string with at least 0 code points",
|
|
264
|
+
}),
|
|
265
|
+
)
|
|
266
|
+
.check(
|
|
267
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
268
|
+
expected: "a string with at most 256 code points",
|
|
269
|
+
}),
|
|
270
|
+
)
|
|
271
|
+
.check(
|
|
272
|
+
Schema.isPattern(
|
|
273
|
+
new globalThis.RegExp("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$", "u"),
|
|
274
|
+
).annotate({
|
|
275
|
+
expected:
|
|
276
|
+
"a string matching the RegExp ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
|
|
277
|
+
}),
|
|
278
|
+
),
|
|
279
|
+
).check(
|
|
280
|
+
Schema.isPropertyNames(
|
|
281
|
+
Schema.String.check(
|
|
282
|
+
Schema.isMinLength(1).annotate({
|
|
283
|
+
expected: "a value with a length of at least 1",
|
|
284
|
+
}),
|
|
285
|
+
)
|
|
286
|
+
.check(
|
|
287
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
288
|
+
expected: "a string with at most 128 code points",
|
|
289
|
+
}),
|
|
290
|
+
)
|
|
291
|
+
.check(
|
|
292
|
+
Schema.isPattern(
|
|
293
|
+
new globalThis.RegExp("^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$", "u"),
|
|
294
|
+
).annotate({
|
|
295
|
+
expected:
|
|
296
|
+
"a string matching the RegExp ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
|
|
297
|
+
}),
|
|
298
|
+
),
|
|
299
|
+
).annotate({
|
|
300
|
+
expected: "an object with property names matching the schema",
|
|
301
|
+
identifier: "Tags",
|
|
302
|
+
}),
|
|
303
|
+
);
|
|
304
|
+
|
|
305
|
+
export type Tags = typeof Tags.Type;
|
|
306
|
+
|
|
307
|
+
export const DirectS3Read = Schema.Union([
|
|
308
|
+
Schema.Literals(["ENABLED", "DISABLED", "AUTO"]),
|
|
309
|
+
Schema.String,
|
|
310
|
+
]).annotate({ identifier: "DirectS3Read" });
|
|
311
|
+
|
|
312
|
+
export type DirectS3Read = typeof DirectS3Read.Type;
|
|
313
|
+
|
|
314
|
+
export const ImageConfig = Schema.StructWithRest(
|
|
315
|
+
Schema.Struct({
|
|
316
|
+
EntryPoint: optionalRestJsonMember(
|
|
317
|
+
Schema.Array(Schema.String)
|
|
318
|
+
.check(
|
|
319
|
+
Schema.isMinLength(0).annotate({
|
|
320
|
+
expected: "a value with a length of at least 0",
|
|
321
|
+
}),
|
|
322
|
+
)
|
|
323
|
+
.check(
|
|
324
|
+
Schema.isMaxLength(1500).annotate({
|
|
325
|
+
expected: "a value with a length of at most 1500",
|
|
326
|
+
}),
|
|
327
|
+
),
|
|
328
|
+
),
|
|
329
|
+
Command: optionalRestJsonMember(
|
|
330
|
+
Schema.Array(Schema.String)
|
|
331
|
+
.check(
|
|
332
|
+
Schema.isMinLength(0).annotate({
|
|
333
|
+
expected: "a value with a length of at least 0",
|
|
334
|
+
}),
|
|
335
|
+
)
|
|
336
|
+
.check(
|
|
337
|
+
Schema.isMaxLength(1500).annotate({
|
|
338
|
+
expected: "a value with a length of at most 1500",
|
|
339
|
+
}),
|
|
340
|
+
),
|
|
341
|
+
),
|
|
342
|
+
WorkingDirectory: optionalRestJsonMember(
|
|
343
|
+
Schema.String.check(
|
|
344
|
+
Schema.isMinCodePoints(0).annotate({
|
|
345
|
+
expected: "a string with at least 0 code points",
|
|
346
|
+
}),
|
|
347
|
+
).check(
|
|
348
|
+
Schema.isMaxCodePoints(1000).annotate({
|
|
349
|
+
expected: "a string with at most 1000 code points",
|
|
350
|
+
}),
|
|
351
|
+
),
|
|
352
|
+
),
|
|
353
|
+
}),
|
|
354
|
+
[
|
|
355
|
+
Schema.Record(
|
|
356
|
+
Schema.String,
|
|
357
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
358
|
+
),
|
|
359
|
+
],
|
|
360
|
+
).annotate({ identifier: "ImageConfig" });
|
|
361
|
+
|
|
362
|
+
export type ImageConfig = typeof ImageConfig.Type;
|
|
363
|
+
|
|
364
|
+
export const Architecture = Schema.Union([
|
|
365
|
+
Schema.Literals(["x86_64", "arm64"]),
|
|
366
|
+
Schema.String,
|
|
367
|
+
]).annotate({ identifier: "Architecture" });
|
|
368
|
+
|
|
369
|
+
export type Architecture = typeof Architecture.Type;
|
|
370
|
+
|
|
371
|
+
export const EphemeralStorage = Schema.StructWithRest(
|
|
372
|
+
Schema.Struct({
|
|
373
|
+
Size: Schema.Finite.check(
|
|
374
|
+
Schema.isGreaterThanOrEqualTo(512).annotate({
|
|
375
|
+
expected: "a value greater than or equal to 512",
|
|
376
|
+
}),
|
|
377
|
+
).check(
|
|
378
|
+
Schema.isLessThanOrEqualTo(32768).annotate({
|
|
379
|
+
expected: "a value less than or equal to 32768",
|
|
380
|
+
}),
|
|
381
|
+
),
|
|
382
|
+
}),
|
|
383
|
+
[
|
|
384
|
+
Schema.Record(
|
|
385
|
+
Schema.String,
|
|
386
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
387
|
+
),
|
|
388
|
+
],
|
|
389
|
+
).annotate({ identifier: "EphemeralStorage" });
|
|
390
|
+
|
|
391
|
+
export type EphemeralStorage = typeof EphemeralStorage.Type;
|
|
392
|
+
|
|
393
|
+
export const SnapStartApplyOn = Schema.Union([
|
|
394
|
+
Schema.Literals(["PublishedVersions", "None"]),
|
|
395
|
+
Schema.String,
|
|
396
|
+
]).annotate({ identifier: "SnapStartApplyOn" });
|
|
397
|
+
|
|
398
|
+
export type SnapStartApplyOn = typeof SnapStartApplyOn.Type;
|
|
399
|
+
|
|
400
|
+
export const LogFormat = Schema.Union([
|
|
401
|
+
Schema.Literals(["JSON", "Text"]),
|
|
402
|
+
Schema.String,
|
|
403
|
+
]).annotate({ identifier: "LogFormat" });
|
|
404
|
+
|
|
405
|
+
export type LogFormat = typeof LogFormat.Type;
|
|
406
|
+
|
|
407
|
+
export const ApplicationLogLevel = Schema.Union([
|
|
408
|
+
Schema.Literals(["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL"]),
|
|
409
|
+
Schema.String,
|
|
410
|
+
]).annotate({ identifier: "ApplicationLogLevel" });
|
|
411
|
+
|
|
412
|
+
export type ApplicationLogLevel = typeof ApplicationLogLevel.Type;
|
|
413
|
+
|
|
414
|
+
export const SystemLogLevel = Schema.Union([
|
|
415
|
+
Schema.Literals(["DEBUG", "INFO", "WARN"]),
|
|
416
|
+
Schema.String,
|
|
417
|
+
]).annotate({ identifier: "SystemLogLevel" });
|
|
418
|
+
|
|
419
|
+
export type SystemLogLevel = typeof SystemLogLevel.Type;
|
|
420
|
+
|
|
421
|
+
export const TenantIsolationMode = Schema.Literal("PER_TENANT").annotate({
|
|
422
|
+
identifier: "TenantIsolationMode",
|
|
423
|
+
});
|
|
424
|
+
|
|
425
|
+
export type TenantIsolationMode = typeof TenantIsolationMode.Type;
|
|
426
|
+
|
|
427
|
+
export const LambdaManagedInstancesCapacityProviderConfig =
|
|
428
|
+
Schema.StructWithRest(
|
|
429
|
+
Schema.Struct({
|
|
430
|
+
CapacityProviderArn: Schema.String.check(
|
|
431
|
+
Schema.isMinLength(1).annotate({
|
|
432
|
+
expected: "a value with a length of at least 1",
|
|
433
|
+
}),
|
|
434
|
+
)
|
|
435
|
+
.check(
|
|
436
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
437
|
+
expected: "a string with at most 140 code points",
|
|
438
|
+
}),
|
|
439
|
+
)
|
|
440
|
+
.check(
|
|
441
|
+
Schema.isPattern(
|
|
442
|
+
new globalThis.RegExp(
|
|
443
|
+
"^arn:aws[a-zA-Z-]*:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:capacity-provider:[a-zA-Z0-9-_]+$",
|
|
444
|
+
"u",
|
|
445
|
+
),
|
|
446
|
+
).annotate({
|
|
447
|
+
expected:
|
|
448
|
+
"a string matching the RegExp ^arn:aws[a-zA-Z-]*:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:capacity-provider:[a-zA-Z0-9-_]+$",
|
|
449
|
+
}),
|
|
450
|
+
),
|
|
451
|
+
PerExecutionEnvironmentMaxConcurrency: optionalRestJsonMember(
|
|
452
|
+
Schema.Finite.check(
|
|
453
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
454
|
+
expected: "a value greater than or equal to 1",
|
|
455
|
+
}),
|
|
456
|
+
).check(
|
|
457
|
+
Schema.isLessThanOrEqualTo(1600).annotate({
|
|
458
|
+
expected: "a value less than or equal to 1600",
|
|
459
|
+
}),
|
|
460
|
+
),
|
|
461
|
+
),
|
|
462
|
+
ExecutionEnvironmentMemoryGiBPerVCpu: optionalRestJsonMember(
|
|
463
|
+
Schema.Number.annotate({ format: "double" })
|
|
464
|
+
.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
465
|
+
.check(
|
|
466
|
+
Schema.isGreaterThanOrEqualTo(2).annotate({
|
|
467
|
+
expected: "a value greater than or equal to 2",
|
|
468
|
+
}),
|
|
469
|
+
)
|
|
470
|
+
.check(
|
|
471
|
+
Schema.isLessThanOrEqualTo(8).annotate({
|
|
472
|
+
expected: "a value less than or equal to 8",
|
|
473
|
+
}),
|
|
474
|
+
),
|
|
475
|
+
),
|
|
476
|
+
}),
|
|
477
|
+
[
|
|
478
|
+
Schema.Record(
|
|
479
|
+
Schema.String,
|
|
480
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
481
|
+
),
|
|
482
|
+
],
|
|
483
|
+
).annotate({ identifier: "LambdaManagedInstancesCapacityProviderConfig" });
|
|
484
|
+
|
|
485
|
+
export type LambdaManagedInstancesCapacityProviderConfig =
|
|
486
|
+
typeof LambdaManagedInstancesCapacityProviderConfig.Type;
|
|
487
|
+
|
|
488
|
+
export const DurableConfig = Schema.StructWithRest(
|
|
489
|
+
Schema.Struct({
|
|
490
|
+
KMSKeyArn: optionalRestJsonMember(
|
|
491
|
+
Schema.String.check(
|
|
492
|
+
Schema.isMinCodePoints(0).annotate({
|
|
493
|
+
expected: "a string with at least 0 code points",
|
|
494
|
+
}),
|
|
495
|
+
)
|
|
496
|
+
.check(
|
|
497
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
498
|
+
expected: "a string with at most 10000 code points",
|
|
499
|
+
}),
|
|
500
|
+
)
|
|
501
|
+
.check(
|
|
502
|
+
Schema.isPattern(
|
|
503
|
+
new globalThis.RegExp(
|
|
504
|
+
"^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
505
|
+
"u",
|
|
506
|
+
),
|
|
507
|
+
).annotate({
|
|
508
|
+
expected:
|
|
509
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
510
|
+
}),
|
|
511
|
+
),
|
|
512
|
+
),
|
|
513
|
+
RetentionPeriodInDays: optionalRestJsonMember(
|
|
514
|
+
Schema.Finite.check(
|
|
515
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
516
|
+
expected: "a value greater than or equal to 1",
|
|
517
|
+
}),
|
|
518
|
+
).check(
|
|
519
|
+
Schema.isLessThanOrEqualTo(90).annotate({
|
|
520
|
+
expected: "a value less than or equal to 90",
|
|
521
|
+
}),
|
|
522
|
+
),
|
|
523
|
+
),
|
|
524
|
+
ExecutionTimeout: optionalRestJsonMember(
|
|
525
|
+
Schema.Finite.check(
|
|
526
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
527
|
+
expected: "a value greater than or equal to 1",
|
|
528
|
+
}),
|
|
529
|
+
).check(
|
|
530
|
+
Schema.isLessThanOrEqualTo(31622400).annotate({
|
|
531
|
+
expected: "a value less than or equal to 31622400",
|
|
532
|
+
}),
|
|
533
|
+
),
|
|
534
|
+
),
|
|
535
|
+
}),
|
|
536
|
+
[
|
|
537
|
+
Schema.Record(
|
|
538
|
+
Schema.String,
|
|
539
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
540
|
+
),
|
|
541
|
+
],
|
|
542
|
+
).annotate({ identifier: "DurableConfig" });
|
|
543
|
+
|
|
544
|
+
export type DurableConfig = typeof DurableConfig.Type;
|
|
545
|
+
|
|
546
|
+
export const VpcConfigResponse = Schema.StructWithRest(
|
|
547
|
+
Schema.Struct({
|
|
548
|
+
SubnetIds: optionalRestJsonMember(
|
|
549
|
+
Schema.Array(
|
|
550
|
+
Schema.String.check(
|
|
551
|
+
Schema.isMinCodePoints(0).annotate({
|
|
552
|
+
expected: "a string with at least 0 code points",
|
|
553
|
+
}),
|
|
554
|
+
)
|
|
555
|
+
.check(
|
|
556
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
557
|
+
expected: "a string with at most 1024 code points",
|
|
558
|
+
}),
|
|
559
|
+
)
|
|
560
|
+
.check(
|
|
561
|
+
Schema.isPattern(
|
|
562
|
+
new globalThis.RegExp("^subnet-[0-9a-z]*$", "u"),
|
|
563
|
+
).annotate({
|
|
564
|
+
expected: "a string matching the RegExp ^subnet-[0-9a-z]*$",
|
|
565
|
+
}),
|
|
566
|
+
),
|
|
567
|
+
)
|
|
568
|
+
.check(
|
|
569
|
+
Schema.isMinLength(0).annotate({
|
|
570
|
+
expected: "a value with a length of at least 0",
|
|
571
|
+
}),
|
|
572
|
+
)
|
|
573
|
+
.check(
|
|
574
|
+
Schema.isMaxLength(16).annotate({
|
|
575
|
+
expected: "a value with a length of at most 16",
|
|
576
|
+
}),
|
|
577
|
+
),
|
|
578
|
+
),
|
|
579
|
+
SecurityGroupIds: optionalRestJsonMember(
|
|
580
|
+
Schema.Array(
|
|
581
|
+
Schema.String.check(
|
|
582
|
+
Schema.isMinCodePoints(0).annotate({
|
|
583
|
+
expected: "a string with at least 0 code points",
|
|
584
|
+
}),
|
|
585
|
+
)
|
|
586
|
+
.check(
|
|
587
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
588
|
+
expected: "a string with at most 1024 code points",
|
|
589
|
+
}),
|
|
590
|
+
)
|
|
591
|
+
.check(
|
|
592
|
+
Schema.isPattern(
|
|
593
|
+
new globalThis.RegExp("^sg-[0-9a-zA-Z]*$", "u"),
|
|
594
|
+
).annotate({
|
|
595
|
+
expected: "a string matching the RegExp ^sg-[0-9a-zA-Z]*$",
|
|
596
|
+
}),
|
|
597
|
+
),
|
|
598
|
+
)
|
|
599
|
+
.check(
|
|
600
|
+
Schema.isMinLength(0).annotate({
|
|
601
|
+
expected: "a value with a length of at least 0",
|
|
602
|
+
}),
|
|
603
|
+
)
|
|
604
|
+
.check(
|
|
605
|
+
Schema.isMaxLength(5).annotate({
|
|
606
|
+
expected: "a value with a length of at most 5",
|
|
607
|
+
}),
|
|
608
|
+
),
|
|
609
|
+
),
|
|
610
|
+
VpcId: optionalRestJsonMember(Schema.String),
|
|
611
|
+
Ipv6AllowedForDualStack: optionalRestJsonMember(Schema.Boolean),
|
|
612
|
+
}),
|
|
613
|
+
[
|
|
614
|
+
Schema.Record(
|
|
615
|
+
Schema.String,
|
|
616
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
617
|
+
),
|
|
618
|
+
],
|
|
619
|
+
).annotate({ identifier: "VpcConfigResponse" });
|
|
620
|
+
|
|
621
|
+
export type VpcConfigResponse = typeof VpcConfigResponse.Type;
|
|
622
|
+
|
|
623
|
+
export const EnvironmentError = Schema.StructWithRest(
|
|
624
|
+
Schema.Struct({
|
|
625
|
+
ErrorCode: optionalRestJsonMember(Schema.String),
|
|
626
|
+
Message: optionalRestJsonMember(
|
|
627
|
+
Schema.String.annotate({ format: "password" }),
|
|
628
|
+
),
|
|
629
|
+
}),
|
|
630
|
+
[
|
|
631
|
+
Schema.Record(
|
|
632
|
+
Schema.String,
|
|
633
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
634
|
+
),
|
|
635
|
+
],
|
|
636
|
+
).annotate({ identifier: "EnvironmentError" });
|
|
637
|
+
|
|
638
|
+
export type EnvironmentError = typeof EnvironmentError.Type;
|
|
639
|
+
|
|
640
|
+
export const Layer = Schema.StructWithRest(
|
|
641
|
+
Schema.Struct({
|
|
642
|
+
Arn: optionalRestJsonMember(
|
|
643
|
+
Schema.String.check(
|
|
644
|
+
Schema.isMinLength(1).annotate({
|
|
645
|
+
expected: "a value with a length of at least 1",
|
|
646
|
+
}),
|
|
647
|
+
)
|
|
648
|
+
.check(
|
|
649
|
+
Schema.isMaxCodePoints(2048).annotate({
|
|
650
|
+
expected: "a string with at most 2048 code points",
|
|
651
|
+
}),
|
|
652
|
+
)
|
|
653
|
+
.check(
|
|
654
|
+
Schema.isPattern(
|
|
655
|
+
new globalThis.RegExp(
|
|
656
|
+
"^((arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+)|(arn:[a-zA-Z0-9-]+:lambda:::awslayer:[a-zA-Z0-9-_]+))$",
|
|
657
|
+
"u",
|
|
658
|
+
),
|
|
659
|
+
).annotate({
|
|
660
|
+
expected:
|
|
661
|
+
"a string matching the RegExp ^((arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+)|(arn:[a-zA-Z0-9-]+:lambda:::awslayer:[a-zA-Z0-9-_]+))$",
|
|
662
|
+
}),
|
|
663
|
+
),
|
|
664
|
+
),
|
|
665
|
+
CodeSize: optionalRestJsonMember(
|
|
666
|
+
Schema.Number.annotate({ default: 0 }).check(
|
|
667
|
+
Schema.isFinite().annotate({ expected: "a finite number" }),
|
|
668
|
+
),
|
|
669
|
+
),
|
|
670
|
+
SigningProfileVersionArn: optionalRestJsonMember(
|
|
671
|
+
Schema.String.check(
|
|
672
|
+
Schema.isMinCodePoints(0).annotate({
|
|
673
|
+
expected: "a string with at least 0 code points",
|
|
674
|
+
}),
|
|
675
|
+
)
|
|
676
|
+
.check(
|
|
677
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
678
|
+
expected: "a string with at most 10000 code points",
|
|
679
|
+
}),
|
|
680
|
+
)
|
|
681
|
+
.check(
|
|
682
|
+
Schema.isPattern(
|
|
683
|
+
new globalThis.RegExp(
|
|
684
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
685
|
+
"u",
|
|
686
|
+
),
|
|
687
|
+
).annotate({
|
|
688
|
+
expected:
|
|
689
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
690
|
+
}),
|
|
691
|
+
),
|
|
692
|
+
),
|
|
693
|
+
SigningJobArn: optionalRestJsonMember(
|
|
694
|
+
Schema.String.check(
|
|
695
|
+
Schema.isMinCodePoints(0).annotate({
|
|
696
|
+
expected: "a string with at least 0 code points",
|
|
697
|
+
}),
|
|
698
|
+
)
|
|
699
|
+
.check(
|
|
700
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
701
|
+
expected: "a string with at most 10000 code points",
|
|
702
|
+
}),
|
|
703
|
+
)
|
|
704
|
+
.check(
|
|
705
|
+
Schema.isPattern(
|
|
706
|
+
new globalThis.RegExp(
|
|
707
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
708
|
+
"u",
|
|
709
|
+
),
|
|
710
|
+
).annotate({
|
|
711
|
+
expected:
|
|
712
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
713
|
+
}),
|
|
714
|
+
),
|
|
715
|
+
),
|
|
716
|
+
}),
|
|
717
|
+
[
|
|
718
|
+
Schema.Record(
|
|
719
|
+
Schema.String,
|
|
720
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
721
|
+
),
|
|
722
|
+
],
|
|
723
|
+
).annotate({ identifier: "Layer" });
|
|
724
|
+
|
|
725
|
+
export type Layer = typeof Layer.Type;
|
|
726
|
+
|
|
727
|
+
export const State = Schema.Union([
|
|
728
|
+
Schema.Literals([
|
|
729
|
+
"Pending",
|
|
730
|
+
"Active",
|
|
731
|
+
"Inactive",
|
|
732
|
+
"Failed",
|
|
733
|
+
"Deactivating",
|
|
734
|
+
"Deactivated",
|
|
735
|
+
"ActiveNonInvocable",
|
|
736
|
+
"Deleting",
|
|
737
|
+
]),
|
|
738
|
+
Schema.String,
|
|
739
|
+
]).annotate({ identifier: "State" });
|
|
740
|
+
|
|
741
|
+
export type State = typeof State.Type;
|
|
742
|
+
|
|
743
|
+
export const StateReasonCode = Schema.Union([
|
|
744
|
+
Schema.Literals([
|
|
745
|
+
"Idle",
|
|
746
|
+
"Creating",
|
|
747
|
+
"Restoring",
|
|
748
|
+
"EniLimitExceeded",
|
|
749
|
+
"InsufficientRolePermissions",
|
|
750
|
+
"InvalidConfiguration",
|
|
751
|
+
"InternalError",
|
|
752
|
+
"SubnetOutOfIPAddresses",
|
|
753
|
+
"InvalidSubnet",
|
|
754
|
+
"InvalidSecurityGroup",
|
|
755
|
+
"ImageDeleted",
|
|
756
|
+
"ImageAccessDenied",
|
|
757
|
+
"InvalidImage",
|
|
758
|
+
"KMSKeyAccessDenied",
|
|
759
|
+
"KMSKeyNotFound",
|
|
760
|
+
"InvalidStateKMSKey",
|
|
761
|
+
"DisabledKMSKey",
|
|
762
|
+
"EFSIOError",
|
|
763
|
+
"EFSMountConnectivityError",
|
|
764
|
+
"EFSMountFailure",
|
|
765
|
+
"EFSMountTimeout",
|
|
766
|
+
"InvalidRuntime",
|
|
767
|
+
"InvalidZipFileException",
|
|
768
|
+
"FunctionError",
|
|
769
|
+
"ServiceQuotaExceededException",
|
|
770
|
+
"VcpuLimitExceeded",
|
|
771
|
+
"CapacityProviderScalingLimitExceeded",
|
|
772
|
+
"InsufficientCapacity",
|
|
773
|
+
"EC2RequestLimitExceeded",
|
|
774
|
+
"FunctionError.InitTimeout",
|
|
775
|
+
"FunctionError.RuntimeInitError",
|
|
776
|
+
"FunctionError.ExtensionInitError",
|
|
777
|
+
"FunctionError.InvalidEntryPoint",
|
|
778
|
+
"FunctionError.InvalidWorkingDirectory",
|
|
779
|
+
"FunctionError.PermissionDenied",
|
|
780
|
+
"FunctionError.TooManyExtensions",
|
|
781
|
+
"FunctionError.InitResourceExhausted",
|
|
782
|
+
"DisallowedByVpcEncryptionControl",
|
|
783
|
+
"DrainingDurableExecutions",
|
|
784
|
+
"DependencyError",
|
|
785
|
+
]),
|
|
786
|
+
Schema.String,
|
|
787
|
+
]).annotate({ identifier: "StateReasonCode" });
|
|
788
|
+
|
|
789
|
+
export type StateReasonCode = typeof StateReasonCode.Type;
|
|
790
|
+
|
|
791
|
+
export const LastUpdateStatus = Schema.Union([
|
|
792
|
+
Schema.Literals(["Successful", "Failed", "InProgress"]),
|
|
793
|
+
Schema.String,
|
|
794
|
+
]).annotate({ identifier: "LastUpdateStatus" });
|
|
795
|
+
|
|
796
|
+
export type LastUpdateStatus = typeof LastUpdateStatus.Type;
|
|
797
|
+
|
|
798
|
+
export const LastUpdateStatusReasonCode = Schema.Union([
|
|
799
|
+
Schema.Literals([
|
|
800
|
+
"EniLimitExceeded",
|
|
801
|
+
"InsufficientRolePermissions",
|
|
802
|
+
"InvalidConfiguration",
|
|
803
|
+
"InternalError",
|
|
804
|
+
"SubnetOutOfIPAddresses",
|
|
805
|
+
"InvalidSubnet",
|
|
806
|
+
"InvalidSecurityGroup",
|
|
807
|
+
"ImageDeleted",
|
|
808
|
+
"ImageAccessDenied",
|
|
809
|
+
"InvalidImage",
|
|
810
|
+
"KMSKeyAccessDenied",
|
|
811
|
+
"KMSKeyNotFound",
|
|
812
|
+
"InvalidStateKMSKey",
|
|
813
|
+
"DisabledKMSKey",
|
|
814
|
+
"EFSIOError",
|
|
815
|
+
"EFSMountConnectivityError",
|
|
816
|
+
"EFSMountFailure",
|
|
817
|
+
"EFSMountTimeout",
|
|
818
|
+
"InvalidRuntime",
|
|
819
|
+
"InvalidZipFileException",
|
|
820
|
+
"FunctionError",
|
|
821
|
+
"ServiceQuotaExceededException",
|
|
822
|
+
"VcpuLimitExceeded",
|
|
823
|
+
"CapacityProviderScalingLimitExceeded",
|
|
824
|
+
"InsufficientCapacity",
|
|
825
|
+
"EC2RequestLimitExceeded",
|
|
826
|
+
"FunctionError.InitTimeout",
|
|
827
|
+
"FunctionError.RuntimeInitError",
|
|
828
|
+
"FunctionError.ExtensionInitError",
|
|
829
|
+
"FunctionError.InvalidEntryPoint",
|
|
830
|
+
"FunctionError.InvalidWorkingDirectory",
|
|
831
|
+
"FunctionError.PermissionDenied",
|
|
832
|
+
"FunctionError.TooManyExtensions",
|
|
833
|
+
"FunctionError.InitResourceExhausted",
|
|
834
|
+
"DisallowedByVpcEncryptionControl",
|
|
835
|
+
"DependencyError",
|
|
836
|
+
]),
|
|
837
|
+
Schema.String,
|
|
838
|
+
]).annotate({ identifier: "LastUpdateStatusReasonCode" });
|
|
839
|
+
|
|
840
|
+
export type LastUpdateStatusReasonCode = typeof LastUpdateStatusReasonCode.Type;
|
|
841
|
+
|
|
842
|
+
export const ImageConfigError = Schema.StructWithRest(
|
|
843
|
+
Schema.Struct({
|
|
844
|
+
ErrorCode: optionalRestJsonMember(Schema.String),
|
|
845
|
+
Message: optionalRestJsonMember(
|
|
846
|
+
Schema.String.annotate({ format: "password" }),
|
|
847
|
+
),
|
|
848
|
+
}),
|
|
849
|
+
[
|
|
850
|
+
Schema.Record(
|
|
851
|
+
Schema.String,
|
|
852
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
853
|
+
),
|
|
854
|
+
],
|
|
855
|
+
).annotate({ identifier: "ImageConfigError" });
|
|
856
|
+
|
|
857
|
+
export type ImageConfigError = typeof ImageConfigError.Type;
|
|
858
|
+
|
|
859
|
+
export const SnapStartOptimizationStatus = Schema.Union([
|
|
860
|
+
Schema.Literals(["On", "Off"]),
|
|
861
|
+
Schema.String,
|
|
862
|
+
]).annotate({ identifier: "SnapStartOptimizationStatus" });
|
|
863
|
+
|
|
864
|
+
export type SnapStartOptimizationStatus =
|
|
865
|
+
typeof SnapStartOptimizationStatus.Type;
|
|
866
|
+
|
|
867
|
+
export const RuntimeVersionError = Schema.StructWithRest(
|
|
868
|
+
Schema.Struct({
|
|
869
|
+
ErrorCode: optionalRestJsonMember(Schema.String),
|
|
870
|
+
Message: optionalRestJsonMember(
|
|
871
|
+
Schema.String.annotate({ format: "password" }),
|
|
872
|
+
),
|
|
873
|
+
}),
|
|
874
|
+
[
|
|
875
|
+
Schema.Record(
|
|
876
|
+
Schema.String,
|
|
877
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
878
|
+
),
|
|
879
|
+
],
|
|
880
|
+
).annotate({ identifier: "RuntimeVersionError" });
|
|
881
|
+
|
|
882
|
+
export type RuntimeVersionError = typeof RuntimeVersionError.Type;
|
|
883
|
+
|
|
884
|
+
export const FunctionCode = Schema.StructWithRest(
|
|
885
|
+
Schema.Struct({
|
|
886
|
+
ZipFile: optionalRestJsonMember(
|
|
887
|
+
Schema.String.annotate({ contentEncoding: "byte" }),
|
|
888
|
+
),
|
|
889
|
+
S3Bucket: optionalRestJsonMember(
|
|
890
|
+
Schema.String.check(
|
|
891
|
+
Schema.isMinCodePoints(3).annotate({
|
|
892
|
+
expected: "a string with at least 3 code points",
|
|
893
|
+
}),
|
|
894
|
+
)
|
|
895
|
+
.check(
|
|
896
|
+
Schema.isMaxCodePoints(63).annotate({
|
|
897
|
+
expected: "a string with at most 63 code points",
|
|
898
|
+
}),
|
|
899
|
+
)
|
|
900
|
+
.check(
|
|
901
|
+
Schema.isPattern(
|
|
902
|
+
new globalThis.RegExp("^[0-9A-Za-z\\.\\-_]*(?<!\\.)$", "u"),
|
|
903
|
+
).annotate({
|
|
904
|
+
expected:
|
|
905
|
+
"a string matching the RegExp ^[0-9A-Za-z\\.\\-_]*(?<!\\.)$",
|
|
906
|
+
}),
|
|
907
|
+
),
|
|
908
|
+
),
|
|
909
|
+
S3Key: optionalRestJsonMember(
|
|
910
|
+
Schema.String.check(
|
|
911
|
+
Schema.isMinLength(1).annotate({
|
|
912
|
+
expected: "a value with a length of at least 1",
|
|
913
|
+
}),
|
|
914
|
+
)
|
|
915
|
+
.check(
|
|
916
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
917
|
+
expected: "a string with at most 1024 code points",
|
|
918
|
+
}),
|
|
919
|
+
)
|
|
920
|
+
.check(
|
|
921
|
+
Schema.isPattern(new globalThis.RegExp("^.*$", "u")).annotate({
|
|
922
|
+
expected: "a string matching the RegExp ^.*$",
|
|
923
|
+
}),
|
|
924
|
+
),
|
|
925
|
+
),
|
|
926
|
+
S3ObjectVersion: optionalRestJsonMember(
|
|
927
|
+
Schema.String.check(
|
|
928
|
+
Schema.isMinLength(1).annotate({
|
|
929
|
+
expected: "a value with a length of at least 1",
|
|
930
|
+
}),
|
|
931
|
+
)
|
|
932
|
+
.check(
|
|
933
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
934
|
+
expected: "a string with at most 1024 code points",
|
|
935
|
+
}),
|
|
936
|
+
)
|
|
937
|
+
.check(
|
|
938
|
+
Schema.isPattern(new globalThis.RegExp("^.*$", "u")).annotate({
|
|
939
|
+
expected: "a string matching the RegExp ^.*$",
|
|
940
|
+
}),
|
|
941
|
+
),
|
|
942
|
+
),
|
|
943
|
+
S3ObjectStorageMode: optionalRestJsonMember(S3ObjectStorageMode),
|
|
944
|
+
ImageUri: optionalRestJsonMember(Schema.String),
|
|
945
|
+
SourceKMSKeyArn: optionalRestJsonMember(
|
|
946
|
+
Schema.String.check(
|
|
947
|
+
Schema.isMinCodePoints(0).annotate({
|
|
948
|
+
expected: "a string with at least 0 code points",
|
|
949
|
+
}),
|
|
950
|
+
)
|
|
951
|
+
.check(
|
|
952
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
953
|
+
expected: "a string with at most 10000 code points",
|
|
954
|
+
}),
|
|
955
|
+
)
|
|
956
|
+
.check(
|
|
957
|
+
Schema.isPattern(
|
|
958
|
+
new globalThis.RegExp(
|
|
959
|
+
"^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
960
|
+
"u",
|
|
961
|
+
),
|
|
962
|
+
).annotate({
|
|
963
|
+
expected:
|
|
964
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
965
|
+
}),
|
|
966
|
+
),
|
|
967
|
+
),
|
|
968
|
+
}),
|
|
969
|
+
[
|
|
970
|
+
Schema.Record(
|
|
971
|
+
Schema.String,
|
|
972
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
973
|
+
),
|
|
974
|
+
],
|
|
975
|
+
).annotate({ identifier: "FunctionCode" });
|
|
976
|
+
|
|
977
|
+
export type FunctionCode = typeof FunctionCode.Type;
|
|
978
|
+
|
|
979
|
+
export const Environment = Schema.StructWithRest(
|
|
980
|
+
Schema.Struct({ Variables: optionalRestJsonMember(EnvironmentVariables) }),
|
|
981
|
+
[
|
|
982
|
+
Schema.Record(
|
|
983
|
+
Schema.String,
|
|
984
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
985
|
+
),
|
|
986
|
+
],
|
|
987
|
+
).annotate({ identifier: "Environment" });
|
|
988
|
+
|
|
989
|
+
export type Environment = typeof Environment.Type;
|
|
990
|
+
|
|
991
|
+
export const TracingConfig = Schema.StructWithRest(
|
|
992
|
+
Schema.Struct({ Mode: optionalRestJsonMember(TracingMode) }),
|
|
993
|
+
[
|
|
994
|
+
Schema.Record(
|
|
995
|
+
Schema.String,
|
|
996
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
997
|
+
),
|
|
998
|
+
],
|
|
999
|
+
).annotate({ identifier: "TracingConfig" });
|
|
1000
|
+
|
|
1001
|
+
export type TracingConfig = typeof TracingConfig.Type;
|
|
1002
|
+
|
|
1003
|
+
export const TracingConfigResponse = Schema.StructWithRest(
|
|
1004
|
+
Schema.Struct({ Mode: optionalRestJsonMember(TracingMode) }),
|
|
1005
|
+
[
|
|
1006
|
+
Schema.Record(
|
|
1007
|
+
Schema.String,
|
|
1008
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1009
|
+
),
|
|
1010
|
+
],
|
|
1011
|
+
).annotate({ identifier: "TracingConfigResponse" });
|
|
1012
|
+
|
|
1013
|
+
export type TracingConfigResponse = typeof TracingConfigResponse.Type;
|
|
1014
|
+
|
|
1015
|
+
export const S3FilesConfig = Schema.StructWithRest(
|
|
1016
|
+
Schema.Struct({ DirectS3Read: optionalRestJsonMember(DirectS3Read) }),
|
|
1017
|
+
[
|
|
1018
|
+
Schema.Record(
|
|
1019
|
+
Schema.String,
|
|
1020
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1021
|
+
),
|
|
1022
|
+
],
|
|
1023
|
+
).annotate({ identifier: "S3FilesConfig" });
|
|
1024
|
+
|
|
1025
|
+
export type S3FilesConfig = typeof S3FilesConfig.Type;
|
|
1026
|
+
|
|
1027
|
+
export const SnapStart = Schema.StructWithRest(
|
|
1028
|
+
Schema.Struct({ ApplyOn: optionalRestJsonMember(SnapStartApplyOn) }),
|
|
1029
|
+
[
|
|
1030
|
+
Schema.Record(
|
|
1031
|
+
Schema.String,
|
|
1032
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1033
|
+
),
|
|
1034
|
+
],
|
|
1035
|
+
).annotate({ identifier: "SnapStart" });
|
|
1036
|
+
|
|
1037
|
+
export type SnapStart = typeof SnapStart.Type;
|
|
1038
|
+
|
|
1039
|
+
export const LoggingConfig = Schema.StructWithRest(
|
|
1040
|
+
Schema.Struct({
|
|
1041
|
+
LogFormat: optionalRestJsonMember(LogFormat),
|
|
1042
|
+
ApplicationLogLevel: optionalRestJsonMember(ApplicationLogLevel),
|
|
1043
|
+
SystemLogLevel: optionalRestJsonMember(SystemLogLevel),
|
|
1044
|
+
LogGroup: optionalRestJsonMember(
|
|
1045
|
+
Schema.String.check(
|
|
1046
|
+
Schema.isMinLength(1).annotate({
|
|
1047
|
+
expected: "a value with a length of at least 1",
|
|
1048
|
+
}),
|
|
1049
|
+
)
|
|
1050
|
+
.check(
|
|
1051
|
+
Schema.isMaxCodePoints(512).annotate({
|
|
1052
|
+
expected: "a string with at most 512 code points",
|
|
1053
|
+
}),
|
|
1054
|
+
)
|
|
1055
|
+
.check(
|
|
1056
|
+
Schema.isPattern(
|
|
1057
|
+
new globalThis.RegExp("^[\\.\\-_/#A-Za-z0-9]+$", "u"),
|
|
1058
|
+
).annotate({
|
|
1059
|
+
expected: "a string matching the RegExp ^[\\.\\-_/#A-Za-z0-9]+$",
|
|
1060
|
+
}),
|
|
1061
|
+
),
|
|
1062
|
+
),
|
|
1063
|
+
}),
|
|
1064
|
+
[
|
|
1065
|
+
Schema.Record(
|
|
1066
|
+
Schema.String,
|
|
1067
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1068
|
+
),
|
|
1069
|
+
],
|
|
1070
|
+
).annotate({ identifier: "LoggingConfig" });
|
|
1071
|
+
|
|
1072
|
+
export type LoggingConfig = typeof LoggingConfig.Type;
|
|
1073
|
+
|
|
1074
|
+
export const TenancyConfig = Schema.StructWithRest(
|
|
1075
|
+
Schema.Struct({ TenantIsolationMode: TenantIsolationMode }),
|
|
1076
|
+
[
|
|
1077
|
+
Schema.Record(
|
|
1078
|
+
Schema.String,
|
|
1079
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1080
|
+
),
|
|
1081
|
+
],
|
|
1082
|
+
).annotate({ identifier: "TenancyConfig" });
|
|
1083
|
+
|
|
1084
|
+
export type TenancyConfig = typeof TenancyConfig.Type;
|
|
1085
|
+
|
|
1086
|
+
export const CapacityProviderConfig = Schema.StructWithRest(
|
|
1087
|
+
Schema.Struct({
|
|
1088
|
+
LambdaManagedInstancesCapacityProviderConfig:
|
|
1089
|
+
LambdaManagedInstancesCapacityProviderConfig,
|
|
1090
|
+
}),
|
|
1091
|
+
[
|
|
1092
|
+
Schema.Record(
|
|
1093
|
+
Schema.String,
|
|
1094
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1095
|
+
),
|
|
1096
|
+
],
|
|
1097
|
+
).annotate({ identifier: "CapacityProviderConfig" });
|
|
1098
|
+
|
|
1099
|
+
export type CapacityProviderConfig = typeof CapacityProviderConfig.Type;
|
|
1100
|
+
|
|
1101
|
+
export const EnvironmentResponse = Schema.StructWithRest(
|
|
1102
|
+
Schema.Struct({
|
|
1103
|
+
Variables: optionalRestJsonMember(EnvironmentVariables),
|
|
1104
|
+
Error: optionalRestJsonMember(EnvironmentError),
|
|
1105
|
+
}),
|
|
1106
|
+
[
|
|
1107
|
+
Schema.Record(
|
|
1108
|
+
Schema.String,
|
|
1109
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1110
|
+
),
|
|
1111
|
+
],
|
|
1112
|
+
).annotate({ identifier: "EnvironmentResponse" });
|
|
1113
|
+
|
|
1114
|
+
export type EnvironmentResponse = typeof EnvironmentResponse.Type;
|
|
1115
|
+
|
|
1116
|
+
export const ImageConfigResponse = Schema.StructWithRest(
|
|
1117
|
+
Schema.Struct({
|
|
1118
|
+
ImageConfig: optionalRestJsonMember(ImageConfig),
|
|
1119
|
+
Error: optionalRestJsonMember(ImageConfigError),
|
|
1120
|
+
}),
|
|
1121
|
+
[
|
|
1122
|
+
Schema.Record(
|
|
1123
|
+
Schema.String,
|
|
1124
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1125
|
+
),
|
|
1126
|
+
],
|
|
1127
|
+
).annotate({ identifier: "ImageConfigResponse" });
|
|
1128
|
+
|
|
1129
|
+
export type ImageConfigResponse = typeof ImageConfigResponse.Type;
|
|
1130
|
+
|
|
1131
|
+
export const SnapStartResponse = Schema.StructWithRest(
|
|
1132
|
+
Schema.Struct({
|
|
1133
|
+
ApplyOn: optionalRestJsonMember(SnapStartApplyOn),
|
|
1134
|
+
OptimizationStatus: optionalRestJsonMember(SnapStartOptimizationStatus),
|
|
1135
|
+
}),
|
|
1136
|
+
[
|
|
1137
|
+
Schema.Record(
|
|
1138
|
+
Schema.String,
|
|
1139
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1140
|
+
),
|
|
1141
|
+
],
|
|
1142
|
+
).annotate({ identifier: "SnapStartResponse" });
|
|
1143
|
+
|
|
1144
|
+
export type SnapStartResponse = typeof SnapStartResponse.Type;
|
|
1145
|
+
|
|
1146
|
+
export const RuntimeVersionConfig = Schema.StructWithRest(
|
|
1147
|
+
Schema.Struct({
|
|
1148
|
+
RuntimeVersionArn: optionalRestJsonMember(
|
|
1149
|
+
Schema.String.check(
|
|
1150
|
+
Schema.isMinCodePoints(26).annotate({
|
|
1151
|
+
expected: "a string with at least 26 code points",
|
|
1152
|
+
}),
|
|
1153
|
+
)
|
|
1154
|
+
.check(
|
|
1155
|
+
Schema.isMaxCodePoints(2048).annotate({
|
|
1156
|
+
expected: "a string with at most 2048 code points",
|
|
1157
|
+
}),
|
|
1158
|
+
)
|
|
1159
|
+
.check(
|
|
1160
|
+
Schema.isPattern(
|
|
1161
|
+
new globalThis.RegExp(
|
|
1162
|
+
"^((arn:(aws[a-zA-Z-]*):lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}::runtime:.+)|(arn:(aws[a-zA-Z-]*):lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:runtime\\/[A-Za-z0-9_.-]{1,128}\\/version\\/[A-Za-z0-9_.-]{1,128}))$",
|
|
1163
|
+
"u",
|
|
1164
|
+
),
|
|
1165
|
+
).annotate({
|
|
1166
|
+
expected:
|
|
1167
|
+
"a string matching the RegExp ^((arn:(aws[a-zA-Z-]*):lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}::runtime:.+)|(arn:(aws[a-zA-Z-]*):lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:runtime\\/[A-Za-z0-9_.-]{1,128}\\/version\\/[A-Za-z0-9_.-]{1,128}))$",
|
|
1168
|
+
}),
|
|
1169
|
+
),
|
|
1170
|
+
),
|
|
1171
|
+
Error: optionalRestJsonMember(RuntimeVersionError),
|
|
1172
|
+
}),
|
|
1173
|
+
[
|
|
1174
|
+
Schema.Record(
|
|
1175
|
+
Schema.String,
|
|
1176
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1177
|
+
),
|
|
1178
|
+
],
|
|
1179
|
+
).annotate({ identifier: "RuntimeVersionConfig" });
|
|
1180
|
+
|
|
1181
|
+
export type RuntimeVersionConfig = typeof RuntimeVersionConfig.Type;
|
|
1182
|
+
|
|
1183
|
+
export const FileSystemConfig = Schema.StructWithRest(
|
|
1184
|
+
Schema.Struct({
|
|
1185
|
+
Arn: Schema.String.check(
|
|
1186
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1187
|
+
expected: "a string with at least 0 code points",
|
|
1188
|
+
}),
|
|
1189
|
+
)
|
|
1190
|
+
.check(
|
|
1191
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
1192
|
+
expected: "a string with at most 256 code points",
|
|
1193
|
+
}),
|
|
1194
|
+
)
|
|
1195
|
+
.check(
|
|
1196
|
+
Schema.isPattern(
|
|
1197
|
+
new globalThis.RegExp(
|
|
1198
|
+
"^arn:aws[a-zA-Z-]*:elasticfilesystem:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:access-point\\/fsap-[a-f0-9]{17}$|^arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system\\/fs-[0-9a-f]{17,40}\\/access-point\\/fsap-[0-9a-f]{17,40}$",
|
|
1199
|
+
"u",
|
|
1200
|
+
),
|
|
1201
|
+
).annotate({
|
|
1202
|
+
expected:
|
|
1203
|
+
"a string matching the RegExp ^arn:aws[a-zA-Z-]*:elasticfilesystem:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:access-point\\/fsap-[a-f0-9]{17}$|^arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system\\/fs-[0-9a-f]{17,40}\\/access-point\\/fsap-[0-9a-f]{17,40}$",
|
|
1204
|
+
}),
|
|
1205
|
+
),
|
|
1206
|
+
LocalMountPath: Schema.String.check(
|
|
1207
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1208
|
+
expected: "a string with at least 0 code points",
|
|
1209
|
+
}),
|
|
1210
|
+
)
|
|
1211
|
+
.check(
|
|
1212
|
+
Schema.isMaxCodePoints(160).annotate({
|
|
1213
|
+
expected: "a string with at most 160 code points",
|
|
1214
|
+
}),
|
|
1215
|
+
)
|
|
1216
|
+
.check(
|
|
1217
|
+
Schema.isPattern(
|
|
1218
|
+
new globalThis.RegExp("^\\/mnt\\/[a-zA-Z0-9-_.]+$", "u"),
|
|
1219
|
+
).annotate({
|
|
1220
|
+
expected: "a string matching the RegExp ^\\/mnt\\/[a-zA-Z0-9-_.]+$",
|
|
1221
|
+
}),
|
|
1222
|
+
),
|
|
1223
|
+
S3FilesConfig: optionalRestJsonMember(S3FilesConfig),
|
|
1224
|
+
}),
|
|
1225
|
+
[
|
|
1226
|
+
Schema.Record(
|
|
1227
|
+
Schema.String,
|
|
1228
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1229
|
+
),
|
|
1230
|
+
],
|
|
1231
|
+
).annotate({ identifier: "FileSystemConfig" });
|
|
1232
|
+
|
|
1233
|
+
export type FileSystemConfig = typeof FileSystemConfig.Type;
|
|
1234
|
+
|
|
1235
|
+
export const AddPermissionRequest = Schema.StructWithRest(
|
|
1236
|
+
Schema.Struct({
|
|
1237
|
+
FunctionName: Schema.String.check(
|
|
1238
|
+
Schema.isMinLength(1).annotate({
|
|
1239
|
+
expected: "a value with a length of at least 1",
|
|
1240
|
+
}),
|
|
1241
|
+
)
|
|
1242
|
+
.check(
|
|
1243
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
1244
|
+
expected: "a string with at most 256 code points",
|
|
1245
|
+
}),
|
|
1246
|
+
)
|
|
1247
|
+
.check(
|
|
1248
|
+
Schema.isPattern(
|
|
1249
|
+
new globalThis.RegExp(
|
|
1250
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
1251
|
+
"u",
|
|
1252
|
+
),
|
|
1253
|
+
).annotate({
|
|
1254
|
+
expected:
|
|
1255
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
1256
|
+
}),
|
|
1257
|
+
),
|
|
1258
|
+
StatementId: Schema.String.check(
|
|
1259
|
+
Schema.isMinLength(1).annotate({
|
|
1260
|
+
expected: "a value with a length of at least 1",
|
|
1261
|
+
}),
|
|
1262
|
+
)
|
|
1263
|
+
.check(
|
|
1264
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
1265
|
+
expected: "a string with at most 100 code points",
|
|
1266
|
+
}),
|
|
1267
|
+
)
|
|
1268
|
+
.check(
|
|
1269
|
+
Schema.isPattern(
|
|
1270
|
+
new globalThis.RegExp("^([a-zA-Z0-9-_]+)$", "u"),
|
|
1271
|
+
).annotate({
|
|
1272
|
+
expected: "a string matching the RegExp ^([a-zA-Z0-9-_]+)$",
|
|
1273
|
+
}),
|
|
1274
|
+
),
|
|
1275
|
+
Action: Schema.String.check(
|
|
1276
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1277
|
+
expected: "a string with at least 0 code points",
|
|
1278
|
+
}),
|
|
1279
|
+
)
|
|
1280
|
+
.check(
|
|
1281
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
1282
|
+
expected: "a string with at most 10000 code points",
|
|
1283
|
+
}),
|
|
1284
|
+
)
|
|
1285
|
+
.check(
|
|
1286
|
+
Schema.isPattern(
|
|
1287
|
+
new globalThis.RegExp("^(lambda:[*]|lambda:[a-zA-Z]+|[*])$", "u"),
|
|
1288
|
+
).annotate({
|
|
1289
|
+
expected:
|
|
1290
|
+
"a string matching the RegExp ^(lambda:[*]|lambda:[a-zA-Z]+|[*])$",
|
|
1291
|
+
}),
|
|
1292
|
+
),
|
|
1293
|
+
Principal: Schema.String.check(
|
|
1294
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1295
|
+
expected: "a string with at least 0 code points",
|
|
1296
|
+
}),
|
|
1297
|
+
)
|
|
1298
|
+
.check(
|
|
1299
|
+
Schema.isMaxCodePoints(2048).annotate({
|
|
1300
|
+
expected: "a string with at most 2048 code points",
|
|
1301
|
+
}),
|
|
1302
|
+
)
|
|
1303
|
+
.check(
|
|
1304
|
+
Schema.isPattern(new globalThis.RegExp("^[^\\s]+$", "u")).annotate({
|
|
1305
|
+
expected: "a string matching the RegExp ^[^\\s]+$",
|
|
1306
|
+
}),
|
|
1307
|
+
),
|
|
1308
|
+
SourceArn: optionalRestJsonMember(
|
|
1309
|
+
Schema.String.check(
|
|
1310
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1311
|
+
expected: "a string with at least 0 code points",
|
|
1312
|
+
}),
|
|
1313
|
+
)
|
|
1314
|
+
.check(
|
|
1315
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
1316
|
+
expected: "a string with at most 10000 code points",
|
|
1317
|
+
}),
|
|
1318
|
+
)
|
|
1319
|
+
.check(
|
|
1320
|
+
Schema.isPattern(
|
|
1321
|
+
new globalThis.RegExp(
|
|
1322
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
1323
|
+
"u",
|
|
1324
|
+
),
|
|
1325
|
+
).annotate({
|
|
1326
|
+
expected:
|
|
1327
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
1328
|
+
}),
|
|
1329
|
+
),
|
|
1330
|
+
),
|
|
1331
|
+
FunctionUrlAuthType: optionalRestJsonMember(FunctionUrlAuthType),
|
|
1332
|
+
InvokedViaFunctionUrl: optionalRestJsonMember(Schema.Boolean),
|
|
1333
|
+
SourceAccount: optionalRestJsonMember(
|
|
1334
|
+
Schema.String.check(
|
|
1335
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1336
|
+
expected: "a string with at least 0 code points",
|
|
1337
|
+
}),
|
|
1338
|
+
)
|
|
1339
|
+
.check(
|
|
1340
|
+
Schema.isMaxCodePoints(12).annotate({
|
|
1341
|
+
expected: "a string with at most 12 code points",
|
|
1342
|
+
}),
|
|
1343
|
+
)
|
|
1344
|
+
.check(
|
|
1345
|
+
Schema.isPattern(new globalThis.RegExp("^\\d{12}$", "u")).annotate({
|
|
1346
|
+
expected: "a string matching the RegExp ^\\d{12}$",
|
|
1347
|
+
}),
|
|
1348
|
+
),
|
|
1349
|
+
),
|
|
1350
|
+
EventSourceToken: optionalRestJsonMember(
|
|
1351
|
+
Schema.String.check(
|
|
1352
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1353
|
+
expected: "a string with at least 0 code points",
|
|
1354
|
+
}),
|
|
1355
|
+
)
|
|
1356
|
+
.check(
|
|
1357
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
1358
|
+
expected: "a string with at most 256 code points",
|
|
1359
|
+
}),
|
|
1360
|
+
)
|
|
1361
|
+
.check(
|
|
1362
|
+
Schema.isPattern(
|
|
1363
|
+
new globalThis.RegExp("^[a-zA-Z0-9._\\-]+$", "u"),
|
|
1364
|
+
).annotate({
|
|
1365
|
+
expected: "a string matching the RegExp ^[a-zA-Z0-9._\\-]+$",
|
|
1366
|
+
}),
|
|
1367
|
+
),
|
|
1368
|
+
),
|
|
1369
|
+
Qualifier: optionalRestJsonMember(
|
|
1370
|
+
Schema.String.check(
|
|
1371
|
+
Schema.isMinLength(1).annotate({
|
|
1372
|
+
expected: "a value with a length of at least 1",
|
|
1373
|
+
}),
|
|
1374
|
+
)
|
|
1375
|
+
.check(
|
|
1376
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
1377
|
+
expected: "a string with at most 128 code points",
|
|
1378
|
+
}),
|
|
1379
|
+
)
|
|
1380
|
+
.check(
|
|
1381
|
+
Schema.isPattern(
|
|
1382
|
+
new globalThis.RegExp(
|
|
1383
|
+
"^\\$(LATEST(\\.PUBLISHED)?)|[a-zA-Z0-9-_$]+$",
|
|
1384
|
+
"u",
|
|
1385
|
+
),
|
|
1386
|
+
).annotate({
|
|
1387
|
+
expected:
|
|
1388
|
+
"a string matching the RegExp ^\\$(LATEST(\\.PUBLISHED)?)|[a-zA-Z0-9-_$]+$",
|
|
1389
|
+
}),
|
|
1390
|
+
),
|
|
1391
|
+
),
|
|
1392
|
+
RevisionId: optionalRestJsonMember(Schema.String),
|
|
1393
|
+
PrincipalOrgID: optionalRestJsonMember(
|
|
1394
|
+
Schema.String.check(
|
|
1395
|
+
Schema.isMinCodePoints(12).annotate({
|
|
1396
|
+
expected: "a string with at least 12 code points",
|
|
1397
|
+
}),
|
|
1398
|
+
)
|
|
1399
|
+
.check(
|
|
1400
|
+
Schema.isMaxCodePoints(34).annotate({
|
|
1401
|
+
expected: "a string with at most 34 code points",
|
|
1402
|
+
}),
|
|
1403
|
+
)
|
|
1404
|
+
.check(
|
|
1405
|
+
Schema.isPattern(
|
|
1406
|
+
new globalThis.RegExp("^o-[a-z0-9]{10,32}$", "u"),
|
|
1407
|
+
).annotate({
|
|
1408
|
+
expected: "a string matching the RegExp ^o-[a-z0-9]{10,32}$",
|
|
1409
|
+
}),
|
|
1410
|
+
),
|
|
1411
|
+
),
|
|
1412
|
+
}),
|
|
1413
|
+
[
|
|
1414
|
+
Schema.Record(
|
|
1415
|
+
Schema.String,
|
|
1416
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1417
|
+
),
|
|
1418
|
+
],
|
|
1419
|
+
);
|
|
1420
|
+
|
|
1421
|
+
export type AddPermissionRequest = typeof AddPermissionRequest.Type;
|
|
1422
|
+
|
|
1423
|
+
export const AddPermissionResponseContent = Schema.StructWithRest(
|
|
1424
|
+
Schema.Struct({ Statement: optionalRestJsonMember(Schema.String) }),
|
|
1425
|
+
[
|
|
1426
|
+
Schema.Record(
|
|
1427
|
+
Schema.String,
|
|
1428
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1429
|
+
),
|
|
1430
|
+
],
|
|
1431
|
+
);
|
|
1432
|
+
|
|
1433
|
+
export type AddPermissionResponseContent =
|
|
1434
|
+
typeof AddPermissionResponseContent.Type;
|
|
1435
|
+
|
|
1436
|
+
export const InvalidParameterValueException = Schema.StructWithRest(
|
|
1437
|
+
Schema.Struct({
|
|
1438
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
1439
|
+
message: optionalRestJsonMember(Schema.String),
|
|
1440
|
+
}),
|
|
1441
|
+
[
|
|
1442
|
+
Schema.Record(
|
|
1443
|
+
Schema.String,
|
|
1444
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1445
|
+
),
|
|
1446
|
+
],
|
|
1447
|
+
);
|
|
1448
|
+
|
|
1449
|
+
export type InvalidParameterValueException =
|
|
1450
|
+
typeof InvalidParameterValueException.Type;
|
|
1451
|
+
|
|
1452
|
+
export const PolicyLengthExceededException = Schema.StructWithRest(
|
|
1453
|
+
Schema.Struct({
|
|
1454
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
1455
|
+
message: optionalRestJsonMember(Schema.String),
|
|
1456
|
+
}),
|
|
1457
|
+
[
|
|
1458
|
+
Schema.Record(
|
|
1459
|
+
Schema.String,
|
|
1460
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1461
|
+
),
|
|
1462
|
+
],
|
|
1463
|
+
);
|
|
1464
|
+
|
|
1465
|
+
export type PolicyLengthExceededException =
|
|
1466
|
+
typeof PolicyLengthExceededException.Type;
|
|
1467
|
+
|
|
1468
|
+
export const PreconditionFailedException = Schema.StructWithRest(
|
|
1469
|
+
Schema.Struct({
|
|
1470
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
1471
|
+
message: optionalRestJsonMember(Schema.String),
|
|
1472
|
+
}),
|
|
1473
|
+
[
|
|
1474
|
+
Schema.Record(
|
|
1475
|
+
Schema.String,
|
|
1476
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1477
|
+
),
|
|
1478
|
+
],
|
|
1479
|
+
);
|
|
1480
|
+
|
|
1481
|
+
export type PreconditionFailedException =
|
|
1482
|
+
typeof PreconditionFailedException.Type;
|
|
1483
|
+
|
|
1484
|
+
export const PublicPolicyException = Schema.StructWithRest(
|
|
1485
|
+
Schema.Struct({
|
|
1486
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
1487
|
+
Message: optionalRestJsonMember(Schema.String),
|
|
1488
|
+
}),
|
|
1489
|
+
[
|
|
1490
|
+
Schema.Record(
|
|
1491
|
+
Schema.String,
|
|
1492
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1493
|
+
),
|
|
1494
|
+
],
|
|
1495
|
+
);
|
|
1496
|
+
|
|
1497
|
+
export type PublicPolicyException = typeof PublicPolicyException.Type;
|
|
1498
|
+
|
|
1499
|
+
export const ResourceConflictException = Schema.StructWithRest(
|
|
1500
|
+
Schema.Struct({
|
|
1501
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
1502
|
+
message: optionalRestJsonMember(Schema.String),
|
|
1503
|
+
}),
|
|
1504
|
+
[
|
|
1505
|
+
Schema.Record(
|
|
1506
|
+
Schema.String,
|
|
1507
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1508
|
+
),
|
|
1509
|
+
],
|
|
1510
|
+
);
|
|
1511
|
+
|
|
1512
|
+
export type ResourceConflictException = typeof ResourceConflictException.Type;
|
|
1513
|
+
|
|
1514
|
+
export const ResourceNotFoundException = Schema.StructWithRest(
|
|
1515
|
+
Schema.Struct({
|
|
1516
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
1517
|
+
Message: optionalRestJsonMember(Schema.String),
|
|
1518
|
+
}),
|
|
1519
|
+
[
|
|
1520
|
+
Schema.Record(
|
|
1521
|
+
Schema.String,
|
|
1522
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1523
|
+
),
|
|
1524
|
+
],
|
|
1525
|
+
);
|
|
1526
|
+
|
|
1527
|
+
export type ResourceNotFoundException = typeof ResourceNotFoundException.Type;
|
|
1528
|
+
|
|
1529
|
+
export const ServiceException = Schema.StructWithRest(
|
|
1530
|
+
Schema.Struct({
|
|
1531
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
1532
|
+
Message: optionalRestJsonMember(Schema.String),
|
|
1533
|
+
}),
|
|
1534
|
+
[
|
|
1535
|
+
Schema.Record(
|
|
1536
|
+
Schema.String,
|
|
1537
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1538
|
+
),
|
|
1539
|
+
],
|
|
1540
|
+
);
|
|
1541
|
+
|
|
1542
|
+
export type ServiceException = typeof ServiceException.Type;
|
|
1543
|
+
|
|
1544
|
+
export const TooManyRequestsException = Schema.StructWithRest(
|
|
1545
|
+
Schema.Struct({
|
|
1546
|
+
retryAfterSeconds: optionalRestJsonMember(Schema.String),
|
|
1547
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
1548
|
+
message: optionalRestJsonMember(Schema.String),
|
|
1549
|
+
Reason: optionalRestJsonMember(ThrottleReason),
|
|
1550
|
+
}),
|
|
1551
|
+
[
|
|
1552
|
+
Schema.Record(
|
|
1553
|
+
Schema.String,
|
|
1554
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1555
|
+
),
|
|
1556
|
+
],
|
|
1557
|
+
);
|
|
1558
|
+
|
|
1559
|
+
export type TooManyRequestsException = typeof TooManyRequestsException.Type;
|
|
1560
|
+
|
|
1561
|
+
export const CreateFunctionRequest = Schema.StructWithRest(
|
|
1562
|
+
Schema.Struct({
|
|
1563
|
+
FunctionName: Schema.String.check(
|
|
1564
|
+
Schema.isMinLength(1).annotate({
|
|
1565
|
+
expected: "a value with a length of at least 1",
|
|
1566
|
+
}),
|
|
1567
|
+
)
|
|
1568
|
+
.check(
|
|
1569
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
1570
|
+
expected: "a string with at most 140 code points",
|
|
1571
|
+
}),
|
|
1572
|
+
)
|
|
1573
|
+
.check(
|
|
1574
|
+
Schema.isPattern(
|
|
1575
|
+
new globalThis.RegExp(
|
|
1576
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
1577
|
+
"u",
|
|
1578
|
+
),
|
|
1579
|
+
).annotate({
|
|
1580
|
+
expected:
|
|
1581
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
1582
|
+
}),
|
|
1583
|
+
),
|
|
1584
|
+
Runtime: optionalRestJsonMember(Runtime),
|
|
1585
|
+
Role: Schema.String.check(
|
|
1586
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1587
|
+
expected: "a string with at least 0 code points",
|
|
1588
|
+
}),
|
|
1589
|
+
)
|
|
1590
|
+
.check(
|
|
1591
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
1592
|
+
expected: "a string with at most 10000 code points",
|
|
1593
|
+
}),
|
|
1594
|
+
)
|
|
1595
|
+
.check(
|
|
1596
|
+
Schema.isPattern(
|
|
1597
|
+
new globalThis.RegExp(
|
|
1598
|
+
"^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
1599
|
+
"u",
|
|
1600
|
+
),
|
|
1601
|
+
).annotate({
|
|
1602
|
+
expected:
|
|
1603
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
1604
|
+
}),
|
|
1605
|
+
),
|
|
1606
|
+
Handler: optionalRestJsonMember(
|
|
1607
|
+
Schema.String.check(
|
|
1608
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1609
|
+
expected: "a string with at least 0 code points",
|
|
1610
|
+
}),
|
|
1611
|
+
)
|
|
1612
|
+
.check(
|
|
1613
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
1614
|
+
expected: "a string with at most 128 code points",
|
|
1615
|
+
}),
|
|
1616
|
+
)
|
|
1617
|
+
.check(
|
|
1618
|
+
Schema.isPattern(new globalThis.RegExp("^[^\\s]+$", "u")).annotate({
|
|
1619
|
+
expected: "a string matching the RegExp ^[^\\s]+$",
|
|
1620
|
+
}),
|
|
1621
|
+
),
|
|
1622
|
+
),
|
|
1623
|
+
Code: FunctionCode,
|
|
1624
|
+
Description: optionalRestJsonMember(
|
|
1625
|
+
Schema.String.check(
|
|
1626
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1627
|
+
expected: "a string with at least 0 code points",
|
|
1628
|
+
}),
|
|
1629
|
+
).check(
|
|
1630
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
1631
|
+
expected: "a string with at most 256 code points",
|
|
1632
|
+
}),
|
|
1633
|
+
),
|
|
1634
|
+
),
|
|
1635
|
+
Timeout: optionalRestJsonMember(
|
|
1636
|
+
Schema.Finite.check(
|
|
1637
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
1638
|
+
expected: "a value greater than or equal to 1",
|
|
1639
|
+
}),
|
|
1640
|
+
).check(
|
|
1641
|
+
Schema.isLessThanOrEqualTo(5400).annotate({
|
|
1642
|
+
expected: "a value less than or equal to 5400",
|
|
1643
|
+
}),
|
|
1644
|
+
),
|
|
1645
|
+
),
|
|
1646
|
+
MemorySize: optionalRestJsonMember(
|
|
1647
|
+
Schema.Finite.check(
|
|
1648
|
+
Schema.isGreaterThanOrEqualTo(128).annotate({
|
|
1649
|
+
expected: "a value greater than or equal to 128",
|
|
1650
|
+
}),
|
|
1651
|
+
).check(
|
|
1652
|
+
Schema.isLessThanOrEqualTo(32768).annotate({
|
|
1653
|
+
expected: "a value less than or equal to 32768",
|
|
1654
|
+
}),
|
|
1655
|
+
),
|
|
1656
|
+
),
|
|
1657
|
+
Publish: optionalRestJsonMember(
|
|
1658
|
+
Schema.Boolean.annotate({ default: false }),
|
|
1659
|
+
),
|
|
1660
|
+
PublishTo: optionalRestJsonMember(FunctionVersionLatestPublished),
|
|
1661
|
+
VpcConfig: optionalRestJsonMember(VpcConfig),
|
|
1662
|
+
PackageType: optionalRestJsonMember(PackageType),
|
|
1663
|
+
DeadLetterConfig: optionalRestJsonMember(DeadLetterConfig),
|
|
1664
|
+
Environment: optionalRestJsonMember(Environment),
|
|
1665
|
+
KMSKeyArn: optionalRestJsonMember(
|
|
1666
|
+
Schema.String.check(
|
|
1667
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1668
|
+
expected: "a string with at least 0 code points",
|
|
1669
|
+
}),
|
|
1670
|
+
)
|
|
1671
|
+
.check(
|
|
1672
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
1673
|
+
expected: "a string with at most 10000 code points",
|
|
1674
|
+
}),
|
|
1675
|
+
)
|
|
1676
|
+
.check(
|
|
1677
|
+
Schema.isPattern(
|
|
1678
|
+
new globalThis.RegExp(
|
|
1679
|
+
"^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
1680
|
+
"u",
|
|
1681
|
+
),
|
|
1682
|
+
).annotate({
|
|
1683
|
+
expected:
|
|
1684
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
1685
|
+
}),
|
|
1686
|
+
),
|
|
1687
|
+
),
|
|
1688
|
+
TracingConfig: optionalRestJsonMember(TracingConfig),
|
|
1689
|
+
Tags: optionalRestJsonMember(Tags),
|
|
1690
|
+
Layers: optionalRestJsonMember(
|
|
1691
|
+
Schema.Array(
|
|
1692
|
+
Schema.String.check(
|
|
1693
|
+
Schema.isMinLength(1).annotate({
|
|
1694
|
+
expected: "a value with a length of at least 1",
|
|
1695
|
+
}),
|
|
1696
|
+
)
|
|
1697
|
+
.check(
|
|
1698
|
+
Schema.isMaxCodePoints(2048).annotate({
|
|
1699
|
+
expected: "a string with at most 2048 code points",
|
|
1700
|
+
}),
|
|
1701
|
+
)
|
|
1702
|
+
.check(
|
|
1703
|
+
Schema.isPattern(
|
|
1704
|
+
new globalThis.RegExp(
|
|
1705
|
+
"^((arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+)|(arn:[a-zA-Z0-9-]+:lambda:::awslayer:[a-zA-Z0-9-_]+))$",
|
|
1706
|
+
"u",
|
|
1707
|
+
),
|
|
1708
|
+
).annotate({
|
|
1709
|
+
expected:
|
|
1710
|
+
"a string matching the RegExp ^((arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+)|(arn:[a-zA-Z0-9-]+:lambda:::awslayer:[a-zA-Z0-9-_]+))$",
|
|
1711
|
+
}),
|
|
1712
|
+
),
|
|
1713
|
+
),
|
|
1714
|
+
),
|
|
1715
|
+
FileSystemConfigs: optionalRestJsonMember(
|
|
1716
|
+
Schema.Array(FileSystemConfig)
|
|
1717
|
+
.check(
|
|
1718
|
+
Schema.isMinLength(0).annotate({
|
|
1719
|
+
expected: "a value with a length of at least 0",
|
|
1720
|
+
}),
|
|
1721
|
+
)
|
|
1722
|
+
.check(
|
|
1723
|
+
Schema.isMaxLength(1).annotate({
|
|
1724
|
+
expected: "a value with a length of at most 1",
|
|
1725
|
+
}),
|
|
1726
|
+
),
|
|
1727
|
+
),
|
|
1728
|
+
CodeSigningConfigArn: optionalRestJsonMember(
|
|
1729
|
+
Schema.String.check(
|
|
1730
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1731
|
+
expected: "a string with at least 0 code points",
|
|
1732
|
+
}),
|
|
1733
|
+
)
|
|
1734
|
+
.check(
|
|
1735
|
+
Schema.isMaxCodePoints(200).annotate({
|
|
1736
|
+
expected: "a string with at most 200 code points",
|
|
1737
|
+
}),
|
|
1738
|
+
)
|
|
1739
|
+
.check(
|
|
1740
|
+
Schema.isPattern(
|
|
1741
|
+
new globalThis.RegExp(
|
|
1742
|
+
"^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:code-signing-config:csc-[a-z0-9]{17}$",
|
|
1743
|
+
"u",
|
|
1744
|
+
),
|
|
1745
|
+
).annotate({
|
|
1746
|
+
expected:
|
|
1747
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:code-signing-config:csc-[a-z0-9]{17}$",
|
|
1748
|
+
}),
|
|
1749
|
+
),
|
|
1750
|
+
),
|
|
1751
|
+
ImageConfig: optionalRestJsonMember(ImageConfig),
|
|
1752
|
+
Architectures: optionalRestJsonMember(
|
|
1753
|
+
Schema.Array(Architecture)
|
|
1754
|
+
.check(
|
|
1755
|
+
Schema.isMinLength(1).annotate({
|
|
1756
|
+
expected: "a value with a length of at least 1",
|
|
1757
|
+
}),
|
|
1758
|
+
)
|
|
1759
|
+
.check(
|
|
1760
|
+
Schema.isMaxLength(1).annotate({
|
|
1761
|
+
expected: "a value with a length of at most 1",
|
|
1762
|
+
}),
|
|
1763
|
+
),
|
|
1764
|
+
),
|
|
1765
|
+
EphemeralStorage: optionalRestJsonMember(EphemeralStorage),
|
|
1766
|
+
SnapStart: optionalRestJsonMember(SnapStart),
|
|
1767
|
+
LoggingConfig: optionalRestJsonMember(LoggingConfig),
|
|
1768
|
+
TenancyConfig: optionalRestJsonMember(TenancyConfig),
|
|
1769
|
+
CapacityProviderConfig: optionalRestJsonMember(CapacityProviderConfig),
|
|
1770
|
+
DurableConfig: optionalRestJsonMember(DurableConfig),
|
|
1771
|
+
}),
|
|
1772
|
+
[
|
|
1773
|
+
Schema.Record(
|
|
1774
|
+
Schema.String,
|
|
1775
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
1776
|
+
),
|
|
1777
|
+
],
|
|
1778
|
+
);
|
|
1779
|
+
|
|
1780
|
+
export type CreateFunctionRequest = typeof CreateFunctionRequest.Type;
|
|
1781
|
+
|
|
1782
|
+
export const CreateFunctionResponseContent = Schema.StructWithRest(
|
|
1783
|
+
Schema.Struct({
|
|
1784
|
+
FunctionName: optionalRestJsonMember(
|
|
1785
|
+
Schema.String.check(
|
|
1786
|
+
Schema.isMinLength(1).annotate({
|
|
1787
|
+
expected: "a value with a length of at least 1",
|
|
1788
|
+
}),
|
|
1789
|
+
)
|
|
1790
|
+
.check(
|
|
1791
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
1792
|
+
expected: "a string with at most 256 code points",
|
|
1793
|
+
}),
|
|
1794
|
+
)
|
|
1795
|
+
.check(
|
|
1796
|
+
Schema.isPattern(
|
|
1797
|
+
new globalThis.RegExp(
|
|
1798
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
1799
|
+
"u",
|
|
1800
|
+
),
|
|
1801
|
+
).annotate({
|
|
1802
|
+
expected:
|
|
1803
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
1804
|
+
}),
|
|
1805
|
+
),
|
|
1806
|
+
),
|
|
1807
|
+
FunctionArn: optionalRestJsonMember(
|
|
1808
|
+
Schema.String.check(
|
|
1809
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1810
|
+
expected: "a string with at least 0 code points",
|
|
1811
|
+
}),
|
|
1812
|
+
)
|
|
1813
|
+
.check(
|
|
1814
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
1815
|
+
expected: "a string with at most 10000 code points",
|
|
1816
|
+
}),
|
|
1817
|
+
)
|
|
1818
|
+
.check(
|
|
1819
|
+
Schema.isPattern(
|
|
1820
|
+
new globalThis.RegExp(
|
|
1821
|
+
"^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
1822
|
+
"u",
|
|
1823
|
+
),
|
|
1824
|
+
).annotate({
|
|
1825
|
+
expected:
|
|
1826
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
1827
|
+
}),
|
|
1828
|
+
),
|
|
1829
|
+
),
|
|
1830
|
+
Runtime: optionalRestJsonMember(Runtime),
|
|
1831
|
+
Role: optionalRestJsonMember(
|
|
1832
|
+
Schema.String.check(
|
|
1833
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1834
|
+
expected: "a string with at least 0 code points",
|
|
1835
|
+
}),
|
|
1836
|
+
)
|
|
1837
|
+
.check(
|
|
1838
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
1839
|
+
expected: "a string with at most 10000 code points",
|
|
1840
|
+
}),
|
|
1841
|
+
)
|
|
1842
|
+
.check(
|
|
1843
|
+
Schema.isPattern(
|
|
1844
|
+
new globalThis.RegExp(
|
|
1845
|
+
"^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
1846
|
+
"u",
|
|
1847
|
+
),
|
|
1848
|
+
).annotate({
|
|
1849
|
+
expected:
|
|
1850
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
1851
|
+
}),
|
|
1852
|
+
),
|
|
1853
|
+
),
|
|
1854
|
+
Handler: optionalRestJsonMember(
|
|
1855
|
+
Schema.String.check(
|
|
1856
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1857
|
+
expected: "a string with at least 0 code points",
|
|
1858
|
+
}),
|
|
1859
|
+
)
|
|
1860
|
+
.check(
|
|
1861
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
1862
|
+
expected: "a string with at most 128 code points",
|
|
1863
|
+
}),
|
|
1864
|
+
)
|
|
1865
|
+
.check(
|
|
1866
|
+
Schema.isPattern(new globalThis.RegExp("^[^\\s]+$", "u")).annotate({
|
|
1867
|
+
expected: "a string matching the RegExp ^[^\\s]+$",
|
|
1868
|
+
}),
|
|
1869
|
+
),
|
|
1870
|
+
),
|
|
1871
|
+
CodeSize: optionalRestJsonMember(
|
|
1872
|
+
Schema.Number.annotate({ default: 0 }).check(
|
|
1873
|
+
Schema.isFinite().annotate({ expected: "a finite number" }),
|
|
1874
|
+
),
|
|
1875
|
+
),
|
|
1876
|
+
Description: optionalRestJsonMember(
|
|
1877
|
+
Schema.String.check(
|
|
1878
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1879
|
+
expected: "a string with at least 0 code points",
|
|
1880
|
+
}),
|
|
1881
|
+
).check(
|
|
1882
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
1883
|
+
expected: "a string with at most 256 code points",
|
|
1884
|
+
}),
|
|
1885
|
+
),
|
|
1886
|
+
),
|
|
1887
|
+
Timeout: optionalRestJsonMember(
|
|
1888
|
+
Schema.Finite.check(
|
|
1889
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
1890
|
+
expected: "a value greater than or equal to 1",
|
|
1891
|
+
}),
|
|
1892
|
+
).check(
|
|
1893
|
+
Schema.isLessThanOrEqualTo(5400).annotate({
|
|
1894
|
+
expected: "a value less than or equal to 5400",
|
|
1895
|
+
}),
|
|
1896
|
+
),
|
|
1897
|
+
),
|
|
1898
|
+
MemorySize: optionalRestJsonMember(
|
|
1899
|
+
Schema.Finite.check(
|
|
1900
|
+
Schema.isGreaterThanOrEqualTo(128).annotate({
|
|
1901
|
+
expected: "a value greater than or equal to 128",
|
|
1902
|
+
}),
|
|
1903
|
+
).check(
|
|
1904
|
+
Schema.isLessThanOrEqualTo(32768).annotate({
|
|
1905
|
+
expected: "a value less than or equal to 32768",
|
|
1906
|
+
}),
|
|
1907
|
+
),
|
|
1908
|
+
),
|
|
1909
|
+
LastModified: optionalRestJsonMember(
|
|
1910
|
+
Schema.String.check(
|
|
1911
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1912
|
+
expected: "a string with at least 0 code points",
|
|
1913
|
+
}),
|
|
1914
|
+
)
|
|
1915
|
+
.check(
|
|
1916
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
1917
|
+
expected: "a string with at most 100 code points",
|
|
1918
|
+
}),
|
|
1919
|
+
)
|
|
1920
|
+
.check(
|
|
1921
|
+
Schema.isPattern(new globalThis.RegExp("^.*$", "u")).annotate({
|
|
1922
|
+
expected: "a string matching the RegExp ^.*$",
|
|
1923
|
+
}),
|
|
1924
|
+
),
|
|
1925
|
+
),
|
|
1926
|
+
CodeSha256: optionalRestJsonMember(Schema.String),
|
|
1927
|
+
Version: optionalRestJsonMember(
|
|
1928
|
+
Schema.String.check(
|
|
1929
|
+
Schema.isMinLength(1).annotate({
|
|
1930
|
+
expected: "a value with a length of at least 1",
|
|
1931
|
+
}),
|
|
1932
|
+
)
|
|
1933
|
+
.check(
|
|
1934
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
1935
|
+
expected: "a string with at most 1024 code points",
|
|
1936
|
+
}),
|
|
1937
|
+
)
|
|
1938
|
+
.check(
|
|
1939
|
+
Schema.isPattern(
|
|
1940
|
+
new globalThis.RegExp("^(\\$LATEST|[0-9]+)$", "u"),
|
|
1941
|
+
).annotate({
|
|
1942
|
+
expected: "a string matching the RegExp ^(\\$LATEST|[0-9]+)$",
|
|
1943
|
+
}),
|
|
1944
|
+
),
|
|
1945
|
+
),
|
|
1946
|
+
VpcConfig: optionalRestJsonMember(VpcConfigResponse),
|
|
1947
|
+
DeadLetterConfig: optionalRestJsonMember(DeadLetterConfig),
|
|
1948
|
+
Environment: optionalRestJsonMember(EnvironmentResponse),
|
|
1949
|
+
KMSKeyArn: optionalRestJsonMember(
|
|
1950
|
+
Schema.String.check(
|
|
1951
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1952
|
+
expected: "a string with at least 0 code points",
|
|
1953
|
+
}),
|
|
1954
|
+
)
|
|
1955
|
+
.check(
|
|
1956
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
1957
|
+
expected: "a string with at most 10000 code points",
|
|
1958
|
+
}),
|
|
1959
|
+
)
|
|
1960
|
+
.check(
|
|
1961
|
+
Schema.isPattern(
|
|
1962
|
+
new globalThis.RegExp(
|
|
1963
|
+
"^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
1964
|
+
"u",
|
|
1965
|
+
),
|
|
1966
|
+
).annotate({
|
|
1967
|
+
expected:
|
|
1968
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
1969
|
+
}),
|
|
1970
|
+
),
|
|
1971
|
+
),
|
|
1972
|
+
TracingConfig: optionalRestJsonMember(TracingConfigResponse),
|
|
1973
|
+
MasterArn: optionalRestJsonMember(
|
|
1974
|
+
Schema.String.check(
|
|
1975
|
+
Schema.isMinCodePoints(0).annotate({
|
|
1976
|
+
expected: "a string with at least 0 code points",
|
|
1977
|
+
}),
|
|
1978
|
+
)
|
|
1979
|
+
.check(
|
|
1980
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
1981
|
+
expected: "a string with at most 10000 code points",
|
|
1982
|
+
}),
|
|
1983
|
+
)
|
|
1984
|
+
.check(
|
|
1985
|
+
Schema.isPattern(
|
|
1986
|
+
new globalThis.RegExp(
|
|
1987
|
+
"^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
1988
|
+
"u",
|
|
1989
|
+
),
|
|
1990
|
+
).annotate({
|
|
1991
|
+
expected:
|
|
1992
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
1993
|
+
}),
|
|
1994
|
+
),
|
|
1995
|
+
),
|
|
1996
|
+
RevisionId: optionalRestJsonMember(Schema.String),
|
|
1997
|
+
Layers: optionalRestJsonMember(Schema.Array(Layer)),
|
|
1998
|
+
State: optionalRestJsonMember(State),
|
|
1999
|
+
StateReason: optionalRestJsonMember(Schema.String),
|
|
2000
|
+
StateReasonCode: optionalRestJsonMember(StateReasonCode),
|
|
2001
|
+
LastUpdateStatus: optionalRestJsonMember(LastUpdateStatus),
|
|
2002
|
+
LastUpdateStatusReason: optionalRestJsonMember(Schema.String),
|
|
2003
|
+
LastUpdateStatusReasonCode: optionalRestJsonMember(
|
|
2004
|
+
LastUpdateStatusReasonCode,
|
|
2005
|
+
),
|
|
2006
|
+
FileSystemConfigs: optionalRestJsonMember(
|
|
2007
|
+
Schema.Array(FileSystemConfig)
|
|
2008
|
+
.check(
|
|
2009
|
+
Schema.isMinLength(0).annotate({
|
|
2010
|
+
expected: "a value with a length of at least 0",
|
|
2011
|
+
}),
|
|
2012
|
+
)
|
|
2013
|
+
.check(
|
|
2014
|
+
Schema.isMaxLength(1).annotate({
|
|
2015
|
+
expected: "a value with a length of at most 1",
|
|
2016
|
+
}),
|
|
2017
|
+
),
|
|
2018
|
+
),
|
|
2019
|
+
SigningProfileVersionArn: optionalRestJsonMember(
|
|
2020
|
+
Schema.String.check(
|
|
2021
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2022
|
+
expected: "a string with at least 0 code points",
|
|
2023
|
+
}),
|
|
2024
|
+
)
|
|
2025
|
+
.check(
|
|
2026
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2027
|
+
expected: "a string with at most 10000 code points",
|
|
2028
|
+
}),
|
|
2029
|
+
)
|
|
2030
|
+
.check(
|
|
2031
|
+
Schema.isPattern(
|
|
2032
|
+
new globalThis.RegExp(
|
|
2033
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
2034
|
+
"u",
|
|
2035
|
+
),
|
|
2036
|
+
).annotate({
|
|
2037
|
+
expected:
|
|
2038
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
2039
|
+
}),
|
|
2040
|
+
),
|
|
2041
|
+
),
|
|
2042
|
+
SigningJobArn: optionalRestJsonMember(
|
|
2043
|
+
Schema.String.check(
|
|
2044
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2045
|
+
expected: "a string with at least 0 code points",
|
|
2046
|
+
}),
|
|
2047
|
+
)
|
|
2048
|
+
.check(
|
|
2049
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2050
|
+
expected: "a string with at most 10000 code points",
|
|
2051
|
+
}),
|
|
2052
|
+
)
|
|
2053
|
+
.check(
|
|
2054
|
+
Schema.isPattern(
|
|
2055
|
+
new globalThis.RegExp(
|
|
2056
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
2057
|
+
"u",
|
|
2058
|
+
),
|
|
2059
|
+
).annotate({
|
|
2060
|
+
expected:
|
|
2061
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
2062
|
+
}),
|
|
2063
|
+
),
|
|
2064
|
+
),
|
|
2065
|
+
PackageType: optionalRestJsonMember(PackageType),
|
|
2066
|
+
ImageConfigResponse: optionalRestJsonMember(ImageConfigResponse),
|
|
2067
|
+
Architectures: optionalRestJsonMember(
|
|
2068
|
+
Schema.Array(Architecture)
|
|
2069
|
+
.check(
|
|
2070
|
+
Schema.isMinLength(1).annotate({
|
|
2071
|
+
expected: "a value with a length of at least 1",
|
|
2072
|
+
}),
|
|
2073
|
+
)
|
|
2074
|
+
.check(
|
|
2075
|
+
Schema.isMaxLength(1).annotate({
|
|
2076
|
+
expected: "a value with a length of at most 1",
|
|
2077
|
+
}),
|
|
2078
|
+
),
|
|
2079
|
+
),
|
|
2080
|
+
EphemeralStorage: optionalRestJsonMember(EphemeralStorage),
|
|
2081
|
+
SnapStart: optionalRestJsonMember(SnapStartResponse),
|
|
2082
|
+
RuntimeVersionConfig: optionalRestJsonMember(RuntimeVersionConfig),
|
|
2083
|
+
LoggingConfig: optionalRestJsonMember(LoggingConfig),
|
|
2084
|
+
TenancyConfig: optionalRestJsonMember(TenancyConfig),
|
|
2085
|
+
CapacityProviderConfig: optionalRestJsonMember(CapacityProviderConfig),
|
|
2086
|
+
ConfigSha256: optionalRestJsonMember(Schema.String),
|
|
2087
|
+
DurableConfig: optionalRestJsonMember(DurableConfig),
|
|
2088
|
+
}),
|
|
2089
|
+
[
|
|
2090
|
+
Schema.Record(
|
|
2091
|
+
Schema.String,
|
|
2092
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2093
|
+
),
|
|
2094
|
+
],
|
|
2095
|
+
);
|
|
2096
|
+
|
|
2097
|
+
export type CreateFunctionResponseContent =
|
|
2098
|
+
typeof CreateFunctionResponseContent.Type;
|
|
2099
|
+
|
|
2100
|
+
export const CodeSigningConfigNotFoundException = Schema.StructWithRest(
|
|
2101
|
+
Schema.Struct({
|
|
2102
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
2103
|
+
Message: optionalRestJsonMember(Schema.String),
|
|
2104
|
+
}),
|
|
2105
|
+
[
|
|
2106
|
+
Schema.Record(
|
|
2107
|
+
Schema.String,
|
|
2108
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2109
|
+
),
|
|
2110
|
+
],
|
|
2111
|
+
);
|
|
2112
|
+
|
|
2113
|
+
export type CodeSigningConfigNotFoundException =
|
|
2114
|
+
typeof CodeSigningConfigNotFoundException.Type;
|
|
2115
|
+
|
|
2116
|
+
export const CodeStorageExceededException = Schema.StructWithRest(
|
|
2117
|
+
Schema.Struct({
|
|
2118
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
2119
|
+
message: optionalRestJsonMember(Schema.String),
|
|
2120
|
+
}),
|
|
2121
|
+
[
|
|
2122
|
+
Schema.Record(
|
|
2123
|
+
Schema.String,
|
|
2124
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2125
|
+
),
|
|
2126
|
+
],
|
|
2127
|
+
);
|
|
2128
|
+
|
|
2129
|
+
export type CodeStorageExceededException =
|
|
2130
|
+
typeof CodeStorageExceededException.Type;
|
|
2131
|
+
|
|
2132
|
+
export const CodeVerificationFailedException = Schema.StructWithRest(
|
|
2133
|
+
Schema.Struct({
|
|
2134
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
2135
|
+
Message: optionalRestJsonMember(Schema.String),
|
|
2136
|
+
}),
|
|
2137
|
+
[
|
|
2138
|
+
Schema.Record(
|
|
2139
|
+
Schema.String,
|
|
2140
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2141
|
+
),
|
|
2142
|
+
],
|
|
2143
|
+
);
|
|
2144
|
+
|
|
2145
|
+
export type CodeVerificationFailedException =
|
|
2146
|
+
typeof CodeVerificationFailedException.Type;
|
|
2147
|
+
|
|
2148
|
+
export const FunctionVersionsPerCapacityProviderLimitExceededException =
|
|
2149
|
+
Schema.StructWithRest(
|
|
2150
|
+
Schema.Struct({
|
|
2151
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
2152
|
+
message: optionalRestJsonMember(Schema.String),
|
|
2153
|
+
}),
|
|
2154
|
+
[
|
|
2155
|
+
Schema.Record(
|
|
2156
|
+
Schema.String,
|
|
2157
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2158
|
+
),
|
|
2159
|
+
],
|
|
2160
|
+
);
|
|
2161
|
+
|
|
2162
|
+
export type FunctionVersionsPerCapacityProviderLimitExceededException =
|
|
2163
|
+
typeof FunctionVersionsPerCapacityProviderLimitExceededException.Type;
|
|
2164
|
+
|
|
2165
|
+
export const InvalidCodeSignatureException = Schema.StructWithRest(
|
|
2166
|
+
Schema.Struct({
|
|
2167
|
+
Type: optionalRestJsonMember(Schema.String),
|
|
2168
|
+
Message: optionalRestJsonMember(Schema.String),
|
|
2169
|
+
}),
|
|
2170
|
+
[
|
|
2171
|
+
Schema.Record(
|
|
2172
|
+
Schema.String,
|
|
2173
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2174
|
+
),
|
|
2175
|
+
],
|
|
2176
|
+
);
|
|
2177
|
+
|
|
2178
|
+
export type InvalidCodeSignatureException =
|
|
2179
|
+
typeof InvalidCodeSignatureException.Type;
|
|
2180
|
+
|
|
2181
|
+
export const DeleteFunctionRequest = Schema.StructWithRest(
|
|
2182
|
+
Schema.Struct({
|
|
2183
|
+
FunctionName: Schema.String.check(
|
|
2184
|
+
Schema.isMinLength(1).annotate({
|
|
2185
|
+
expected: "a value with a length of at least 1",
|
|
2186
|
+
}),
|
|
2187
|
+
)
|
|
2188
|
+
.check(
|
|
2189
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
2190
|
+
expected: "a string with at most 256 code points",
|
|
2191
|
+
}),
|
|
2192
|
+
)
|
|
2193
|
+
.check(
|
|
2194
|
+
Schema.isPattern(
|
|
2195
|
+
new globalThis.RegExp(
|
|
2196
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2197
|
+
"u",
|
|
2198
|
+
),
|
|
2199
|
+
).annotate({
|
|
2200
|
+
expected:
|
|
2201
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2202
|
+
}),
|
|
2203
|
+
),
|
|
2204
|
+
Qualifier: optionalRestJsonMember(
|
|
2205
|
+
Schema.String.check(
|
|
2206
|
+
Schema.isMinLength(1).annotate({
|
|
2207
|
+
expected: "a value with a length of at least 1",
|
|
2208
|
+
}),
|
|
2209
|
+
)
|
|
2210
|
+
.check(
|
|
2211
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
2212
|
+
expected: "a string with at most 128 code points",
|
|
2213
|
+
}),
|
|
2214
|
+
)
|
|
2215
|
+
.check(
|
|
2216
|
+
Schema.isPattern(
|
|
2217
|
+
new globalThis.RegExp(
|
|
2218
|
+
"^\\$(LATEST(\\.PUBLISHED)?)|[a-zA-Z0-9-_$]+$",
|
|
2219
|
+
"u",
|
|
2220
|
+
),
|
|
2221
|
+
).annotate({
|
|
2222
|
+
expected:
|
|
2223
|
+
"a string matching the RegExp ^\\$(LATEST(\\.PUBLISHED)?)|[a-zA-Z0-9-_$]+$",
|
|
2224
|
+
}),
|
|
2225
|
+
),
|
|
2226
|
+
),
|
|
2227
|
+
}),
|
|
2228
|
+
[
|
|
2229
|
+
Schema.Record(
|
|
2230
|
+
Schema.String,
|
|
2231
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2232
|
+
),
|
|
2233
|
+
],
|
|
2234
|
+
);
|
|
2235
|
+
|
|
2236
|
+
export type DeleteFunctionRequest = typeof DeleteFunctionRequest.Type;
|
|
2237
|
+
|
|
2238
|
+
export const GetFunctionConfigurationRequest = Schema.StructWithRest(
|
|
2239
|
+
Schema.Struct({
|
|
2240
|
+
FunctionName: Schema.String.check(
|
|
2241
|
+
Schema.isMinLength(1).annotate({
|
|
2242
|
+
expected: "a value with a length of at least 1",
|
|
2243
|
+
}),
|
|
2244
|
+
)
|
|
2245
|
+
.check(
|
|
2246
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
2247
|
+
expected: "a string with at most 256 code points",
|
|
2248
|
+
}),
|
|
2249
|
+
)
|
|
2250
|
+
.check(
|
|
2251
|
+
Schema.isPattern(
|
|
2252
|
+
new globalThis.RegExp(
|
|
2253
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2254
|
+
"u",
|
|
2255
|
+
),
|
|
2256
|
+
).annotate({
|
|
2257
|
+
expected:
|
|
2258
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2259
|
+
}),
|
|
2260
|
+
),
|
|
2261
|
+
Qualifier: optionalRestJsonMember(
|
|
2262
|
+
Schema.String.check(
|
|
2263
|
+
Schema.isMinLength(1).annotate({
|
|
2264
|
+
expected: "a value with a length of at least 1",
|
|
2265
|
+
}),
|
|
2266
|
+
)
|
|
2267
|
+
.check(
|
|
2268
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
2269
|
+
expected: "a string with at most 128 code points",
|
|
2270
|
+
}),
|
|
2271
|
+
)
|
|
2272
|
+
.check(
|
|
2273
|
+
Schema.isPattern(
|
|
2274
|
+
new globalThis.RegExp(
|
|
2275
|
+
"^\\$(LATEST(\\.PUBLISHED)?)|[a-zA-Z0-9-_$]+$",
|
|
2276
|
+
"u",
|
|
2277
|
+
),
|
|
2278
|
+
).annotate({
|
|
2279
|
+
expected:
|
|
2280
|
+
"a string matching the RegExp ^\\$(LATEST(\\.PUBLISHED)?)|[a-zA-Z0-9-_$]+$",
|
|
2281
|
+
}),
|
|
2282
|
+
),
|
|
2283
|
+
),
|
|
2284
|
+
}),
|
|
2285
|
+
[
|
|
2286
|
+
Schema.Record(
|
|
2287
|
+
Schema.String,
|
|
2288
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2289
|
+
),
|
|
2290
|
+
],
|
|
2291
|
+
);
|
|
2292
|
+
|
|
2293
|
+
export type GetFunctionConfigurationRequest =
|
|
2294
|
+
typeof GetFunctionConfigurationRequest.Type;
|
|
2295
|
+
|
|
2296
|
+
export const GetFunctionConfigurationResponseContent = Schema.StructWithRest(
|
|
2297
|
+
Schema.Struct({
|
|
2298
|
+
FunctionName: optionalRestJsonMember(
|
|
2299
|
+
Schema.String.check(
|
|
2300
|
+
Schema.isMinLength(1).annotate({
|
|
2301
|
+
expected: "a value with a length of at least 1",
|
|
2302
|
+
}),
|
|
2303
|
+
)
|
|
2304
|
+
.check(
|
|
2305
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
2306
|
+
expected: "a string with at most 256 code points",
|
|
2307
|
+
}),
|
|
2308
|
+
)
|
|
2309
|
+
.check(
|
|
2310
|
+
Schema.isPattern(
|
|
2311
|
+
new globalThis.RegExp(
|
|
2312
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2313
|
+
"u",
|
|
2314
|
+
),
|
|
2315
|
+
).annotate({
|
|
2316
|
+
expected:
|
|
2317
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2318
|
+
}),
|
|
2319
|
+
),
|
|
2320
|
+
),
|
|
2321
|
+
FunctionArn: optionalRestJsonMember(
|
|
2322
|
+
Schema.String.check(
|
|
2323
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2324
|
+
expected: "a string with at least 0 code points",
|
|
2325
|
+
}),
|
|
2326
|
+
)
|
|
2327
|
+
.check(
|
|
2328
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2329
|
+
expected: "a string with at most 10000 code points",
|
|
2330
|
+
}),
|
|
2331
|
+
)
|
|
2332
|
+
.check(
|
|
2333
|
+
Schema.isPattern(
|
|
2334
|
+
new globalThis.RegExp(
|
|
2335
|
+
"^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2336
|
+
"u",
|
|
2337
|
+
),
|
|
2338
|
+
).annotate({
|
|
2339
|
+
expected:
|
|
2340
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2341
|
+
}),
|
|
2342
|
+
),
|
|
2343
|
+
),
|
|
2344
|
+
Runtime: optionalRestJsonMember(Runtime),
|
|
2345
|
+
Role: optionalRestJsonMember(
|
|
2346
|
+
Schema.String.check(
|
|
2347
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2348
|
+
expected: "a string with at least 0 code points",
|
|
2349
|
+
}),
|
|
2350
|
+
)
|
|
2351
|
+
.check(
|
|
2352
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2353
|
+
expected: "a string with at most 10000 code points",
|
|
2354
|
+
}),
|
|
2355
|
+
)
|
|
2356
|
+
.check(
|
|
2357
|
+
Schema.isPattern(
|
|
2358
|
+
new globalThis.RegExp(
|
|
2359
|
+
"^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
2360
|
+
"u",
|
|
2361
|
+
),
|
|
2362
|
+
).annotate({
|
|
2363
|
+
expected:
|
|
2364
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
2365
|
+
}),
|
|
2366
|
+
),
|
|
2367
|
+
),
|
|
2368
|
+
Handler: optionalRestJsonMember(
|
|
2369
|
+
Schema.String.check(
|
|
2370
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2371
|
+
expected: "a string with at least 0 code points",
|
|
2372
|
+
}),
|
|
2373
|
+
)
|
|
2374
|
+
.check(
|
|
2375
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
2376
|
+
expected: "a string with at most 128 code points",
|
|
2377
|
+
}),
|
|
2378
|
+
)
|
|
2379
|
+
.check(
|
|
2380
|
+
Schema.isPattern(new globalThis.RegExp("^[^\\s]+$", "u")).annotate({
|
|
2381
|
+
expected: "a string matching the RegExp ^[^\\s]+$",
|
|
2382
|
+
}),
|
|
2383
|
+
),
|
|
2384
|
+
),
|
|
2385
|
+
CodeSize: optionalRestJsonMember(
|
|
2386
|
+
Schema.Number.annotate({ default: 0 }).check(
|
|
2387
|
+
Schema.isFinite().annotate({ expected: "a finite number" }),
|
|
2388
|
+
),
|
|
2389
|
+
),
|
|
2390
|
+
Description: optionalRestJsonMember(
|
|
2391
|
+
Schema.String.check(
|
|
2392
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2393
|
+
expected: "a string with at least 0 code points",
|
|
2394
|
+
}),
|
|
2395
|
+
).check(
|
|
2396
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
2397
|
+
expected: "a string with at most 256 code points",
|
|
2398
|
+
}),
|
|
2399
|
+
),
|
|
2400
|
+
),
|
|
2401
|
+
Timeout: optionalRestJsonMember(
|
|
2402
|
+
Schema.Finite.check(
|
|
2403
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
2404
|
+
expected: "a value greater than or equal to 1",
|
|
2405
|
+
}),
|
|
2406
|
+
).check(
|
|
2407
|
+
Schema.isLessThanOrEqualTo(5400).annotate({
|
|
2408
|
+
expected: "a value less than or equal to 5400",
|
|
2409
|
+
}),
|
|
2410
|
+
),
|
|
2411
|
+
),
|
|
2412
|
+
MemorySize: optionalRestJsonMember(
|
|
2413
|
+
Schema.Finite.check(
|
|
2414
|
+
Schema.isGreaterThanOrEqualTo(128).annotate({
|
|
2415
|
+
expected: "a value greater than or equal to 128",
|
|
2416
|
+
}),
|
|
2417
|
+
).check(
|
|
2418
|
+
Schema.isLessThanOrEqualTo(32768).annotate({
|
|
2419
|
+
expected: "a value less than or equal to 32768",
|
|
2420
|
+
}),
|
|
2421
|
+
),
|
|
2422
|
+
),
|
|
2423
|
+
LastModified: optionalRestJsonMember(
|
|
2424
|
+
Schema.String.check(
|
|
2425
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2426
|
+
expected: "a string with at least 0 code points",
|
|
2427
|
+
}),
|
|
2428
|
+
)
|
|
2429
|
+
.check(
|
|
2430
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
2431
|
+
expected: "a string with at most 100 code points",
|
|
2432
|
+
}),
|
|
2433
|
+
)
|
|
2434
|
+
.check(
|
|
2435
|
+
Schema.isPattern(new globalThis.RegExp("^.*$", "u")).annotate({
|
|
2436
|
+
expected: "a string matching the RegExp ^.*$",
|
|
2437
|
+
}),
|
|
2438
|
+
),
|
|
2439
|
+
),
|
|
2440
|
+
CodeSha256: optionalRestJsonMember(Schema.String),
|
|
2441
|
+
Version: optionalRestJsonMember(
|
|
2442
|
+
Schema.String.check(
|
|
2443
|
+
Schema.isMinLength(1).annotate({
|
|
2444
|
+
expected: "a value with a length of at least 1",
|
|
2445
|
+
}),
|
|
2446
|
+
)
|
|
2447
|
+
.check(
|
|
2448
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
2449
|
+
expected: "a string with at most 1024 code points",
|
|
2450
|
+
}),
|
|
2451
|
+
)
|
|
2452
|
+
.check(
|
|
2453
|
+
Schema.isPattern(
|
|
2454
|
+
new globalThis.RegExp("^(\\$LATEST|[0-9]+)$", "u"),
|
|
2455
|
+
).annotate({
|
|
2456
|
+
expected: "a string matching the RegExp ^(\\$LATEST|[0-9]+)$",
|
|
2457
|
+
}),
|
|
2458
|
+
),
|
|
2459
|
+
),
|
|
2460
|
+
VpcConfig: optionalRestJsonMember(VpcConfigResponse),
|
|
2461
|
+
DeadLetterConfig: optionalRestJsonMember(DeadLetterConfig),
|
|
2462
|
+
Environment: optionalRestJsonMember(EnvironmentResponse),
|
|
2463
|
+
KMSKeyArn: optionalRestJsonMember(
|
|
2464
|
+
Schema.String.check(
|
|
2465
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2466
|
+
expected: "a string with at least 0 code points",
|
|
2467
|
+
}),
|
|
2468
|
+
)
|
|
2469
|
+
.check(
|
|
2470
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2471
|
+
expected: "a string with at most 10000 code points",
|
|
2472
|
+
}),
|
|
2473
|
+
)
|
|
2474
|
+
.check(
|
|
2475
|
+
Schema.isPattern(
|
|
2476
|
+
new globalThis.RegExp(
|
|
2477
|
+
"^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
2478
|
+
"u",
|
|
2479
|
+
),
|
|
2480
|
+
).annotate({
|
|
2481
|
+
expected:
|
|
2482
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
2483
|
+
}),
|
|
2484
|
+
),
|
|
2485
|
+
),
|
|
2486
|
+
TracingConfig: optionalRestJsonMember(TracingConfigResponse),
|
|
2487
|
+
MasterArn: optionalRestJsonMember(
|
|
2488
|
+
Schema.String.check(
|
|
2489
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2490
|
+
expected: "a string with at least 0 code points",
|
|
2491
|
+
}),
|
|
2492
|
+
)
|
|
2493
|
+
.check(
|
|
2494
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2495
|
+
expected: "a string with at most 10000 code points",
|
|
2496
|
+
}),
|
|
2497
|
+
)
|
|
2498
|
+
.check(
|
|
2499
|
+
Schema.isPattern(
|
|
2500
|
+
new globalThis.RegExp(
|
|
2501
|
+
"^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
2502
|
+
"u",
|
|
2503
|
+
),
|
|
2504
|
+
).annotate({
|
|
2505
|
+
expected:
|
|
2506
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
2507
|
+
}),
|
|
2508
|
+
),
|
|
2509
|
+
),
|
|
2510
|
+
RevisionId: optionalRestJsonMember(Schema.String),
|
|
2511
|
+
Layers: optionalRestJsonMember(Schema.Array(Layer)),
|
|
2512
|
+
State: optionalRestJsonMember(State),
|
|
2513
|
+
StateReason: optionalRestJsonMember(Schema.String),
|
|
2514
|
+
StateReasonCode: optionalRestJsonMember(StateReasonCode),
|
|
2515
|
+
LastUpdateStatus: optionalRestJsonMember(LastUpdateStatus),
|
|
2516
|
+
LastUpdateStatusReason: optionalRestJsonMember(Schema.String),
|
|
2517
|
+
LastUpdateStatusReasonCode: optionalRestJsonMember(
|
|
2518
|
+
LastUpdateStatusReasonCode,
|
|
2519
|
+
),
|
|
2520
|
+
FileSystemConfigs: optionalRestJsonMember(
|
|
2521
|
+
Schema.Array(FileSystemConfig)
|
|
2522
|
+
.check(
|
|
2523
|
+
Schema.isMinLength(0).annotate({
|
|
2524
|
+
expected: "a value with a length of at least 0",
|
|
2525
|
+
}),
|
|
2526
|
+
)
|
|
2527
|
+
.check(
|
|
2528
|
+
Schema.isMaxLength(1).annotate({
|
|
2529
|
+
expected: "a value with a length of at most 1",
|
|
2530
|
+
}),
|
|
2531
|
+
),
|
|
2532
|
+
),
|
|
2533
|
+
SigningProfileVersionArn: optionalRestJsonMember(
|
|
2534
|
+
Schema.String.check(
|
|
2535
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2536
|
+
expected: "a string with at least 0 code points",
|
|
2537
|
+
}),
|
|
2538
|
+
)
|
|
2539
|
+
.check(
|
|
2540
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2541
|
+
expected: "a string with at most 10000 code points",
|
|
2542
|
+
}),
|
|
2543
|
+
)
|
|
2544
|
+
.check(
|
|
2545
|
+
Schema.isPattern(
|
|
2546
|
+
new globalThis.RegExp(
|
|
2547
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
2548
|
+
"u",
|
|
2549
|
+
),
|
|
2550
|
+
).annotate({
|
|
2551
|
+
expected:
|
|
2552
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
2553
|
+
}),
|
|
2554
|
+
),
|
|
2555
|
+
),
|
|
2556
|
+
SigningJobArn: optionalRestJsonMember(
|
|
2557
|
+
Schema.String.check(
|
|
2558
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2559
|
+
expected: "a string with at least 0 code points",
|
|
2560
|
+
}),
|
|
2561
|
+
)
|
|
2562
|
+
.check(
|
|
2563
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2564
|
+
expected: "a string with at most 10000 code points",
|
|
2565
|
+
}),
|
|
2566
|
+
)
|
|
2567
|
+
.check(
|
|
2568
|
+
Schema.isPattern(
|
|
2569
|
+
new globalThis.RegExp(
|
|
2570
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
2571
|
+
"u",
|
|
2572
|
+
),
|
|
2573
|
+
).annotate({
|
|
2574
|
+
expected:
|
|
2575
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
2576
|
+
}),
|
|
2577
|
+
),
|
|
2578
|
+
),
|
|
2579
|
+
PackageType: optionalRestJsonMember(PackageType),
|
|
2580
|
+
ImageConfigResponse: optionalRestJsonMember(ImageConfigResponse),
|
|
2581
|
+
Architectures: optionalRestJsonMember(
|
|
2582
|
+
Schema.Array(Architecture)
|
|
2583
|
+
.check(
|
|
2584
|
+
Schema.isMinLength(1).annotate({
|
|
2585
|
+
expected: "a value with a length of at least 1",
|
|
2586
|
+
}),
|
|
2587
|
+
)
|
|
2588
|
+
.check(
|
|
2589
|
+
Schema.isMaxLength(1).annotate({
|
|
2590
|
+
expected: "a value with a length of at most 1",
|
|
2591
|
+
}),
|
|
2592
|
+
),
|
|
2593
|
+
),
|
|
2594
|
+
EphemeralStorage: optionalRestJsonMember(EphemeralStorage),
|
|
2595
|
+
SnapStart: optionalRestJsonMember(SnapStartResponse),
|
|
2596
|
+
RuntimeVersionConfig: optionalRestJsonMember(RuntimeVersionConfig),
|
|
2597
|
+
LoggingConfig: optionalRestJsonMember(LoggingConfig),
|
|
2598
|
+
TenancyConfig: optionalRestJsonMember(TenancyConfig),
|
|
2599
|
+
CapacityProviderConfig: optionalRestJsonMember(CapacityProviderConfig),
|
|
2600
|
+
ConfigSha256: optionalRestJsonMember(Schema.String),
|
|
2601
|
+
DurableConfig: optionalRestJsonMember(DurableConfig),
|
|
2602
|
+
}),
|
|
2603
|
+
[
|
|
2604
|
+
Schema.Record(
|
|
2605
|
+
Schema.String,
|
|
2606
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2607
|
+
),
|
|
2608
|
+
],
|
|
2609
|
+
);
|
|
2610
|
+
|
|
2611
|
+
export type GetFunctionConfigurationResponseContent =
|
|
2612
|
+
typeof GetFunctionConfigurationResponseContent.Type;
|
|
2613
|
+
|
|
2614
|
+
export const GetPolicyRequest = Schema.StructWithRest(
|
|
2615
|
+
Schema.Struct({
|
|
2616
|
+
FunctionName: Schema.String.check(
|
|
2617
|
+
Schema.isMinLength(1).annotate({
|
|
2618
|
+
expected: "a value with a length of at least 1",
|
|
2619
|
+
}),
|
|
2620
|
+
)
|
|
2621
|
+
.check(
|
|
2622
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
2623
|
+
expected: "a string with at most 256 code points",
|
|
2624
|
+
}),
|
|
2625
|
+
)
|
|
2626
|
+
.check(
|
|
2627
|
+
Schema.isPattern(
|
|
2628
|
+
new globalThis.RegExp(
|
|
2629
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2630
|
+
"u",
|
|
2631
|
+
),
|
|
2632
|
+
).annotate({
|
|
2633
|
+
expected:
|
|
2634
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2635
|
+
}),
|
|
2636
|
+
),
|
|
2637
|
+
Qualifier: optionalRestJsonMember(
|
|
2638
|
+
Schema.String.check(
|
|
2639
|
+
Schema.isMinLength(1).annotate({
|
|
2640
|
+
expected: "a value with a length of at least 1",
|
|
2641
|
+
}),
|
|
2642
|
+
)
|
|
2643
|
+
.check(
|
|
2644
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
2645
|
+
expected: "a string with at most 128 code points",
|
|
2646
|
+
}),
|
|
2647
|
+
)
|
|
2648
|
+
.check(
|
|
2649
|
+
Schema.isPattern(
|
|
2650
|
+
new globalThis.RegExp(
|
|
2651
|
+
"^\\$(LATEST(\\.PUBLISHED)?)|[a-zA-Z0-9-_$]+$",
|
|
2652
|
+
"u",
|
|
2653
|
+
),
|
|
2654
|
+
).annotate({
|
|
2655
|
+
expected:
|
|
2656
|
+
"a string matching the RegExp ^\\$(LATEST(\\.PUBLISHED)?)|[a-zA-Z0-9-_$]+$",
|
|
2657
|
+
}),
|
|
2658
|
+
),
|
|
2659
|
+
),
|
|
2660
|
+
}),
|
|
2661
|
+
[
|
|
2662
|
+
Schema.Record(
|
|
2663
|
+
Schema.String,
|
|
2664
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2665
|
+
),
|
|
2666
|
+
],
|
|
2667
|
+
);
|
|
2668
|
+
|
|
2669
|
+
export type GetPolicyRequest = typeof GetPolicyRequest.Type;
|
|
2670
|
+
|
|
2671
|
+
export const GetPolicyResponseContent = Schema.StructWithRest(
|
|
2672
|
+
Schema.Struct({
|
|
2673
|
+
Policy: optionalRestJsonMember(Schema.String),
|
|
2674
|
+
RevisionId: optionalRestJsonMember(Schema.String),
|
|
2675
|
+
}),
|
|
2676
|
+
[
|
|
2677
|
+
Schema.Record(
|
|
2678
|
+
Schema.String,
|
|
2679
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2680
|
+
),
|
|
2681
|
+
],
|
|
2682
|
+
);
|
|
2683
|
+
|
|
2684
|
+
export type GetPolicyResponseContent = typeof GetPolicyResponseContent.Type;
|
|
2685
|
+
|
|
2686
|
+
export const RemovePermissionRequest = Schema.StructWithRest(
|
|
2687
|
+
Schema.Struct({
|
|
2688
|
+
FunctionName: Schema.String.check(
|
|
2689
|
+
Schema.isMinLength(1).annotate({
|
|
2690
|
+
expected: "a value with a length of at least 1",
|
|
2691
|
+
}),
|
|
2692
|
+
)
|
|
2693
|
+
.check(
|
|
2694
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
2695
|
+
expected: "a string with at most 256 code points",
|
|
2696
|
+
}),
|
|
2697
|
+
)
|
|
2698
|
+
.check(
|
|
2699
|
+
Schema.isPattern(
|
|
2700
|
+
new globalThis.RegExp(
|
|
2701
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2702
|
+
"u",
|
|
2703
|
+
),
|
|
2704
|
+
).annotate({
|
|
2705
|
+
expected:
|
|
2706
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2707
|
+
}),
|
|
2708
|
+
),
|
|
2709
|
+
StatementId: Schema.String.check(
|
|
2710
|
+
Schema.isMinLength(1).annotate({
|
|
2711
|
+
expected: "a value with a length of at least 1",
|
|
2712
|
+
}),
|
|
2713
|
+
)
|
|
2714
|
+
.check(
|
|
2715
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
2716
|
+
expected: "a string with at most 100 code points",
|
|
2717
|
+
}),
|
|
2718
|
+
)
|
|
2719
|
+
.check(
|
|
2720
|
+
Schema.isPattern(
|
|
2721
|
+
new globalThis.RegExp("^([a-zA-Z0-9-_.]+)$", "u"),
|
|
2722
|
+
).annotate({
|
|
2723
|
+
expected: "a string matching the RegExp ^([a-zA-Z0-9-_.]+)$",
|
|
2724
|
+
}),
|
|
2725
|
+
),
|
|
2726
|
+
Qualifier: optionalRestJsonMember(
|
|
2727
|
+
Schema.String.check(
|
|
2728
|
+
Schema.isMinLength(1).annotate({
|
|
2729
|
+
expected: "a value with a length of at least 1",
|
|
2730
|
+
}),
|
|
2731
|
+
)
|
|
2732
|
+
.check(
|
|
2733
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
2734
|
+
expected: "a string with at most 128 code points",
|
|
2735
|
+
}),
|
|
2736
|
+
)
|
|
2737
|
+
.check(
|
|
2738
|
+
Schema.isPattern(
|
|
2739
|
+
new globalThis.RegExp(
|
|
2740
|
+
"^\\$(LATEST(\\.PUBLISHED)?)|[a-zA-Z0-9-_$]+$",
|
|
2741
|
+
"u",
|
|
2742
|
+
),
|
|
2743
|
+
).annotate({
|
|
2744
|
+
expected:
|
|
2745
|
+
"a string matching the RegExp ^\\$(LATEST(\\.PUBLISHED)?)|[a-zA-Z0-9-_$]+$",
|
|
2746
|
+
}),
|
|
2747
|
+
),
|
|
2748
|
+
),
|
|
2749
|
+
RevisionId: optionalRestJsonMember(Schema.String),
|
|
2750
|
+
}),
|
|
2751
|
+
[
|
|
2752
|
+
Schema.Record(
|
|
2753
|
+
Schema.String,
|
|
2754
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2755
|
+
),
|
|
2756
|
+
],
|
|
2757
|
+
);
|
|
2758
|
+
|
|
2759
|
+
export type RemovePermissionRequest = typeof RemovePermissionRequest.Type;
|
|
2760
|
+
|
|
2761
|
+
export const UpdateFunctionCodeRequest = Schema.StructWithRest(
|
|
2762
|
+
Schema.Struct({
|
|
2763
|
+
FunctionName: Schema.String.check(
|
|
2764
|
+
Schema.isMinLength(1).annotate({
|
|
2765
|
+
expected: "a value with a length of at least 1",
|
|
2766
|
+
}),
|
|
2767
|
+
)
|
|
2768
|
+
.check(
|
|
2769
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
2770
|
+
expected: "a string with at most 140 code points",
|
|
2771
|
+
}),
|
|
2772
|
+
)
|
|
2773
|
+
.check(
|
|
2774
|
+
Schema.isPattern(
|
|
2775
|
+
new globalThis.RegExp(
|
|
2776
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
2777
|
+
"u",
|
|
2778
|
+
),
|
|
2779
|
+
).annotate({
|
|
2780
|
+
expected:
|
|
2781
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
2782
|
+
}),
|
|
2783
|
+
),
|
|
2784
|
+
ZipFile: optionalRestJsonMember(
|
|
2785
|
+
Schema.String.annotate({ contentEncoding: "byte" }),
|
|
2786
|
+
),
|
|
2787
|
+
S3Bucket: optionalRestJsonMember(
|
|
2788
|
+
Schema.String.check(
|
|
2789
|
+
Schema.isMinCodePoints(3).annotate({
|
|
2790
|
+
expected: "a string with at least 3 code points",
|
|
2791
|
+
}),
|
|
2792
|
+
)
|
|
2793
|
+
.check(
|
|
2794
|
+
Schema.isMaxCodePoints(63).annotate({
|
|
2795
|
+
expected: "a string with at most 63 code points",
|
|
2796
|
+
}),
|
|
2797
|
+
)
|
|
2798
|
+
.check(
|
|
2799
|
+
Schema.isPattern(
|
|
2800
|
+
new globalThis.RegExp("^[0-9A-Za-z\\.\\-_]*(?<!\\.)$", "u"),
|
|
2801
|
+
).annotate({
|
|
2802
|
+
expected:
|
|
2803
|
+
"a string matching the RegExp ^[0-9A-Za-z\\.\\-_]*(?<!\\.)$",
|
|
2804
|
+
}),
|
|
2805
|
+
),
|
|
2806
|
+
),
|
|
2807
|
+
S3Key: optionalRestJsonMember(
|
|
2808
|
+
Schema.String.check(
|
|
2809
|
+
Schema.isMinLength(1).annotate({
|
|
2810
|
+
expected: "a value with a length of at least 1",
|
|
2811
|
+
}),
|
|
2812
|
+
)
|
|
2813
|
+
.check(
|
|
2814
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
2815
|
+
expected: "a string with at most 1024 code points",
|
|
2816
|
+
}),
|
|
2817
|
+
)
|
|
2818
|
+
.check(
|
|
2819
|
+
Schema.isPattern(new globalThis.RegExp("^.*$", "u")).annotate({
|
|
2820
|
+
expected: "a string matching the RegExp ^.*$",
|
|
2821
|
+
}),
|
|
2822
|
+
),
|
|
2823
|
+
),
|
|
2824
|
+
S3ObjectVersion: optionalRestJsonMember(
|
|
2825
|
+
Schema.String.check(
|
|
2826
|
+
Schema.isMinLength(1).annotate({
|
|
2827
|
+
expected: "a value with a length of at least 1",
|
|
2828
|
+
}),
|
|
2829
|
+
)
|
|
2830
|
+
.check(
|
|
2831
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
2832
|
+
expected: "a string with at most 1024 code points",
|
|
2833
|
+
}),
|
|
2834
|
+
)
|
|
2835
|
+
.check(
|
|
2836
|
+
Schema.isPattern(new globalThis.RegExp("^.*$", "u")).annotate({
|
|
2837
|
+
expected: "a string matching the RegExp ^.*$",
|
|
2838
|
+
}),
|
|
2839
|
+
),
|
|
2840
|
+
),
|
|
2841
|
+
S3ObjectStorageMode: optionalRestJsonMember(S3ObjectStorageMode),
|
|
2842
|
+
ImageUri: optionalRestJsonMember(Schema.String),
|
|
2843
|
+
Architectures: optionalRestJsonMember(
|
|
2844
|
+
Schema.Array(Architecture)
|
|
2845
|
+
.check(
|
|
2846
|
+
Schema.isMinLength(1).annotate({
|
|
2847
|
+
expected: "a value with a length of at least 1",
|
|
2848
|
+
}),
|
|
2849
|
+
)
|
|
2850
|
+
.check(
|
|
2851
|
+
Schema.isMaxLength(1).annotate({
|
|
2852
|
+
expected: "a value with a length of at most 1",
|
|
2853
|
+
}),
|
|
2854
|
+
),
|
|
2855
|
+
),
|
|
2856
|
+
Publish: optionalRestJsonMember(
|
|
2857
|
+
Schema.Boolean.annotate({ default: false }),
|
|
2858
|
+
),
|
|
2859
|
+
PublishTo: optionalRestJsonMember(FunctionVersionLatestPublished),
|
|
2860
|
+
DryRun: optionalRestJsonMember(Schema.Boolean.annotate({ default: false })),
|
|
2861
|
+
RevisionId: optionalRestJsonMember(Schema.String),
|
|
2862
|
+
SourceKMSKeyArn: optionalRestJsonMember(
|
|
2863
|
+
Schema.String.check(
|
|
2864
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2865
|
+
expected: "a string with at least 0 code points",
|
|
2866
|
+
}),
|
|
2867
|
+
)
|
|
2868
|
+
.check(
|
|
2869
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2870
|
+
expected: "a string with at most 10000 code points",
|
|
2871
|
+
}),
|
|
2872
|
+
)
|
|
2873
|
+
.check(
|
|
2874
|
+
Schema.isPattern(
|
|
2875
|
+
new globalThis.RegExp(
|
|
2876
|
+
"^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
2877
|
+
"u",
|
|
2878
|
+
),
|
|
2879
|
+
).annotate({
|
|
2880
|
+
expected:
|
|
2881
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
2882
|
+
}),
|
|
2883
|
+
),
|
|
2884
|
+
),
|
|
2885
|
+
}),
|
|
2886
|
+
[
|
|
2887
|
+
Schema.Record(
|
|
2888
|
+
Schema.String,
|
|
2889
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
2890
|
+
),
|
|
2891
|
+
],
|
|
2892
|
+
);
|
|
2893
|
+
|
|
2894
|
+
export type UpdateFunctionCodeRequest = typeof UpdateFunctionCodeRequest.Type;
|
|
2895
|
+
|
|
2896
|
+
export const UpdateFunctionCodeResponseContent = Schema.StructWithRest(
|
|
2897
|
+
Schema.Struct({
|
|
2898
|
+
FunctionName: optionalRestJsonMember(
|
|
2899
|
+
Schema.String.check(
|
|
2900
|
+
Schema.isMinLength(1).annotate({
|
|
2901
|
+
expected: "a value with a length of at least 1",
|
|
2902
|
+
}),
|
|
2903
|
+
)
|
|
2904
|
+
.check(
|
|
2905
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
2906
|
+
expected: "a string with at most 256 code points",
|
|
2907
|
+
}),
|
|
2908
|
+
)
|
|
2909
|
+
.check(
|
|
2910
|
+
Schema.isPattern(
|
|
2911
|
+
new globalThis.RegExp(
|
|
2912
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2913
|
+
"u",
|
|
2914
|
+
),
|
|
2915
|
+
).annotate({
|
|
2916
|
+
expected:
|
|
2917
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2918
|
+
}),
|
|
2919
|
+
),
|
|
2920
|
+
),
|
|
2921
|
+
FunctionArn: optionalRestJsonMember(
|
|
2922
|
+
Schema.String.check(
|
|
2923
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2924
|
+
expected: "a string with at least 0 code points",
|
|
2925
|
+
}),
|
|
2926
|
+
)
|
|
2927
|
+
.check(
|
|
2928
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2929
|
+
expected: "a string with at most 10000 code points",
|
|
2930
|
+
}),
|
|
2931
|
+
)
|
|
2932
|
+
.check(
|
|
2933
|
+
Schema.isPattern(
|
|
2934
|
+
new globalThis.RegExp(
|
|
2935
|
+
"^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2936
|
+
"u",
|
|
2937
|
+
),
|
|
2938
|
+
).annotate({
|
|
2939
|
+
expected:
|
|
2940
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
2941
|
+
}),
|
|
2942
|
+
),
|
|
2943
|
+
),
|
|
2944
|
+
Runtime: optionalRestJsonMember(Runtime),
|
|
2945
|
+
Role: optionalRestJsonMember(
|
|
2946
|
+
Schema.String.check(
|
|
2947
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2948
|
+
expected: "a string with at least 0 code points",
|
|
2949
|
+
}),
|
|
2950
|
+
)
|
|
2951
|
+
.check(
|
|
2952
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
2953
|
+
expected: "a string with at most 10000 code points",
|
|
2954
|
+
}),
|
|
2955
|
+
)
|
|
2956
|
+
.check(
|
|
2957
|
+
Schema.isPattern(
|
|
2958
|
+
new globalThis.RegExp(
|
|
2959
|
+
"^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
2960
|
+
"u",
|
|
2961
|
+
),
|
|
2962
|
+
).annotate({
|
|
2963
|
+
expected:
|
|
2964
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
2965
|
+
}),
|
|
2966
|
+
),
|
|
2967
|
+
),
|
|
2968
|
+
Handler: optionalRestJsonMember(
|
|
2969
|
+
Schema.String.check(
|
|
2970
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2971
|
+
expected: "a string with at least 0 code points",
|
|
2972
|
+
}),
|
|
2973
|
+
)
|
|
2974
|
+
.check(
|
|
2975
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
2976
|
+
expected: "a string with at most 128 code points",
|
|
2977
|
+
}),
|
|
2978
|
+
)
|
|
2979
|
+
.check(
|
|
2980
|
+
Schema.isPattern(new globalThis.RegExp("^[^\\s]+$", "u")).annotate({
|
|
2981
|
+
expected: "a string matching the RegExp ^[^\\s]+$",
|
|
2982
|
+
}),
|
|
2983
|
+
),
|
|
2984
|
+
),
|
|
2985
|
+
CodeSize: optionalRestJsonMember(
|
|
2986
|
+
Schema.Number.annotate({ default: 0 }).check(
|
|
2987
|
+
Schema.isFinite().annotate({ expected: "a finite number" }),
|
|
2988
|
+
),
|
|
2989
|
+
),
|
|
2990
|
+
Description: optionalRestJsonMember(
|
|
2991
|
+
Schema.String.check(
|
|
2992
|
+
Schema.isMinCodePoints(0).annotate({
|
|
2993
|
+
expected: "a string with at least 0 code points",
|
|
2994
|
+
}),
|
|
2995
|
+
).check(
|
|
2996
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
2997
|
+
expected: "a string with at most 256 code points",
|
|
2998
|
+
}),
|
|
2999
|
+
),
|
|
3000
|
+
),
|
|
3001
|
+
Timeout: optionalRestJsonMember(
|
|
3002
|
+
Schema.Finite.check(
|
|
3003
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
3004
|
+
expected: "a value greater than or equal to 1",
|
|
3005
|
+
}),
|
|
3006
|
+
).check(
|
|
3007
|
+
Schema.isLessThanOrEqualTo(5400).annotate({
|
|
3008
|
+
expected: "a value less than or equal to 5400",
|
|
3009
|
+
}),
|
|
3010
|
+
),
|
|
3011
|
+
),
|
|
3012
|
+
MemorySize: optionalRestJsonMember(
|
|
3013
|
+
Schema.Finite.check(
|
|
3014
|
+
Schema.isGreaterThanOrEqualTo(128).annotate({
|
|
3015
|
+
expected: "a value greater than or equal to 128",
|
|
3016
|
+
}),
|
|
3017
|
+
).check(
|
|
3018
|
+
Schema.isLessThanOrEqualTo(32768).annotate({
|
|
3019
|
+
expected: "a value less than or equal to 32768",
|
|
3020
|
+
}),
|
|
3021
|
+
),
|
|
3022
|
+
),
|
|
3023
|
+
LastModified: optionalRestJsonMember(
|
|
3024
|
+
Schema.String.check(
|
|
3025
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3026
|
+
expected: "a string with at least 0 code points",
|
|
3027
|
+
}),
|
|
3028
|
+
)
|
|
3029
|
+
.check(
|
|
3030
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
3031
|
+
expected: "a string with at most 100 code points",
|
|
3032
|
+
}),
|
|
3033
|
+
)
|
|
3034
|
+
.check(
|
|
3035
|
+
Schema.isPattern(new globalThis.RegExp("^.*$", "u")).annotate({
|
|
3036
|
+
expected: "a string matching the RegExp ^.*$",
|
|
3037
|
+
}),
|
|
3038
|
+
),
|
|
3039
|
+
),
|
|
3040
|
+
CodeSha256: optionalRestJsonMember(Schema.String),
|
|
3041
|
+
Version: optionalRestJsonMember(
|
|
3042
|
+
Schema.String.check(
|
|
3043
|
+
Schema.isMinLength(1).annotate({
|
|
3044
|
+
expected: "a value with a length of at least 1",
|
|
3045
|
+
}),
|
|
3046
|
+
)
|
|
3047
|
+
.check(
|
|
3048
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
3049
|
+
expected: "a string with at most 1024 code points",
|
|
3050
|
+
}),
|
|
3051
|
+
)
|
|
3052
|
+
.check(
|
|
3053
|
+
Schema.isPattern(
|
|
3054
|
+
new globalThis.RegExp("^(\\$LATEST|[0-9]+)$", "u"),
|
|
3055
|
+
).annotate({
|
|
3056
|
+
expected: "a string matching the RegExp ^(\\$LATEST|[0-9]+)$",
|
|
3057
|
+
}),
|
|
3058
|
+
),
|
|
3059
|
+
),
|
|
3060
|
+
VpcConfig: optionalRestJsonMember(VpcConfigResponse),
|
|
3061
|
+
DeadLetterConfig: optionalRestJsonMember(DeadLetterConfig),
|
|
3062
|
+
Environment: optionalRestJsonMember(EnvironmentResponse),
|
|
3063
|
+
KMSKeyArn: optionalRestJsonMember(
|
|
3064
|
+
Schema.String.check(
|
|
3065
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3066
|
+
expected: "a string with at least 0 code points",
|
|
3067
|
+
}),
|
|
3068
|
+
)
|
|
3069
|
+
.check(
|
|
3070
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3071
|
+
expected: "a string with at most 10000 code points",
|
|
3072
|
+
}),
|
|
3073
|
+
)
|
|
3074
|
+
.check(
|
|
3075
|
+
Schema.isPattern(
|
|
3076
|
+
new globalThis.RegExp(
|
|
3077
|
+
"^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
3078
|
+
"u",
|
|
3079
|
+
),
|
|
3080
|
+
).annotate({
|
|
3081
|
+
expected:
|
|
3082
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
3083
|
+
}),
|
|
3084
|
+
),
|
|
3085
|
+
),
|
|
3086
|
+
TracingConfig: optionalRestJsonMember(TracingConfigResponse),
|
|
3087
|
+
MasterArn: optionalRestJsonMember(
|
|
3088
|
+
Schema.String.check(
|
|
3089
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3090
|
+
expected: "a string with at least 0 code points",
|
|
3091
|
+
}),
|
|
3092
|
+
)
|
|
3093
|
+
.check(
|
|
3094
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3095
|
+
expected: "a string with at most 10000 code points",
|
|
3096
|
+
}),
|
|
3097
|
+
)
|
|
3098
|
+
.check(
|
|
3099
|
+
Schema.isPattern(
|
|
3100
|
+
new globalThis.RegExp(
|
|
3101
|
+
"^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
3102
|
+
"u",
|
|
3103
|
+
),
|
|
3104
|
+
).annotate({
|
|
3105
|
+
expected:
|
|
3106
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
3107
|
+
}),
|
|
3108
|
+
),
|
|
3109
|
+
),
|
|
3110
|
+
RevisionId: optionalRestJsonMember(Schema.String),
|
|
3111
|
+
Layers: optionalRestJsonMember(Schema.Array(Layer)),
|
|
3112
|
+
State: optionalRestJsonMember(State),
|
|
3113
|
+
StateReason: optionalRestJsonMember(Schema.String),
|
|
3114
|
+
StateReasonCode: optionalRestJsonMember(StateReasonCode),
|
|
3115
|
+
LastUpdateStatus: optionalRestJsonMember(LastUpdateStatus),
|
|
3116
|
+
LastUpdateStatusReason: optionalRestJsonMember(Schema.String),
|
|
3117
|
+
LastUpdateStatusReasonCode: optionalRestJsonMember(
|
|
3118
|
+
LastUpdateStatusReasonCode,
|
|
3119
|
+
),
|
|
3120
|
+
FileSystemConfigs: optionalRestJsonMember(
|
|
3121
|
+
Schema.Array(FileSystemConfig)
|
|
3122
|
+
.check(
|
|
3123
|
+
Schema.isMinLength(0).annotate({
|
|
3124
|
+
expected: "a value with a length of at least 0",
|
|
3125
|
+
}),
|
|
3126
|
+
)
|
|
3127
|
+
.check(
|
|
3128
|
+
Schema.isMaxLength(1).annotate({
|
|
3129
|
+
expected: "a value with a length of at most 1",
|
|
3130
|
+
}),
|
|
3131
|
+
),
|
|
3132
|
+
),
|
|
3133
|
+
SigningProfileVersionArn: optionalRestJsonMember(
|
|
3134
|
+
Schema.String.check(
|
|
3135
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3136
|
+
expected: "a string with at least 0 code points",
|
|
3137
|
+
}),
|
|
3138
|
+
)
|
|
3139
|
+
.check(
|
|
3140
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3141
|
+
expected: "a string with at most 10000 code points",
|
|
3142
|
+
}),
|
|
3143
|
+
)
|
|
3144
|
+
.check(
|
|
3145
|
+
Schema.isPattern(
|
|
3146
|
+
new globalThis.RegExp(
|
|
3147
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
3148
|
+
"u",
|
|
3149
|
+
),
|
|
3150
|
+
).annotate({
|
|
3151
|
+
expected:
|
|
3152
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
3153
|
+
}),
|
|
3154
|
+
),
|
|
3155
|
+
),
|
|
3156
|
+
SigningJobArn: optionalRestJsonMember(
|
|
3157
|
+
Schema.String.check(
|
|
3158
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3159
|
+
expected: "a string with at least 0 code points",
|
|
3160
|
+
}),
|
|
3161
|
+
)
|
|
3162
|
+
.check(
|
|
3163
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3164
|
+
expected: "a string with at most 10000 code points",
|
|
3165
|
+
}),
|
|
3166
|
+
)
|
|
3167
|
+
.check(
|
|
3168
|
+
Schema.isPattern(
|
|
3169
|
+
new globalThis.RegExp(
|
|
3170
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
3171
|
+
"u",
|
|
3172
|
+
),
|
|
3173
|
+
).annotate({
|
|
3174
|
+
expected:
|
|
3175
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
3176
|
+
}),
|
|
3177
|
+
),
|
|
3178
|
+
),
|
|
3179
|
+
PackageType: optionalRestJsonMember(PackageType),
|
|
3180
|
+
ImageConfigResponse: optionalRestJsonMember(ImageConfigResponse),
|
|
3181
|
+
Architectures: optionalRestJsonMember(
|
|
3182
|
+
Schema.Array(Architecture)
|
|
3183
|
+
.check(
|
|
3184
|
+
Schema.isMinLength(1).annotate({
|
|
3185
|
+
expected: "a value with a length of at least 1",
|
|
3186
|
+
}),
|
|
3187
|
+
)
|
|
3188
|
+
.check(
|
|
3189
|
+
Schema.isMaxLength(1).annotate({
|
|
3190
|
+
expected: "a value with a length of at most 1",
|
|
3191
|
+
}),
|
|
3192
|
+
),
|
|
3193
|
+
),
|
|
3194
|
+
EphemeralStorage: optionalRestJsonMember(EphemeralStorage),
|
|
3195
|
+
SnapStart: optionalRestJsonMember(SnapStartResponse),
|
|
3196
|
+
RuntimeVersionConfig: optionalRestJsonMember(RuntimeVersionConfig),
|
|
3197
|
+
LoggingConfig: optionalRestJsonMember(LoggingConfig),
|
|
3198
|
+
TenancyConfig: optionalRestJsonMember(TenancyConfig),
|
|
3199
|
+
CapacityProviderConfig: optionalRestJsonMember(CapacityProviderConfig),
|
|
3200
|
+
ConfigSha256: optionalRestJsonMember(Schema.String),
|
|
3201
|
+
DurableConfig: optionalRestJsonMember(DurableConfig),
|
|
3202
|
+
}),
|
|
3203
|
+
[
|
|
3204
|
+
Schema.Record(
|
|
3205
|
+
Schema.String,
|
|
3206
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3207
|
+
),
|
|
3208
|
+
],
|
|
3209
|
+
);
|
|
3210
|
+
|
|
3211
|
+
export type UpdateFunctionCodeResponseContent =
|
|
3212
|
+
typeof UpdateFunctionCodeResponseContent.Type;
|
|
3213
|
+
|
|
3214
|
+
export const UpdateFunctionConfigurationRequest = Schema.StructWithRest(
|
|
3215
|
+
Schema.Struct({
|
|
3216
|
+
FunctionName: Schema.String.check(
|
|
3217
|
+
Schema.isMinLength(1).annotate({
|
|
3218
|
+
expected: "a value with a length of at least 1",
|
|
3219
|
+
}),
|
|
3220
|
+
)
|
|
3221
|
+
.check(
|
|
3222
|
+
Schema.isMaxCodePoints(140).annotate({
|
|
3223
|
+
expected: "a string with at most 140 code points",
|
|
3224
|
+
}),
|
|
3225
|
+
)
|
|
3226
|
+
.check(
|
|
3227
|
+
Schema.isPattern(
|
|
3228
|
+
new globalThis.RegExp(
|
|
3229
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
3230
|
+
"u",
|
|
3231
|
+
),
|
|
3232
|
+
).annotate({
|
|
3233
|
+
expected:
|
|
3234
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
3235
|
+
}),
|
|
3236
|
+
),
|
|
3237
|
+
Role: optionalRestJsonMember(
|
|
3238
|
+
Schema.String.check(
|
|
3239
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3240
|
+
expected: "a string with at least 0 code points",
|
|
3241
|
+
}),
|
|
3242
|
+
)
|
|
3243
|
+
.check(
|
|
3244
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3245
|
+
expected: "a string with at most 10000 code points",
|
|
3246
|
+
}),
|
|
3247
|
+
)
|
|
3248
|
+
.check(
|
|
3249
|
+
Schema.isPattern(
|
|
3250
|
+
new globalThis.RegExp(
|
|
3251
|
+
"^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
3252
|
+
"u",
|
|
3253
|
+
),
|
|
3254
|
+
).annotate({
|
|
3255
|
+
expected:
|
|
3256
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
3257
|
+
}),
|
|
3258
|
+
),
|
|
3259
|
+
),
|
|
3260
|
+
Handler: optionalRestJsonMember(
|
|
3261
|
+
Schema.String.check(
|
|
3262
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3263
|
+
expected: "a string with at least 0 code points",
|
|
3264
|
+
}),
|
|
3265
|
+
)
|
|
3266
|
+
.check(
|
|
3267
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
3268
|
+
expected: "a string with at most 128 code points",
|
|
3269
|
+
}),
|
|
3270
|
+
)
|
|
3271
|
+
.check(
|
|
3272
|
+
Schema.isPattern(new globalThis.RegExp("^[^\\s]+$", "u")).annotate({
|
|
3273
|
+
expected: "a string matching the RegExp ^[^\\s]+$",
|
|
3274
|
+
}),
|
|
3275
|
+
),
|
|
3276
|
+
),
|
|
3277
|
+
Description: optionalRestJsonMember(
|
|
3278
|
+
Schema.String.check(
|
|
3279
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3280
|
+
expected: "a string with at least 0 code points",
|
|
3281
|
+
}),
|
|
3282
|
+
).check(
|
|
3283
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
3284
|
+
expected: "a string with at most 256 code points",
|
|
3285
|
+
}),
|
|
3286
|
+
),
|
|
3287
|
+
),
|
|
3288
|
+
Timeout: optionalRestJsonMember(
|
|
3289
|
+
Schema.Finite.check(
|
|
3290
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
3291
|
+
expected: "a value greater than or equal to 1",
|
|
3292
|
+
}),
|
|
3293
|
+
).check(
|
|
3294
|
+
Schema.isLessThanOrEqualTo(5400).annotate({
|
|
3295
|
+
expected: "a value less than or equal to 5400",
|
|
3296
|
+
}),
|
|
3297
|
+
),
|
|
3298
|
+
),
|
|
3299
|
+
MemorySize: optionalRestJsonMember(
|
|
3300
|
+
Schema.Finite.check(
|
|
3301
|
+
Schema.isGreaterThanOrEqualTo(128).annotate({
|
|
3302
|
+
expected: "a value greater than or equal to 128",
|
|
3303
|
+
}),
|
|
3304
|
+
).check(
|
|
3305
|
+
Schema.isLessThanOrEqualTo(32768).annotate({
|
|
3306
|
+
expected: "a value less than or equal to 32768",
|
|
3307
|
+
}),
|
|
3308
|
+
),
|
|
3309
|
+
),
|
|
3310
|
+
VpcConfig: optionalRestJsonMember(VpcConfig),
|
|
3311
|
+
Environment: optionalRestJsonMember(Environment),
|
|
3312
|
+
Runtime: optionalRestJsonMember(Runtime),
|
|
3313
|
+
DeadLetterConfig: optionalRestJsonMember(DeadLetterConfig),
|
|
3314
|
+
KMSKeyArn: optionalRestJsonMember(
|
|
3315
|
+
Schema.String.check(
|
|
3316
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3317
|
+
expected: "a string with at least 0 code points",
|
|
3318
|
+
}),
|
|
3319
|
+
)
|
|
3320
|
+
.check(
|
|
3321
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3322
|
+
expected: "a string with at most 10000 code points",
|
|
3323
|
+
}),
|
|
3324
|
+
)
|
|
3325
|
+
.check(
|
|
3326
|
+
Schema.isPattern(
|
|
3327
|
+
new globalThis.RegExp(
|
|
3328
|
+
"^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
3329
|
+
"u",
|
|
3330
|
+
),
|
|
3331
|
+
).annotate({
|
|
3332
|
+
expected:
|
|
3333
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
3334
|
+
}),
|
|
3335
|
+
),
|
|
3336
|
+
),
|
|
3337
|
+
TracingConfig: optionalRestJsonMember(TracingConfig),
|
|
3338
|
+
RevisionId: optionalRestJsonMember(Schema.String),
|
|
3339
|
+
Layers: optionalRestJsonMember(
|
|
3340
|
+
Schema.Array(
|
|
3341
|
+
Schema.String.check(
|
|
3342
|
+
Schema.isMinLength(1).annotate({
|
|
3343
|
+
expected: "a value with a length of at least 1",
|
|
3344
|
+
}),
|
|
3345
|
+
)
|
|
3346
|
+
.check(
|
|
3347
|
+
Schema.isMaxCodePoints(2048).annotate({
|
|
3348
|
+
expected: "a string with at most 2048 code points",
|
|
3349
|
+
}),
|
|
3350
|
+
)
|
|
3351
|
+
.check(
|
|
3352
|
+
Schema.isPattern(
|
|
3353
|
+
new globalThis.RegExp(
|
|
3354
|
+
"^((arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+)|(arn:[a-zA-Z0-9-]+:lambda:::awslayer:[a-zA-Z0-9-_]+))$",
|
|
3355
|
+
"u",
|
|
3356
|
+
),
|
|
3357
|
+
).annotate({
|
|
3358
|
+
expected:
|
|
3359
|
+
"a string matching the RegExp ^((arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+)|(arn:[a-zA-Z0-9-]+:lambda:::awslayer:[a-zA-Z0-9-_]+))$",
|
|
3360
|
+
}),
|
|
3361
|
+
),
|
|
3362
|
+
),
|
|
3363
|
+
),
|
|
3364
|
+
FileSystemConfigs: optionalRestJsonMember(
|
|
3365
|
+
Schema.Array(FileSystemConfig)
|
|
3366
|
+
.check(
|
|
3367
|
+
Schema.isMinLength(0).annotate({
|
|
3368
|
+
expected: "a value with a length of at least 0",
|
|
3369
|
+
}),
|
|
3370
|
+
)
|
|
3371
|
+
.check(
|
|
3372
|
+
Schema.isMaxLength(1).annotate({
|
|
3373
|
+
expected: "a value with a length of at most 1",
|
|
3374
|
+
}),
|
|
3375
|
+
),
|
|
3376
|
+
),
|
|
3377
|
+
ImageConfig: optionalRestJsonMember(ImageConfig),
|
|
3378
|
+
EphemeralStorage: optionalRestJsonMember(EphemeralStorage),
|
|
3379
|
+
SnapStart: optionalRestJsonMember(SnapStart),
|
|
3380
|
+
LoggingConfig: optionalRestJsonMember(LoggingConfig),
|
|
3381
|
+
CapacityProviderConfig: optionalRestJsonMember(CapacityProviderConfig),
|
|
3382
|
+
DurableConfig: optionalRestJsonMember(DurableConfig),
|
|
3383
|
+
}),
|
|
3384
|
+
[
|
|
3385
|
+
Schema.Record(
|
|
3386
|
+
Schema.String,
|
|
3387
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3388
|
+
),
|
|
3389
|
+
],
|
|
3390
|
+
);
|
|
3391
|
+
|
|
3392
|
+
export type UpdateFunctionConfigurationRequest =
|
|
3393
|
+
typeof UpdateFunctionConfigurationRequest.Type;
|
|
3394
|
+
|
|
3395
|
+
export const UpdateFunctionConfigurationResponseContent = Schema.StructWithRest(
|
|
3396
|
+
Schema.Struct({
|
|
3397
|
+
FunctionName: optionalRestJsonMember(
|
|
3398
|
+
Schema.String.check(
|
|
3399
|
+
Schema.isMinLength(1).annotate({
|
|
3400
|
+
expected: "a value with a length of at least 1",
|
|
3401
|
+
}),
|
|
3402
|
+
)
|
|
3403
|
+
.check(
|
|
3404
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
3405
|
+
expected: "a string with at most 256 code points",
|
|
3406
|
+
}),
|
|
3407
|
+
)
|
|
3408
|
+
.check(
|
|
3409
|
+
Schema.isPattern(
|
|
3410
|
+
new globalThis.RegExp(
|
|
3411
|
+
"^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
3412
|
+
"u",
|
|
3413
|
+
),
|
|
3414
|
+
).annotate({
|
|
3415
|
+
expected:
|
|
3416
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
3417
|
+
}),
|
|
3418
|
+
),
|
|
3419
|
+
),
|
|
3420
|
+
FunctionArn: optionalRestJsonMember(
|
|
3421
|
+
Schema.String.check(
|
|
3422
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3423
|
+
expected: "a string with at least 0 code points",
|
|
3424
|
+
}),
|
|
3425
|
+
)
|
|
3426
|
+
.check(
|
|
3427
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3428
|
+
expected: "a string with at most 10000 code points",
|
|
3429
|
+
}),
|
|
3430
|
+
)
|
|
3431
|
+
.check(
|
|
3432
|
+
Schema.isPattern(
|
|
3433
|
+
new globalThis.RegExp(
|
|
3434
|
+
"^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
3435
|
+
"u",
|
|
3436
|
+
),
|
|
3437
|
+
).annotate({
|
|
3438
|
+
expected:
|
|
3439
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST(\\.PUBLISHED)?|[a-zA-Z0-9-_]+))?$",
|
|
3440
|
+
}),
|
|
3441
|
+
),
|
|
3442
|
+
),
|
|
3443
|
+
Runtime: optionalRestJsonMember(Runtime),
|
|
3444
|
+
Role: optionalRestJsonMember(
|
|
3445
|
+
Schema.String.check(
|
|
3446
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3447
|
+
expected: "a string with at least 0 code points",
|
|
3448
|
+
}),
|
|
3449
|
+
)
|
|
3450
|
+
.check(
|
|
3451
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3452
|
+
expected: "a string with at most 10000 code points",
|
|
3453
|
+
}),
|
|
3454
|
+
)
|
|
3455
|
+
.check(
|
|
3456
|
+
Schema.isPattern(
|
|
3457
|
+
new globalThis.RegExp(
|
|
3458
|
+
"^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
3459
|
+
"u",
|
|
3460
|
+
),
|
|
3461
|
+
).annotate({
|
|
3462
|
+
expected:
|
|
3463
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role\\/?[a-zA-Z_0-9+=,.@\\-_/]+$",
|
|
3464
|
+
}),
|
|
3465
|
+
),
|
|
3466
|
+
),
|
|
3467
|
+
Handler: optionalRestJsonMember(
|
|
3468
|
+
Schema.String.check(
|
|
3469
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3470
|
+
expected: "a string with at least 0 code points",
|
|
3471
|
+
}),
|
|
3472
|
+
)
|
|
3473
|
+
.check(
|
|
3474
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
3475
|
+
expected: "a string with at most 128 code points",
|
|
3476
|
+
}),
|
|
3477
|
+
)
|
|
3478
|
+
.check(
|
|
3479
|
+
Schema.isPattern(new globalThis.RegExp("^[^\\s]+$", "u")).annotate({
|
|
3480
|
+
expected: "a string matching the RegExp ^[^\\s]+$",
|
|
3481
|
+
}),
|
|
3482
|
+
),
|
|
3483
|
+
),
|
|
3484
|
+
CodeSize: optionalRestJsonMember(
|
|
3485
|
+
Schema.Number.annotate({ default: 0 }).check(
|
|
3486
|
+
Schema.isFinite().annotate({ expected: "a finite number" }),
|
|
3487
|
+
),
|
|
3488
|
+
),
|
|
3489
|
+
Description: optionalRestJsonMember(
|
|
3490
|
+
Schema.String.check(
|
|
3491
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3492
|
+
expected: "a string with at least 0 code points",
|
|
3493
|
+
}),
|
|
3494
|
+
).check(
|
|
3495
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
3496
|
+
expected: "a string with at most 256 code points",
|
|
3497
|
+
}),
|
|
3498
|
+
),
|
|
3499
|
+
),
|
|
3500
|
+
Timeout: optionalRestJsonMember(
|
|
3501
|
+
Schema.Finite.check(
|
|
3502
|
+
Schema.isGreaterThanOrEqualTo(1).annotate({
|
|
3503
|
+
expected: "a value greater than or equal to 1",
|
|
3504
|
+
}),
|
|
3505
|
+
).check(
|
|
3506
|
+
Schema.isLessThanOrEqualTo(5400).annotate({
|
|
3507
|
+
expected: "a value less than or equal to 5400",
|
|
3508
|
+
}),
|
|
3509
|
+
),
|
|
3510
|
+
),
|
|
3511
|
+
MemorySize: optionalRestJsonMember(
|
|
3512
|
+
Schema.Finite.check(
|
|
3513
|
+
Schema.isGreaterThanOrEqualTo(128).annotate({
|
|
3514
|
+
expected: "a value greater than or equal to 128",
|
|
3515
|
+
}),
|
|
3516
|
+
).check(
|
|
3517
|
+
Schema.isLessThanOrEqualTo(32768).annotate({
|
|
3518
|
+
expected: "a value less than or equal to 32768",
|
|
3519
|
+
}),
|
|
3520
|
+
),
|
|
3521
|
+
),
|
|
3522
|
+
LastModified: optionalRestJsonMember(
|
|
3523
|
+
Schema.String.check(
|
|
3524
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3525
|
+
expected: "a string with at least 0 code points",
|
|
3526
|
+
}),
|
|
3527
|
+
)
|
|
3528
|
+
.check(
|
|
3529
|
+
Schema.isMaxCodePoints(100).annotate({
|
|
3530
|
+
expected: "a string with at most 100 code points",
|
|
3531
|
+
}),
|
|
3532
|
+
)
|
|
3533
|
+
.check(
|
|
3534
|
+
Schema.isPattern(new globalThis.RegExp("^.*$", "u")).annotate({
|
|
3535
|
+
expected: "a string matching the RegExp ^.*$",
|
|
3536
|
+
}),
|
|
3537
|
+
),
|
|
3538
|
+
),
|
|
3539
|
+
CodeSha256: optionalRestJsonMember(Schema.String),
|
|
3540
|
+
Version: optionalRestJsonMember(
|
|
3541
|
+
Schema.String.check(
|
|
3542
|
+
Schema.isMinLength(1).annotate({
|
|
3543
|
+
expected: "a value with a length of at least 1",
|
|
3544
|
+
}),
|
|
3545
|
+
)
|
|
3546
|
+
.check(
|
|
3547
|
+
Schema.isMaxCodePoints(1024).annotate({
|
|
3548
|
+
expected: "a string with at most 1024 code points",
|
|
3549
|
+
}),
|
|
3550
|
+
)
|
|
3551
|
+
.check(
|
|
3552
|
+
Schema.isPattern(
|
|
3553
|
+
new globalThis.RegExp("^(\\$LATEST|[0-9]+)$", "u"),
|
|
3554
|
+
).annotate({
|
|
3555
|
+
expected: "a string matching the RegExp ^(\\$LATEST|[0-9]+)$",
|
|
3556
|
+
}),
|
|
3557
|
+
),
|
|
3558
|
+
),
|
|
3559
|
+
VpcConfig: optionalRestJsonMember(VpcConfigResponse),
|
|
3560
|
+
DeadLetterConfig: optionalRestJsonMember(DeadLetterConfig),
|
|
3561
|
+
Environment: optionalRestJsonMember(EnvironmentResponse),
|
|
3562
|
+
KMSKeyArn: optionalRestJsonMember(
|
|
3563
|
+
Schema.String.check(
|
|
3564
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3565
|
+
expected: "a string with at least 0 code points",
|
|
3566
|
+
}),
|
|
3567
|
+
)
|
|
3568
|
+
.check(
|
|
3569
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3570
|
+
expected: "a string with at most 10000 code points",
|
|
3571
|
+
}),
|
|
3572
|
+
)
|
|
3573
|
+
.check(
|
|
3574
|
+
Schema.isPattern(
|
|
3575
|
+
new globalThis.RegExp(
|
|
3576
|
+
"^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
3577
|
+
"u",
|
|
3578
|
+
),
|
|
3579
|
+
).annotate({
|
|
3580
|
+
expected:
|
|
3581
|
+
"a string matching the RegExp ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$",
|
|
3582
|
+
}),
|
|
3583
|
+
),
|
|
3584
|
+
),
|
|
3585
|
+
TracingConfig: optionalRestJsonMember(TracingConfigResponse),
|
|
3586
|
+
MasterArn: optionalRestJsonMember(
|
|
3587
|
+
Schema.String.check(
|
|
3588
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3589
|
+
expected: "a string with at least 0 code points",
|
|
3590
|
+
}),
|
|
3591
|
+
)
|
|
3592
|
+
.check(
|
|
3593
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3594
|
+
expected: "a string with at most 10000 code points",
|
|
3595
|
+
}),
|
|
3596
|
+
)
|
|
3597
|
+
.check(
|
|
3598
|
+
Schema.isPattern(
|
|
3599
|
+
new globalThis.RegExp(
|
|
3600
|
+
"^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
3601
|
+
"u",
|
|
3602
|
+
),
|
|
3603
|
+
).annotate({
|
|
3604
|
+
expected:
|
|
3605
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
|
|
3606
|
+
}),
|
|
3607
|
+
),
|
|
3608
|
+
),
|
|
3609
|
+
RevisionId: optionalRestJsonMember(Schema.String),
|
|
3610
|
+
Layers: optionalRestJsonMember(Schema.Array(Layer)),
|
|
3611
|
+
State: optionalRestJsonMember(State),
|
|
3612
|
+
StateReason: optionalRestJsonMember(Schema.String),
|
|
3613
|
+
StateReasonCode: optionalRestJsonMember(StateReasonCode),
|
|
3614
|
+
LastUpdateStatus: optionalRestJsonMember(LastUpdateStatus),
|
|
3615
|
+
LastUpdateStatusReason: optionalRestJsonMember(Schema.String),
|
|
3616
|
+
LastUpdateStatusReasonCode: optionalRestJsonMember(
|
|
3617
|
+
LastUpdateStatusReasonCode,
|
|
3618
|
+
),
|
|
3619
|
+
FileSystemConfigs: optionalRestJsonMember(
|
|
3620
|
+
Schema.Array(FileSystemConfig)
|
|
3621
|
+
.check(
|
|
3622
|
+
Schema.isMinLength(0).annotate({
|
|
3623
|
+
expected: "a value with a length of at least 0",
|
|
3624
|
+
}),
|
|
3625
|
+
)
|
|
3626
|
+
.check(
|
|
3627
|
+
Schema.isMaxLength(1).annotate({
|
|
3628
|
+
expected: "a value with a length of at most 1",
|
|
3629
|
+
}),
|
|
3630
|
+
),
|
|
3631
|
+
),
|
|
3632
|
+
SigningProfileVersionArn: optionalRestJsonMember(
|
|
3633
|
+
Schema.String.check(
|
|
3634
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3635
|
+
expected: "a string with at least 0 code points",
|
|
3636
|
+
}),
|
|
3637
|
+
)
|
|
3638
|
+
.check(
|
|
3639
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3640
|
+
expected: "a string with at most 10000 code points",
|
|
3641
|
+
}),
|
|
3642
|
+
)
|
|
3643
|
+
.check(
|
|
3644
|
+
Schema.isPattern(
|
|
3645
|
+
new globalThis.RegExp(
|
|
3646
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
3647
|
+
"u",
|
|
3648
|
+
),
|
|
3649
|
+
).annotate({
|
|
3650
|
+
expected:
|
|
3651
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
3652
|
+
}),
|
|
3653
|
+
),
|
|
3654
|
+
),
|
|
3655
|
+
SigningJobArn: optionalRestJsonMember(
|
|
3656
|
+
Schema.String.check(
|
|
3657
|
+
Schema.isMinCodePoints(0).annotate({
|
|
3658
|
+
expected: "a string with at least 0 code points",
|
|
3659
|
+
}),
|
|
3660
|
+
)
|
|
3661
|
+
.check(
|
|
3662
|
+
Schema.isMaxCodePoints(10000).annotate({
|
|
3663
|
+
expected: "a string with at most 10000 code points",
|
|
3664
|
+
}),
|
|
3665
|
+
)
|
|
3666
|
+
.check(
|
|
3667
|
+
Schema.isPattern(
|
|
3668
|
+
new globalThis.RegExp(
|
|
3669
|
+
"^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
3670
|
+
"u",
|
|
3671
|
+
),
|
|
3672
|
+
).annotate({
|
|
3673
|
+
expected:
|
|
3674
|
+
"a string matching the RegExp ^arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)$",
|
|
3675
|
+
}),
|
|
3676
|
+
),
|
|
3677
|
+
),
|
|
3678
|
+
PackageType: optionalRestJsonMember(PackageType),
|
|
3679
|
+
ImageConfigResponse: optionalRestJsonMember(ImageConfigResponse),
|
|
3680
|
+
Architectures: optionalRestJsonMember(
|
|
3681
|
+
Schema.Array(Architecture)
|
|
3682
|
+
.check(
|
|
3683
|
+
Schema.isMinLength(1).annotate({
|
|
3684
|
+
expected: "a value with a length of at least 1",
|
|
3685
|
+
}),
|
|
3686
|
+
)
|
|
3687
|
+
.check(
|
|
3688
|
+
Schema.isMaxLength(1).annotate({
|
|
3689
|
+
expected: "a value with a length of at most 1",
|
|
3690
|
+
}),
|
|
3691
|
+
),
|
|
3692
|
+
),
|
|
3693
|
+
EphemeralStorage: optionalRestJsonMember(EphemeralStorage),
|
|
3694
|
+
SnapStart: optionalRestJsonMember(SnapStartResponse),
|
|
3695
|
+
RuntimeVersionConfig: optionalRestJsonMember(RuntimeVersionConfig),
|
|
3696
|
+
LoggingConfig: optionalRestJsonMember(LoggingConfig),
|
|
3697
|
+
TenancyConfig: optionalRestJsonMember(TenancyConfig),
|
|
3698
|
+
CapacityProviderConfig: optionalRestJsonMember(CapacityProviderConfig),
|
|
3699
|
+
ConfigSha256: optionalRestJsonMember(Schema.String),
|
|
3700
|
+
DurableConfig: optionalRestJsonMember(DurableConfig),
|
|
3701
|
+
}),
|
|
3702
|
+
[
|
|
3703
|
+
Schema.Record(
|
|
3704
|
+
Schema.String,
|
|
3705
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
3706
|
+
),
|
|
3707
|
+
],
|
|
3708
|
+
);
|
|
3709
|
+
|
|
3710
|
+
export type UpdateFunctionConfigurationResponseContent =
|
|
3711
|
+
typeof UpdateFunctionConfigurationResponseContent.Type;
|
|
3712
|
+
|
|
3713
|
+
export const lambdaErrors = {
|
|
3714
|
+
InvalidParameterValueException: {
|
|
3715
|
+
name: "InvalidParameterValueException",
|
|
3716
|
+
fault: "client",
|
|
3717
|
+
httpStatus: 400,
|
|
3718
|
+
retryable: null,
|
|
3719
|
+
schema: InvalidParameterValueException,
|
|
3720
|
+
},
|
|
3721
|
+
PolicyLengthExceededException: {
|
|
3722
|
+
name: "PolicyLengthExceededException",
|
|
3723
|
+
fault: "client",
|
|
3724
|
+
httpStatus: 400,
|
|
3725
|
+
retryable: null,
|
|
3726
|
+
schema: PolicyLengthExceededException,
|
|
3727
|
+
},
|
|
3728
|
+
PreconditionFailedException: {
|
|
3729
|
+
name: "PreconditionFailedException",
|
|
3730
|
+
fault: "client",
|
|
3731
|
+
httpStatus: 412,
|
|
3732
|
+
retryable: null,
|
|
3733
|
+
schema: PreconditionFailedException,
|
|
3734
|
+
},
|
|
3735
|
+
PublicPolicyException: {
|
|
3736
|
+
name: "PublicPolicyException",
|
|
3737
|
+
fault: "client",
|
|
3738
|
+
httpStatus: 400,
|
|
3739
|
+
retryable: null,
|
|
3740
|
+
schema: PublicPolicyException,
|
|
3741
|
+
},
|
|
3742
|
+
ResourceConflictException: {
|
|
3743
|
+
name: "ResourceConflictException",
|
|
3744
|
+
fault: "client",
|
|
3745
|
+
httpStatus: 409,
|
|
3746
|
+
retryable: null,
|
|
3747
|
+
schema: ResourceConflictException,
|
|
3748
|
+
},
|
|
3749
|
+
ResourceNotFoundException: {
|
|
3750
|
+
name: "ResourceNotFoundException",
|
|
3751
|
+
fault: "client",
|
|
3752
|
+
httpStatus: 404,
|
|
3753
|
+
retryable: null,
|
|
3754
|
+
schema: ResourceNotFoundException,
|
|
3755
|
+
},
|
|
3756
|
+
ServiceException: {
|
|
3757
|
+
name: "ServiceException",
|
|
3758
|
+
fault: "server",
|
|
3759
|
+
httpStatus: 500,
|
|
3760
|
+
retryable: null,
|
|
3761
|
+
schema: ServiceException,
|
|
3762
|
+
},
|
|
3763
|
+
TooManyRequestsException: {
|
|
3764
|
+
name: "TooManyRequestsException",
|
|
3765
|
+
fault: "client",
|
|
3766
|
+
httpStatus: 429,
|
|
3767
|
+
retryable: null,
|
|
3768
|
+
schema: TooManyRequestsException,
|
|
3769
|
+
},
|
|
3770
|
+
CodeSigningConfigNotFoundException: {
|
|
3771
|
+
name: "CodeSigningConfigNotFoundException",
|
|
3772
|
+
fault: "client",
|
|
3773
|
+
httpStatus: 404,
|
|
3774
|
+
retryable: null,
|
|
3775
|
+
schema: CodeSigningConfigNotFoundException,
|
|
3776
|
+
},
|
|
3777
|
+
CodeStorageExceededException: {
|
|
3778
|
+
name: "CodeStorageExceededException",
|
|
3779
|
+
fault: "client",
|
|
3780
|
+
httpStatus: 400,
|
|
3781
|
+
retryable: null,
|
|
3782
|
+
schema: CodeStorageExceededException,
|
|
3783
|
+
},
|
|
3784
|
+
CodeVerificationFailedException: {
|
|
3785
|
+
name: "CodeVerificationFailedException",
|
|
3786
|
+
fault: "client",
|
|
3787
|
+
httpStatus: 400,
|
|
3788
|
+
retryable: null,
|
|
3789
|
+
schema: CodeVerificationFailedException,
|
|
3790
|
+
},
|
|
3791
|
+
FunctionVersionsPerCapacityProviderLimitExceededException: {
|
|
3792
|
+
name: "FunctionVersionsPerCapacityProviderLimitExceededException",
|
|
3793
|
+
fault: "client",
|
|
3794
|
+
httpStatus: 400,
|
|
3795
|
+
retryable: null,
|
|
3796
|
+
schema: FunctionVersionsPerCapacityProviderLimitExceededException,
|
|
3797
|
+
},
|
|
3798
|
+
InvalidCodeSignatureException: {
|
|
3799
|
+
name: "InvalidCodeSignatureException",
|
|
3800
|
+
fault: "client",
|
|
3801
|
+
httpStatus: 400,
|
|
3802
|
+
retryable: null,
|
|
3803
|
+
schema: InvalidCodeSignatureException,
|
|
3804
|
+
},
|
|
3805
|
+
};
|
|
3806
|
+
|
|
3807
|
+
export const addPermissionErrors = [
|
|
3808
|
+
lambdaErrors.InvalidParameterValueException,
|
|
3809
|
+
lambdaErrors.PolicyLengthExceededException,
|
|
3810
|
+
lambdaErrors.PreconditionFailedException,
|
|
3811
|
+
lambdaErrors.PublicPolicyException,
|
|
3812
|
+
lambdaErrors.ResourceConflictException,
|
|
3813
|
+
lambdaErrors.ResourceNotFoundException,
|
|
3814
|
+
lambdaErrors.ServiceException,
|
|
3815
|
+
lambdaErrors.TooManyRequestsException,
|
|
3816
|
+
];
|
|
3817
|
+
|
|
3818
|
+
export const createFunctionErrors = [
|
|
3819
|
+
lambdaErrors.CodeSigningConfigNotFoundException,
|
|
3820
|
+
lambdaErrors.CodeStorageExceededException,
|
|
3821
|
+
lambdaErrors.CodeVerificationFailedException,
|
|
3822
|
+
lambdaErrors.FunctionVersionsPerCapacityProviderLimitExceededException,
|
|
3823
|
+
lambdaErrors.InvalidCodeSignatureException,
|
|
3824
|
+
lambdaErrors.InvalidParameterValueException,
|
|
3825
|
+
lambdaErrors.ResourceConflictException,
|
|
3826
|
+
lambdaErrors.ResourceNotFoundException,
|
|
3827
|
+
lambdaErrors.ServiceException,
|
|
3828
|
+
lambdaErrors.TooManyRequestsException,
|
|
3829
|
+
];
|
|
3830
|
+
|
|
3831
|
+
export const deleteFunctionErrors = [
|
|
3832
|
+
lambdaErrors.InvalidParameterValueException,
|
|
3833
|
+
lambdaErrors.ResourceConflictException,
|
|
3834
|
+
lambdaErrors.ResourceNotFoundException,
|
|
3835
|
+
lambdaErrors.ServiceException,
|
|
3836
|
+
lambdaErrors.TooManyRequestsException,
|
|
3837
|
+
];
|
|
3838
|
+
|
|
3839
|
+
export const getFunctionConfigurationErrors = [
|
|
3840
|
+
lambdaErrors.InvalidParameterValueException,
|
|
3841
|
+
lambdaErrors.ResourceNotFoundException,
|
|
3842
|
+
lambdaErrors.ServiceException,
|
|
3843
|
+
lambdaErrors.TooManyRequestsException,
|
|
3844
|
+
];
|
|
3845
|
+
|
|
3846
|
+
export const removePermissionErrors = [
|
|
3847
|
+
lambdaErrors.InvalidParameterValueException,
|
|
3848
|
+
lambdaErrors.PreconditionFailedException,
|
|
3849
|
+
lambdaErrors.PublicPolicyException,
|
|
3850
|
+
lambdaErrors.ResourceNotFoundException,
|
|
3851
|
+
lambdaErrors.ServiceException,
|
|
3852
|
+
lambdaErrors.TooManyRequestsException,
|
|
3853
|
+
];
|
|
3854
|
+
|
|
3855
|
+
export const updateFunctionCodeErrors = [
|
|
3856
|
+
lambdaErrors.CodeSigningConfigNotFoundException,
|
|
3857
|
+
lambdaErrors.CodeStorageExceededException,
|
|
3858
|
+
lambdaErrors.CodeVerificationFailedException,
|
|
3859
|
+
lambdaErrors.InvalidCodeSignatureException,
|
|
3860
|
+
lambdaErrors.InvalidParameterValueException,
|
|
3861
|
+
lambdaErrors.PreconditionFailedException,
|
|
3862
|
+
lambdaErrors.ResourceConflictException,
|
|
3863
|
+
lambdaErrors.ResourceNotFoundException,
|
|
3864
|
+
lambdaErrors.ServiceException,
|
|
3865
|
+
lambdaErrors.TooManyRequestsException,
|
|
3866
|
+
];
|
|
3867
|
+
|
|
3868
|
+
export const updateFunctionConfigurationErrors = [
|
|
3869
|
+
lambdaErrors.CodeSigningConfigNotFoundException,
|
|
3870
|
+
lambdaErrors.CodeVerificationFailedException,
|
|
3871
|
+
lambdaErrors.InvalidCodeSignatureException,
|
|
3872
|
+
lambdaErrors.InvalidParameterValueException,
|
|
3873
|
+
lambdaErrors.PreconditionFailedException,
|
|
3874
|
+
lambdaErrors.ResourceConflictException,
|
|
3875
|
+
lambdaErrors.ResourceNotFoundException,
|
|
3876
|
+
lambdaErrors.ServiceException,
|
|
3877
|
+
lambdaErrors.TooManyRequestsException,
|
|
3878
|
+
];
|
|
3879
|
+
|
|
3880
|
+
export const addPermissionOperation: AwsRestJsonOperation & {
|
|
3881
|
+
readonly input: typeof AddPermissionRequest;
|
|
3882
|
+
readonly output: typeof AddPermissionResponseContent;
|
|
3883
|
+
} = {
|
|
3884
|
+
name: "AddPermission",
|
|
3885
|
+
method: "POST",
|
|
3886
|
+
path: "/2015-03-31/functions/{FunctionName}/policy",
|
|
3887
|
+
headers: {},
|
|
3888
|
+
rest: {
|
|
3889
|
+
bindings: {
|
|
3890
|
+
FunctionName: {
|
|
3891
|
+
location: "LABEL",
|
|
3892
|
+
name: "FunctionName",
|
|
3893
|
+
},
|
|
3894
|
+
Qualifier: {
|
|
3895
|
+
location: "QUERY",
|
|
3896
|
+
name: "Qualifier",
|
|
3897
|
+
},
|
|
3898
|
+
},
|
|
3899
|
+
status: 201,
|
|
3900
|
+
body: true,
|
|
3901
|
+
},
|
|
3902
|
+
idempotencyTokens: [],
|
|
3903
|
+
pagination: {},
|
|
3904
|
+
input: AddPermissionRequest,
|
|
3905
|
+
output: AddPermissionResponseContent,
|
|
3906
|
+
errors: addPermissionErrors,
|
|
3907
|
+
};
|
|
3908
|
+
|
|
3909
|
+
export const addPermissionEndpoint = awsHttpEndpoint(
|
|
3910
|
+
"AddPermission",
|
|
3911
|
+
addPermissionOperation,
|
|
3912
|
+
);
|
|
3913
|
+
|
|
3914
|
+
export const createFunctionOperation: AwsRestJsonOperation & {
|
|
3915
|
+
readonly input: typeof CreateFunctionRequest;
|
|
3916
|
+
readonly output: typeof CreateFunctionResponseContent;
|
|
3917
|
+
} = {
|
|
3918
|
+
name: "CreateFunction",
|
|
3919
|
+
method: "POST",
|
|
3920
|
+
path: "/2015-03-31/functions",
|
|
3921
|
+
headers: {},
|
|
3922
|
+
rest: {
|
|
3923
|
+
bindings: {},
|
|
3924
|
+
status: 201,
|
|
3925
|
+
body: true,
|
|
3926
|
+
},
|
|
3927
|
+
idempotencyTokens: [],
|
|
3928
|
+
pagination: {},
|
|
3929
|
+
input: CreateFunctionRequest,
|
|
3930
|
+
output: CreateFunctionResponseContent,
|
|
3931
|
+
errors: createFunctionErrors,
|
|
3932
|
+
};
|
|
3933
|
+
|
|
3934
|
+
export const createFunctionEndpoint = awsHttpEndpoint(
|
|
3935
|
+
"CreateFunction",
|
|
3936
|
+
createFunctionOperation,
|
|
3937
|
+
);
|
|
3938
|
+
|
|
3939
|
+
export const DeleteFunctionOutput = HttpApiSchema.Empty(204);
|
|
3940
|
+
|
|
3941
|
+
export const deleteFunctionOperation: AwsRestJsonOperation & {
|
|
3942
|
+
readonly input: typeof DeleteFunctionRequest;
|
|
3943
|
+
readonly output: typeof DeleteFunctionOutput;
|
|
3944
|
+
} = {
|
|
3945
|
+
name: "DeleteFunction",
|
|
3946
|
+
method: "DELETE",
|
|
3947
|
+
path: "/2015-03-31/functions/{FunctionName}",
|
|
3948
|
+
headers: {},
|
|
3949
|
+
rest: {
|
|
3950
|
+
bindings: {
|
|
3951
|
+
FunctionName: {
|
|
3952
|
+
location: "LABEL",
|
|
3953
|
+
name: "FunctionName",
|
|
3954
|
+
},
|
|
3955
|
+
Qualifier: {
|
|
3956
|
+
location: "QUERY",
|
|
3957
|
+
name: "Qualifier",
|
|
3958
|
+
},
|
|
3959
|
+
},
|
|
3960
|
+
status: 204,
|
|
3961
|
+
body: false,
|
|
3962
|
+
},
|
|
3963
|
+
idempotencyTokens: [],
|
|
3964
|
+
pagination: {},
|
|
3965
|
+
input: DeleteFunctionRequest,
|
|
3966
|
+
output: DeleteFunctionOutput,
|
|
3967
|
+
errors: deleteFunctionErrors,
|
|
3968
|
+
};
|
|
3969
|
+
|
|
3970
|
+
export const deleteFunctionEndpoint = awsHttpEndpoint(
|
|
3971
|
+
"DeleteFunction",
|
|
3972
|
+
deleteFunctionOperation,
|
|
3973
|
+
);
|
|
3974
|
+
|
|
3975
|
+
export const getFunctionConfigurationOperation: AwsRestJsonOperation & {
|
|
3976
|
+
readonly input: typeof GetFunctionConfigurationRequest;
|
|
3977
|
+
readonly output: typeof GetFunctionConfigurationResponseContent;
|
|
3978
|
+
} = {
|
|
3979
|
+
name: "GetFunctionConfiguration",
|
|
3980
|
+
method: "GET",
|
|
3981
|
+
path: "/2015-03-31/functions/{FunctionName}/configuration",
|
|
3982
|
+
headers: {},
|
|
3983
|
+
rest: {
|
|
3984
|
+
bindings: {
|
|
3985
|
+
FunctionName: {
|
|
3986
|
+
location: "LABEL",
|
|
3987
|
+
name: "FunctionName",
|
|
3988
|
+
},
|
|
3989
|
+
Qualifier: {
|
|
3990
|
+
location: "QUERY",
|
|
3991
|
+
name: "Qualifier",
|
|
3992
|
+
},
|
|
3993
|
+
},
|
|
3994
|
+
status: 200,
|
|
3995
|
+
body: false,
|
|
3996
|
+
},
|
|
3997
|
+
idempotencyTokens: [],
|
|
3998
|
+
pagination: {},
|
|
3999
|
+
input: GetFunctionConfigurationRequest,
|
|
4000
|
+
output: GetFunctionConfigurationResponseContent,
|
|
4001
|
+
errors: getFunctionConfigurationErrors,
|
|
4002
|
+
};
|
|
4003
|
+
|
|
4004
|
+
export const getFunctionConfigurationEndpoint = awsHttpEndpoint(
|
|
4005
|
+
"GetFunctionConfiguration",
|
|
4006
|
+
getFunctionConfigurationOperation,
|
|
4007
|
+
);
|
|
4008
|
+
|
|
4009
|
+
export const getPolicyOperation: AwsRestJsonOperation & {
|
|
4010
|
+
readonly input: typeof GetPolicyRequest;
|
|
4011
|
+
readonly output: typeof GetPolicyResponseContent;
|
|
4012
|
+
} = {
|
|
4013
|
+
name: "GetPolicy",
|
|
4014
|
+
method: "GET",
|
|
4015
|
+
path: "/2015-03-31/functions/{FunctionName}/policy",
|
|
4016
|
+
headers: {},
|
|
4017
|
+
rest: {
|
|
4018
|
+
bindings: {
|
|
4019
|
+
FunctionName: {
|
|
4020
|
+
location: "LABEL",
|
|
4021
|
+
name: "FunctionName",
|
|
4022
|
+
},
|
|
4023
|
+
Qualifier: {
|
|
4024
|
+
location: "QUERY",
|
|
4025
|
+
name: "Qualifier",
|
|
4026
|
+
},
|
|
4027
|
+
},
|
|
4028
|
+
status: 200,
|
|
4029
|
+
body: false,
|
|
4030
|
+
},
|
|
4031
|
+
idempotencyTokens: [],
|
|
4032
|
+
pagination: {},
|
|
4033
|
+
input: GetPolicyRequest,
|
|
4034
|
+
output: GetPolicyResponseContent,
|
|
4035
|
+
errors: getFunctionConfigurationErrors,
|
|
4036
|
+
};
|
|
4037
|
+
|
|
4038
|
+
export const getPolicyEndpoint = awsHttpEndpoint(
|
|
4039
|
+
"GetPolicy",
|
|
4040
|
+
getPolicyOperation,
|
|
4041
|
+
);
|
|
4042
|
+
|
|
4043
|
+
export const RemovePermissionOutput = HttpApiSchema.Empty(204);
|
|
4044
|
+
|
|
4045
|
+
export const removePermissionOperation: AwsRestJsonOperation & {
|
|
4046
|
+
readonly input: typeof RemovePermissionRequest;
|
|
4047
|
+
readonly output: typeof RemovePermissionOutput;
|
|
4048
|
+
} = {
|
|
4049
|
+
name: "RemovePermission",
|
|
4050
|
+
method: "DELETE",
|
|
4051
|
+
path: "/2015-03-31/functions/{FunctionName}/policy/{StatementId}",
|
|
4052
|
+
headers: {},
|
|
4053
|
+
rest: {
|
|
4054
|
+
bindings: {
|
|
4055
|
+
FunctionName: {
|
|
4056
|
+
location: "LABEL",
|
|
4057
|
+
name: "FunctionName",
|
|
4058
|
+
},
|
|
4059
|
+
StatementId: {
|
|
4060
|
+
location: "LABEL",
|
|
4061
|
+
name: "StatementId",
|
|
4062
|
+
},
|
|
4063
|
+
Qualifier: {
|
|
4064
|
+
location: "QUERY",
|
|
4065
|
+
name: "Qualifier",
|
|
4066
|
+
},
|
|
4067
|
+
RevisionId: {
|
|
4068
|
+
location: "QUERY",
|
|
4069
|
+
name: "RevisionId",
|
|
4070
|
+
},
|
|
4071
|
+
},
|
|
4072
|
+
status: 204,
|
|
4073
|
+
body: false,
|
|
4074
|
+
},
|
|
4075
|
+
idempotencyTokens: [],
|
|
4076
|
+
pagination: {},
|
|
4077
|
+
input: RemovePermissionRequest,
|
|
4078
|
+
output: RemovePermissionOutput,
|
|
4079
|
+
errors: removePermissionErrors,
|
|
4080
|
+
};
|
|
4081
|
+
|
|
4082
|
+
export const removePermissionEndpoint = awsHttpEndpoint(
|
|
4083
|
+
"RemovePermission",
|
|
4084
|
+
removePermissionOperation,
|
|
4085
|
+
);
|
|
4086
|
+
|
|
4087
|
+
export const updateFunctionCodeOperation: AwsRestJsonOperation & {
|
|
4088
|
+
readonly input: typeof UpdateFunctionCodeRequest;
|
|
4089
|
+
readonly output: typeof UpdateFunctionCodeResponseContent;
|
|
4090
|
+
} = {
|
|
4091
|
+
name: "UpdateFunctionCode",
|
|
4092
|
+
method: "PUT",
|
|
4093
|
+
path: "/2015-03-31/functions/{FunctionName}/code",
|
|
4094
|
+
headers: {},
|
|
4095
|
+
rest: {
|
|
4096
|
+
bindings: {
|
|
4097
|
+
FunctionName: {
|
|
4098
|
+
location: "LABEL",
|
|
4099
|
+
name: "FunctionName",
|
|
4100
|
+
},
|
|
4101
|
+
},
|
|
4102
|
+
status: 200,
|
|
4103
|
+
body: true,
|
|
4104
|
+
},
|
|
4105
|
+
idempotencyTokens: [],
|
|
4106
|
+
pagination: {},
|
|
4107
|
+
input: UpdateFunctionCodeRequest,
|
|
4108
|
+
output: UpdateFunctionCodeResponseContent,
|
|
4109
|
+
errors: updateFunctionCodeErrors,
|
|
4110
|
+
};
|
|
4111
|
+
|
|
4112
|
+
export const updateFunctionCodeEndpoint = awsHttpEndpoint(
|
|
4113
|
+
"UpdateFunctionCode",
|
|
4114
|
+
updateFunctionCodeOperation,
|
|
4115
|
+
);
|
|
4116
|
+
|
|
4117
|
+
export const updateFunctionConfigurationOperation: AwsRestJsonOperation & {
|
|
4118
|
+
readonly input: typeof UpdateFunctionConfigurationRequest;
|
|
4119
|
+
readonly output: typeof UpdateFunctionConfigurationResponseContent;
|
|
4120
|
+
} = {
|
|
4121
|
+
name: "UpdateFunctionConfiguration",
|
|
4122
|
+
method: "PUT",
|
|
4123
|
+
path: "/2015-03-31/functions/{FunctionName}/configuration",
|
|
4124
|
+
headers: {},
|
|
4125
|
+
rest: {
|
|
4126
|
+
bindings: {
|
|
4127
|
+
FunctionName: {
|
|
4128
|
+
location: "LABEL",
|
|
4129
|
+
name: "FunctionName",
|
|
4130
|
+
},
|
|
4131
|
+
},
|
|
4132
|
+
status: 200,
|
|
4133
|
+
body: true,
|
|
4134
|
+
},
|
|
4135
|
+
idempotencyTokens: [],
|
|
4136
|
+
pagination: {},
|
|
4137
|
+
input: UpdateFunctionConfigurationRequest,
|
|
4138
|
+
output: UpdateFunctionConfigurationResponseContent,
|
|
4139
|
+
errors: updateFunctionConfigurationErrors,
|
|
4140
|
+
};
|
|
4141
|
+
|
|
4142
|
+
export const updateFunctionConfigurationEndpoint = awsHttpEndpoint(
|
|
4143
|
+
"UpdateFunctionConfiguration",
|
|
4144
|
+
updateFunctionConfigurationOperation,
|
|
4145
|
+
);
|
|
4146
|
+
|
|
4147
|
+
export const lambdaOperations = {
|
|
4148
|
+
AddPermission: addPermissionOperation,
|
|
4149
|
+
CreateFunction: createFunctionOperation,
|
|
4150
|
+
DeleteFunction: deleteFunctionOperation,
|
|
4151
|
+
GetFunctionConfiguration: getFunctionConfigurationOperation,
|
|
4152
|
+
GetPolicy: getPolicyOperation,
|
|
4153
|
+
RemovePermission: removePermissionOperation,
|
|
4154
|
+
UpdateFunctionCode: updateFunctionCodeOperation,
|
|
4155
|
+
UpdateFunctionConfiguration: updateFunctionConfigurationOperation,
|
|
4156
|
+
};
|
|
4157
|
+
|
|
4158
|
+
export const lambdaApi = HttpApi.make("Lambda").add(
|
|
4159
|
+
HttpApiGroup.make("lambda").add(
|
|
4160
|
+
addPermissionEndpoint,
|
|
4161
|
+
createFunctionEndpoint,
|
|
4162
|
+
deleteFunctionEndpoint,
|
|
4163
|
+
getFunctionConfigurationEndpoint,
|
|
4164
|
+
getPolicyEndpoint,
|
|
4165
|
+
removePermissionEndpoint,
|
|
4166
|
+
updateFunctionCodeEndpoint,
|
|
4167
|
+
updateFunctionConfigurationEndpoint,
|
|
4168
|
+
),
|
|
4169
|
+
);
|
|
4170
|
+
|
|
4171
|
+
export const lambdaService: AwsServiceDefinition = {
|
|
4172
|
+
service: "com.amazonaws.lambda#AWSGirApiService",
|
|
4173
|
+
version: "2015-03-31",
|
|
4174
|
+
protocol: "restJson1",
|
|
4175
|
+
signingName: "lambda",
|
|
4176
|
+
endpointRules: {
|
|
4177
|
+
version: "1.0",
|
|
4178
|
+
parameters: {
|
|
4179
|
+
Region: {
|
|
4180
|
+
type: "string",
|
|
4181
|
+
required: false,
|
|
4182
|
+
},
|
|
4183
|
+
UseDualStack: {
|
|
4184
|
+
type: "boolean",
|
|
4185
|
+
required: true,
|
|
4186
|
+
default: false,
|
|
4187
|
+
},
|
|
4188
|
+
UseFIPS: {
|
|
4189
|
+
type: "boolean",
|
|
4190
|
+
required: true,
|
|
4191
|
+
default: false,
|
|
4192
|
+
},
|
|
4193
|
+
Endpoint: {
|
|
4194
|
+
type: "string",
|
|
4195
|
+
required: false,
|
|
4196
|
+
},
|
|
4197
|
+
},
|
|
4198
|
+
rules: [
|
|
4199
|
+
{
|
|
4200
|
+
conditions: [
|
|
4201
|
+
{
|
|
4202
|
+
fn: "isSet",
|
|
4203
|
+
argv: [
|
|
4204
|
+
{
|
|
4205
|
+
ref: "Endpoint",
|
|
4206
|
+
},
|
|
4207
|
+
],
|
|
4208
|
+
},
|
|
4209
|
+
],
|
|
4210
|
+
rules: [
|
|
4211
|
+
{
|
|
4212
|
+
conditions: [
|
|
4213
|
+
{
|
|
4214
|
+
fn: "booleanEquals",
|
|
4215
|
+
argv: [
|
|
4216
|
+
{
|
|
4217
|
+
ref: "UseFIPS",
|
|
4218
|
+
},
|
|
4219
|
+
true,
|
|
4220
|
+
],
|
|
4221
|
+
},
|
|
4222
|
+
],
|
|
4223
|
+
error:
|
|
4224
|
+
"Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
4225
|
+
type: "error",
|
|
4226
|
+
},
|
|
4227
|
+
{
|
|
4228
|
+
conditions: [
|
|
4229
|
+
{
|
|
4230
|
+
fn: "booleanEquals",
|
|
4231
|
+
argv: [
|
|
4232
|
+
{
|
|
4233
|
+
ref: "UseDualStack",
|
|
4234
|
+
},
|
|
4235
|
+
true,
|
|
4236
|
+
],
|
|
4237
|
+
},
|
|
4238
|
+
],
|
|
4239
|
+
error:
|
|
4240
|
+
"Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
4241
|
+
type: "error",
|
|
4242
|
+
},
|
|
4243
|
+
{
|
|
4244
|
+
conditions: [],
|
|
4245
|
+
endpoint: {
|
|
4246
|
+
url: {
|
|
4247
|
+
ref: "Endpoint",
|
|
4248
|
+
},
|
|
4249
|
+
properties: {},
|
|
4250
|
+
headers: {},
|
|
4251
|
+
},
|
|
4252
|
+
type: "endpoint",
|
|
4253
|
+
},
|
|
4254
|
+
],
|
|
4255
|
+
type: "tree",
|
|
4256
|
+
},
|
|
4257
|
+
{
|
|
4258
|
+
conditions: [
|
|
4259
|
+
{
|
|
4260
|
+
fn: "isSet",
|
|
4261
|
+
argv: [
|
|
4262
|
+
{
|
|
4263
|
+
ref: "Region",
|
|
4264
|
+
},
|
|
4265
|
+
],
|
|
4266
|
+
},
|
|
4267
|
+
],
|
|
4268
|
+
rules: [
|
|
4269
|
+
{
|
|
4270
|
+
conditions: [
|
|
4271
|
+
{
|
|
4272
|
+
fn: "aws.partition",
|
|
4273
|
+
argv: [
|
|
4274
|
+
{
|
|
4275
|
+
ref: "Region",
|
|
4276
|
+
},
|
|
4277
|
+
],
|
|
4278
|
+
assign: "PartitionResult",
|
|
4279
|
+
},
|
|
4280
|
+
],
|
|
4281
|
+
rules: [
|
|
4282
|
+
{
|
|
4283
|
+
conditions: [
|
|
4284
|
+
{
|
|
4285
|
+
fn: "booleanEquals",
|
|
4286
|
+
argv: [
|
|
4287
|
+
{
|
|
4288
|
+
ref: "UseFIPS",
|
|
4289
|
+
},
|
|
4290
|
+
true,
|
|
4291
|
+
],
|
|
4292
|
+
},
|
|
4293
|
+
{
|
|
4294
|
+
fn: "booleanEquals",
|
|
4295
|
+
argv: [
|
|
4296
|
+
{
|
|
4297
|
+
ref: "UseDualStack",
|
|
4298
|
+
},
|
|
4299
|
+
true,
|
|
4300
|
+
],
|
|
4301
|
+
},
|
|
4302
|
+
],
|
|
4303
|
+
rules: [
|
|
4304
|
+
{
|
|
4305
|
+
conditions: [
|
|
4306
|
+
{
|
|
4307
|
+
fn: "booleanEquals",
|
|
4308
|
+
argv: [
|
|
4309
|
+
true,
|
|
4310
|
+
{
|
|
4311
|
+
fn: "getAttr",
|
|
4312
|
+
argv: [
|
|
4313
|
+
{
|
|
4314
|
+
ref: "PartitionResult",
|
|
4315
|
+
},
|
|
4316
|
+
"supportsFIPS",
|
|
4317
|
+
],
|
|
4318
|
+
},
|
|
4319
|
+
],
|
|
4320
|
+
},
|
|
4321
|
+
{
|
|
4322
|
+
fn: "booleanEquals",
|
|
4323
|
+
argv: [
|
|
4324
|
+
true,
|
|
4325
|
+
{
|
|
4326
|
+
fn: "getAttr",
|
|
4327
|
+
argv: [
|
|
4328
|
+
{
|
|
4329
|
+
ref: "PartitionResult",
|
|
4330
|
+
},
|
|
4331
|
+
"supportsDualStack",
|
|
4332
|
+
],
|
|
4333
|
+
},
|
|
4334
|
+
],
|
|
4335
|
+
},
|
|
4336
|
+
],
|
|
4337
|
+
rules: [
|
|
4338
|
+
{
|
|
4339
|
+
conditions: [],
|
|
4340
|
+
endpoint: {
|
|
4341
|
+
url: "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
4342
|
+
properties: {},
|
|
4343
|
+
headers: {},
|
|
4344
|
+
},
|
|
4345
|
+
type: "endpoint",
|
|
4346
|
+
},
|
|
4347
|
+
],
|
|
4348
|
+
type: "tree",
|
|
4349
|
+
},
|
|
4350
|
+
{
|
|
4351
|
+
conditions: [],
|
|
4352
|
+
error:
|
|
4353
|
+
"FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
4354
|
+
type: "error",
|
|
4355
|
+
},
|
|
4356
|
+
],
|
|
4357
|
+
type: "tree",
|
|
4358
|
+
},
|
|
4359
|
+
{
|
|
4360
|
+
conditions: [
|
|
4361
|
+
{
|
|
4362
|
+
fn: "booleanEquals",
|
|
4363
|
+
argv: [
|
|
4364
|
+
{
|
|
4365
|
+
ref: "UseFIPS",
|
|
4366
|
+
},
|
|
4367
|
+
true,
|
|
4368
|
+
],
|
|
4369
|
+
},
|
|
4370
|
+
],
|
|
4371
|
+
rules: [
|
|
4372
|
+
{
|
|
4373
|
+
conditions: [
|
|
4374
|
+
{
|
|
4375
|
+
fn: "booleanEquals",
|
|
4376
|
+
argv: [
|
|
4377
|
+
{
|
|
4378
|
+
fn: "getAttr",
|
|
4379
|
+
argv: [
|
|
4380
|
+
{
|
|
4381
|
+
ref: "PartitionResult",
|
|
4382
|
+
},
|
|
4383
|
+
"supportsFIPS",
|
|
4384
|
+
],
|
|
4385
|
+
},
|
|
4386
|
+
true,
|
|
4387
|
+
],
|
|
4388
|
+
},
|
|
4389
|
+
],
|
|
4390
|
+
rules: [
|
|
4391
|
+
{
|
|
4392
|
+
conditions: [],
|
|
4393
|
+
endpoint: {
|
|
4394
|
+
url: "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
4395
|
+
properties: {},
|
|
4396
|
+
headers: {},
|
|
4397
|
+
},
|
|
4398
|
+
type: "endpoint",
|
|
4399
|
+
},
|
|
4400
|
+
],
|
|
4401
|
+
type: "tree",
|
|
4402
|
+
},
|
|
4403
|
+
{
|
|
4404
|
+
conditions: [],
|
|
4405
|
+
error:
|
|
4406
|
+
"FIPS is enabled but this partition does not support FIPS",
|
|
4407
|
+
type: "error",
|
|
4408
|
+
},
|
|
4409
|
+
],
|
|
4410
|
+
type: "tree",
|
|
4411
|
+
},
|
|
4412
|
+
{
|
|
4413
|
+
conditions: [
|
|
4414
|
+
{
|
|
4415
|
+
fn: "booleanEquals",
|
|
4416
|
+
argv: [
|
|
4417
|
+
{
|
|
4418
|
+
ref: "UseDualStack",
|
|
4419
|
+
},
|
|
4420
|
+
true,
|
|
4421
|
+
],
|
|
4422
|
+
},
|
|
4423
|
+
],
|
|
4424
|
+
rules: [
|
|
4425
|
+
{
|
|
4426
|
+
conditions: [
|
|
4427
|
+
{
|
|
4428
|
+
fn: "booleanEquals",
|
|
4429
|
+
argv: [
|
|
4430
|
+
true,
|
|
4431
|
+
{
|
|
4432
|
+
fn: "getAttr",
|
|
4433
|
+
argv: [
|
|
4434
|
+
{
|
|
4435
|
+
ref: "PartitionResult",
|
|
4436
|
+
},
|
|
4437
|
+
"supportsDualStack",
|
|
4438
|
+
],
|
|
4439
|
+
},
|
|
4440
|
+
],
|
|
4441
|
+
},
|
|
4442
|
+
],
|
|
4443
|
+
rules: [
|
|
4444
|
+
{
|
|
4445
|
+
conditions: [],
|
|
4446
|
+
endpoint: {
|
|
4447
|
+
url: "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
4448
|
+
properties: {},
|
|
4449
|
+
headers: {},
|
|
4450
|
+
},
|
|
4451
|
+
type: "endpoint",
|
|
4452
|
+
},
|
|
4453
|
+
],
|
|
4454
|
+
type: "tree",
|
|
4455
|
+
},
|
|
4456
|
+
{
|
|
4457
|
+
conditions: [],
|
|
4458
|
+
error:
|
|
4459
|
+
"DualStack is enabled but this partition does not support DualStack",
|
|
4460
|
+
type: "error",
|
|
4461
|
+
},
|
|
4462
|
+
],
|
|
4463
|
+
type: "tree",
|
|
4464
|
+
},
|
|
4465
|
+
{
|
|
4466
|
+
conditions: [],
|
|
4467
|
+
endpoint: {
|
|
4468
|
+
url: "https://lambda.{Region}.{PartitionResult#dnsSuffix}",
|
|
4469
|
+
properties: {},
|
|
4470
|
+
headers: {},
|
|
4471
|
+
},
|
|
4472
|
+
type: "endpoint",
|
|
4473
|
+
},
|
|
4474
|
+
],
|
|
4475
|
+
type: "tree",
|
|
4476
|
+
},
|
|
4477
|
+
],
|
|
4478
|
+
type: "tree",
|
|
4479
|
+
},
|
|
4480
|
+
{
|
|
4481
|
+
conditions: [],
|
|
4482
|
+
error: "Invalid Configuration: Missing Region",
|
|
4483
|
+
type: "error",
|
|
4484
|
+
},
|
|
4485
|
+
],
|
|
4486
|
+
},
|
|
4487
|
+
};
|
|
4488
|
+
|
|
4489
|
+
/** The makeLambdaClient Effect gives callers access to Lambda with the region and credentials configured in their AWS runtime. */
|
|
4490
|
+
export const makeLambdaClient = Effect.gen(function* () {
|
|
4491
|
+
const aws = yield* AwsClient;
|
|
4492
|
+
|
|
4493
|
+
const bindOperation = aws.bindOperation(lambdaService);
|
|
4494
|
+
|
|
4495
|
+
return {
|
|
4496
|
+
/** Grants a principal permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version $LATEST. */
|
|
4497
|
+
addPermission: bindOperation(addPermissionOperation),
|
|
4498
|
+
/** Creates a Lambda Event Function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing. */
|
|
4499
|
+
createFunction: bindOperation(createFunctionOperation),
|
|
4500
|
+
/** Deletes a Lambda Event Function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for DeleteAlias. Success means AWS accepted the request. */
|
|
4501
|
+
deleteFunction: bindOperation(deleteFunctionOperation),
|
|
4502
|
+
/** Returns the version-specific settings of a Lambda Event Function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration. */
|
|
4503
|
+
getFunctionConfiguration: bindOperation(getFunctionConfigurationOperation),
|
|
4504
|
+
/** Returns the resource-based IAM policy for a function, version, or alias. */
|
|
4505
|
+
getPolicy: bindOperation(getPolicyOperation),
|
|
4506
|
+
/** Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy. Success means AWS accepted the request. */
|
|
4507
|
+
removePermission: bindOperation(removePermissionOperation),
|
|
4508
|
+
/** Updates a Lambda Event Function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing for Lambda. */
|
|
4509
|
+
updateFunctionCode: bindOperation(updateFunctionCodeOperation),
|
|
4510
|
+
/** Modifies the version-specific settings of a Lambda Event Function. */
|
|
4511
|
+
updateFunctionConfiguration: bindOperation(
|
|
4512
|
+
updateFunctionConfigurationOperation,
|
|
4513
|
+
),
|
|
4514
|
+
};
|
|
4515
|
+
});
|