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