aws-sdk-lambdaweb 1.2.0 → 1.4.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.
@@ -10,7 +10,9 @@
10
10
  module Aws::LambdaWeb
11
11
  module Types
12
12
 
13
- # You do not have sufficient permissions to perform this operation.
13
+ # You don't have permission to perform this operation. Check the IAM
14
+ # policies for your identity and any resource-based policy on the web
15
+ # function.
14
16
  #
15
17
  # @!attribute [rw] message
16
18
  # A message describing the access denied error.
@@ -60,61 +62,2004 @@ module Aws::LambdaWeb
60
62
  #
61
63
  # @!attribute [rw] function_count
62
64
  # The number of web functions in your account in the current AWS
65
+ # Region. This count includes web functions in all states, not only
66
+ # functions in the `Active` state.
67
+ # @return [Integer]
68
+ #
69
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/AccountUsage AWS API Documentation
70
+ #
71
+ class AccountUsage < Struct.new(
72
+ :function_count)
73
+ SENSITIVE = []
74
+ include Aws::Structure
75
+ end
76
+
77
+ # The build configuration for a web function revision, including code
78
+ # location and runtime settings.
79
+ #
80
+ # @!attribute [rw] code_config
81
+ # The code configuration specifying where the deployment artifact is
82
+ # stored.
83
+ # @return [Types::CodeConfig]
84
+ #
85
+ # @!attribute [rw] runtime_config
86
+ # The runtime configuration for the revision.
87
+ # @return [Types::RuntimeConfig]
88
+ #
89
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/BuildConfig AWS API Documentation
90
+ #
91
+ class BuildConfig < Struct.new(
92
+ :code_config,
93
+ :runtime_config)
94
+ SENSITIVE = []
95
+ include Aws::Structure
96
+ end
97
+
98
+ # The code configuration specifying the location of the deployment
99
+ # artifact.
100
+ #
101
+ # @!attribute [rw] s3_object
102
+ # The Amazon S3 location of the deployment artifact.
103
+ # @return [Types::S3Object]
104
+ #
105
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/CodeConfig AWS API Documentation
106
+ #
107
+ class CodeConfig < Struct.new(
108
+ :s3_object)
109
+ SENSITIVE = []
110
+ include Aws::Structure
111
+ end
112
+
113
+ # The request conflicts with the current state of the resource. For
114
+ # example, the resource is being modified by another request, you tried
115
+ # to delete a revision that is serving traffic on an endpoint, or the
116
+ # policy revision ID that you specified doesn't match the current
117
+ # policy. Resolve the conflict and try again.
118
+ #
119
+ # @!attribute [rw] message
120
+ # A message describing the conflict.
121
+ # @return [String]
122
+ #
123
+ # @!attribute [rw] resource_id
124
+ # The identifier of the resource in conflict.
125
+ # @return [String]
126
+ #
127
+ # @!attribute [rw] resource_type
128
+ # The type of the resource in conflict.
129
+ # @return [String]
130
+ #
131
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ConflictException AWS API Documentation
132
+ #
133
+ class ConflictException < Struct.new(
134
+ :message,
135
+ :resource_id,
136
+ :resource_type)
137
+ SENSITIVE = []
138
+ include Aws::Structure
139
+ end
140
+
141
+ # The request to create a web function endpoint.
142
+ #
143
+ # @!attribute [rw] function_name
144
+ # The web function to create the endpoint for.
145
+ #
146
+ # You can specify either of the following:
147
+ #
148
+ # * The function name, for example `my-function`.
149
+ #
150
+ # * The function ARN.
151
+ #
152
+ # The length constraint applies only to the full ARN. If you specify
153
+ # only the function name, it is limited to 64 characters in length.
154
+ # @return [String]
155
+ #
156
+ # @!attribute [rw] endpoint_name
157
+ # The name of the endpoint to create. The name can contain letters,
158
+ # numbers, hyphens (-), and underscores (\_), and can't begin or end
159
+ # with a hyphen or an underscore. The name is limited to 64 characters
160
+ # in length.
161
+ # @return [String]
162
+ #
163
+ # @!attribute [rw] description
164
+ # A description of the endpoint.
165
+ # @return [String]
166
+ #
167
+ # @!attribute [rw] endpoint_type
168
+ # The type of endpoint to create. Determines how traffic is served and
169
+ # routed across Regions.
170
+ #
171
+ # Valid values:
172
+ #
173
+ # * `HomeRegion` – Serves traffic from the Region where you created
174
+ # the web function.
175
+ #
176
+ # * `MultiRegion` – Replicates across the Regions that you choose and
177
+ # routes each request to the nearest one.
178
+ #
179
+ # * `PerRegion` – Creates a separate endpoint in each Region that you
180
+ # choose.
181
+ # @return [String]
182
+ #
183
+ # @!attribute [rw] auth_type
184
+ # The authorization type for the endpoint.
185
+ #
186
+ # Valid values:
187
+ #
188
+ # * `ApplicationManaged` – Your application handles authorization.
189
+ #
190
+ # * `IamAuth` – Lambda uses IAM to authorize requests, which must be
191
+ # signed with Signature Version 4 (SigV4).
192
+ # @return [String]
193
+ #
194
+ # @!attribute [rw] auto_deployment_mode
195
+ # The auto-deployment mode for the endpoint. Controls whether the
196
+ # endpoint automatically serves the newest revision. If you don't
197
+ # specify a value, the default is `Disabled`, and this default is
198
+ # returned in the response.
199
+ #
200
+ # Valid values:
201
+ #
202
+ # * `LatestRevision` – The endpoint automatically serves the newest
203
+ # revision.
204
+ #
205
+ # * `Disabled` – Revision routing stays fixed until you change it.
206
+ # @return [String]
207
+ #
208
+ # @!attribute [rw] revision_weights
209
+ # A list of revision weights that determine how traffic is distributed
210
+ # across revisions. You can specify up to two revisions for canary or
211
+ # blue-green deployments.
212
+ # @return [Array<Types::RevisionWeight>]
213
+ #
214
+ # @!attribute [rw] regions
215
+ # The list of Regions for the endpoint. Required when the endpoint
216
+ # type is `MultiRegion` or `PerRegion`: specify at least one Region
217
+ # other than the Region where you create the endpoint (the home
218
+ # Region). The home Region is added automatically if you don't
219
+ # include it; specifying only the home Region isn't allowed. When the
220
+ # endpoint type is `HomeRegion`, omit this field or specify only the
221
+ # home Region.
222
+ # @return [Array<String>]
223
+ #
224
+ # @!attribute [rw] scaling_config
225
+ # The scaling configuration for the endpoint. There is no default
226
+ # value. If you don't specify a scaling configuration, it is absent
227
+ # from the response.
228
+ # @return [Types::ScalingConfig]
229
+ #
230
+ # @!attribute [rw] throttle_config
231
+ # The throttling configuration for the endpoint. There is no default
232
+ # value. If you don't specify a throttling configuration, it is
233
+ # absent from the response.
234
+ # @return [Types::ThrottleConfig]
235
+ #
236
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/CreateWebFunctionEndpointRequest AWS API Documentation
237
+ #
238
+ class CreateWebFunctionEndpointRequest < Struct.new(
239
+ :function_name,
240
+ :endpoint_name,
241
+ :description,
242
+ :endpoint_type,
243
+ :auth_type,
244
+ :auto_deployment_mode,
245
+ :revision_weights,
246
+ :regions,
247
+ :scaling_config,
248
+ :throttle_config)
249
+ SENSITIVE = []
250
+ include Aws::Structure
251
+ end
252
+
253
+ # Contains details about the created endpoint.
254
+ #
255
+ # @!attribute [rw] function_arn
256
+ # The Amazon Resource Name (ARN) of the web function.
257
+ # @return [String]
258
+ #
259
+ # @!attribute [rw] endpoint_arn
260
+ # The Amazon Resource Name (ARN) of the endpoint.
261
+ # @return [String]
262
+ #
263
+ # @!attribute [rw] endpoint_name
264
+ # The name of the endpoint.
265
+ # @return [String]
266
+ #
267
+ # @!attribute [rw] description
268
+ # The description of the endpoint.
269
+ # @return [String]
270
+ #
271
+ # @!attribute [rw] endpoint_type
272
+ # The type of a web function endpoint.
273
+ #
274
+ # Valid values:
275
+ #
276
+ # * `HomeRegion` – Serves traffic from the Region where you created
277
+ # the web function.
278
+ #
279
+ # * `MultiRegion` – Replicates across the Regions that you choose and
280
+ # routes each request to the nearest one.
281
+ #
282
+ # * `PerRegion` – Creates a separate endpoint in each Region that you
283
+ # choose.
284
+ # @return [String]
285
+ #
286
+ # @!attribute [rw] domain_name
287
+ # The domain name assigned to the endpoint.
288
+ # @return [String]
289
+ #
290
+ # @!attribute [rw] auth_type
291
+ # The authorization type for a web function endpoint.
292
+ #
293
+ # Valid values:
294
+ #
295
+ # * `ApplicationManaged` – Your application handles authorization.
296
+ #
297
+ # * `IamAuth` – Lambda uses IAM to authorize requests, which must be
298
+ # signed with Signature Version 4 (SigV4).
299
+ # @return [String]
300
+ #
301
+ # @!attribute [rw] auto_deployment_mode
302
+ # The auto-deployment mode for a web function endpoint.
303
+ #
304
+ # Valid values:
305
+ #
306
+ # * `LatestRevision` – The endpoint automatically serves the newest
307
+ # revision.
308
+ #
309
+ # * `Disabled` – Revision routing stays fixed until you change it.
310
+ # @return [String]
311
+ #
312
+ # @!attribute [rw] revision_weights
313
+ # The traffic distribution across revisions for the endpoint. Each
314
+ # entry maps a revision to a weight from 1 to 100.
315
+ # @return [Array<Types::RevisionWeight>]
316
+ #
317
+ # @!attribute [rw] regions
318
+ # The Regions configured for the endpoint.
319
+ # @return [Array<String>]
320
+ #
321
+ # @!attribute [rw] scaling_config
322
+ # The scaling configuration for a web function endpoint.
323
+ # @return [Types::ScalingConfig]
324
+ #
325
+ # @!attribute [rw] throttle_config
326
+ # The throttling configuration for a web function endpoint.
327
+ # @return [Types::ThrottleConfig]
328
+ #
329
+ # @!attribute [rw] state
330
+ # The current state of the endpoint.
331
+ # @return [String]
332
+ #
333
+ # @!attribute [rw] state_reason
334
+ # The reason for the current state of the endpoint.
335
+ # @return [String]
336
+ #
337
+ # @!attribute [rw] update_status
338
+ # The status of the most recent update to an endpoint. Possible
339
+ # values:
340
+ #
341
+ # * `InProgress` – The update is in progress.
342
+ #
343
+ # * `Successful` – The update completed successfully.
344
+ #
345
+ # * `Failed` – The update failed.
346
+ # @return [String]
347
+ #
348
+ # @!attribute [rw] update_status_reason
349
+ # The reason for the endpoint's most recent update status.
350
+ # @return [String]
351
+ #
352
+ # @!attribute [rw] regional_endpoints
353
+ # The list of regional endpoint configurations.
354
+ # @return [Hash<String,Types::RegionalEndpoint>]
355
+ #
356
+ # @!attribute [rw] created_at
357
+ # The date and time the endpoint was created.
358
+ # @return [Time]
359
+ #
360
+ # @!attribute [rw] updated_at
361
+ # The date and time the endpoint was last updated.
362
+ # @return [Time]
363
+ #
364
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/CreateWebFunctionEndpointResponse AWS API Documentation
365
+ #
366
+ class CreateWebFunctionEndpointResponse < Struct.new(
367
+ :function_arn,
368
+ :endpoint_arn,
369
+ :endpoint_name,
370
+ :description,
371
+ :endpoint_type,
372
+ :domain_name,
373
+ :auth_type,
374
+ :auto_deployment_mode,
375
+ :revision_weights,
376
+ :regions,
377
+ :scaling_config,
378
+ :throttle_config,
379
+ :state,
380
+ :state_reason,
381
+ :update_status,
382
+ :update_status_reason,
383
+ :regional_endpoints,
384
+ :created_at,
385
+ :updated_at)
386
+ SENSITIVE = []
387
+ include Aws::Structure
388
+ end
389
+
390
+ # The request to create a web function.
391
+ #
392
+ # @!attribute [rw] function_name
393
+ # The name of the web function. The name can contain letters, numbers,
394
+ # hyphens (-), and underscores (\_), and can't begin or end with a
395
+ # hyphen or an underscore. The name is limited to 64 characters in
396
+ # length.
397
+ # @return [String]
398
+ #
399
+ # @!attribute [rw] revision_config
400
+ # The configuration for the initial revision of the web function,
401
+ # including code and service settings.
402
+ # @return [Types::RevisionConfig]
403
+ #
404
+ # @!attribute [rw] endpoint_config
405
+ # The configuration for the initial endpoint of the web function.
406
+ # @return [Types::EndpointConfig]
407
+ #
408
+ # @!attribute [rw] tags
409
+ # A map of tag keys and values to apply to the web function.
410
+ # @return [Hash<String,String>]
411
+ #
412
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/CreateWebFunctionRequest AWS API Documentation
413
+ #
414
+ class CreateWebFunctionRequest < Struct.new(
415
+ :function_name,
416
+ :revision_config,
417
+ :endpoint_config,
418
+ :tags)
419
+ SENSITIVE = []
420
+ include Aws::Structure
421
+ end
422
+
423
+ # Contains details about the created web function.
424
+ #
425
+ # @!attribute [rw] function_name
426
+ # The name of the web function.
427
+ # @return [String]
428
+ #
429
+ # @!attribute [rw] function_arn
430
+ # The Amazon Resource Name (ARN) of the web function.
431
+ # @return [String]
432
+ #
433
+ # @!attribute [rw] state
434
+ # The current state of the web function.
435
+ # @return [String]
436
+ #
437
+ # @!attribute [rw] state_reason
438
+ # The reason for the current state of the web function.
439
+ # @return [String]
440
+ #
441
+ # @!attribute [rw] created_at
442
+ # The date and time the web function was created.
443
+ # @return [Time]
444
+ #
445
+ # @!attribute [rw] updated_at
446
+ # The date and time the web function was last updated.
447
+ # @return [Time]
448
+ #
449
+ # @!attribute [rw] revision
450
+ # A summary of the initial revision created with the web function.
451
+ # @return [Types::FunctionRevisionSummary]
452
+ #
453
+ # @!attribute [rw] endpoint
454
+ # A summary of the initial endpoint created with the web function.
455
+ # @return [Types::FunctionEndpointSummary]
456
+ #
457
+ # @!attribute [rw] tags
458
+ # A map of tag keys and values associated with the web function.
459
+ # @return [Hash<String,String>]
460
+ #
461
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/CreateWebFunctionResponse AWS API Documentation
462
+ #
463
+ class CreateWebFunctionResponse < Struct.new(
464
+ :function_name,
465
+ :function_arn,
466
+ :state,
467
+ :state_reason,
468
+ :created_at,
469
+ :updated_at,
470
+ :revision,
471
+ :endpoint,
472
+ :tags)
473
+ SENSITIVE = []
474
+ include Aws::Structure
475
+ end
476
+
477
+ # The request to create a web function revision.
478
+ #
479
+ # @!attribute [rw] function_name
480
+ # The web function.
481
+ #
482
+ # You can specify either of the following:
483
+ #
484
+ # * The function name, for example `my-function`.
485
+ #
486
+ # * The function ARN.
487
+ #
488
+ # The length constraint applies only to the full ARN. If you specify
489
+ # only the function name, it is limited to 64 characters in length.
490
+ # @return [String]
491
+ #
492
+ # @!attribute [rw] description
493
+ # A description of the revision.
494
+ # @return [String]
495
+ #
496
+ # @!attribute [rw] kms_key_arn
497
+ # The Amazon Resource Name (ARN) of the AWS Key Management Service
498
+ # (AWS KMS) key used to encrypt the revision's code and environment
499
+ # variables.
500
+ # @return [String]
501
+ #
502
+ # @!attribute [rw] build_config
503
+ # The build configuration for the revision, including code location
504
+ # and runtime settings.
505
+ # @return [Types::BuildConfig]
506
+ #
507
+ # @!attribute [rw] service_config
508
+ # The service configuration for the revision, including execution
509
+ # role, timeout, and concurrency settings.
510
+ # @return [Types::ServiceConfig]
511
+ #
512
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/CreateWebFunctionRevisionRequest AWS API Documentation
513
+ #
514
+ class CreateWebFunctionRevisionRequest < Struct.new(
515
+ :function_name,
516
+ :description,
517
+ :kms_key_arn,
518
+ :build_config,
519
+ :service_config)
520
+ SENSITIVE = []
521
+ include Aws::Structure
522
+ end
523
+
524
+ # Contains details about the created revision.
525
+ #
526
+ # @!attribute [rw] function_arn
527
+ # The Amazon Resource Name (ARN) of the web function.
528
+ # @return [String]
529
+ #
530
+ # @!attribute [rw] revision_arn
531
+ # The Amazon Resource Name (ARN) of the revision.
532
+ # @return [String]
533
+ #
534
+ # @!attribute [rw] revision_id
535
+ # The identifier of the revision.
536
+ # @return [String]
537
+ #
538
+ # @!attribute [rw] description
539
+ # The description of the revision.
540
+ # @return [String]
541
+ #
542
+ # @!attribute [rw] kms_key_arn
543
+ # The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt
544
+ # the revision's code and environment variables.
545
+ # @return [String]
546
+ #
547
+ # @!attribute [rw] build_config
548
+ # The build configuration for a web function revision, including code
549
+ # location and runtime settings.
550
+ # @return [Types::BuildConfig]
551
+ #
552
+ # @!attribute [rw] service_config
553
+ # The service configuration for a web function revision, including
554
+ # execution role, timeout, VPC network access, concurrency, and
555
+ # telemetry settings.
556
+ # @return [Types::ServiceConfig]
557
+ #
558
+ # @!attribute [rw] state
559
+ # The current state of the revision.
560
+ # @return [String]
561
+ #
562
+ # @!attribute [rw] state_reason
563
+ # The reason for the current state of the revision.
564
+ # @return [String]
565
+ #
566
+ # @!attribute [rw] errors
567
+ # A list of errors encountered during revision creation. This field is
568
+ # absent when the revision has no errors.
569
+ # @return [Array<Types::RevisionError>]
570
+ #
571
+ # @!attribute [rw] created_at
572
+ # The date and time the revision was created.
573
+ # @return [Time]
574
+ #
575
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/CreateWebFunctionRevisionResponse AWS API Documentation
576
+ #
577
+ class CreateWebFunctionRevisionResponse < Struct.new(
578
+ :function_arn,
579
+ :revision_arn,
580
+ :revision_id,
581
+ :description,
582
+ :kms_key_arn,
583
+ :build_config,
584
+ :service_config,
585
+ :state,
586
+ :state_reason,
587
+ :errors,
588
+ :created_at)
589
+ SENSITIVE = []
590
+ include Aws::Structure
591
+ end
592
+
593
+ # The request to delete a resource-based policy.
594
+ #
595
+ # @!attribute [rw] resource_arn
596
+ # The Amazon Resource Name (ARN) of the web function.
597
+ # @return [String]
598
+ #
599
+ # @!attribute [rw] revision_id
600
+ # The revision ID of the policy. Use this to prevent deleting a policy
601
+ # that has been updated since you last retrieved it. If you don't
602
+ # specify a value, the policy is deleted regardless of its current
603
+ # revision.
604
+ # @return [String]
605
+ #
606
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/DeleteResourcePolicyRequest AWS API Documentation
607
+ #
608
+ class DeleteResourcePolicyRequest < Struct.new(
609
+ :resource_arn,
610
+ :revision_id)
611
+ SENSITIVE = []
612
+ include Aws::Structure
613
+ end
614
+
615
+ # The request to delete a web function endpoint.
616
+ #
617
+ # @!attribute [rw] function_name
618
+ # The web function.
619
+ #
620
+ # You can specify either of the following:
621
+ #
622
+ # * The function name, for example `my-function`.
623
+ #
624
+ # * The function ARN.
625
+ #
626
+ # The length constraint applies only to the full ARN. If you specify
627
+ # only the function name, it is limited to 64 characters in length.
628
+ # @return [String]
629
+ #
630
+ # @!attribute [rw] endpoint_name
631
+ # The endpoint to delete.
632
+ #
633
+ # You can specify either of the following:
634
+ #
635
+ # * The endpoint name, for example `my-endpoint`.
636
+ #
637
+ # * The endpoint ARN.
638
+ #
639
+ # The length constraint applies only to the full ARN. If you specify
640
+ # only the endpoint name, it is limited to 64 characters in length.
641
+ # @return [String]
642
+ #
643
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/DeleteWebFunctionEndpointRequest AWS API Documentation
644
+ #
645
+ class DeleteWebFunctionEndpointRequest < Struct.new(
646
+ :function_name,
647
+ :endpoint_name)
648
+ SENSITIVE = []
649
+ include Aws::Structure
650
+ end
651
+
652
+ # The request to delete a web function.
653
+ #
654
+ # @!attribute [rw] function_name
655
+ # The web function to delete.
656
+ #
657
+ # You can specify either of the following:
658
+ #
659
+ # * The function name, for example `my-function`.
660
+ #
661
+ # * The function ARN.
662
+ #
663
+ # The length constraint applies only to the full ARN. If you specify
664
+ # only the function name, it is limited to 64 characters in length.
665
+ # @return [String]
666
+ #
667
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/DeleteWebFunctionRequest AWS API Documentation
668
+ #
669
+ class DeleteWebFunctionRequest < Struct.new(
670
+ :function_name)
671
+ SENSITIVE = []
672
+ include Aws::Structure
673
+ end
674
+
675
+ # The request to delete a web function revision.
676
+ #
677
+ # @!attribute [rw] function_name
678
+ # The web function.
679
+ #
680
+ # You can specify either of the following:
681
+ #
682
+ # * The function name, for example `my-function`.
683
+ #
684
+ # * The function ARN.
685
+ #
686
+ # The length constraint applies only to the full ARN. If you specify
687
+ # only the function name, it is limited to 64 characters in length.
688
+ # @return [String]
689
+ #
690
+ # @!attribute [rw] revision_id
691
+ # The revision to delete.
692
+ #
693
+ # You can specify either of the following:
694
+ #
695
+ # * The revision identifier.
696
+ #
697
+ # * The revision ARN.
698
+ #
699
+ # The length constraint applies only to the full ARN.
700
+ # @return [String]
701
+ #
702
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/DeleteWebFunctionRevisionRequest AWS API Documentation
703
+ #
704
+ class DeleteWebFunctionRevisionRequest < Struct.new(
705
+ :function_name,
706
+ :revision_id)
707
+ SENSITIVE = []
708
+ include Aws::Structure
709
+ end
710
+
711
+ # The configuration for a web function endpoint.
712
+ #
713
+ # @!attribute [rw] endpoint_name
714
+ # The name of the endpoint. The name can contain letters, numbers,
715
+ # hyphens (-), and underscores (\_), and can't begin or end with a
716
+ # hyphen or an underscore. The name is limited to 64 characters in
717
+ # length.
718
+ # @return [String]
719
+ #
720
+ # @!attribute [rw] description
721
+ # A description of the endpoint.
722
+ # @return [String]
723
+ #
724
+ # @!attribute [rw] endpoint_type
725
+ # The type of endpoint. Determines how traffic is served and routed
726
+ # across Regions.
727
+ #
728
+ # Valid values:
729
+ #
730
+ # * `HomeRegion` – Serves traffic from the Region where you created
731
+ # the web function.
732
+ #
733
+ # * `MultiRegion` – Replicates across the Regions that you choose and
734
+ # routes each request to the nearest one.
735
+ #
736
+ # * `PerRegion` – Creates a separate endpoint in each Region that you
737
+ # choose.
738
+ # @return [String]
739
+ #
740
+ # @!attribute [rw] auth_type
741
+ # The authorization type for the endpoint.
742
+ #
743
+ # Valid values:
744
+ #
745
+ # * `ApplicationManaged` – Your application handles authorization.
746
+ #
747
+ # * `IamAuth` – Lambda uses IAM to authorize requests, which must be
748
+ # signed with Signature Version 4 (SigV4).
749
+ # @return [String]
750
+ #
751
+ # @!attribute [rw] auto_deployment_mode
752
+ # The auto-deployment mode for the endpoint. If you don't specify a
753
+ # value, the default is `Disabled`, and this default is returned in
754
+ # the response.
755
+ #
756
+ # Valid values:
757
+ #
758
+ # * `LatestRevision` – The endpoint automatically serves the newest
759
+ # revision.
760
+ #
761
+ # * `Disabled` – Revision routing stays fixed until you change it.
762
+ # @return [String]
763
+ #
764
+ # @!attribute [rw] regions
765
+ # The list of Regions for the endpoint. Required when the endpoint
766
+ # type is `MultiRegion` or `PerRegion`: specify at least one Region
767
+ # other than the Region where you create the endpoint (the home
768
+ # Region). The home Region is added automatically if you don't
769
+ # include it; specifying only the home Region isn't allowed. When the
770
+ # endpoint type is `HomeRegion`, omit this field or specify only the
771
+ # home Region.
772
+ # @return [Array<String>]
773
+ #
774
+ # @!attribute [rw] scaling_config
775
+ # The scaling configuration for the endpoint.
776
+ # @return [Types::ScalingConfig]
777
+ #
778
+ # @!attribute [rw] throttle_config
779
+ # The throttling configuration for the endpoint.
780
+ # @return [Types::ThrottleConfig]
781
+ #
782
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/EndpointConfig AWS API Documentation
783
+ #
784
+ class EndpointConfig < Struct.new(
785
+ :endpoint_name,
786
+ :description,
787
+ :endpoint_type,
788
+ :auth_type,
789
+ :auto_deployment_mode,
790
+ :regions,
791
+ :scaling_config,
792
+ :throttle_config)
793
+ SENSITIVE = []
794
+ include Aws::Structure
795
+ end
796
+
797
+ # A filter to apply when listing resources.
798
+ #
799
+ # @!attribute [rw] name
800
+ # The name of the filter field.
801
+ # @return [String]
802
+ #
803
+ # @!attribute [rw] values
804
+ # The values to match for the filter.
805
+ # @return [Array<String>]
806
+ #
807
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/Filter AWS API Documentation
808
+ #
809
+ class Filter < Struct.new(
810
+ :name,
811
+ :values)
812
+ SENSITIVE = []
813
+ include Aws::Structure
814
+ end
815
+
816
+ # A summary of a web function endpoint.
817
+ #
818
+ # @!attribute [rw] endpoint_arn
819
+ # The Amazon Resource Name (ARN) of the endpoint.
820
+ # @return [String]
821
+ #
822
+ # @!attribute [rw] endpoint_name
823
+ # The name of the endpoint.
824
+ # @return [String]
825
+ #
826
+ # @!attribute [rw] description
827
+ # A description of the endpoint.
828
+ # @return [String]
829
+ #
830
+ # @!attribute [rw] endpoint_type
831
+ # The type of the endpoint.
832
+ # @return [String]
833
+ #
834
+ # @!attribute [rw] domain_name
835
+ # The domain name of the endpoint.
836
+ # @return [String]
837
+ #
838
+ # @!attribute [rw] auth_type
839
+ # The authorization type for the endpoint.
840
+ # @return [String]
841
+ #
842
+ # @!attribute [rw] auto_deployment_mode
843
+ # The auto-deployment mode for the endpoint.
844
+ # @return [String]
845
+ #
846
+ # @!attribute [rw] revision_weights
847
+ # The revision weights for the endpoint.
848
+ # @return [Array<Types::RevisionWeight>]
849
+ #
850
+ # @!attribute [rw] regions
851
+ # The list of Regions for the endpoint.
852
+ # @return [Array<String>]
853
+ #
854
+ # @!attribute [rw] scaling_config
855
+ # The scaling configuration for the endpoint. This field is absent if
856
+ # the endpoint has no scaling configuration.
857
+ # @return [Types::ScalingConfig]
858
+ #
859
+ # @!attribute [rw] throttle_config
860
+ # The throttling configuration for the endpoint. This field is absent
861
+ # if the endpoint has no throttling configuration.
862
+ # @return [Types::ThrottleConfig]
863
+ #
864
+ # @!attribute [rw] state
865
+ # The current state of the endpoint.
866
+ # @return [String]
867
+ #
868
+ # @!attribute [rw] state_reason
869
+ # The reason for the current state of the endpoint.
870
+ # @return [String]
871
+ #
872
+ # @!attribute [rw] update_status
873
+ # The status of the most recent update to the endpoint.
874
+ # @return [String]
875
+ #
876
+ # @!attribute [rw] update_status_reason
877
+ # The reason for the current update status of the endpoint.
878
+ # @return [String]
879
+ #
880
+ # @!attribute [rw] created_at
881
+ # The date and time the endpoint was created.
882
+ # @return [Time]
883
+ #
884
+ # @!attribute [rw] updated_at
885
+ # The date and time the endpoint was last updated.
886
+ # @return [Time]
887
+ #
888
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/FunctionEndpointSummary AWS API Documentation
889
+ #
890
+ class FunctionEndpointSummary < Struct.new(
891
+ :endpoint_arn,
892
+ :endpoint_name,
893
+ :description,
894
+ :endpoint_type,
895
+ :domain_name,
896
+ :auth_type,
897
+ :auto_deployment_mode,
898
+ :revision_weights,
899
+ :regions,
900
+ :scaling_config,
901
+ :throttle_config,
902
+ :state,
903
+ :state_reason,
904
+ :update_status,
905
+ :update_status_reason,
906
+ :created_at,
907
+ :updated_at)
908
+ SENSITIVE = []
909
+ include Aws::Structure
910
+ end
911
+
912
+ # A summary of a web function revision.
913
+ #
914
+ # @!attribute [rw] revision_arn
915
+ # The Amazon Resource Name (ARN) of the revision.
916
+ # @return [String]
917
+ #
918
+ # @!attribute [rw] revision_id
919
+ # The identifier of the revision.
920
+ # @return [String]
921
+ #
922
+ # @!attribute [rw] description
923
+ # A description of the revision.
924
+ # @return [String]
925
+ #
926
+ # @!attribute [rw] state
927
+ # The current state of the revision.
928
+ # @return [String]
929
+ #
930
+ # @!attribute [rw] state_reason
931
+ # The reason for the current state of the revision.
932
+ # @return [String]
933
+ #
934
+ # @!attribute [rw] created_at
935
+ # The date and time the revision was created.
936
+ # @return [Time]
937
+ #
938
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/FunctionRevisionSummary AWS API Documentation
939
+ #
940
+ class FunctionRevisionSummary < Struct.new(
941
+ :revision_arn,
942
+ :revision_id,
943
+ :description,
944
+ :state,
945
+ :state_reason,
946
+ :created_at)
947
+ SENSITIVE = []
948
+ include Aws::Structure
949
+ end
950
+
951
+ # A summary of a web function.
952
+ #
953
+ # @!attribute [rw] function_name
954
+ # The name of the web function.
955
+ # @return [String]
956
+ #
957
+ # @!attribute [rw] function_arn
958
+ # The Amazon Resource Name (ARN) of the web function.
959
+ # @return [String]
960
+ #
961
+ # @!attribute [rw] state
962
+ # The current state of the web function.
963
+ # @return [String]
964
+ #
965
+ # @!attribute [rw] state_reason
966
+ # The reason for the current state of the web function.
967
+ # @return [String]
968
+ #
969
+ # @!attribute [rw] created_at
970
+ # The date and time the web function was created.
971
+ # @return [Time]
972
+ #
973
+ # @!attribute [rw] updated_at
974
+ # The date and time the web function was last updated.
975
+ # @return [Time]
976
+ #
977
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/FunctionSummary AWS API Documentation
978
+ #
979
+ class FunctionSummary < Struct.new(
980
+ :function_name,
981
+ :function_arn,
982
+ :state,
983
+ :state_reason,
984
+ :created_at,
985
+ :updated_at)
986
+ SENSITIVE = []
987
+ include Aws::Structure
988
+ end
989
+
990
+ # The request to retrieve a resource-based policy.
991
+ #
992
+ # @!attribute [rw] resource_arn
993
+ # The Amazon Resource Name (ARN) of the web function.
994
+ # @return [String]
995
+ #
996
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetResourcePolicyRequest AWS API Documentation
997
+ #
998
+ class GetResourcePolicyRequest < Struct.new(
999
+ :resource_arn)
1000
+ SENSITIVE = []
1001
+ include Aws::Structure
1002
+ end
1003
+
1004
+ # Contains the resource-based policy and its revision ID.
1005
+ #
1006
+ # @!attribute [rw] policy
1007
+ # The JSON-formatted resource-based policy attached to the web
1008
+ # function.
1009
+ # @return [String]
1010
+ #
1011
+ # @!attribute [rw] revision_id
1012
+ # The revision ID of the policy.
1013
+ # @return [String]
1014
+ #
1015
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetResourcePolicyResponse AWS API Documentation
1016
+ #
1017
+ class GetResourcePolicyResponse < Struct.new(
1018
+ :policy,
1019
+ :revision_id)
1020
+ SENSITIVE = []
1021
+ include Aws::Structure
1022
+ end
1023
+
1024
+ # @api private
1025
+ #
1026
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebAccountSettingsRequest AWS API Documentation
1027
+ #
1028
+ class GetWebAccountSettingsRequest < Aws::EmptyStructure; end
1029
+
1030
+ # Contains your AWS Lambda Web Functions account quotas and usage for
1031
+ # the current AWS Region.
1032
+ #
1033
+ # @!attribute [rw] account_quotas
1034
+ # The quotas that apply to web functions in your account in the
1035
+ # current AWS Region.
1036
+ # @return [Types::AccountQuotas]
1037
+ #
1038
+ # @!attribute [rw] account_usage
1039
+ # The current web function usage for your account in the current AWS
63
1040
  # Region.
1041
+ # @return [Types::AccountUsage]
1042
+ #
1043
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebAccountSettingsResponse AWS API Documentation
1044
+ #
1045
+ class GetWebAccountSettingsResponse < Struct.new(
1046
+ :account_quotas,
1047
+ :account_usage)
1048
+ SENSITIVE = []
1049
+ include Aws::Structure
1050
+ end
1051
+
1052
+ # The request to retrieve a web function endpoint.
1053
+ #
1054
+ # @!attribute [rw] function_name
1055
+ # The web function.
1056
+ #
1057
+ # You can specify either of the following:
1058
+ #
1059
+ # * The function name, for example `my-function`.
1060
+ #
1061
+ # * The function ARN.
1062
+ #
1063
+ # The length constraint applies only to the full ARN. If you specify
1064
+ # only the function name, it is limited to 64 characters in length.
1065
+ # @return [String]
1066
+ #
1067
+ # @!attribute [rw] endpoint_name
1068
+ # The endpoint to retrieve.
1069
+ #
1070
+ # You can specify either of the following:
1071
+ #
1072
+ # * The endpoint name, for example `my-endpoint`.
1073
+ #
1074
+ # * The endpoint ARN.
1075
+ #
1076
+ # The length constraint applies only to the full ARN. If you specify
1077
+ # only the endpoint name, it is limited to 64 characters in length.
1078
+ # @return [String]
1079
+ #
1080
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebFunctionEndpointRequest AWS API Documentation
1081
+ #
1082
+ class GetWebFunctionEndpointRequest < Struct.new(
1083
+ :function_name,
1084
+ :endpoint_name)
1085
+ SENSITIVE = []
1086
+ include Aws::Structure
1087
+ end
1088
+
1089
+ # Contains details about the web function endpoint.
1090
+ #
1091
+ # @!attribute [rw] function_arn
1092
+ # The Amazon Resource Name (ARN) of the web function.
1093
+ # @return [String]
1094
+ #
1095
+ # @!attribute [rw] endpoint_arn
1096
+ # The Amazon Resource Name (ARN) of the endpoint.
1097
+ # @return [String]
1098
+ #
1099
+ # @!attribute [rw] endpoint_name
1100
+ # The name of the endpoint.
1101
+ # @return [String]
1102
+ #
1103
+ # @!attribute [rw] description
1104
+ # The description of the endpoint.
1105
+ # @return [String]
1106
+ #
1107
+ # @!attribute [rw] endpoint_type
1108
+ # The type of a web function endpoint.
1109
+ #
1110
+ # Valid values:
1111
+ #
1112
+ # * `HomeRegion` – Serves traffic from the Region where you created
1113
+ # the web function.
1114
+ #
1115
+ # * `MultiRegion` – Replicates across the Regions that you choose and
1116
+ # routes each request to the nearest one.
1117
+ #
1118
+ # * `PerRegion` – Creates a separate endpoint in each Region that you
1119
+ # choose.
1120
+ # @return [String]
1121
+ #
1122
+ # @!attribute [rw] domain_name
1123
+ # The domain name assigned to the endpoint.
1124
+ # @return [String]
1125
+ #
1126
+ # @!attribute [rw] auth_type
1127
+ # The authorization type for a web function endpoint.
1128
+ #
1129
+ # Valid values:
1130
+ #
1131
+ # * `ApplicationManaged` – Your application handles authorization.
1132
+ #
1133
+ # * `IamAuth` – Lambda uses IAM to authorize requests, which must be
1134
+ # signed with Signature Version 4 (SigV4).
1135
+ # @return [String]
1136
+ #
1137
+ # @!attribute [rw] auto_deployment_mode
1138
+ # The auto-deployment mode for a web function endpoint.
1139
+ #
1140
+ # Valid values:
1141
+ #
1142
+ # * `LatestRevision` – The endpoint automatically serves the newest
1143
+ # revision.
1144
+ #
1145
+ # * `Disabled` – Revision routing stays fixed until you change it.
1146
+ # @return [String]
1147
+ #
1148
+ # @!attribute [rw] revision_weights
1149
+ # The traffic distribution across revisions for the endpoint. Each
1150
+ # entry maps a revision to a weight from 1 to 100.
1151
+ # @return [Array<Types::RevisionWeight>]
1152
+ #
1153
+ # @!attribute [rw] regions
1154
+ # The Regions configured for the endpoint.
1155
+ # @return [Array<String>]
1156
+ #
1157
+ # @!attribute [rw] scaling_config
1158
+ # The scaling configuration for a web function endpoint.
1159
+ # @return [Types::ScalingConfig]
1160
+ #
1161
+ # @!attribute [rw] throttle_config
1162
+ # The throttling configuration for a web function endpoint.
1163
+ # @return [Types::ThrottleConfig]
1164
+ #
1165
+ # @!attribute [rw] state
1166
+ # The current state of the endpoint.
1167
+ # @return [String]
1168
+ #
1169
+ # @!attribute [rw] state_reason
1170
+ # The reason for the current state of the endpoint.
1171
+ # @return [String]
1172
+ #
1173
+ # @!attribute [rw] update_status
1174
+ # The status of the most recent update to an endpoint. Possible
1175
+ # values:
1176
+ #
1177
+ # * `InProgress` – The update is in progress.
1178
+ #
1179
+ # * `Successful` – The update completed successfully.
1180
+ #
1181
+ # * `Failed` – The update failed.
1182
+ # @return [String]
1183
+ #
1184
+ # @!attribute [rw] update_status_reason
1185
+ # The reason for the endpoint's most recent update status.
1186
+ # @return [String]
1187
+ #
1188
+ # @!attribute [rw] regional_endpoints
1189
+ # The list of regional endpoint configurations.
1190
+ # @return [Hash<String,Types::RegionalEndpoint>]
1191
+ #
1192
+ # @!attribute [rw] created_at
1193
+ # The date and time the endpoint was created.
1194
+ # @return [Time]
1195
+ #
1196
+ # @!attribute [rw] updated_at
1197
+ # The date and time the endpoint was last updated.
1198
+ # @return [Time]
1199
+ #
1200
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebFunctionEndpointResponse AWS API Documentation
1201
+ #
1202
+ class GetWebFunctionEndpointResponse < Struct.new(
1203
+ :function_arn,
1204
+ :endpoint_arn,
1205
+ :endpoint_name,
1206
+ :description,
1207
+ :endpoint_type,
1208
+ :domain_name,
1209
+ :auth_type,
1210
+ :auto_deployment_mode,
1211
+ :revision_weights,
1212
+ :regions,
1213
+ :scaling_config,
1214
+ :throttle_config,
1215
+ :state,
1216
+ :state_reason,
1217
+ :update_status,
1218
+ :update_status_reason,
1219
+ :regional_endpoints,
1220
+ :created_at,
1221
+ :updated_at)
1222
+ SENSITIVE = []
1223
+ include Aws::Structure
1224
+ end
1225
+
1226
+ # The request to retrieve a web function.
1227
+ #
1228
+ # @!attribute [rw] function_name
1229
+ # The web function to retrieve.
1230
+ #
1231
+ # You can specify either of the following:
1232
+ #
1233
+ # * The function name, for example `my-function`.
1234
+ #
1235
+ # * The function ARN.
1236
+ #
1237
+ # The length constraint applies only to the full ARN. If you specify
1238
+ # only the function name, it is limited to 64 characters in length.
1239
+ # @return [String]
1240
+ #
1241
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebFunctionRequest AWS API Documentation
1242
+ #
1243
+ class GetWebFunctionRequest < Struct.new(
1244
+ :function_name)
1245
+ SENSITIVE = []
1246
+ include Aws::Structure
1247
+ end
1248
+
1249
+ # Contains details about the web function.
1250
+ #
1251
+ # @!attribute [rw] function_name
1252
+ # The name of the web function.
1253
+ # @return [String]
1254
+ #
1255
+ # @!attribute [rw] function_arn
1256
+ # The Amazon Resource Name (ARN) of the web function.
1257
+ # @return [String]
1258
+ #
1259
+ # @!attribute [rw] state
1260
+ # The current state of the web function.
1261
+ # @return [String]
1262
+ #
1263
+ # @!attribute [rw] state_reason
1264
+ # The reason for the current state of the web function.
1265
+ # @return [String]
1266
+ #
1267
+ # @!attribute [rw] created_at
1268
+ # The date and time the web function was created.
1269
+ # @return [Time]
1270
+ #
1271
+ # @!attribute [rw] updated_at
1272
+ # The date and time the web function was last updated.
1273
+ # @return [Time]
1274
+ #
1275
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebFunctionResponse AWS API Documentation
1276
+ #
1277
+ class GetWebFunctionResponse < Struct.new(
1278
+ :function_name,
1279
+ :function_arn,
1280
+ :state,
1281
+ :state_reason,
1282
+ :created_at,
1283
+ :updated_at)
1284
+ SENSITIVE = []
1285
+ include Aws::Structure
1286
+ end
1287
+
1288
+ # The request to retrieve a web function revision.
1289
+ #
1290
+ # @!attribute [rw] function_name
1291
+ # The web function.
1292
+ #
1293
+ # You can specify either of the following:
1294
+ #
1295
+ # * The function name, for example `my-function`.
1296
+ #
1297
+ # * The function ARN.
1298
+ #
1299
+ # The length constraint applies only to the full ARN. If you specify
1300
+ # only the function name, it is limited to 64 characters in length.
1301
+ # @return [String]
1302
+ #
1303
+ # @!attribute [rw] revision_id
1304
+ # The revision to retrieve.
1305
+ #
1306
+ # You can specify either of the following:
1307
+ #
1308
+ # * The revision identifier.
1309
+ #
1310
+ # * The revision ARN.
1311
+ #
1312
+ # The length constraint applies only to the full ARN.
1313
+ # @return [String]
1314
+ #
1315
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebFunctionRevisionRequest AWS API Documentation
1316
+ #
1317
+ class GetWebFunctionRevisionRequest < Struct.new(
1318
+ :function_name,
1319
+ :revision_id)
1320
+ SENSITIVE = []
1321
+ include Aws::Structure
1322
+ end
1323
+
1324
+ # Contains details about the web function revision.
1325
+ #
1326
+ # @!attribute [rw] function_arn
1327
+ # The Amazon Resource Name (ARN) of the web function.
1328
+ # @return [String]
1329
+ #
1330
+ # @!attribute [rw] revision_arn
1331
+ # The Amazon Resource Name (ARN) of the revision.
1332
+ # @return [String]
1333
+ #
1334
+ # @!attribute [rw] revision_id
1335
+ # The identifier of the revision.
1336
+ # @return [String]
1337
+ #
1338
+ # @!attribute [rw] description
1339
+ # The description of the revision.
1340
+ # @return [String]
1341
+ #
1342
+ # @!attribute [rw] kms_key_arn
1343
+ # The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt
1344
+ # the revision's code and environment variables.
1345
+ # @return [String]
1346
+ #
1347
+ # @!attribute [rw] build_config
1348
+ # The build configuration for a web function revision, including code
1349
+ # location and runtime settings.
1350
+ # @return [Types::BuildConfig]
1351
+ #
1352
+ # @!attribute [rw] service_config
1353
+ # The service configuration for a web function revision, including
1354
+ # execution role, timeout, VPC network access, concurrency, and
1355
+ # telemetry settings.
1356
+ # @return [Types::ServiceConfig]
1357
+ #
1358
+ # @!attribute [rw] state
1359
+ # The current state of the revision.
1360
+ # @return [String]
1361
+ #
1362
+ # @!attribute [rw] state_reason
1363
+ # The reason for the current state of the revision.
1364
+ # @return [String]
1365
+ #
1366
+ # @!attribute [rw] errors
1367
+ # A list of errors encountered during revision creation. This field is
1368
+ # absent when the revision has no errors.
1369
+ # @return [Array<Types::RevisionError>]
1370
+ #
1371
+ # @!attribute [rw] created_at
1372
+ # The date and time the revision was created.
1373
+ # @return [Time]
1374
+ #
1375
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebFunctionRevisionResponse AWS API Documentation
1376
+ #
1377
+ class GetWebFunctionRevisionResponse < Struct.new(
1378
+ :function_arn,
1379
+ :revision_arn,
1380
+ :revision_id,
1381
+ :description,
1382
+ :kms_key_arn,
1383
+ :build_config,
1384
+ :service_config,
1385
+ :state,
1386
+ :state_reason,
1387
+ :errors,
1388
+ :created_at)
1389
+ SENSITIVE = []
1390
+ include Aws::Structure
1391
+ end
1392
+
1393
+ # The request failed because of an internal error in the service. Retry
1394
+ # the request. If the error persists, open a support case.
1395
+ #
1396
+ # @!attribute [rw] message
1397
+ # A message describing the internal error.
1398
+ # @return [String]
1399
+ #
1400
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/InternalServerException AWS API Documentation
1401
+ #
1402
+ class InternalServerException < Struct.new(
1403
+ :message)
1404
+ SENSITIVE = []
1405
+ include Aws::Structure
1406
+ end
1407
+
1408
+ # The request to list tags for a resource.
1409
+ #
1410
+ # @!attribute [rw] resource
1411
+ # The Amazon Resource Name (ARN) of the web function.
1412
+ # @return [String]
1413
+ #
1414
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListTagsRequest AWS API Documentation
1415
+ #
1416
+ class ListTagsRequest < Struct.new(
1417
+ :resource)
1418
+ SENSITIVE = []
1419
+ include Aws::Structure
1420
+ end
1421
+
1422
+ # Contains the list of tags.
1423
+ #
1424
+ # @!attribute [rw] tags
1425
+ # A map of tag keys and values associated with the web function.
1426
+ # @return [Hash<String,String>]
1427
+ #
1428
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListTagsResponse AWS API Documentation
1429
+ #
1430
+ class ListTagsResponse < Struct.new(
1431
+ :tags)
1432
+ SENSITIVE = []
1433
+ include Aws::Structure
1434
+ end
1435
+
1436
+ # The request to list web function endpoints.
1437
+ #
1438
+ # @!attribute [rw] function_name
1439
+ # The web function.
1440
+ #
1441
+ # You can specify either of the following:
1442
+ #
1443
+ # * The function name, for example `my-function`.
1444
+ #
1445
+ # * The function ARN.
1446
+ #
1447
+ # The length constraint applies only to the full ARN. If you specify
1448
+ # only the function name, it is limited to 64 characters in length.
1449
+ # @return [String]
1450
+ #
1451
+ # @!attribute [rw] filters
1452
+ # A list of filters to apply to the results. Supported filter names:
1453
+ # `authType`, `autoDeploymentMode`, `endpointType`, `state`, and
1454
+ # `updateStatus`. If you don't specify a filter, the operation
1455
+ # returns all endpoints for the web function.
1456
+ # @return [Array<Types::Filter>]
1457
+ #
1458
+ # @!attribute [rw] max_results
1459
+ # The maximum number of results to return in a single call. Minimum
1460
+ # value of 1, maximum value of 50. Default is 50.
1461
+ # @return [Integer]
1462
+ #
1463
+ # @!attribute [rw] next_token
1464
+ # The pagination token that's returned by a previous request to
1465
+ # retrieve the next page of results.
1466
+ # @return [String]
1467
+ #
1468
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListWebFunctionEndpointsRequest AWS API Documentation
1469
+ #
1470
+ class ListWebFunctionEndpointsRequest < Struct.new(
1471
+ :function_name,
1472
+ :filters,
1473
+ :max_results,
1474
+ :next_token)
1475
+ SENSITIVE = []
1476
+ include Aws::Structure
1477
+ end
1478
+
1479
+ # Contains the list of web function endpoints.
1480
+ #
1481
+ # @!attribute [rw] endpoints
1482
+ # A list of endpoint summaries for the web function.
1483
+ # @return [Array<Types::FunctionEndpointSummary>]
1484
+ #
1485
+ # @!attribute [rw] next_token
1486
+ # The pagination token that's included if more results are available.
1487
+ # Use this value as the `nextToken` request parameter in a subsequent
1488
+ # call to retrieve the next page of results.
1489
+ # @return [String]
1490
+ #
1491
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListWebFunctionEndpointsResponse AWS API Documentation
1492
+ #
1493
+ class ListWebFunctionEndpointsResponse < Struct.new(
1494
+ :endpoints,
1495
+ :next_token)
1496
+ SENSITIVE = []
1497
+ include Aws::Structure
1498
+ end
1499
+
1500
+ # The request to list web function revisions.
1501
+ #
1502
+ # @!attribute [rw] function_name
1503
+ # The web function.
1504
+ #
1505
+ # You can specify either of the following:
1506
+ #
1507
+ # * The function name, for example `my-function`.
1508
+ #
1509
+ # * The function ARN.
1510
+ #
1511
+ # The length constraint applies only to the full ARN. If you specify
1512
+ # only the function name, it is limited to 64 characters in length.
1513
+ # @return [String]
1514
+ #
1515
+ # @!attribute [rw] filters
1516
+ # A list of filters to apply to the results. The only supported filter
1517
+ # name is `state`. If you don't specify a filter, the operation
1518
+ # returns all revisions for the web function.
1519
+ # @return [Array<Types::Filter>]
1520
+ #
1521
+ # @!attribute [rw] max_results
1522
+ # The maximum number of results to return in a single call. Minimum
1523
+ # value of 1, maximum value of 50. Default is 50.
1524
+ # @return [Integer]
1525
+ #
1526
+ # @!attribute [rw] next_token
1527
+ # The pagination token that's returned by a previous request to
1528
+ # retrieve the next page of results.
1529
+ # @return [String]
1530
+ #
1531
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListWebFunctionRevisionsRequest AWS API Documentation
1532
+ #
1533
+ class ListWebFunctionRevisionsRequest < Struct.new(
1534
+ :function_name,
1535
+ :filters,
1536
+ :max_results,
1537
+ :next_token)
1538
+ SENSITIVE = []
1539
+ include Aws::Structure
1540
+ end
1541
+
1542
+ # Contains the list of web function revisions.
1543
+ #
1544
+ # @!attribute [rw] revisions
1545
+ # A list of revision summaries for the web function.
1546
+ # @return [Array<Types::FunctionRevisionSummary>]
1547
+ #
1548
+ # @!attribute [rw] next_token
1549
+ # The pagination token that's included if more results are available.
1550
+ # Use this value as the `nextToken` request parameter in a subsequent
1551
+ # call to retrieve the next page of results.
1552
+ # @return [String]
1553
+ #
1554
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListWebFunctionRevisionsResponse AWS API Documentation
1555
+ #
1556
+ class ListWebFunctionRevisionsResponse < Struct.new(
1557
+ :revisions,
1558
+ :next_token)
1559
+ SENSITIVE = []
1560
+ include Aws::Structure
1561
+ end
1562
+
1563
+ # The request to list web functions.
1564
+ #
1565
+ # @!attribute [rw] filters
1566
+ # A list of filters to apply to the results. The only supported filter
1567
+ # name is `state`. If you don't specify a filter, the operation
1568
+ # returns all web functions.
1569
+ # @return [Array<Types::Filter>]
1570
+ #
1571
+ # @!attribute [rw] max_results
1572
+ # The maximum number of results to return in a single call. Minimum
1573
+ # value of 1, maximum value of 50. Default is 50.
1574
+ # @return [Integer]
1575
+ #
1576
+ # @!attribute [rw] next_token
1577
+ # The pagination token that's returned by a previous request to
1578
+ # retrieve the next page of results.
1579
+ # @return [String]
1580
+ #
1581
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListWebFunctionsRequest AWS API Documentation
1582
+ #
1583
+ class ListWebFunctionsRequest < Struct.new(
1584
+ :filters,
1585
+ :max_results,
1586
+ :next_token)
1587
+ SENSITIVE = []
1588
+ include Aws::Structure
1589
+ end
1590
+
1591
+ # Contains the list of web functions.
1592
+ #
1593
+ # @!attribute [rw] functions
1594
+ # A list of web function summaries.
1595
+ # @return [Array<Types::FunctionSummary>]
1596
+ #
1597
+ # @!attribute [rw] next_token
1598
+ # The pagination token that's included if more results are available.
1599
+ # Use this value as the `nextToken` request parameter in a subsequent
1600
+ # call to retrieve the next page of results.
1601
+ # @return [String]
1602
+ #
1603
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListWebFunctionsResponse AWS API Documentation
1604
+ #
1605
+ class ListWebFunctionsResponse < Struct.new(
1606
+ :functions,
1607
+ :next_token)
1608
+ SENSITIVE = []
1609
+ include Aws::Structure
1610
+ end
1611
+
1612
+ # The logging configuration for a web function revision.
1613
+ #
1614
+ # @!attribute [rw] log_group
1615
+ # The name of the Amazon CloudWatch Logs log group the web function
1616
+ # sends logs to. If you don't specify a value, the default is
1617
+ # `/aws/lambda/web/{functionName}`, and this default is returned in
1618
+ # the response.
1619
+ # @return [String]
1620
+ #
1621
+ # @!attribute [rw] application_log_level
1622
+ # The log level for application logs emitted by the web function. If
1623
+ # you don't specify a value, the default is `INFO`, and this default
1624
+ # is returned in the response.
1625
+ # @return [String]
1626
+ #
1627
+ # @!attribute [rw] system_log_level
1628
+ # The log level for system logs emitted by the Lambda runtime. If you
1629
+ # don't specify a value, the default is `INFO`, and this default is
1630
+ # returned in the response.
1631
+ # @return [String]
1632
+ #
1633
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/LoggingConfig AWS API Documentation
1634
+ #
1635
+ class LoggingConfig < Struct.new(
1636
+ :log_group,
1637
+ :application_log_level,
1638
+ :system_log_level)
1639
+ SENSITIVE = []
1640
+ include Aws::Structure
1641
+ end
1642
+
1643
+ # The request to add or update a resource-based policy.
1644
+ #
1645
+ # @!attribute [rw] resource_arn
1646
+ # The Amazon Resource Name (ARN) of the web function.
1647
+ # @return [String]
1648
+ #
1649
+ # @!attribute [rw] policy
1650
+ # The JSON-formatted resource-based policy to attach to the web
1651
+ # function.
1652
+ # @return [String]
1653
+ #
1654
+ # @!attribute [rw] revision_id
1655
+ # The revision ID of the existing policy. Use this to prevent
1656
+ # conflicts when updating a policy concurrently. If you don't specify
1657
+ # a value, the update proceeds without checking the current revision.
1658
+ # @return [String]
1659
+ #
1660
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/PutResourcePolicyRequest AWS API Documentation
1661
+ #
1662
+ class PutResourcePolicyRequest < Struct.new(
1663
+ :resource_arn,
1664
+ :policy,
1665
+ :revision_id)
1666
+ SENSITIVE = []
1667
+ include Aws::Structure
1668
+ end
1669
+
1670
+ # Contains the resource-based policy and its revision ID.
1671
+ #
1672
+ # @!attribute [rw] policy
1673
+ # The JSON-formatted resource-based policy attached to the web
1674
+ # function.
1675
+ # @return [String]
1676
+ #
1677
+ # @!attribute [rw] revision_id
1678
+ # The revision ID of the policy. Use this value in subsequent
1679
+ # `PutResourcePolicy` or `DeleteResourcePolicy` requests to prevent
1680
+ # conflicts.
1681
+ # @return [String]
1682
+ #
1683
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/PutResourcePolicyResponse AWS API Documentation
1684
+ #
1685
+ class PutResourcePolicyResponse < Struct.new(
1686
+ :policy,
1687
+ :revision_id)
1688
+ SENSITIVE = []
1689
+ include Aws::Structure
1690
+ end
1691
+
1692
+ # Represents the endpoint configuration and state in a specific Region.
1693
+ #
1694
+ # @!attribute [rw] domain_name
1695
+ # The domain name of the regional endpoint.
1696
+ # @return [String]
1697
+ #
1698
+ # @!attribute [rw] auth_type
1699
+ # The authorization type for the regional endpoint.
1700
+ # @return [String]
1701
+ #
1702
+ # @!attribute [rw] revision_weights
1703
+ # The revision weights for the regional endpoint.
1704
+ # @return [Array<Types::RevisionWeight>]
1705
+ #
1706
+ # @!attribute [rw] scaling_config
1707
+ # The scaling configuration for the regional endpoint. This field is
1708
+ # absent if the endpoint has no scaling configuration.
1709
+ # @return [Types::ScalingConfig]
1710
+ #
1711
+ # @!attribute [rw] throttle_config
1712
+ # The throttling configuration for the regional endpoint. This field
1713
+ # is absent if the endpoint has no throttling configuration.
1714
+ # @return [Types::ThrottleConfig]
1715
+ #
1716
+ # @!attribute [rw] state
1717
+ # The current state of the regional endpoint.
1718
+ # @return [String]
1719
+ #
1720
+ # @!attribute [rw] state_reason
1721
+ # The reason for the current state of the regional endpoint.
1722
+ # @return [String]
1723
+ #
1724
+ # @!attribute [rw] update_status
1725
+ # The status of the most recent update to the regional endpoint.
1726
+ # @return [String]
1727
+ #
1728
+ # @!attribute [rw] update_status_reason
1729
+ # The reason for the current update status of the regional endpoint.
1730
+ # @return [String]
1731
+ #
1732
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/RegionalEndpoint AWS API Documentation
1733
+ #
1734
+ class RegionalEndpoint < Struct.new(
1735
+ :domain_name,
1736
+ :auth_type,
1737
+ :revision_weights,
1738
+ :scaling_config,
1739
+ :throttle_config,
1740
+ :state,
1741
+ :state_reason,
1742
+ :update_status,
1743
+ :update_status_reason)
1744
+ SENSITIVE = []
1745
+ include Aws::Structure
1746
+ end
1747
+
1748
+ # The specified web function, revision, endpoint, or resource-based
1749
+ # policy doesn't exist. Verify the resource identifier and try again.
1750
+ #
1751
+ # @!attribute [rw] message
1752
+ # A message describing the resource not found error.
1753
+ # @return [String]
1754
+ #
1755
+ # @!attribute [rw] resource_id
1756
+ # The identifier of the resource that was not found.
1757
+ # @return [String]
1758
+ #
1759
+ # @!attribute [rw] resource_type
1760
+ # The type of the resource that was not found.
1761
+ # @return [String]
1762
+ #
1763
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ResourceNotFoundException AWS API Documentation
1764
+ #
1765
+ class ResourceNotFoundException < Struct.new(
1766
+ :message,
1767
+ :resource_id,
1768
+ :resource_type)
1769
+ SENSITIVE = []
1770
+ include Aws::Structure
1771
+ end
1772
+
1773
+ # The configuration for a web function revision, including code build
1774
+ # settings and service configuration.
1775
+ #
1776
+ # @!attribute [rw] description
1777
+ # A description of the revision.
1778
+ # @return [String]
1779
+ #
1780
+ # @!attribute [rw] kms_key_arn
1781
+ # The Amazon Resource Name (ARN) of the AWS Key Management Service
1782
+ # (AWS KMS) key used to encrypt the revision's code and environment
1783
+ # variables.
1784
+ # @return [String]
1785
+ #
1786
+ # @!attribute [rw] build_config
1787
+ # The build configuration for the revision.
1788
+ # @return [Types::BuildConfig]
1789
+ #
1790
+ # @!attribute [rw] service_config
1791
+ # The service configuration for the revision.
1792
+ # @return [Types::ServiceConfig]
1793
+ #
1794
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/RevisionConfig AWS API Documentation
1795
+ #
1796
+ class RevisionConfig < Struct.new(
1797
+ :description,
1798
+ :kms_key_arn,
1799
+ :build_config,
1800
+ :service_config)
1801
+ SENSITIVE = []
1802
+ include Aws::Structure
1803
+ end
1804
+
1805
+ # A single error encountered while creating or reading a web function
1806
+ # revision. The error describes the affected attribute, an error code,
1807
+ # and a human-readable message. This structure is present only when the
1808
+ # revision has errors.
1809
+ #
1810
+ # @!attribute [rw] attribute
1811
+ # The name of the revision attribute that the error applies to.
1812
+ # @return [String]
1813
+ #
1814
+ # @!attribute [rw] error_code
1815
+ # A short, machine-readable code that identifies the error.
1816
+ # @return [String]
1817
+ #
1818
+ # @!attribute [rw] error_message
1819
+ # A human-readable message describing the error.
1820
+ # @return [String]
1821
+ #
1822
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/RevisionError AWS API Documentation
1823
+ #
1824
+ class RevisionError < Struct.new(
1825
+ :attribute,
1826
+ :error_code,
1827
+ :error_message)
1828
+ SENSITIVE = []
1829
+ include Aws::Structure
1830
+ end
1831
+
1832
+ # Specifies a revision and its traffic weight for an endpoint. You can
1833
+ # assign weights to up to two revisions to split traffic for canary or
1834
+ # blue-green deployments.
1835
+ #
1836
+ # @!attribute [rw] revision_id
1837
+ # The identifier of the revision.
1838
+ # @return [String]
1839
+ #
1840
+ # @!attribute [rw] weight
1841
+ # The percentage of traffic to route to this revision. Minimum value
1842
+ # of 1, maximum value of 100.
64
1843
  # @return [Integer]
65
1844
  #
66
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/AccountUsage AWS API Documentation
1845
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/RevisionWeight AWS API Documentation
67
1846
  #
68
- class AccountUsage < Struct.new(
69
- :function_count)
1847
+ class RevisionWeight < Struct.new(
1848
+ :revision_id,
1849
+ :weight)
70
1850
  SENSITIVE = []
71
1851
  include Aws::Structure
72
1852
  end
73
1853
 
74
- # @api private
1854
+ # The runtime configuration for a web function revision.
75
1855
  #
76
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebAccountSettingsRequest AWS API Documentation
1856
+ # @!attribute [rw] runtime
1857
+ # The runtime identifier for the web function (for example, a Node.js
1858
+ # runtime identifier).
1859
+ # @return [String]
77
1860
  #
78
- class GetWebAccountSettingsRequest < Aws::EmptyStructure; end
1861
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/RuntimeConfig AWS API Documentation
1862
+ #
1863
+ class RuntimeConfig < Struct.new(
1864
+ :runtime)
1865
+ SENSITIVE = []
1866
+ include Aws::Structure
1867
+ end
79
1868
 
80
- # Contains your AWS Lambda Web Functions account quotas and usage for
81
- # the current AWS Region.
1869
+ # The Amazon S3 location of a deployment artifact.
82
1870
  #
83
- # @!attribute [rw] account_quotas
84
- # The quotas that apply to web functions in your account in the
85
- # current AWS Region.
86
- # @return [Types::AccountQuotas]
1871
+ # @!attribute [rw] bucket
1872
+ # The name of the Amazon S3 bucket.
1873
+ # @return [String]
87
1874
  #
88
- # @!attribute [rw] account_usage
89
- # The current web function usage for your account in the current AWS
90
- # Region.
91
- # @return [Types::AccountUsage]
1875
+ # @!attribute [rw] key
1876
+ # The Amazon S3 object key.
1877
+ # @return [String]
92
1878
  #
93
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebAccountSettingsResponse AWS API Documentation
1879
+ # @!attribute [rw] version_id
1880
+ # The version ID of the Amazon S3 object.
1881
+ # @return [String]
94
1882
  #
95
- class GetWebAccountSettingsResponse < Struct.new(
96
- :account_quotas,
97
- :account_usage)
1883
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/S3Object AWS API Documentation
1884
+ #
1885
+ class S3Object < Struct.new(
1886
+ :bucket,
1887
+ :key,
1888
+ :version_id)
1889
+ SENSITIVE = []
1890
+ include Aws::Structure
1891
+ end
1892
+
1893
+ # The scaling configuration for a web function endpoint.
1894
+ #
1895
+ # @!attribute [rw] max_environments
1896
+ # The maximum number of concurrent execution environments for the
1897
+ # endpoint. Minimum value of 2, maximum value of 10000. There is no
1898
+ # default value. If you don't specify a value, the scaling
1899
+ # configuration is absent from the response. On an update, omit
1900
+ # `scalingConfig` to keep the current value, or specify an empty
1901
+ # object to clear a previously set value.
1902
+ # @return [Integer]
1903
+ #
1904
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ScalingConfig AWS API Documentation
1905
+ #
1906
+ class ScalingConfig < Struct.new(
1907
+ :max_environments)
98
1908
  SENSITIVE = []
99
1909
  include Aws::Structure
100
1910
  end
101
1911
 
102
- # An internal server error occurred. Try again later.
1912
+ # The service configuration for a web function revision, including
1913
+ # execution role, timeout, VPC network access, concurrency, and
1914
+ # telemetry settings.
1915
+ #
1916
+ # @!attribute [rw] execution_role_arn
1917
+ # The ARN of the IAM role that the web function assumes when it runs.
1918
+ # This role provides permissions to access AWS services and resources.
1919
+ # @return [String]
1920
+ #
1921
+ # @!attribute [rw] timeout_seconds
1922
+ # The amount of time (in seconds) that Lambda allows the web function
1923
+ # to run before stopping it. Minimum value of 3, maximum value of 900.
1924
+ # If you don't specify a value, the default is 30, and this default
1925
+ # is returned in the response.
1926
+ # @return [Integer]
1927
+ #
1928
+ # @!attribute [rw] egress_network_connector_arn
1929
+ # The Amazon Resource Name (ARN) of the Lambda network connector that
1930
+ # gives the web function access to resources in your VPC. You must
1931
+ # specify the fully qualified ARN, including the connector version,
1932
+ # which pins the revision to that version. If the network connector is
1933
+ # deleted, invocations of revisions that reference it fail. Revisions
1934
+ # that specify a network connector support only `HomeRegion`
1935
+ # endpoints, not `MultiRegion` or `PerRegion`.
1936
+ # @return [String]
1937
+ #
1938
+ # @!attribute [rw] max_concurrency_per_environment
1939
+ # The maximum number of concurrent requests handled per execution
1940
+ # environment. Minimum value of 1, maximum value of 128. If you don't
1941
+ # specify a value, the default is 64, and this default is returned in
1942
+ # the response.
1943
+ # @return [Integer]
1944
+ #
1945
+ # @!attribute [rw] environment_variables
1946
+ # A map of environment variable key-value pairs available to the web
1947
+ # function at runtime. Environment variable values are sensitive.
1948
+ # @return [Hash<String,String>]
1949
+ #
1950
+ # @!attribute [rw] telemetry_config
1951
+ # The telemetry configuration for the web function, including logging
1952
+ # settings.
1953
+ # @return [Types::TelemetryConfig]
1954
+ #
1955
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ServiceConfig AWS API Documentation
1956
+ #
1957
+ class ServiceConfig < Struct.new(
1958
+ :execution_role_arn,
1959
+ :timeout_seconds,
1960
+ :egress_network_connector_arn,
1961
+ :max_concurrency_per_environment,
1962
+ :environment_variables,
1963
+ :telemetry_config)
1964
+ SENSITIVE = [:environment_variables]
1965
+ include Aws::Structure
1966
+ end
1967
+
1968
+ # The request would exceed a service quota, such as the maximum number
1969
+ # of web functions in your account or the maximum number of revisions or
1970
+ # endpoints per web function. Request a quota increase or reduce usage
1971
+ # and try again.
103
1972
  #
104
1973
  # @!attribute [rw] message
105
- # A message describing the internal error.
1974
+ # A message describing the quota that was exceeded.
106
1975
  # @return [String]
107
1976
  #
108
- # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/InternalServerException AWS API Documentation
1977
+ # @!attribute [rw] resource_id
1978
+ # The identifier of the resource that exceeded the quota.
1979
+ # @return [String]
109
1980
  #
110
- class InternalServerException < Struct.new(
111
- :message)
1981
+ # @!attribute [rw] resource_type
1982
+ # The type of resource that exceeded the quota.
1983
+ # @return [String]
1984
+ #
1985
+ # @!attribute [rw] service_code
1986
+ # The service code of the service that owns the quota.
1987
+ # @return [String]
1988
+ #
1989
+ # @!attribute [rw] quota_code
1990
+ # The quota code of the exceeded quota.
1991
+ # @return [String]
1992
+ #
1993
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ServiceQuotaExceededException AWS API Documentation
1994
+ #
1995
+ class ServiceQuotaExceededException < Struct.new(
1996
+ :message,
1997
+ :resource_id,
1998
+ :resource_type,
1999
+ :service_code,
2000
+ :quota_code)
2001
+ SENSITIVE = []
2002
+ include Aws::Structure
2003
+ end
2004
+
2005
+ # The request to add tags to a resource.
2006
+ #
2007
+ # @!attribute [rw] resource
2008
+ # The Amazon Resource Name (ARN) of the web function.
2009
+ # @return [String]
2010
+ #
2011
+ # @!attribute [rw] tags
2012
+ # A map of tag keys and values to add to the web function.
2013
+ # @return [Hash<String,String>]
2014
+ #
2015
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/TagResourceRequest AWS API Documentation
2016
+ #
2017
+ class TagResourceRequest < Struct.new(
2018
+ :resource,
2019
+ :tags)
2020
+ SENSITIVE = []
2021
+ include Aws::Structure
2022
+ end
2023
+
2024
+ # The telemetry configuration for a web function revision.
2025
+ #
2026
+ # @!attribute [rw] logging_config
2027
+ # The logging configuration for the web function.
2028
+ # @return [Types::LoggingConfig]
2029
+ #
2030
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/TelemetryConfig AWS API Documentation
2031
+ #
2032
+ class TelemetryConfig < Struct.new(
2033
+ :logging_config)
2034
+ SENSITIVE = []
2035
+ include Aws::Structure
2036
+ end
2037
+
2038
+ # The throttling configuration for a web function endpoint.
2039
+ #
2040
+ # @!attribute [rw] rate_limit
2041
+ # The maximum request rate per second for the endpoint. The value must
2042
+ # be one of the following supported values: `0`, `100`, `200`, `300`,
2043
+ # `400`, `500`, `600`, `700`, `800`, `900`, `1000`, `2000`, `3000`,
2044
+ # `4000`, `5000`, `6000`, `7000`, `8000`, `9000`, or `10000`. The
2045
+ # maximum effective value is also bounded by your account-level
2046
+ # maximum total rate limit. There is no default value. If you don't
2047
+ # specify a value, the throttling configuration is absent from the
2048
+ # response. On an update, omit `throttleConfig` to keep the current
2049
+ # value, or specify an empty object to clear a previously set value.
2050
+ # @return [Integer]
2051
+ #
2052
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ThrottleConfig AWS API Documentation
2053
+ #
2054
+ class ThrottleConfig < Struct.new(
2055
+ :rate_limit)
112
2056
  SENSITIVE = []
113
2057
  include Aws::Structure
114
2058
  end
115
2059
 
116
- # The request was throttled. Reduce the frequency of requests and try
117
- # again.
2060
+ # The request was denied because it exceeded the request rate that
2061
+ # Lambda allows for your account. Reduce the frequency of requests and
2062
+ # retry with exponential backoff.
118
2063
  #
119
2064
  # @!attribute [rw] message
120
2065
  # A message describing the throttling error.
@@ -143,6 +2088,267 @@ module Aws::LambdaWeb
143
2088
  include Aws::Structure
144
2089
  end
145
2090
 
2091
+ # The request to remove tags from a resource.
2092
+ #
2093
+ # @!attribute [rw] resource
2094
+ # The Amazon Resource Name (ARN) of the web function.
2095
+ # @return [String]
2096
+ #
2097
+ # @!attribute [rw] tag_keys
2098
+ # A list of tag keys to remove from the web function.
2099
+ # @return [Array<String>]
2100
+ #
2101
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/UntagResourceRequest AWS API Documentation
2102
+ #
2103
+ class UntagResourceRequest < Struct.new(
2104
+ :resource,
2105
+ :tag_keys)
2106
+ SENSITIVE = []
2107
+ include Aws::Structure
2108
+ end
2109
+
2110
+ # The request to update a web function endpoint.
2111
+ #
2112
+ # @!attribute [rw] function_name
2113
+ # The web function.
2114
+ #
2115
+ # You can specify either of the following:
2116
+ #
2117
+ # * The function name, for example `my-function`.
2118
+ #
2119
+ # * The function ARN.
2120
+ #
2121
+ # The length constraint applies only to the full ARN. If you specify
2122
+ # only the function name, it is limited to 64 characters in length.
2123
+ # @return [String]
2124
+ #
2125
+ # @!attribute [rw] endpoint_name
2126
+ # The endpoint to update.
2127
+ #
2128
+ # You can specify either of the following:
2129
+ #
2130
+ # * The endpoint name, for example `my-endpoint`.
2131
+ #
2132
+ # * The endpoint ARN.
2133
+ #
2134
+ # The length constraint applies only to the full ARN. If you specify
2135
+ # only the endpoint name, it is limited to 64 characters in length.
2136
+ # @return [String]
2137
+ #
2138
+ # @!attribute [rw] description
2139
+ # A description of the endpoint. Omit this field to keep the current
2140
+ # description.
2141
+ # @return [String]
2142
+ #
2143
+ # @!attribute [rw] auth_type
2144
+ # The authorization type for the endpoint. Omit this field to keep the
2145
+ # current authorization type.
2146
+ #
2147
+ # Valid values:
2148
+ #
2149
+ # * `ApplicationManaged` – Your application handles authorization.
2150
+ #
2151
+ # * `IamAuth` – Lambda uses IAM to authorize requests, which must be
2152
+ # signed with Signature Version 4 (SigV4).
2153
+ # @return [String]
2154
+ #
2155
+ # @!attribute [rw] auto_deployment_mode
2156
+ # The auto-deployment mode for the endpoint. Omit this field to keep
2157
+ # the current auto-deployment mode.
2158
+ #
2159
+ # Valid values:
2160
+ #
2161
+ # * `LatestRevision` – The endpoint automatically serves the newest
2162
+ # revision.
2163
+ #
2164
+ # * `Disabled` – Revision routing stays fixed until you change it.
2165
+ # @return [String]
2166
+ #
2167
+ # @!attribute [rw] revision_weights
2168
+ # A list of revision weights that determine how traffic is distributed
2169
+ # across revisions.
2170
+ # @return [Array<Types::RevisionWeight>]
2171
+ #
2172
+ # @!attribute [rw] scaling_config
2173
+ # The scaling configuration for the endpoint. Omit this field to keep
2174
+ # the current scaling configuration. To clear a previously set
2175
+ # `maxEnvironments` value, specify an empty object.
2176
+ # @return [Types::ScalingConfig]
2177
+ #
2178
+ # @!attribute [rw] throttle_config
2179
+ # The throttling configuration for the endpoint. Omit this field to
2180
+ # keep the current throttling configuration. To clear a previously set
2181
+ # `rateLimit` value, specify an empty object.
2182
+ # @return [Types::ThrottleConfig]
2183
+ #
2184
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/UpdateWebFunctionEndpointRequest AWS API Documentation
2185
+ #
2186
+ class UpdateWebFunctionEndpointRequest < Struct.new(
2187
+ :function_name,
2188
+ :endpoint_name,
2189
+ :description,
2190
+ :auth_type,
2191
+ :auto_deployment_mode,
2192
+ :revision_weights,
2193
+ :scaling_config,
2194
+ :throttle_config)
2195
+ SENSITIVE = []
2196
+ include Aws::Structure
2197
+ end
2198
+
2199
+ # Contains details about the updated endpoint.
2200
+ #
2201
+ # @!attribute [rw] function_arn
2202
+ # The Amazon Resource Name (ARN) of the web function.
2203
+ # @return [String]
2204
+ #
2205
+ # @!attribute [rw] endpoint_arn
2206
+ # The Amazon Resource Name (ARN) of the endpoint.
2207
+ # @return [String]
2208
+ #
2209
+ # @!attribute [rw] endpoint_name
2210
+ # The name of the endpoint.
2211
+ # @return [String]
2212
+ #
2213
+ # @!attribute [rw] description
2214
+ # The description of the endpoint.
2215
+ # @return [String]
2216
+ #
2217
+ # @!attribute [rw] endpoint_type
2218
+ # The type of a web function endpoint.
2219
+ #
2220
+ # Valid values:
2221
+ #
2222
+ # * `HomeRegion` – Serves traffic from the Region where you created
2223
+ # the web function.
2224
+ #
2225
+ # * `MultiRegion` – Replicates across the Regions that you choose and
2226
+ # routes each request to the nearest one.
2227
+ #
2228
+ # * `PerRegion` – Creates a separate endpoint in each Region that you
2229
+ # choose.
2230
+ # @return [String]
2231
+ #
2232
+ # @!attribute [rw] domain_name
2233
+ # The domain name assigned to the endpoint.
2234
+ # @return [String]
2235
+ #
2236
+ # @!attribute [rw] auth_type
2237
+ # The authorization type for a web function endpoint.
2238
+ #
2239
+ # Valid values:
2240
+ #
2241
+ # * `ApplicationManaged` – Your application handles authorization.
2242
+ #
2243
+ # * `IamAuth` – Lambda uses IAM to authorize requests, which must be
2244
+ # signed with Signature Version 4 (SigV4).
2245
+ # @return [String]
2246
+ #
2247
+ # @!attribute [rw] auto_deployment_mode
2248
+ # The auto-deployment mode for a web function endpoint.
2249
+ #
2250
+ # Valid values:
2251
+ #
2252
+ # * `LatestRevision` – The endpoint automatically serves the newest
2253
+ # revision.
2254
+ #
2255
+ # * `Disabled` – Revision routing stays fixed until you change it.
2256
+ # @return [String]
2257
+ #
2258
+ # @!attribute [rw] revision_weights
2259
+ # The traffic distribution across revisions for the endpoint. Each
2260
+ # entry maps a revision to a weight from 1 to 100.
2261
+ # @return [Array<Types::RevisionWeight>]
2262
+ #
2263
+ # @!attribute [rw] regions
2264
+ # The Regions configured for the endpoint.
2265
+ # @return [Array<String>]
2266
+ #
2267
+ # @!attribute [rw] scaling_config
2268
+ # The scaling configuration for a web function endpoint.
2269
+ # @return [Types::ScalingConfig]
2270
+ #
2271
+ # @!attribute [rw] throttle_config
2272
+ # The throttling configuration for a web function endpoint.
2273
+ # @return [Types::ThrottleConfig]
2274
+ #
2275
+ # @!attribute [rw] state
2276
+ # The current state of the endpoint.
2277
+ # @return [String]
2278
+ #
2279
+ # @!attribute [rw] state_reason
2280
+ # The reason for the current state of the endpoint.
2281
+ # @return [String]
2282
+ #
2283
+ # @!attribute [rw] update_status
2284
+ # The status of the most recent update to an endpoint. Possible
2285
+ # values:
2286
+ #
2287
+ # * `InProgress` – The update is in progress.
2288
+ #
2289
+ # * `Successful` – The update completed successfully.
2290
+ #
2291
+ # * `Failed` – The update failed.
2292
+ # @return [String]
2293
+ #
2294
+ # @!attribute [rw] update_status_reason
2295
+ # The reason for the endpoint's most recent update status.
2296
+ # @return [String]
2297
+ #
2298
+ # @!attribute [rw] regional_endpoints
2299
+ # The list of regional endpoint configurations.
2300
+ # @return [Hash<String,Types::RegionalEndpoint>]
2301
+ #
2302
+ # @!attribute [rw] created_at
2303
+ # The date and time the endpoint was created.
2304
+ # @return [Time]
2305
+ #
2306
+ # @!attribute [rw] updated_at
2307
+ # The date and time the endpoint was last updated.
2308
+ # @return [Time]
2309
+ #
2310
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/UpdateWebFunctionEndpointResponse AWS API Documentation
2311
+ #
2312
+ class UpdateWebFunctionEndpointResponse < Struct.new(
2313
+ :function_arn,
2314
+ :endpoint_arn,
2315
+ :endpoint_name,
2316
+ :description,
2317
+ :endpoint_type,
2318
+ :domain_name,
2319
+ :auth_type,
2320
+ :auto_deployment_mode,
2321
+ :revision_weights,
2322
+ :regions,
2323
+ :scaling_config,
2324
+ :throttle_config,
2325
+ :state,
2326
+ :state_reason,
2327
+ :update_status,
2328
+ :update_status_reason,
2329
+ :regional_endpoints,
2330
+ :created_at,
2331
+ :updated_at)
2332
+ SENSITIVE = []
2333
+ include Aws::Structure
2334
+ end
2335
+
2336
+ # The request failed validation because a parameter was missing,
2337
+ # malformed, or outside the allowed range. Check the request parameters
2338
+ # and try again.
2339
+ #
2340
+ # @!attribute [rw] message
2341
+ # A message describing the validation error.
2342
+ # @return [String]
2343
+ #
2344
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ValidationException AWS API Documentation
2345
+ #
2346
+ class ValidationException < Struct.new(
2347
+ :message)
2348
+ SENSITIVE = []
2349
+ include Aws::Structure
2350
+ end
2351
+
146
2352
  end
147
2353
  end
148
2354