@aws-sdk/client-lambda-web 3.1146.0 → 3.1147.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +8 -141
  2. package/dist-cjs/index.js +4 -1117
  3. package/dist-es/LambdaWeb.js +1 -61
  4. package/dist-es/commands/index.js +0 -19
  5. package/dist-es/index.js +0 -3
  6. package/dist-es/models/errors.js +0 -64
  7. package/dist-es/schemas/schemas_0.js +1 -514
  8. package/dist-types/LambdaWeb.d.ts +2 -195
  9. package/dist-types/LambdaWebClient.d.ts +3 -22
  10. package/dist-types/commandBuilder.d.ts +4 -4
  11. package/dist-types/commands/GetWebAccountSettingsCommand.d.ts +2 -2
  12. package/dist-types/commands/index.d.ts +0 -19
  13. package/dist-types/index.d.ts +1 -4
  14. package/dist-types/models/errors.d.ts +0 -88
  15. package/dist-types/models/models_0.d.ts +7 -1503
  16. package/dist-types/schemas/schemas_0.d.ts +0 -73
  17. package/dist-types/ts3.4/LambdaWeb.d.ts +0 -395
  18. package/dist-types/ts3.4/LambdaWebClient.d.ts +2 -112
  19. package/dist-types/ts3.4/commandBuilder.d.ts +9 -10
  20. package/dist-types/ts3.4/commands/GetWebAccountSettingsCommand.d.ts +4 -4
  21. package/dist-types/ts3.4/commands/index.d.ts +0 -19
  22. package/dist-types/ts3.4/index.d.ts +0 -3
  23. package/dist-types/ts3.4/models/errors.d.ts +0 -28
  24. package/dist-types/ts3.4/models/models_0.d.ts +0 -350
  25. package/dist-types/ts3.4/schemas/schemas_0.d.ts +0 -73
  26. package/package.json +1 -1
  27. package/dist-es/commands/CreateWebFunctionCommand.js +0 -4
  28. package/dist-es/commands/CreateWebFunctionEndpointCommand.js +0 -4
  29. package/dist-es/commands/CreateWebFunctionRevisionCommand.js +0 -4
  30. package/dist-es/commands/DeleteResourcePolicyCommand.js +0 -4
  31. package/dist-es/commands/DeleteWebFunctionCommand.js +0 -4
  32. package/dist-es/commands/DeleteWebFunctionEndpointCommand.js +0 -4
  33. package/dist-es/commands/DeleteWebFunctionRevisionCommand.js +0 -4
  34. package/dist-es/commands/GetResourcePolicyCommand.js +0 -4
  35. package/dist-es/commands/GetWebFunctionCommand.js +0 -4
  36. package/dist-es/commands/GetWebFunctionEndpointCommand.js +0 -4
  37. package/dist-es/commands/GetWebFunctionRevisionCommand.js +0 -4
  38. package/dist-es/commands/ListTagsCommand.js +0 -4
  39. package/dist-es/commands/ListWebFunctionEndpointsCommand.js +0 -4
  40. package/dist-es/commands/ListWebFunctionRevisionsCommand.js +0 -4
  41. package/dist-es/commands/ListWebFunctionsCommand.js +0 -4
  42. package/dist-es/commands/PutResourcePolicyCommand.js +0 -4
  43. package/dist-es/commands/TagResourceCommand.js +0 -4
  44. package/dist-es/commands/UntagResourceCommand.js +0 -4
  45. package/dist-es/commands/UpdateWebFunctionEndpointCommand.js +0 -4
  46. package/dist-es/models/enums.js +0 -48
  47. package/dist-es/pagination/Interfaces.js +0 -1
  48. package/dist-es/pagination/ListWebFunctionEndpointsPaginator.js +0 -4
  49. package/dist-es/pagination/ListWebFunctionRevisionsPaginator.js +0 -4
  50. package/dist-es/pagination/ListWebFunctionsPaginator.js +0 -4
  51. package/dist-es/pagination/index.js +0 -4
  52. package/dist-es/waiters/index.js +0 -6
  53. package/dist-es/waiters/waitForWebFunctionActive.js +0 -58
  54. package/dist-es/waiters/waitForWebFunctionDeleted.js +0 -34
  55. package/dist-es/waiters/waitForWebFunctionEndpointActive.js +0 -58
  56. package/dist-es/waiters/waitForWebFunctionEndpointDeleted.js +0 -34
  57. package/dist-es/waiters/waitForWebFunctionEndpointUpdated.js +0 -49
  58. package/dist-es/waiters/waitForWebFunctionRevisionActive.js +0 -49
  59. package/dist-types/commands/CreateWebFunctionCommand.d.ts +0 -188
  60. package/dist-types/commands/CreateWebFunctionEndpointCommand.d.ts +0 -162
  61. package/dist-types/commands/CreateWebFunctionRevisionCommand.d.ts +0 -162
  62. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +0 -88
  63. package/dist-types/commands/DeleteWebFunctionCommand.d.ts +0 -87
  64. package/dist-types/commands/DeleteWebFunctionEndpointCommand.d.ts +0 -88
  65. package/dist-types/commands/DeleteWebFunctionRevisionCommand.d.ts +0 -88
  66. package/dist-types/commands/GetResourcePolicyCommand.d.ts +0 -87
  67. package/dist-types/commands/GetWebFunctionCommand.d.ts +0 -91
  68. package/dist-types/commands/GetWebFunctionEndpointCommand.d.ts +0 -137
  69. package/dist-types/commands/GetWebFunctionRevisionCommand.d.ts +0 -128
  70. package/dist-types/commands/ListTagsCommand.d.ts +0 -88
  71. package/dist-types/commands/ListWebFunctionEndpointsCommand.d.ts +0 -128
  72. package/dist-types/commands/ListWebFunctionRevisionsCommand.d.ts +0 -106
  73. package/dist-types/commands/ListWebFunctionsCommand.d.ts +0 -102
  74. package/dist-types/commands/PutResourcePolicyCommand.d.ts +0 -95
  75. package/dist-types/commands/TagResourceCommand.d.ts +0 -93
  76. package/dist-types/commands/UntagResourceCommand.d.ts +0 -90
  77. package/dist-types/commands/UpdateWebFunctionEndpointCommand.d.ts +0 -158
  78. package/dist-types/models/enums.d.ts +0 -120
  79. package/dist-types/pagination/Interfaces.d.ts +0 -8
  80. package/dist-types/pagination/ListWebFunctionEndpointsPaginator.d.ts +0 -7
  81. package/dist-types/pagination/ListWebFunctionRevisionsPaginator.d.ts +0 -7
  82. package/dist-types/pagination/ListWebFunctionsPaginator.d.ts +0 -7
  83. package/dist-types/pagination/index.d.ts +0 -4
  84. package/dist-types/ts3.4/commands/CreateWebFunctionCommand.d.ts +0 -39
  85. package/dist-types/ts3.4/commands/CreateWebFunctionEndpointCommand.d.ts +0 -42
  86. package/dist-types/ts3.4/commands/CreateWebFunctionRevisionCommand.d.ts +0 -42
  87. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +0 -38
  88. package/dist-types/ts3.4/commands/DeleteWebFunctionCommand.d.ts +0 -38
  89. package/dist-types/ts3.4/commands/DeleteWebFunctionEndpointCommand.d.ts +0 -38
  90. package/dist-types/ts3.4/commands/DeleteWebFunctionRevisionCommand.d.ts +0 -38
  91. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +0 -39
  92. package/dist-types/ts3.4/commands/GetWebFunctionCommand.d.ts +0 -38
  93. package/dist-types/ts3.4/commands/GetWebFunctionEndpointCommand.d.ts +0 -39
  94. package/dist-types/ts3.4/commands/GetWebFunctionRevisionCommand.d.ts +0 -39
  95. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +0 -38
  96. package/dist-types/ts3.4/commands/ListWebFunctionEndpointsCommand.d.ts +0 -42
  97. package/dist-types/ts3.4/commands/ListWebFunctionRevisionsCommand.d.ts +0 -42
  98. package/dist-types/ts3.4/commands/ListWebFunctionsCommand.d.ts +0 -38
  99. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +0 -39
  100. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +0 -38
  101. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +0 -38
  102. package/dist-types/ts3.4/commands/UpdateWebFunctionEndpointCommand.d.ts +0 -42
  103. package/dist-types/ts3.4/models/enums.d.ts +0 -57
  104. package/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -5
  105. package/dist-types/ts3.4/pagination/ListWebFunctionEndpointsPaginator.d.ts +0 -11
  106. package/dist-types/ts3.4/pagination/ListWebFunctionRevisionsPaginator.d.ts +0 -11
  107. package/dist-types/ts3.4/pagination/ListWebFunctionsPaginator.d.ts +0 -11
  108. package/dist-types/ts3.4/pagination/index.d.ts +0 -4
  109. package/dist-types/ts3.4/waiters/index.d.ts +0 -6
  110. package/dist-types/ts3.4/waiters/waitForWebFunctionActive.d.ts +0 -15
  111. package/dist-types/ts3.4/waiters/waitForWebFunctionDeleted.d.ts +0 -16
  112. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointActive.d.ts +0 -15
  113. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointDeleted.d.ts +0 -16
  114. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointUpdated.d.ts +0 -15
  115. package/dist-types/ts3.4/waiters/waitForWebFunctionRevisionActive.d.ts +0 -15
  116. package/dist-types/waiters/index.d.ts +0 -6
  117. package/dist-types/waiters/waitForWebFunctionActive.d.ts +0 -15
  118. package/dist-types/waiters/waitForWebFunctionDeleted.d.ts +0 -16
  119. package/dist-types/waiters/waitForWebFunctionEndpointActive.d.ts +0 -15
  120. package/dist-types/waiters/waitForWebFunctionEndpointDeleted.d.ts +0 -16
  121. package/dist-types/waiters/waitForWebFunctionEndpointUpdated.d.ts +0 -15
  122. package/dist-types/waiters/waitForWebFunctionRevisionActive.d.ts +0 -15
@@ -1,4 +1,3 @@
1
- import type { ApplicationLogLevel, AuthType, AutoDeploymentMode, EndpointState, EndpointType, EndpointUpdateStatus, FunctionState, RevisionState, SystemLogLevel } from "./enums";
2
1
  /**
3
2
  * <p>The quotas that apply to web functions in your account in the current AWS Region.</p>
4
3
  * @public
@@ -37,1518 +36,23 @@ export interface AccountUsage {
37
36
  functionCount: number | undefined;
38
37
  }
39
38
  /**
40
- * <p>The Amazon S3 location of a deployment artifact.</p>
41
39
  * @public
42
40
  */
43
- export interface S3Object {
44
- /**
45
- * <p>The name of the Amazon S3 bucket. Must be between 3 and 63 characters.</p>
46
- * @public
47
- */
48
- bucket: string | undefined;
49
- /**
50
- * <p>The Amazon S3 object key. Must be between 1 and 1024 characters.</p>
51
- * @public
52
- */
53
- key: string | undefined;
54
- /**
55
- * <p>The version ID of the Amazon S3 object.</p>
56
- * @public
57
- */
58
- versionId?: string | undefined;
59
- }
60
- /**
61
- * <p>The code configuration specifying the location of the deployment artifact.</p>
62
- * @public
63
- */
64
- export interface CodeConfig {
65
- /**
66
- * <p>The Amazon S3 location of the deployment artifact.</p>
67
- * @public
68
- */
69
- s3Object: S3Object | undefined;
70
- }
71
- /**
72
- * <p>The runtime configuration for a web function revision.</p>
73
- * @public
74
- */
75
- export interface RuntimeConfig {
76
- /**
77
- * <p>The runtime identifier for the web function (for example, a Node.js runtime identifier).</p>
78
- * @public
79
- */
80
- runtime: string | undefined;
81
- }
82
- /**
83
- * <p>The build configuration for a web function revision, including code location and runtime settings.</p>
84
- * @public
85
- */
86
- export interface BuildConfig {
87
- /**
88
- * <p>The code configuration specifying where the deployment artifact is stored.</p>
89
- * @public
90
- */
91
- codeConfig: CodeConfig | undefined;
92
- /**
93
- * <p>The runtime configuration for the revision.</p>
94
- * @public
95
- */
96
- runtimeConfig: RuntimeConfig | undefined;
97
- }
98
- /**
99
- * <p>The scaling configuration for a web function endpoint.</p>
100
- * @public
101
- */
102
- export interface ScalingConfig {
103
- /**
104
- * <p>The maximum number of concurrent execution environments for the endpoint. Minimum value of 2, maximum value of 10000. There is no default value. If you don't specify a value, the scaling configuration is absent from the response. On an update, omit <code>scalingConfig</code> to keep the current value, or specify an empty object to clear a previously set value.</p>
105
- * @public
106
- */
107
- maxEnvironments?: number | undefined;
108
- }
109
- /**
110
- * <p>The throttling configuration for a web function endpoint.</p>
111
- * @public
112
- */
113
- export interface ThrottleConfig {
114
- /**
115
- * <p>The maximum request rate per second for the endpoint. The value must be one of the following supported values: <code>0</code>, <code>100</code>, <code>200</code>, <code>300</code>, <code>400</code>, <code>500</code>, <code>600</code>, <code>700</code>, <code>800</code>, <code>900</code>, <code>1000</code>, <code>2000</code>, <code>3000</code>, <code>4000</code>, <code>5000</code>, <code>6000</code>, <code>7000</code>, <code>8000</code>, <code>9000</code>, or <code>10000</code>. The maximum effective value is also bounded by your account-level maximum total rate limit. There is no default value. If you don't specify a value, the throttling configuration is absent from the response. On an update, omit <code>throttleConfig</code> to keep the current value, or specify an empty object to clear a previously set value.</p>
116
- * @public
117
- */
118
- rateLimit?: number | undefined;
119
- }
120
- /**
121
- * <p>The configuration for a web function endpoint.</p>
122
- * @public
123
- */
124
- export interface EndpointConfig {
125
- /**
126
- * <p>The name of the endpoint. The name can contain letters, numbers, hyphens (-), and underscores (_), and can't begin or end with a hyphen or an underscore. The length constraint applies only to the full ARN. If you specify only the endpoint name, it is limited to 64 characters in length.</p>
127
- * @public
128
- */
129
- endpointName: string | undefined;
130
- /**
131
- * <p>A description of the endpoint.</p>
132
- * @public
133
- */
134
- description?: string | undefined;
135
- /**
136
- * <p>The type of endpoint. Determines how traffic is served and routed across Regions.</p>
137
- * @public
138
- */
139
- endpointType: EndpointType | undefined;
140
- /**
141
- * <p>The authorization type for the endpoint.</p>
142
- * @public
143
- */
144
- authType: AuthType | undefined;
145
- /**
146
- * <p>The auto-deployment mode for the endpoint. If you don't specify a value, the default is <code>Disabled</code>, and this default is returned in the response.</p>
147
- * @public
148
- */
149
- autoDeploymentMode?: AutoDeploymentMode | undefined;
150
- /**
151
- * <p>The list of Regions for the endpoint. Required when the endpoint type is <code>MultiRegion</code> or <code>PerRegion</code>: specify at least one Region other than the Region where you create the endpoint (the home Region). The home Region is added automatically if you don't include it; specifying only the home Region isn't allowed. When the endpoint type is <code>HomeRegion</code>, omit this field or specify only the home Region.</p>
152
- * @public
153
- */
154
- regions?: string[] | undefined;
155
- /**
156
- * <p>The scaling configuration for the endpoint.</p>
157
- * @public
158
- */
159
- scalingConfig?: ScalingConfig | undefined;
160
- /**
161
- * <p>The throttling configuration for the endpoint.</p>
162
- * @public
163
- */
164
- throttleConfig?: ThrottleConfig | undefined;
165
- }
166
- /**
167
- * <p>The logging configuration for a web function revision.</p>
168
- * @public
169
- */
170
- export interface LoggingConfig {
171
- /**
172
- * <p>The name of the Amazon CloudWatch Logs log group the web function sends logs to. If you don't specify a value, the default is <code>/aws/lambda/web/\{functionName\}</code>, and this default is returned in the response.</p>
173
- * @public
174
- */
175
- logGroup?: string | undefined;
176
- /**
177
- * <p>The log level for application logs emitted by the web function. If you don't specify a value, the default is <code>INFO</code>, and this default is returned in the response.</p>
178
- * @public
179
- */
180
- applicationLogLevel?: ApplicationLogLevel | undefined;
181
- /**
182
- * <p>The log level for system logs emitted by the Lambda runtime. If you don't specify a value, the default is <code>INFO</code>, and this default is returned in the response.</p>
183
- * @public
184
- */
185
- systemLogLevel?: SystemLogLevel | undefined;
186
- }
187
- /**
188
- * <p>The telemetry configuration for a web function revision.</p>
189
- * @public
190
- */
191
- export interface TelemetryConfig {
192
- /**
193
- * <p>The logging configuration for the web function.</p>
194
- * @public
195
- */
196
- loggingConfig?: LoggingConfig | undefined;
197
- }
198
- /**
199
- * <p>The service configuration for a web function revision, including execution role, timeout, concurrency, and telemetry settings.</p>
200
- * @public
201
- */
202
- export interface ServiceConfig {
203
- /**
204
- * <p>The ARN of the IAM role that the web function assumes when it runs. This role provides permissions to access AWS services and resources.</p>
205
- * @public
206
- */
207
- executionRoleArn: string | undefined;
208
- /**
209
- * <p>The amount of time (in seconds) that Lambda allows the web function to run before stopping it. Minimum value of 3, maximum value of 900. If you don't specify a value, the default is 30, and this default is returned in the response.</p>
210
- * @public
211
- */
212
- timeoutSeconds?: number | undefined;
213
- /**
214
- * <p>The maximum number of concurrent requests handled per execution environment. Minimum value of 1, maximum value of 128. If you don't specify a value, the default is 64, and this default is returned in the response.</p>
215
- * @public
216
- */
217
- maxConcurrencyPerEnvironment?: number | undefined;
218
- /**
219
- * <p>A map of environment variable key-value pairs available to the web function at runtime. Environment variable values are sensitive.</p>
220
- * @public
221
- */
222
- environmentVariables?: Record<string, string> | undefined;
223
- /**
224
- * <p>The telemetry configuration for the web function, including logging settings.</p>
225
- * @public
226
- */
227
- telemetryConfig?: TelemetryConfig | undefined;
228
- }
229
- /**
230
- * <p>The configuration for a web function revision, including code build settings and service configuration.</p>
231
- * @public
232
- */
233
- export interface RevisionConfig {
234
- /**
235
- * <p>A description of the revision.</p>
236
- * @public
237
- */
238
- description?: string | undefined;
239
- /**
240
- * <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) key used to encrypt the revision's code and environment variables.</p>
241
- * @public
242
- */
243
- kmsKeyArn?: string | undefined;
244
- /**
245
- * <p>The build configuration for the revision.</p>
246
- * @public
247
- */
248
- buildConfig: BuildConfig | undefined;
249
- /**
250
- * <p>The service configuration for the revision.</p>
251
- * @public
252
- */
253
- serviceConfig: ServiceConfig | undefined;
254
- }
255
- /**
256
- * <p>The request to create a web function.</p>
257
- * @public
258
- */
259
- export interface CreateWebFunctionRequest {
260
- /**
261
- * <p>The name of the web function. The name can contain letters, numbers, hyphens (-), and underscores (_), and can't begin or end with a hyphen or an underscore. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
262
- * @public
263
- */
264
- functionName: string | undefined;
265
- /**
266
- * <p>The configuration for the initial revision of the web function, including code and service settings.</p>
267
- * @public
268
- */
269
- revisionConfig?: RevisionConfig | undefined;
270
- /**
271
- * <p>The configuration for the initial endpoint of the web function.</p>
272
- * @public
273
- */
274
- endpointConfig?: EndpointConfig | undefined;
275
- /**
276
- * <p>A map of tag keys and values to apply to the web function.</p>
277
- * @public
278
- */
279
- tags?: Record<string, string> | undefined;
280
- }
281
- /**
282
- * <p>Specifies a revision and its traffic weight for an endpoint. Up to two revisions can be assigned weights to split traffic for canary or blue-green deployments.</p>
283
- * @public
284
- */
285
- export interface RevisionWeight {
286
- /**
287
- * <p>The identifier of the revision.</p>
288
- * @public
289
- */
290
- revisionId: string | undefined;
291
- /**
292
- * <p>The percentage of traffic to route to this revision. Minimum value of 1, maximum value of 100.</p>
293
- * @public
294
- */
295
- weight: number | undefined;
296
- }
297
- /**
298
- * <p>A summary of a web function endpoint.</p>
299
- * @public
300
- */
301
- export interface FunctionEndpointSummary {
302
- /**
303
- * <p>The Amazon Resource Name (ARN) of the endpoint.</p>
304
- * @public
305
- */
306
- endpointArn: string | undefined;
307
- /**
308
- * <p>The name of the endpoint.</p>
309
- * @public
310
- */
311
- endpointName: string | undefined;
312
- /**
313
- * <p>A description of the endpoint.</p>
314
- * @public
315
- */
316
- description?: string | undefined;
317
- /**
318
- * <p>The type of the endpoint.</p>
319
- * @public
320
- */
321
- endpointType: EndpointType | undefined;
322
- /**
323
- * <p>The domain name of the endpoint.</p>
324
- * @public
325
- */
326
- domainName: string | undefined;
327
- /**
328
- * <p>The authorization type for the endpoint.</p>
329
- * @public
330
- */
331
- authType: AuthType | undefined;
332
- /**
333
- * <p>The auto-deployment mode for the endpoint.</p>
334
- * @public
335
- */
336
- autoDeploymentMode: AutoDeploymentMode | undefined;
337
- /**
338
- * <p>The revision weights for the endpoint.</p>
339
- * @public
340
- */
341
- revisionWeights: RevisionWeight[] | undefined;
342
- /**
343
- * <p>The list of Regions for the endpoint.</p>
344
- * @public
345
- */
346
- regions: string[] | undefined;
347
- /**
348
- * <p>The scaling configuration for the endpoint. This field is absent if the endpoint has no scaling configuration.</p>
349
- * @public
350
- */
351
- scalingConfig?: ScalingConfig | undefined;
352
- /**
353
- * <p>The throttling configuration for the endpoint. This field is absent if the endpoint has no throttling configuration.</p>
354
- * @public
355
- */
356
- throttleConfig?: ThrottleConfig | undefined;
357
- /**
358
- * <p>The current state of the endpoint.</p>
359
- * @public
360
- */
361
- state: EndpointState | undefined;
362
- /**
363
- * <p>The reason for the current state of the endpoint.</p>
364
- * @public
365
- */
366
- stateReason: string | undefined;
367
- /**
368
- * <p>The status of the most recent update to the endpoint.</p>
369
- * @public
370
- */
371
- updateStatus?: EndpointUpdateStatus | undefined;
372
- /**
373
- * <p>The reason for the current update status of the endpoint.</p>
374
- * @public
375
- */
376
- updateStatusReason?: string | undefined;
377
- /**
378
- * <p>The date and time the endpoint was created.</p>
379
- * @public
380
- */
381
- createdAt: Date | undefined;
382
- /**
383
- * <p>The date and time the endpoint was last updated.</p>
384
- * @public
385
- */
386
- updatedAt: Date | undefined;
387
- }
388
- /**
389
- * <p>A summary of a web function revision.</p>
390
- * @public
391
- */
392
- export interface FunctionRevisionSummary {
393
- /**
394
- * <p>The Amazon Resource Name (ARN) of the revision.</p>
395
- * @public
396
- */
397
- revisionArn: string | undefined;
398
- /**
399
- * <p>The identifier of the revision.</p>
400
- * @public
401
- */
402
- revisionId: string | undefined;
403
- /**
404
- * <p>A description of the revision.</p>
405
- * @public
406
- */
407
- description?: string | undefined;
408
- /**
409
- * <p>The current state of the revision.</p>
410
- * @public
411
- */
412
- state: RevisionState | undefined;
413
- /**
414
- * <p>The reason for the current state of the revision.</p>
415
- * @public
416
- */
417
- stateReason: string | undefined;
418
- /**
419
- * <p>The date and time the revision was created.</p>
420
- * @public
421
- */
422
- createdAt: Date | undefined;
423
- }
424
- /**
425
- * <p>Contains details about the created web function.</p>
426
- * @public
427
- */
428
- export interface CreateWebFunctionResponse {
429
- /**
430
- * <p>The name of the web function.</p>
431
- * @public
432
- */
433
- functionName: string | undefined;
434
- /**
435
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
436
- * @public
437
- */
438
- functionArn: string | undefined;
439
- /**
440
- * <p>The current state of the web function.</p>
441
- * @public
442
- */
443
- state: FunctionState | undefined;
444
- /**
445
- * <p>The reason for the current state of the web function.</p>
446
- * @public
447
- */
448
- stateReason: string | undefined;
449
- /**
450
- * <p>The date and time the web function was created.</p>
451
- * @public
452
- */
453
- createdAt: Date | undefined;
454
- /**
455
- * <p>The date and time the web function was last updated.</p>
456
- * @public
457
- */
458
- updatedAt: Date | undefined;
459
- /**
460
- * <p>A summary of the initial revision created with the web function.</p>
461
- * @public
462
- */
463
- revision?: FunctionRevisionSummary | undefined;
464
- /**
465
- * <p>A summary of the initial endpoint created with the web function.</p>
466
- * @public
467
- */
468
- endpoint?: FunctionEndpointSummary | undefined;
469
- /**
470
- * <p>A map of tag keys and values associated with the web function.</p>
471
- * @public
472
- */
473
- tags?: Record<string, string> | undefined;
474
- }
475
- /**
476
- * <p>The request to create a web function endpoint.</p>
477
- * @public
478
- */
479
- export interface CreateWebFunctionEndpointRequest {
480
- /**
481
- * <p>The name of the web function to create the endpoint for. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
482
- * @public
483
- */
484
- functionName: string | undefined;
485
- /**
486
- * <p>The name of the endpoint to create. The name can contain letters, numbers, hyphens (-), and underscores (_), and can't begin or end with a hyphen or an underscore. The length constraint applies only to the full ARN. If you specify only the endpoint name, it is limited to 64 characters in length.</p>
487
- * @public
488
- */
489
- endpointName: string | undefined;
490
- /**
491
- * <p>A description of the endpoint.</p>
492
- * @public
493
- */
494
- description?: string | undefined;
495
- /**
496
- * <p>The type of endpoint to create. Determines how traffic is served and routed across Regions.</p>
497
- * @public
498
- */
499
- endpointType: EndpointType | undefined;
500
- /**
501
- * <p>The authorization type for the endpoint.</p>
502
- * @public
503
- */
504
- authType: AuthType | undefined;
505
- /**
506
- * <p>The auto-deployment mode for the endpoint. Controls whether the endpoint automatically serves the newest revision. If you don't specify a value, the default is <code>Disabled</code>, and this default is returned in the response.</p>
507
- * @public
508
- */
509
- autoDeploymentMode?: AutoDeploymentMode | undefined;
510
- /**
511
- * <p>A list of revision weights that determine how traffic is distributed across revisions. Up to two revisions can be specified for canary or blue-green deployments.</p>
512
- * @public
513
- */
514
- revisionWeights?: RevisionWeight[] | undefined;
515
- /**
516
- * <p>The list of Regions for the endpoint. Required when the endpoint type is <code>MultiRegion</code> or <code>PerRegion</code>: specify at least one Region other than the Region where you create the endpoint (the home Region). The home Region is added automatically if you don't include it; specifying only the home Region isn't allowed. When the endpoint type is <code>HomeRegion</code>, omit this field or specify only the home Region.</p>
517
- * @public
518
- */
519
- regions?: string[] | undefined;
520
- /**
521
- * <p>The scaling configuration for the endpoint. There is no default value. If you don't specify a scaling configuration, it is absent from the response.</p>
522
- * @public
523
- */
524
- scalingConfig?: ScalingConfig | undefined;
525
- /**
526
- * <p>The throttling configuration for the endpoint. There is no default value. If you don't specify a throttling configuration, it is absent from the response.</p>
527
- * @public
528
- */
529
- throttleConfig?: ThrottleConfig | undefined;
530
- }
531
- /**
532
- * <p>Represents the endpoint configuration and state in a specific Region.</p>
533
- * @public
534
- */
535
- export interface RegionalEndpoint {
536
- /**
537
- * <p>The domain name of the regional endpoint.</p>
538
- * @public
539
- */
540
- domainName?: string | undefined;
541
- /**
542
- * <p>The authorization type for the regional endpoint.</p>
543
- * @public
544
- */
545
- authType: AuthType | undefined;
546
- /**
547
- * <p>The revision weights for the regional endpoint.</p>
548
- * @public
549
- */
550
- revisionWeights: RevisionWeight[] | undefined;
551
- /**
552
- * <p>The scaling configuration for the regional endpoint. This field is absent if the endpoint has no scaling configuration.</p>
553
- * @public
554
- */
555
- scalingConfig?: ScalingConfig | undefined;
556
- /**
557
- * <p>The throttling configuration for the regional endpoint. This field is absent if the endpoint has no throttling configuration.</p>
558
- * @public
559
- */
560
- throttleConfig?: ThrottleConfig | undefined;
561
- /**
562
- * <p>The current state of the regional endpoint.</p>
563
- * @public
564
- */
565
- state: EndpointState | undefined;
566
- /**
567
- * <p>The reason for the current state of the regional endpoint.</p>
568
- * @public
569
- */
570
- stateReason: string | undefined;
571
- /**
572
- * <p>The status of the most recent update to the regional endpoint.</p>
573
- * @public
574
- */
575
- updateStatus?: EndpointUpdateStatus | undefined;
576
- /**
577
- * <p>The reason for the current update status of the regional endpoint.</p>
578
- * @public
579
- */
580
- updateStatusReason?: string | undefined;
581
- }
582
- /**
583
- * <p>Contains details about the created endpoint.</p>
584
- * @public
585
- */
586
- export interface CreateWebFunctionEndpointResponse {
587
- /**
588
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
589
- * @public
590
- */
591
- functionArn: string | undefined;
592
- /**
593
- * <p>The Amazon Resource Name (ARN) of the endpoint.</p>
594
- * @public
595
- */
596
- endpointArn: string | undefined;
597
- /**
598
- * <p>The name of the endpoint.</p>
599
- * @public
600
- */
601
- endpointName: string | undefined;
602
- /**
603
- * <p>The description of the endpoint.</p>
604
- * @public
605
- */
606
- description?: string | undefined;
607
- /**
608
- * <p>The type of a web function endpoint. Possible values: <code>HomeRegion</code> (serves from the Region where the function was created), <code>MultiRegion</code> (replicates across chosen Regions and routes to the nearest), <code>PerRegion</code> (separate endpoint per Region).</p>
609
- * @public
610
- */
611
- endpointType: EndpointType | undefined;
612
- /**
613
- * <p>The domain name assigned to the endpoint.</p>
614
- * @public
615
- */
616
- domainName: string | undefined;
617
- /**
618
- * <p>The authorization type for a web function endpoint. Possible values: <code>ApplicationManaged</code> (the function handles authorization), <code>IamAuth</code> (Lambda authorizes requests with AWS SigV4 and IAM).</p>
619
- * @public
620
- */
621
- authType: AuthType | undefined;
622
- /**
623
- * <p>The auto-deployment mode for a web function endpoint. Possible values: <code>LatestRevision</code> (endpoint automatically serves the newest revision), <code>Disabled</code> (revision routing is fixed until explicitly changed).</p>
624
- * @public
625
- */
626
- autoDeploymentMode: AutoDeploymentMode | undefined;
627
- /**
628
- * <p>The traffic distribution across revisions for the endpoint. Each entry maps a revision to a weight from 1 to 100.</p>
629
- * @public
630
- */
631
- revisionWeights: RevisionWeight[] | undefined;
632
- /**
633
- * <p>The Regions configured for the endpoint.</p>
634
- * @public
635
- */
636
- regions: string[] | undefined;
637
- /**
638
- * <p>The scaling configuration for a web function endpoint.</p>
639
- * @public
640
- */
641
- scalingConfig?: ScalingConfig | undefined;
642
- /**
643
- * <p>The throttling configuration for a web function endpoint.</p>
644
- * @public
645
- */
646
- throttleConfig?: ThrottleConfig | undefined;
647
- /**
648
- * <p>The current state of the endpoint.</p>
649
- * @public
650
- */
651
- state: EndpointState | undefined;
652
- /**
653
- * <p>The reason for the current state of the endpoint.</p>
654
- * @public
655
- */
656
- stateReason: string | undefined;
657
- /**
658
- * <p>The status of the most recent update to an endpoint. Possible values: <code>InProgress</code> (update is in progress), <code>Successful</code> (update completed successfully), <code>Failed</code> (update failed).</p>
659
- * @public
660
- */
661
- updateStatus?: EndpointUpdateStatus | undefined;
662
- /**
663
- * <p>The reason for the endpoint's most recent update status.</p>
664
- * @public
665
- */
666
- updateStatusReason?: string | undefined;
667
- /**
668
- * <p>The list of regional endpoint configurations.</p>
669
- * @public
670
- */
671
- regionalEndpoints: Record<string, RegionalEndpoint> | undefined;
672
- /**
673
- * <p>The date and time the endpoint was created.</p>
674
- * @public
675
- */
676
- createdAt: Date | undefined;
677
- /**
678
- * <p>The date and time the endpoint was last updated.</p>
679
- * @public
680
- */
681
- updatedAt: Date | undefined;
682
- }
683
- /**
684
- * <p>The request to create a web function revision.</p>
685
- * @public
686
- */
687
- export interface CreateWebFunctionRevisionRequest {
688
- /**
689
- * <p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
690
- * @public
691
- */
692
- functionName: string | undefined;
693
- /**
694
- * <p>A description of the revision.</p>
695
- * @public
696
- */
697
- description?: string | undefined;
698
- /**
699
- * <p>The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) key used to encrypt the revision's code and environment variables.</p>
700
- * @public
701
- */
702
- kmsKeyArn?: string | undefined;
703
- /**
704
- * <p>The build configuration for the revision, including code location and runtime settings.</p>
705
- * @public
706
- */
707
- buildConfig: BuildConfig | undefined;
708
- /**
709
- * <p>The service configuration for the revision, including execution role, timeout, and concurrency settings.</p>
710
- * @public
711
- */
712
- serviceConfig: ServiceConfig | undefined;
713
- }
714
- /**
715
- * <p>A single error encountered while creating or reading a web function revision. The error describes the affected attribute, an error code, and a human-readable message. This structure is present only when the revision has errors.</p>
716
- * @public
717
- */
718
- export interface RevisionError {
719
- /**
720
- * <p>The name of the revision attribute that the error applies to. Must be between 1 and 64 characters.</p>
721
- * @public
722
- */
723
- attribute: string | undefined;
724
- /**
725
- * <p>A short, machine-readable code that identifies the error. Must be between 1 and 64 characters.</p>
726
- * @public
727
- */
728
- errorCode: string | undefined;
729
- /**
730
- * <p>A human-readable message describing the error. Must be between 1 and 2048 characters.</p>
731
- * @public
732
- */
733
- errorMessage: string | undefined;
734
- }
735
- /**
736
- * <p>Contains details about the created revision.</p>
737
- * @public
738
- */
739
- export interface CreateWebFunctionRevisionResponse {
740
- /**
741
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
742
- * @public
743
- */
744
- functionArn: string | undefined;
745
- /**
746
- * <p>The Amazon Resource Name (ARN) of the revision.</p>
747
- * @public
748
- */
749
- revisionArn: string | undefined;
750
- /**
751
- * <p>The identifier of the revision.</p>
752
- * @public
753
- */
754
- revisionId: string | undefined;
755
- /**
756
- * <p>The description of the revision.</p>
757
- * @public
758
- */
759
- description?: string | undefined;
760
- /**
761
- * <p>The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the revision's code and environment variables.</p>
762
- * @public
763
- */
764
- kmsKeyArn?: string | undefined;
765
- /**
766
- * <p>The build configuration for a web function revision, including code location and runtime settings.</p>
767
- * @public
768
- */
769
- buildConfig: BuildConfig | undefined;
770
- /**
771
- * <p>The service configuration for a web function revision, including execution role, timeout, concurrency, and telemetry settings.</p>
772
- * @public
773
- */
774
- serviceConfig: ServiceConfig | undefined;
775
- /**
776
- * <p>The current state of the revision.</p>
777
- * @public
778
- */
779
- state: RevisionState | undefined;
780
- /**
781
- * <p>The reason for the current state of the revision.</p>
782
- * @public
783
- */
784
- stateReason: string | undefined;
785
- /**
786
- * <p>A list of errors encountered during revision creation. This field is absent when the revision has no errors.</p>
787
- * @public
788
- */
789
- errors?: RevisionError[] | undefined;
790
- /**
791
- * <p>The date and time the revision was created.</p>
792
- * @public
793
- */
794
- createdAt: Date | undefined;
795
- }
796
- /**
797
- * <p>The request to delete a resource-based policy.</p>
798
- * @public
799
- */
800
- export interface DeleteResourcePolicyRequest {
801
- /**
802
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
803
- * @public
804
- */
805
- resourceArn: string | undefined;
806
- /**
807
- * <p>The revision ID of the policy. Use this to prevent deleting a policy that has been updated since you last retrieved it. If you don't specify a value, the policy is deleted regardless of its current revision.</p>
808
- * @public
809
- */
810
- revisionId?: string | undefined;
811
- }
812
- /**
813
- * <p>The request to delete a web function.</p>
814
- * @public
815
- */
816
- export interface DeleteWebFunctionRequest {
817
- /**
818
- * <p>The name of the web function to delete. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
819
- * @public
820
- */
821
- functionName: string | undefined;
822
- }
823
- /**
824
- * <p>The request to delete a web function endpoint.</p>
825
- * @public
826
- */
827
- export interface DeleteWebFunctionEndpointRequest {
828
- /**
829
- * <p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
830
- * @public
831
- */
832
- functionName: string | undefined;
833
- /**
834
- * <p>The name of the endpoint to delete. You can specify the endpoint name or the endpoint ARN. The length constraint applies only to the full ARN. If you specify only the endpoint name, it is limited to 64 characters in length.</p>
835
- * @public
836
- */
837
- endpointName: string | undefined;
838
- }
839
- /**
840
- * <p>The request to delete a web function revision.</p>
841
- * @public
842
- */
843
- export interface DeleteWebFunctionRevisionRequest {
844
- /**
845
- * <p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
846
- * @public
847
- */
848
- functionName: string | undefined;
849
- /**
850
- * <p>The identifier of the revision to delete. You can specify the revision identifier or the revision ARN. The length constraint applies only to the full ARN.</p>
851
- * @public
852
- */
853
- revisionId: string | undefined;
854
- }
855
- /**
856
- * <p>A filter to apply when listing resources.</p>
857
- * @public
858
- */
859
- export interface Filter {
860
- /**
861
- * <p>The name of the filter field.</p>
862
- * @public
863
- */
864
- name: string | undefined;
865
- /**
866
- * <p>The values to match for the filter.</p>
867
- * @public
868
- */
869
- values: string[] | undefined;
870
- }
871
- /**
872
- * <p>A summary of a web function.</p>
873
- * @public
874
- */
875
- export interface FunctionSummary {
876
- /**
877
- * <p>The name of the web function.</p>
878
- * @public
879
- */
880
- functionName: string | undefined;
881
- /**
882
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
883
- * @public
884
- */
885
- functionArn: string | undefined;
886
- /**
887
- * <p>The current state of the web function.</p>
888
- * @public
889
- */
890
- state: FunctionState | undefined;
891
- /**
892
- * <p>The reason for the current state of the web function.</p>
893
- * @public
894
- */
895
- stateReason: string | undefined;
896
- /**
897
- * <p>The date and time the web function was created.</p>
898
- * @public
899
- */
900
- createdAt: Date | undefined;
901
- /**
902
- * <p>The date and time the web function was last updated.</p>
903
- * @public
904
- */
905
- updatedAt: Date | undefined;
906
- }
907
- /**
908
- * <p>The request to retrieve a resource-based policy.</p>
909
- * @public
910
- */
911
- export interface GetResourcePolicyRequest {
912
- /**
913
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
914
- * @public
915
- */
916
- resourceArn: string | undefined;
917
- }
918
- /**
919
- * <p>Contains the resource-based policy and its revision ID.</p>
920
- * @public
921
- */
922
- export interface GetResourcePolicyResponse {
923
- /**
924
- * <p>The JSON-formatted resource-based policy attached to the web function.</p>
925
- * @public
926
- */
927
- policy: string | undefined;
928
- /**
929
- * <p>The revision ID of the policy.</p>
930
- * @public
931
- */
932
- revisionId: string | undefined;
933
- }
934
- /**
935
- * @public
936
- */
937
- export interface GetWebAccountSettingsRequest {
938
- }
939
- /**
940
- * <p>Contains your AWS Lambda Web Functions account quotas and usage for the current AWS Region.</p>
941
- * @public
942
- */
943
- export interface GetWebAccountSettingsResponse {
944
- /**
945
- * <p>The quotas that apply to web functions in your account in the current AWS Region.</p>
946
- * @public
947
- */
948
- accountQuotas: AccountQuotas | undefined;
949
- /**
950
- * <p>The current web function usage for your account in the current AWS Region.</p>
951
- * @public
952
- */
953
- accountUsage: AccountUsage | undefined;
954
- }
955
- /**
956
- * <p>The request to retrieve a web function.</p>
957
- * @public
958
- */
959
- export interface GetWebFunctionRequest {
960
- /**
961
- * <p>The name of the web function to retrieve. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
962
- * @public
963
- */
964
- functionName: string | undefined;
965
- }
966
- /**
967
- * <p>Contains details about the web function.</p>
968
- * @public
969
- */
970
- export interface GetWebFunctionResponse {
971
- /**
972
- * <p>The name of the web function.</p>
973
- * @public
974
- */
975
- functionName: string | undefined;
976
- /**
977
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
978
- * @public
979
- */
980
- functionArn: string | undefined;
981
- /**
982
- * <p>The current state of the web function.</p>
983
- * @public
984
- */
985
- state: FunctionState | undefined;
986
- /**
987
- * <p>The reason for the current state of the web function.</p>
988
- * @public
989
- */
990
- stateReason: string | undefined;
991
- /**
992
- * <p>The date and time the web function was created.</p>
993
- * @public
994
- */
995
- createdAt: Date | undefined;
996
- /**
997
- * <p>The date and time the web function was last updated.</p>
998
- * @public
999
- */
1000
- updatedAt: Date | undefined;
1001
- }
1002
- /**
1003
- * <p>The request to retrieve a web function endpoint.</p>
1004
- * @public
1005
- */
1006
- export interface GetWebFunctionEndpointRequest {
1007
- /**
1008
- * <p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
1009
- * @public
1010
- */
1011
- functionName: string | undefined;
1012
- /**
1013
- * <p>The name of the endpoint to retrieve. You can specify the endpoint name or the endpoint ARN. The length constraint applies only to the full ARN. If you specify only the endpoint name, it is limited to 64 characters in length.</p>
1014
- * @public
1015
- */
1016
- endpointName: string | undefined;
1017
- }
1018
- /**
1019
- * <p>Contains details about the web function endpoint.</p>
1020
- * @public
1021
- */
1022
- export interface GetWebFunctionEndpointResponse {
1023
- /**
1024
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
1025
- * @public
1026
- */
1027
- functionArn: string | undefined;
1028
- /**
1029
- * <p>The Amazon Resource Name (ARN) of the endpoint.</p>
1030
- * @public
1031
- */
1032
- endpointArn: string | undefined;
1033
- /**
1034
- * <p>The name of the endpoint.</p>
1035
- * @public
1036
- */
1037
- endpointName: string | undefined;
1038
- /**
1039
- * <p>The description of the endpoint.</p>
1040
- * @public
1041
- */
1042
- description?: string | undefined;
1043
- /**
1044
- * <p>The type of a web function endpoint. Possible values: <code>HomeRegion</code> (serves from the Region where the function was created), <code>MultiRegion</code> (replicates across chosen Regions and routes to the nearest), <code>PerRegion</code> (separate endpoint per Region).</p>
1045
- * @public
1046
- */
1047
- endpointType: EndpointType | undefined;
1048
- /**
1049
- * <p>The domain name assigned to the endpoint.</p>
1050
- * @public
1051
- */
1052
- domainName: string | undefined;
1053
- /**
1054
- * <p>The authorization type for a web function endpoint. Possible values: <code>ApplicationManaged</code> (the function handles authorization), <code>IamAuth</code> (Lambda authorizes requests with AWS SigV4 and IAM).</p>
1055
- * @public
1056
- */
1057
- authType: AuthType | undefined;
1058
- /**
1059
- * <p>The auto-deployment mode for a web function endpoint. Possible values: <code>LatestRevision</code> (endpoint automatically serves the newest revision), <code>Disabled</code> (revision routing is fixed until explicitly changed).</p>
1060
- * @public
1061
- */
1062
- autoDeploymentMode: AutoDeploymentMode | undefined;
1063
- /**
1064
- * <p>The traffic distribution across revisions for the endpoint. Each entry maps a revision to a weight from 1 to 100.</p>
1065
- * @public
1066
- */
1067
- revisionWeights: RevisionWeight[] | undefined;
1068
- /**
1069
- * <p>The Regions configured for the endpoint.</p>
1070
- * @public
1071
- */
1072
- regions: string[] | undefined;
1073
- /**
1074
- * <p>The scaling configuration for a web function endpoint.</p>
1075
- * @public
1076
- */
1077
- scalingConfig?: ScalingConfig | undefined;
1078
- /**
1079
- * <p>The throttling configuration for a web function endpoint.</p>
1080
- * @public
1081
- */
1082
- throttleConfig?: ThrottleConfig | undefined;
1083
- /**
1084
- * <p>The current state of the endpoint.</p>
1085
- * @public
1086
- */
1087
- state: EndpointState | undefined;
1088
- /**
1089
- * <p>The reason for the current state of the endpoint.</p>
1090
- * @public
1091
- */
1092
- stateReason: string | undefined;
1093
- /**
1094
- * <p>The status of the most recent update to an endpoint. Possible values: <code>InProgress</code> (update is in progress), <code>Successful</code> (update completed successfully), <code>Failed</code> (update failed).</p>
1095
- * @public
1096
- */
1097
- updateStatus?: EndpointUpdateStatus | undefined;
1098
- /**
1099
- * <p>The reason for the endpoint's most recent update status.</p>
1100
- * @public
1101
- */
1102
- updateStatusReason?: string | undefined;
1103
- /**
1104
- * <p>The list of regional endpoint configurations.</p>
1105
- * @public
1106
- */
1107
- regionalEndpoints: Record<string, RegionalEndpoint> | undefined;
1108
- /**
1109
- * <p>The date and time the endpoint was created.</p>
1110
- * @public
1111
- */
1112
- createdAt: Date | undefined;
1113
- /**
1114
- * <p>The date and time the endpoint was last updated.</p>
1115
- * @public
1116
- */
1117
- updatedAt: Date | undefined;
1118
- }
1119
- /**
1120
- * <p>The request to retrieve a web function revision.</p>
1121
- * @public
1122
- */
1123
- export interface GetWebFunctionRevisionRequest {
1124
- /**
1125
- * <p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
1126
- * @public
1127
- */
1128
- functionName: string | undefined;
1129
- /**
1130
- * <p>The identifier of the revision to retrieve. You can specify the revision identifier or the revision ARN. The length constraint applies only to the full ARN.</p>
1131
- * @public
1132
- */
1133
- revisionId: string | undefined;
1134
- }
1135
- /**
1136
- * <p>Contains details about the web function revision.</p>
1137
- * @public
1138
- */
1139
- export interface GetWebFunctionRevisionResponse {
1140
- /**
1141
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
1142
- * @public
1143
- */
1144
- functionArn: string | undefined;
1145
- /**
1146
- * <p>The Amazon Resource Name (ARN) of the revision.</p>
1147
- * @public
1148
- */
1149
- revisionArn: string | undefined;
1150
- /**
1151
- * <p>The identifier of the revision.</p>
1152
- * @public
1153
- */
1154
- revisionId: string | undefined;
1155
- /**
1156
- * <p>The description of the revision.</p>
1157
- * @public
1158
- */
1159
- description?: string | undefined;
1160
- /**
1161
- * <p>The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the revision's code and environment variables.</p>
1162
- * @public
1163
- */
1164
- kmsKeyArn?: string | undefined;
1165
- /**
1166
- * <p>The build configuration for a web function revision, including code location and runtime settings.</p>
1167
- * @public
1168
- */
1169
- buildConfig: BuildConfig | undefined;
1170
- /**
1171
- * <p>The service configuration for a web function revision, including execution role, timeout, concurrency, and telemetry settings.</p>
1172
- * @public
1173
- */
1174
- serviceConfig: ServiceConfig | undefined;
1175
- /**
1176
- * <p>The current state of the revision.</p>
1177
- * @public
1178
- */
1179
- state: RevisionState | undefined;
1180
- /**
1181
- * <p>The reason for the current state of the revision.</p>
1182
- * @public
1183
- */
1184
- stateReason: string | undefined;
1185
- /**
1186
- * <p>A list of errors encountered during revision creation. This field is absent when the revision has no errors.</p>
1187
- * @public
1188
- */
1189
- errors?: RevisionError[] | undefined;
1190
- /**
1191
- * <p>The date and time the revision was created.</p>
1192
- * @public
1193
- */
1194
- createdAt: Date | undefined;
1195
- }
1196
- /**
1197
- * <p>The request to list tags for a resource.</p>
1198
- * @public
1199
- */
1200
- export interface ListTagsRequest {
1201
- /**
1202
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
1203
- * @public
1204
- */
1205
- resource: string | undefined;
1206
- }
1207
- /**
1208
- * <p>Contains the list of tags.</p>
1209
- * @public
1210
- */
1211
- export interface ListTagsResponse {
1212
- /**
1213
- * <p>A map of tag keys and values associated with the web function.</p>
1214
- * @public
1215
- */
1216
- tags?: Record<string, string> | undefined;
1217
- }
1218
- /**
1219
- * <p>The request to add or update a resource-based policy.</p>
1220
- * @public
1221
- */
1222
- export interface PutResourcePolicyRequest {
1223
- /**
1224
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
1225
- * @public
1226
- */
1227
- resourceArn: string | undefined;
1228
- /**
1229
- * <p>The JSON-formatted resource-based policy to attach to the web function.</p>
1230
- * @public
1231
- */
1232
- policy: string | undefined;
1233
- /**
1234
- * <p>The revision ID of the existing policy. Use this to prevent conflicts when updating a policy concurrently. If you don't specify a value, the update proceeds without checking the current revision.</p>
1235
- * @public
1236
- */
1237
- revisionId?: string | undefined;
1238
- }
1239
- /**
1240
- * <p>Contains the resource-based policy and its revision ID.</p>
1241
- * @public
1242
- */
1243
- export interface PutResourcePolicyResponse {
1244
- /**
1245
- * <p>The JSON-formatted resource-based policy attached to the web function.</p>
1246
- * @public
1247
- */
1248
- policy: string | undefined;
1249
- /**
1250
- * <p>The revision ID of the policy. Use this value in subsequent <code>PutResourcePolicy</code> or <code>DeleteResourcePolicy</code> requests to prevent conflicts.</p>
1251
- * @public
1252
- */
1253
- revisionId: string | undefined;
1254
- }
1255
- /**
1256
- * <p>The request to add tags to a resource.</p>
1257
- * @public
1258
- */
1259
- export interface TagResourceRequest {
1260
- /**
1261
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
1262
- * @public
1263
- */
1264
- resource: string | undefined;
1265
- /**
1266
- * <p>A map of tag keys and values to add to the web function.</p>
1267
- * @public
1268
- */
1269
- tags: Record<string, string> | undefined;
1270
- }
1271
- /**
1272
- * <p>The request to remove tags from a resource.</p>
1273
- * @public
1274
- */
1275
- export interface UntagResourceRequest {
1276
- /**
1277
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
1278
- * @public
1279
- */
1280
- resource: string | undefined;
1281
- /**
1282
- * <p>A list of tag keys to remove from the web function.</p>
1283
- * @public
1284
- */
1285
- tagKeys: string[] | undefined;
1286
- }
1287
- /**
1288
- * <p>The request to list web functions.</p>
1289
- * @public
1290
- */
1291
- export interface ListWebFunctionsRequest {
1292
- /**
1293
- * <p>A list of filters to apply to the results. The only supported filter name is <code>state</code>.</p>
1294
- * @public
1295
- */
1296
- filters?: Filter[] | undefined;
1297
- /**
1298
- * <p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 50. Default is 50.</p>
1299
- * @public
1300
- */
1301
- maxResults?: number | undefined;
1302
- /**
1303
- * <p>The pagination token that's returned by a previous request to retrieve the next page of results.</p>
1304
- * @public
1305
- */
1306
- nextToken?: string | undefined;
1307
- }
1308
- /**
1309
- * <p>Contains the list of web functions.</p>
1310
- * @public
1311
- */
1312
- export interface ListWebFunctionsResponse {
1313
- /**
1314
- * <p>A list of web function summaries.</p>
1315
- * @public
1316
- */
1317
- functions: FunctionSummary[] | undefined;
1318
- /**
1319
- * <p>The pagination token that's included if more results are available.</p>
1320
- * @public
1321
- */
1322
- nextToken?: string | undefined;
1323
- }
1324
- /**
1325
- * <p>The request to list web function endpoints.</p>
1326
- * @public
1327
- */
1328
- export interface ListWebFunctionEndpointsRequest {
1329
- /**
1330
- * <p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
1331
- * @public
1332
- */
1333
- functionName: string | undefined;
1334
- /**
1335
- * <p>A list of filters to apply to the results. Supported filter names: <code>authType</code>, <code>autoDeploymentMode</code>, <code>endpointType</code>, <code>state</code>, and <code>updateStatus</code>.</p>
1336
- * @public
1337
- */
1338
- filters?: Filter[] | undefined;
1339
- /**
1340
- * <p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 50. Default is 50.</p>
1341
- * @public
1342
- */
1343
- maxResults?: number | undefined;
1344
- /**
1345
- * <p>The pagination token that's returned by a previous request to retrieve the next page of results.</p>
1346
- * @public
1347
- */
1348
- nextToken?: string | undefined;
1349
- }
1350
- /**
1351
- * <p>Contains the list of web function endpoints.</p>
1352
- * @public
1353
- */
1354
- export interface ListWebFunctionEndpointsResponse {
1355
- /**
1356
- * <p>A list of endpoint summaries for the web function.</p>
1357
- * @public
1358
- */
1359
- endpoints: FunctionEndpointSummary[] | undefined;
1360
- /**
1361
- * <p>The pagination token that's included if more results are available.</p>
1362
- * @public
1363
- */
1364
- nextToken?: string | undefined;
1365
- }
1366
- /**
1367
- * <p>The request to update a web function endpoint.</p>
1368
- * @public
1369
- */
1370
- export interface UpdateWebFunctionEndpointRequest {
1371
- /**
1372
- * <p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
1373
- * @public
1374
- */
1375
- functionName: string | undefined;
1376
- /**
1377
- * <p>The name of the endpoint to update. You can specify the endpoint name or the endpoint ARN. The length constraint applies only to the full ARN. If you specify only the endpoint name, it is limited to 64 characters in length.</p>
1378
- * @public
1379
- */
1380
- endpointName: string | undefined;
1381
- /**
1382
- * <p>A description of the endpoint.</p>
1383
- * @public
1384
- */
1385
- description?: string | undefined;
1386
- /**
1387
- * <p>The authorization type for the endpoint.</p>
1388
- * @public
1389
- */
1390
- authType?: AuthType | undefined;
1391
- /**
1392
- * <p>The auto-deployment mode for the endpoint.</p>
1393
- * @public
1394
- */
1395
- autoDeploymentMode?: AutoDeploymentMode | undefined;
1396
- /**
1397
- * <p>A list of revision weights that determine how traffic is distributed across revisions.</p>
1398
- * @public
1399
- */
1400
- revisionWeights?: RevisionWeight[] | undefined;
1401
- /**
1402
- * <p>The scaling configuration for the endpoint. Omit this field to keep the current scaling configuration. To clear a previously set <code>maxEnvironments</code> value, specify an empty object.</p>
1403
- * @public
1404
- */
1405
- scalingConfig?: ScalingConfig | undefined;
1406
- /**
1407
- * <p>The throttling configuration for the endpoint. Omit this field to keep the current throttling configuration. To clear a previously set <code>rateLimit</code> value, specify an empty object.</p>
1408
- * @public
1409
- */
1410
- throttleConfig?: ThrottleConfig | undefined;
1411
- }
1412
- /**
1413
- * <p>Contains details about the updated endpoint.</p>
1414
- * @public
1415
- */
1416
- export interface UpdateWebFunctionEndpointResponse {
1417
- /**
1418
- * <p>The Amazon Resource Name (ARN) of the web function.</p>
1419
- * @public
1420
- */
1421
- functionArn: string | undefined;
1422
- /**
1423
- * <p>The Amazon Resource Name (ARN) of the endpoint.</p>
1424
- * @public
1425
- */
1426
- endpointArn: string | undefined;
1427
- /**
1428
- * <p>The name of the endpoint.</p>
1429
- * @public
1430
- */
1431
- endpointName: string | undefined;
1432
- /**
1433
- * <p>The description of the endpoint.</p>
1434
- * @public
1435
- */
1436
- description?: string | undefined;
1437
- /**
1438
- * <p>The type of a web function endpoint. Possible values: <code>HomeRegion</code> (serves from the Region where the function was created), <code>MultiRegion</code> (replicates across chosen Regions and routes to the nearest), <code>PerRegion</code> (separate endpoint per Region).</p>
1439
- * @public
1440
- */
1441
- endpointType: EndpointType | undefined;
1442
- /**
1443
- * <p>The domain name assigned to the endpoint.</p>
1444
- * @public
1445
- */
1446
- domainName: string | undefined;
1447
- /**
1448
- * <p>The authorization type for a web function endpoint. Possible values: <code>ApplicationManaged</code> (the function handles authorization), <code>IamAuth</code> (Lambda authorizes requests with AWS SigV4 and IAM).</p>
1449
- * @public
1450
- */
1451
- authType: AuthType | undefined;
1452
- /**
1453
- * <p>The auto-deployment mode for a web function endpoint. Possible values: <code>LatestRevision</code> (endpoint automatically serves the newest revision), <code>Disabled</code> (revision routing is fixed until explicitly changed).</p>
1454
- * @public
1455
- */
1456
- autoDeploymentMode: AutoDeploymentMode | undefined;
1457
- /**
1458
- * <p>The traffic distribution across revisions for the endpoint. Each entry maps a revision to a weight from 1 to 100.</p>
1459
- * @public
1460
- */
1461
- revisionWeights: RevisionWeight[] | undefined;
1462
- /**
1463
- * <p>The Regions configured for the endpoint.</p>
1464
- * @public
1465
- */
1466
- regions: string[] | undefined;
1467
- /**
1468
- * <p>The scaling configuration for a web function endpoint.</p>
1469
- * @public
1470
- */
1471
- scalingConfig?: ScalingConfig | undefined;
1472
- /**
1473
- * <p>The throttling configuration for a web function endpoint.</p>
1474
- * @public
1475
- */
1476
- throttleConfig?: ThrottleConfig | undefined;
1477
- /**
1478
- * <p>The current state of the endpoint.</p>
1479
- * @public
1480
- */
1481
- state: EndpointState | undefined;
1482
- /**
1483
- * <p>The reason for the current state of the endpoint.</p>
1484
- * @public
1485
- */
1486
- stateReason: string | undefined;
1487
- /**
1488
- * <p>The status of the most recent update to an endpoint. Possible values: <code>InProgress</code> (update is in progress), <code>Successful</code> (update completed successfully), <code>Failed</code> (update failed).</p>
1489
- * @public
1490
- */
1491
- updateStatus?: EndpointUpdateStatus | undefined;
1492
- /**
1493
- * <p>The reason for the endpoint's most recent update status.</p>
1494
- * @public
1495
- */
1496
- updateStatusReason?: string | undefined;
1497
- /**
1498
- * <p>The list of regional endpoint configurations.</p>
1499
- * @public
1500
- */
1501
- regionalEndpoints: Record<string, RegionalEndpoint> | undefined;
1502
- /**
1503
- * <p>The date and time the endpoint was created.</p>
1504
- * @public
1505
- */
1506
- createdAt: Date | undefined;
1507
- /**
1508
- * <p>The date and time the endpoint was last updated.</p>
1509
- * @public
1510
- */
1511
- updatedAt: Date | undefined;
1512
- }
1513
- /**
1514
- * <p>The request to list web function revisions.</p>
1515
- * @public
1516
- */
1517
- export interface ListWebFunctionRevisionsRequest {
1518
- /**
1519
- * <p>The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
1520
- * @public
1521
- */
1522
- functionName: string | undefined;
1523
- /**
1524
- * <p>A list of filters to apply to the results. The only supported filter name is <code>state</code>.</p>
1525
- * @public
1526
- */
1527
- filters?: Filter[] | undefined;
1528
- /**
1529
- * <p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 50. Default is 50.</p>
1530
- * @public
1531
- */
1532
- maxResults?: number | undefined;
1533
- /**
1534
- * <p>The pagination token that's returned by a previous request to retrieve the next page of results.</p>
1535
- * @public
1536
- */
1537
- nextToken?: string | undefined;
41
+ export interface GetWebAccountSettingsRequest {
1538
42
  }
1539
43
  /**
1540
- * <p>Contains the list of web function revisions.</p>
44
+ * <p>Contains your AWS Lambda Web Functions account quotas and usage for the current AWS Region.</p>
1541
45
  * @public
1542
46
  */
1543
- export interface ListWebFunctionRevisionsResponse {
47
+ export interface GetWebAccountSettingsResponse {
1544
48
  /**
1545
- * <p>A list of revision summaries for the web function.</p>
49
+ * <p>The quotas that apply to web functions in your account in the current AWS Region.</p>
1546
50
  * @public
1547
51
  */
1548
- revisions: FunctionRevisionSummary[] | undefined;
52
+ accountQuotas: AccountQuotas | undefined;
1549
53
  /**
1550
- * <p>The pagination token that's included if more results are available.</p>
54
+ * <p>The current web function usage for your account in the current AWS Region.</p>
1551
55
  * @public
1552
56
  */
1553
- nextToken?: string | undefined;
57
+ accountUsage: AccountUsage | undefined;
1554
58
  }