aws-sdk-lambdaweb 1.1.0 → 1.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambdaweb/client.rb +2 -1441
- data/lib/aws-sdk-lambdaweb/client_api.rb +0 -778
- data/lib/aws-sdk-lambdaweb/errors.rb +0 -104
- data/lib/aws-sdk-lambdaweb/types.rb +22 -1972
- data/lib/aws-sdk-lambdaweb.rb +2 -3
- data/sig/client.rbs +0 -379
- data/sig/errors.rbs +0 -20
- data/sig/types.rbs +0 -467
- metadata +1 -3
- data/lib/aws-sdk-lambdaweb/waiters.rb +0 -385
- data/sig/waiters.rbs +0 -77
|
@@ -474,598 +474,6 @@ module Aws::LambdaWeb
|
|
|
474
474
|
|
|
475
475
|
# @!group API Operations
|
|
476
476
|
|
|
477
|
-
# Creates a web function with an initial revision and endpoint. To
|
|
478
|
-
# create a web function, you provide the function name, revision
|
|
479
|
-
# configuration (code and service settings), and endpoint configuration.
|
|
480
|
-
#
|
|
481
|
-
# To use this operation, you must have the `CreateWebFunction`
|
|
482
|
-
# permission on the web function. You don't need separate permissions
|
|
483
|
-
# for the initial revision or endpoint.
|
|
484
|
-
#
|
|
485
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
486
|
-
# available to external customers.
|
|
487
|
-
#
|
|
488
|
-
# </note>
|
|
489
|
-
#
|
|
490
|
-
# @option params [required, String] :function_name
|
|
491
|
-
# The name of the web function. The name can contain letters, numbers,
|
|
492
|
-
# hyphens (-), and underscores (\_), and can't begin or end with a
|
|
493
|
-
# hyphen or an underscore. The length constraint applies only to the
|
|
494
|
-
# full ARN. If you specify only the function name, it is limited to 64
|
|
495
|
-
# characters in length.
|
|
496
|
-
#
|
|
497
|
-
# @option params [Types::RevisionConfig] :revision_config
|
|
498
|
-
# The configuration for the initial revision of the web function,
|
|
499
|
-
# including code and service settings.
|
|
500
|
-
#
|
|
501
|
-
# @option params [Types::EndpointConfig] :endpoint_config
|
|
502
|
-
# The configuration for the initial endpoint of the web function.
|
|
503
|
-
#
|
|
504
|
-
# @option params [Hash<String,String>] :tags
|
|
505
|
-
# A map of tag keys and values to apply to the web function.
|
|
506
|
-
#
|
|
507
|
-
# @return [Types::CreateWebFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
508
|
-
#
|
|
509
|
-
# * {Types::CreateWebFunctionResponse#function_name #function_name} => String
|
|
510
|
-
# * {Types::CreateWebFunctionResponse#function_arn #function_arn} => String
|
|
511
|
-
# * {Types::CreateWebFunctionResponse#state #state} => String
|
|
512
|
-
# * {Types::CreateWebFunctionResponse#state_reason #state_reason} => String
|
|
513
|
-
# * {Types::CreateWebFunctionResponse#created_at #created_at} => Time
|
|
514
|
-
# * {Types::CreateWebFunctionResponse#updated_at #updated_at} => Time
|
|
515
|
-
# * {Types::CreateWebFunctionResponse#revision #revision} => Types::FunctionRevisionSummary
|
|
516
|
-
# * {Types::CreateWebFunctionResponse#endpoint #endpoint} => Types::FunctionEndpointSummary
|
|
517
|
-
# * {Types::CreateWebFunctionResponse#tags #tags} => Hash<String,String>
|
|
518
|
-
#
|
|
519
|
-
# @example Request syntax with placeholder values
|
|
520
|
-
#
|
|
521
|
-
# resp = client.create_web_function({
|
|
522
|
-
# function_name: "FunctionName", # required
|
|
523
|
-
# revision_config: {
|
|
524
|
-
# description: "Description",
|
|
525
|
-
# kms_key_arn: "KmsKeyArn",
|
|
526
|
-
# build_config: { # required
|
|
527
|
-
# code_config: { # required
|
|
528
|
-
# s3_object: { # required
|
|
529
|
-
# bucket: "S3ObjectBucketString", # required
|
|
530
|
-
# key: "S3ObjectKeyString", # required
|
|
531
|
-
# version_id: "S3ObjectVersionIdString",
|
|
532
|
-
# },
|
|
533
|
-
# },
|
|
534
|
-
# runtime_config: { # required
|
|
535
|
-
# runtime: "RuntimeConfigRuntimeString", # required
|
|
536
|
-
# },
|
|
537
|
-
# },
|
|
538
|
-
# service_config: { # required
|
|
539
|
-
# execution_role_arn: "RoleArn", # required
|
|
540
|
-
# timeout_seconds: 1,
|
|
541
|
-
# max_concurrency_per_environment: 1,
|
|
542
|
-
# environment_variables: {
|
|
543
|
-
# "EnvironmentVariablesKeyString" => "EnvironmentVariablesValueString",
|
|
544
|
-
# },
|
|
545
|
-
# telemetry_config: {
|
|
546
|
-
# logging_config: {
|
|
547
|
-
# log_group: "LoggingConfigLogGroupString",
|
|
548
|
-
# application_log_level: "TRACE", # accepts TRACE, DEBUG, INFO, WARN, ERROR, FATAL
|
|
549
|
-
# system_log_level: "DEBUG", # accepts DEBUG, INFO, WARN
|
|
550
|
-
# },
|
|
551
|
-
# },
|
|
552
|
-
# },
|
|
553
|
-
# },
|
|
554
|
-
# endpoint_config: {
|
|
555
|
-
# endpoint_name: "EndpointName", # required
|
|
556
|
-
# description: "Description",
|
|
557
|
-
# endpoint_type: "HomeRegion", # required, accepts HomeRegion, MultiRegion, PerRegion
|
|
558
|
-
# auth_type: "ApplicationManaged", # required, accepts ApplicationManaged, IamAuth
|
|
559
|
-
# auto_deployment_mode: "LatestRevision", # accepts LatestRevision, Disabled
|
|
560
|
-
# regions: ["Region"],
|
|
561
|
-
# scaling_config: {
|
|
562
|
-
# max_environments: 1,
|
|
563
|
-
# },
|
|
564
|
-
# throttle_config: {
|
|
565
|
-
# rate_limit: 1,
|
|
566
|
-
# },
|
|
567
|
-
# },
|
|
568
|
-
# tags: {
|
|
569
|
-
# "TagKey" => "TagsValueString",
|
|
570
|
-
# },
|
|
571
|
-
# })
|
|
572
|
-
#
|
|
573
|
-
# @example Response structure
|
|
574
|
-
#
|
|
575
|
-
# resp.function_name #=> String
|
|
576
|
-
# resp.function_arn #=> String
|
|
577
|
-
# resp.state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
578
|
-
# resp.state_reason #=> String
|
|
579
|
-
# resp.created_at #=> Time
|
|
580
|
-
# resp.updated_at #=> Time
|
|
581
|
-
# resp.revision.revision_arn #=> String
|
|
582
|
-
# resp.revision.revision_id #=> String
|
|
583
|
-
# resp.revision.description #=> String
|
|
584
|
-
# resp.revision.state #=> String, one of "Pending", "Active", "Failed"
|
|
585
|
-
# resp.revision.state_reason #=> String
|
|
586
|
-
# resp.revision.created_at #=> Time
|
|
587
|
-
# resp.endpoint.endpoint_arn #=> String
|
|
588
|
-
# resp.endpoint.endpoint_name #=> String
|
|
589
|
-
# resp.endpoint.description #=> String
|
|
590
|
-
# resp.endpoint.endpoint_type #=> String, one of "HomeRegion", "MultiRegion", "PerRegion"
|
|
591
|
-
# resp.endpoint.domain_name #=> String
|
|
592
|
-
# resp.endpoint.auth_type #=> String, one of "ApplicationManaged", "IamAuth"
|
|
593
|
-
# resp.endpoint.auto_deployment_mode #=> String, one of "LatestRevision", "Disabled"
|
|
594
|
-
# resp.endpoint.revision_weights #=> Array
|
|
595
|
-
# resp.endpoint.revision_weights[0].revision_id #=> String
|
|
596
|
-
# resp.endpoint.revision_weights[0].weight #=> Integer
|
|
597
|
-
# resp.endpoint.regions #=> Array
|
|
598
|
-
# resp.endpoint.regions[0] #=> String
|
|
599
|
-
# resp.endpoint.scaling_config.max_environments #=> Integer
|
|
600
|
-
# resp.endpoint.throttle_config.rate_limit #=> Integer
|
|
601
|
-
# resp.endpoint.state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
602
|
-
# resp.endpoint.state_reason #=> String
|
|
603
|
-
# resp.endpoint.update_status #=> String, one of "InProgress", "Successful", "Failed"
|
|
604
|
-
# resp.endpoint.update_status_reason #=> String
|
|
605
|
-
# resp.endpoint.created_at #=> Time
|
|
606
|
-
# resp.endpoint.updated_at #=> Time
|
|
607
|
-
# resp.tags #=> Hash
|
|
608
|
-
# resp.tags["TagKey"] #=> String
|
|
609
|
-
#
|
|
610
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/CreateWebFunction AWS API Documentation
|
|
611
|
-
#
|
|
612
|
-
# @overload create_web_function(params = {})
|
|
613
|
-
# @param [Hash] params ({})
|
|
614
|
-
def create_web_function(params = {}, options = {})
|
|
615
|
-
req = build_request(:create_web_function, params)
|
|
616
|
-
req.send_request(options)
|
|
617
|
-
end
|
|
618
|
-
|
|
619
|
-
# Creates an endpoint for a web function. An endpoint exposes the web
|
|
620
|
-
# function over HTTPS and routes traffic to one or more revisions.
|
|
621
|
-
#
|
|
622
|
-
# To use this operation, you must have the `CreateWebFunctionEndpoint`
|
|
623
|
-
# permission on the web function, not on the endpoint being created.
|
|
624
|
-
#
|
|
625
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
626
|
-
# available to external customers.
|
|
627
|
-
#
|
|
628
|
-
# </note>
|
|
629
|
-
#
|
|
630
|
-
# @option params [required, String] :function_name
|
|
631
|
-
# The name of the web function to create the endpoint for. You can
|
|
632
|
-
# specify the function name or the function ARN. The length constraint
|
|
633
|
-
# applies only to the full ARN. If you specify only the function name,
|
|
634
|
-
# it is limited to 64 characters in length.
|
|
635
|
-
#
|
|
636
|
-
# @option params [required, String] :endpoint_name
|
|
637
|
-
# The name of the endpoint to create. The name can contain letters,
|
|
638
|
-
# numbers, hyphens (-), and underscores (\_), and can't begin or end
|
|
639
|
-
# with a hyphen or an underscore. The length constraint applies only to
|
|
640
|
-
# the full ARN. If you specify only the endpoint name, it is limited to
|
|
641
|
-
# 64 characters in length.
|
|
642
|
-
#
|
|
643
|
-
# @option params [String] :description
|
|
644
|
-
# A description of the endpoint.
|
|
645
|
-
#
|
|
646
|
-
# @option params [required, String] :endpoint_type
|
|
647
|
-
# The type of endpoint to create. Determines how traffic is served and
|
|
648
|
-
# routed across Regions.
|
|
649
|
-
#
|
|
650
|
-
# @option params [required, String] :auth_type
|
|
651
|
-
# The authorization type for the endpoint.
|
|
652
|
-
#
|
|
653
|
-
# @option params [String] :auto_deployment_mode
|
|
654
|
-
# The auto-deployment mode for the endpoint. Controls whether the
|
|
655
|
-
# endpoint automatically serves the newest revision. If you don't
|
|
656
|
-
# specify a value, the default is `Disabled`, and this default is
|
|
657
|
-
# returned in the response.
|
|
658
|
-
#
|
|
659
|
-
# @option params [Array<Types::RevisionWeight>] :revision_weights
|
|
660
|
-
# A list of revision weights that determine how traffic is distributed
|
|
661
|
-
# across revisions. Up to two revisions can be specified for canary or
|
|
662
|
-
# blue-green deployments.
|
|
663
|
-
#
|
|
664
|
-
# @option params [Array<String>] :regions
|
|
665
|
-
# The list of Regions for the endpoint. Required when the endpoint type
|
|
666
|
-
# is `MultiRegion` or `PerRegion`: specify at least one Region other
|
|
667
|
-
# than the Region where you create the endpoint (the home Region). The
|
|
668
|
-
# home Region is added automatically if you don't include it;
|
|
669
|
-
# specifying only the home Region isn't allowed. When the endpoint type
|
|
670
|
-
# is `HomeRegion`, omit this field or specify only the home Region.
|
|
671
|
-
#
|
|
672
|
-
# @option params [Types::ScalingConfig] :scaling_config
|
|
673
|
-
# The scaling configuration for the endpoint. There is no default value.
|
|
674
|
-
# If you don't specify a scaling configuration, it is absent from the
|
|
675
|
-
# response.
|
|
676
|
-
#
|
|
677
|
-
# @option params [Types::ThrottleConfig] :throttle_config
|
|
678
|
-
# The throttling configuration for the endpoint. There is no default
|
|
679
|
-
# value. If you don't specify a throttling configuration, it is absent
|
|
680
|
-
# from the response.
|
|
681
|
-
#
|
|
682
|
-
# @return [Types::CreateWebFunctionEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
683
|
-
#
|
|
684
|
-
# * {Types::CreateWebFunctionEndpointResponse#function_arn #function_arn} => String
|
|
685
|
-
# * {Types::CreateWebFunctionEndpointResponse#endpoint_arn #endpoint_arn} => String
|
|
686
|
-
# * {Types::CreateWebFunctionEndpointResponse#endpoint_name #endpoint_name} => String
|
|
687
|
-
# * {Types::CreateWebFunctionEndpointResponse#description #description} => String
|
|
688
|
-
# * {Types::CreateWebFunctionEndpointResponse#endpoint_type #endpoint_type} => String
|
|
689
|
-
# * {Types::CreateWebFunctionEndpointResponse#domain_name #domain_name} => String
|
|
690
|
-
# * {Types::CreateWebFunctionEndpointResponse#auth_type #auth_type} => String
|
|
691
|
-
# * {Types::CreateWebFunctionEndpointResponse#auto_deployment_mode #auto_deployment_mode} => String
|
|
692
|
-
# * {Types::CreateWebFunctionEndpointResponse#revision_weights #revision_weights} => Array<Types::RevisionWeight>
|
|
693
|
-
# * {Types::CreateWebFunctionEndpointResponse#regions #regions} => Array<String>
|
|
694
|
-
# * {Types::CreateWebFunctionEndpointResponse#scaling_config #scaling_config} => Types::ScalingConfig
|
|
695
|
-
# * {Types::CreateWebFunctionEndpointResponse#throttle_config #throttle_config} => Types::ThrottleConfig
|
|
696
|
-
# * {Types::CreateWebFunctionEndpointResponse#state #state} => String
|
|
697
|
-
# * {Types::CreateWebFunctionEndpointResponse#state_reason #state_reason} => String
|
|
698
|
-
# * {Types::CreateWebFunctionEndpointResponse#update_status #update_status} => String
|
|
699
|
-
# * {Types::CreateWebFunctionEndpointResponse#update_status_reason #update_status_reason} => String
|
|
700
|
-
# * {Types::CreateWebFunctionEndpointResponse#regional_endpoints #regional_endpoints} => Hash<String,Types::RegionalEndpoint>
|
|
701
|
-
# * {Types::CreateWebFunctionEndpointResponse#created_at #created_at} => Time
|
|
702
|
-
# * {Types::CreateWebFunctionEndpointResponse#updated_at #updated_at} => Time
|
|
703
|
-
#
|
|
704
|
-
# @example Request syntax with placeholder values
|
|
705
|
-
#
|
|
706
|
-
# resp = client.create_web_function_endpoint({
|
|
707
|
-
# function_name: "FunctionName", # required
|
|
708
|
-
# endpoint_name: "EndpointName", # required
|
|
709
|
-
# description: "Description",
|
|
710
|
-
# endpoint_type: "HomeRegion", # required, accepts HomeRegion, MultiRegion, PerRegion
|
|
711
|
-
# auth_type: "ApplicationManaged", # required, accepts ApplicationManaged, IamAuth
|
|
712
|
-
# auto_deployment_mode: "LatestRevision", # accepts LatestRevision, Disabled
|
|
713
|
-
# revision_weights: [
|
|
714
|
-
# {
|
|
715
|
-
# revision_id: "RevisionId", # required
|
|
716
|
-
# weight: 1, # required
|
|
717
|
-
# },
|
|
718
|
-
# ],
|
|
719
|
-
# regions: ["Region"],
|
|
720
|
-
# scaling_config: {
|
|
721
|
-
# max_environments: 1,
|
|
722
|
-
# },
|
|
723
|
-
# throttle_config: {
|
|
724
|
-
# rate_limit: 1,
|
|
725
|
-
# },
|
|
726
|
-
# })
|
|
727
|
-
#
|
|
728
|
-
# @example Response structure
|
|
729
|
-
#
|
|
730
|
-
# resp.function_arn #=> String
|
|
731
|
-
# resp.endpoint_arn #=> String
|
|
732
|
-
# resp.endpoint_name #=> String
|
|
733
|
-
# resp.description #=> String
|
|
734
|
-
# resp.endpoint_type #=> String, one of "HomeRegion", "MultiRegion", "PerRegion"
|
|
735
|
-
# resp.domain_name #=> String
|
|
736
|
-
# resp.auth_type #=> String, one of "ApplicationManaged", "IamAuth"
|
|
737
|
-
# resp.auto_deployment_mode #=> String, one of "LatestRevision", "Disabled"
|
|
738
|
-
# resp.revision_weights #=> Array
|
|
739
|
-
# resp.revision_weights[0].revision_id #=> String
|
|
740
|
-
# resp.revision_weights[0].weight #=> Integer
|
|
741
|
-
# resp.regions #=> Array
|
|
742
|
-
# resp.regions[0] #=> String
|
|
743
|
-
# resp.scaling_config.max_environments #=> Integer
|
|
744
|
-
# resp.throttle_config.rate_limit #=> Integer
|
|
745
|
-
# resp.state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
746
|
-
# resp.state_reason #=> String
|
|
747
|
-
# resp.update_status #=> String, one of "InProgress", "Successful", "Failed"
|
|
748
|
-
# resp.update_status_reason #=> String
|
|
749
|
-
# resp.regional_endpoints #=> Hash
|
|
750
|
-
# resp.regional_endpoints["Region"].domain_name #=> String
|
|
751
|
-
# resp.regional_endpoints["Region"].auth_type #=> String, one of "ApplicationManaged", "IamAuth"
|
|
752
|
-
# resp.regional_endpoints["Region"].revision_weights #=> Array
|
|
753
|
-
# resp.regional_endpoints["Region"].revision_weights[0].revision_id #=> String
|
|
754
|
-
# resp.regional_endpoints["Region"].revision_weights[0].weight #=> Integer
|
|
755
|
-
# resp.regional_endpoints["Region"].scaling_config.max_environments #=> Integer
|
|
756
|
-
# resp.regional_endpoints["Region"].throttle_config.rate_limit #=> Integer
|
|
757
|
-
# resp.regional_endpoints["Region"].state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
758
|
-
# resp.regional_endpoints["Region"].state_reason #=> String
|
|
759
|
-
# resp.regional_endpoints["Region"].update_status #=> String, one of "InProgress", "Successful", "Failed"
|
|
760
|
-
# resp.regional_endpoints["Region"].update_status_reason #=> String
|
|
761
|
-
# resp.created_at #=> Time
|
|
762
|
-
# resp.updated_at #=> Time
|
|
763
|
-
#
|
|
764
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/CreateWebFunctionEndpoint AWS API Documentation
|
|
765
|
-
#
|
|
766
|
-
# @overload create_web_function_endpoint(params = {})
|
|
767
|
-
# @param [Hash] params ({})
|
|
768
|
-
def create_web_function_endpoint(params = {}, options = {})
|
|
769
|
-
req = build_request(:create_web_function_endpoint, params)
|
|
770
|
-
req.send_request(options)
|
|
771
|
-
end
|
|
772
|
-
|
|
773
|
-
# Creates an immutable revision for a web function. A revision
|
|
774
|
-
# represents a specific version of the function code and configuration.
|
|
775
|
-
#
|
|
776
|
-
# To use this operation, you must have the `CreateWebFunctionRevision`
|
|
777
|
-
# permission on the web function, not on the revision being created.
|
|
778
|
-
#
|
|
779
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
780
|
-
# available to external customers.
|
|
781
|
-
#
|
|
782
|
-
# </note>
|
|
783
|
-
#
|
|
784
|
-
# @option params [required, String] :function_name
|
|
785
|
-
# The name of the web function. You can specify the function name or the
|
|
786
|
-
# function ARN. The length constraint applies only to the full ARN. If
|
|
787
|
-
# you specify only the function name, it is limited to 64 characters in
|
|
788
|
-
# length.
|
|
789
|
-
#
|
|
790
|
-
# @option params [String] :description
|
|
791
|
-
# A description of the revision.
|
|
792
|
-
#
|
|
793
|
-
# @option params [String] :kms_key_arn
|
|
794
|
-
# The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS
|
|
795
|
-
# KMS) key used to encrypt the revision's code and environment
|
|
796
|
-
# variables.
|
|
797
|
-
#
|
|
798
|
-
# @option params [required, Types::BuildConfig] :build_config
|
|
799
|
-
# The build configuration for the revision, including code location and
|
|
800
|
-
# runtime settings.
|
|
801
|
-
#
|
|
802
|
-
# @option params [required, Types::ServiceConfig] :service_config
|
|
803
|
-
# The service configuration for the revision, including execution role,
|
|
804
|
-
# timeout, and concurrency settings.
|
|
805
|
-
#
|
|
806
|
-
# @return [Types::CreateWebFunctionRevisionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
807
|
-
#
|
|
808
|
-
# * {Types::CreateWebFunctionRevisionResponse#function_arn #function_arn} => String
|
|
809
|
-
# * {Types::CreateWebFunctionRevisionResponse#revision_arn #revision_arn} => String
|
|
810
|
-
# * {Types::CreateWebFunctionRevisionResponse#revision_id #revision_id} => String
|
|
811
|
-
# * {Types::CreateWebFunctionRevisionResponse#description #description} => String
|
|
812
|
-
# * {Types::CreateWebFunctionRevisionResponse#kms_key_arn #kms_key_arn} => String
|
|
813
|
-
# * {Types::CreateWebFunctionRevisionResponse#build_config #build_config} => Types::BuildConfig
|
|
814
|
-
# * {Types::CreateWebFunctionRevisionResponse#service_config #service_config} => Types::ServiceConfig
|
|
815
|
-
# * {Types::CreateWebFunctionRevisionResponse#state #state} => String
|
|
816
|
-
# * {Types::CreateWebFunctionRevisionResponse#state_reason #state_reason} => String
|
|
817
|
-
# * {Types::CreateWebFunctionRevisionResponse#errors #errors} => Array<Types::RevisionError>
|
|
818
|
-
# * {Types::CreateWebFunctionRevisionResponse#created_at #created_at} => Time
|
|
819
|
-
#
|
|
820
|
-
# @example Request syntax with placeholder values
|
|
821
|
-
#
|
|
822
|
-
# resp = client.create_web_function_revision({
|
|
823
|
-
# function_name: "FunctionName", # required
|
|
824
|
-
# description: "Description",
|
|
825
|
-
# kms_key_arn: "KmsKeyArn",
|
|
826
|
-
# build_config: { # required
|
|
827
|
-
# code_config: { # required
|
|
828
|
-
# s3_object: { # required
|
|
829
|
-
# bucket: "S3ObjectBucketString", # required
|
|
830
|
-
# key: "S3ObjectKeyString", # required
|
|
831
|
-
# version_id: "S3ObjectVersionIdString",
|
|
832
|
-
# },
|
|
833
|
-
# },
|
|
834
|
-
# runtime_config: { # required
|
|
835
|
-
# runtime: "RuntimeConfigRuntimeString", # required
|
|
836
|
-
# },
|
|
837
|
-
# },
|
|
838
|
-
# service_config: { # required
|
|
839
|
-
# execution_role_arn: "RoleArn", # required
|
|
840
|
-
# timeout_seconds: 1,
|
|
841
|
-
# max_concurrency_per_environment: 1,
|
|
842
|
-
# environment_variables: {
|
|
843
|
-
# "EnvironmentVariablesKeyString" => "EnvironmentVariablesValueString",
|
|
844
|
-
# },
|
|
845
|
-
# telemetry_config: {
|
|
846
|
-
# logging_config: {
|
|
847
|
-
# log_group: "LoggingConfigLogGroupString",
|
|
848
|
-
# application_log_level: "TRACE", # accepts TRACE, DEBUG, INFO, WARN, ERROR, FATAL
|
|
849
|
-
# system_log_level: "DEBUG", # accepts DEBUG, INFO, WARN
|
|
850
|
-
# },
|
|
851
|
-
# },
|
|
852
|
-
# },
|
|
853
|
-
# })
|
|
854
|
-
#
|
|
855
|
-
# @example Response structure
|
|
856
|
-
#
|
|
857
|
-
# resp.function_arn #=> String
|
|
858
|
-
# resp.revision_arn #=> String
|
|
859
|
-
# resp.revision_id #=> String
|
|
860
|
-
# resp.description #=> String
|
|
861
|
-
# resp.kms_key_arn #=> String
|
|
862
|
-
# resp.build_config.code_config.s3_object.bucket #=> String
|
|
863
|
-
# resp.build_config.code_config.s3_object.key #=> String
|
|
864
|
-
# resp.build_config.code_config.s3_object.version_id #=> String
|
|
865
|
-
# resp.build_config.runtime_config.runtime #=> String
|
|
866
|
-
# resp.service_config.execution_role_arn #=> String
|
|
867
|
-
# resp.service_config.timeout_seconds #=> Integer
|
|
868
|
-
# resp.service_config.max_concurrency_per_environment #=> Integer
|
|
869
|
-
# resp.service_config.environment_variables #=> Hash
|
|
870
|
-
# resp.service_config.environment_variables["EnvironmentVariablesKeyString"] #=> String
|
|
871
|
-
# resp.service_config.telemetry_config.logging_config.log_group #=> String
|
|
872
|
-
# resp.service_config.telemetry_config.logging_config.application_log_level #=> String, one of "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL"
|
|
873
|
-
# resp.service_config.telemetry_config.logging_config.system_log_level #=> String, one of "DEBUG", "INFO", "WARN"
|
|
874
|
-
# resp.state #=> String, one of "Pending", "Active", "Failed"
|
|
875
|
-
# resp.state_reason #=> String
|
|
876
|
-
# resp.errors #=> Array
|
|
877
|
-
# resp.errors[0].attribute #=> String
|
|
878
|
-
# resp.errors[0].error_code #=> String
|
|
879
|
-
# resp.errors[0].error_message #=> String
|
|
880
|
-
# resp.created_at #=> Time
|
|
881
|
-
#
|
|
882
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/CreateWebFunctionRevision AWS API Documentation
|
|
883
|
-
#
|
|
884
|
-
# @overload create_web_function_revision(params = {})
|
|
885
|
-
# @param [Hash] params ({})
|
|
886
|
-
def create_web_function_revision(params = {}, options = {})
|
|
887
|
-
req = build_request(:create_web_function_revision, params)
|
|
888
|
-
req.send_request(options)
|
|
889
|
-
end
|
|
890
|
-
|
|
891
|
-
# Removes the resource-based policy from a web function.
|
|
892
|
-
#
|
|
893
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
894
|
-
# available to external customers.
|
|
895
|
-
#
|
|
896
|
-
# </note>
|
|
897
|
-
#
|
|
898
|
-
# @option params [required, String] :resource_arn
|
|
899
|
-
# The Amazon Resource Name (ARN) of the web function.
|
|
900
|
-
#
|
|
901
|
-
# @option params [String] :revision_id
|
|
902
|
-
# The revision ID of the policy. Use this to prevent deleting a policy
|
|
903
|
-
# that has been updated since you last retrieved it. If you don't
|
|
904
|
-
# specify a value, the policy is deleted regardless of its current
|
|
905
|
-
# revision.
|
|
906
|
-
#
|
|
907
|
-
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
908
|
-
#
|
|
909
|
-
# @example Request syntax with placeholder values
|
|
910
|
-
#
|
|
911
|
-
# resp = client.delete_resource_policy({
|
|
912
|
-
# resource_arn: "ResourceArn", # required
|
|
913
|
-
# revision_id: "PolicyRevisionId",
|
|
914
|
-
# })
|
|
915
|
-
#
|
|
916
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/DeleteResourcePolicy AWS API Documentation
|
|
917
|
-
#
|
|
918
|
-
# @overload delete_resource_policy(params = {})
|
|
919
|
-
# @param [Hash] params ({})
|
|
920
|
-
def delete_resource_policy(params = {}, options = {})
|
|
921
|
-
req = build_request(:delete_resource_policy, params)
|
|
922
|
-
req.send_request(options)
|
|
923
|
-
end
|
|
924
|
-
|
|
925
|
-
# Deletes a web function and all of its associated revisions and
|
|
926
|
-
# endpoints.
|
|
927
|
-
#
|
|
928
|
-
# To use this operation, you must have the `DeleteWebFunction`
|
|
929
|
-
# permission on the web function. You don't need the
|
|
930
|
-
# `DeleteWebFunctionRevision` or `DeleteWebFunctionEndpoint` permission.
|
|
931
|
-
#
|
|
932
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
933
|
-
# available to external customers.
|
|
934
|
-
#
|
|
935
|
-
# </note>
|
|
936
|
-
#
|
|
937
|
-
# @option params [required, String] :function_name
|
|
938
|
-
# The name of the web function to delete. You can specify the function
|
|
939
|
-
# name or the function ARN. The length constraint applies only to the
|
|
940
|
-
# full ARN. If you specify only the function name, it is limited to 64
|
|
941
|
-
# characters in length.
|
|
942
|
-
#
|
|
943
|
-
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
944
|
-
#
|
|
945
|
-
# @example Request syntax with placeholder values
|
|
946
|
-
#
|
|
947
|
-
# resp = client.delete_web_function({
|
|
948
|
-
# function_name: "FunctionName", # required
|
|
949
|
-
# })
|
|
950
|
-
#
|
|
951
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/DeleteWebFunction AWS API Documentation
|
|
952
|
-
#
|
|
953
|
-
# @overload delete_web_function(params = {})
|
|
954
|
-
# @param [Hash] params ({})
|
|
955
|
-
def delete_web_function(params = {}, options = {})
|
|
956
|
-
req = build_request(:delete_web_function, params)
|
|
957
|
-
req.send_request(options)
|
|
958
|
-
end
|
|
959
|
-
|
|
960
|
-
# Deletes a web function endpoint.
|
|
961
|
-
#
|
|
962
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
963
|
-
# available to external customers.
|
|
964
|
-
#
|
|
965
|
-
# </note>
|
|
966
|
-
#
|
|
967
|
-
# @option params [required, String] :function_name
|
|
968
|
-
# The name of the web function. You can specify the function name or the
|
|
969
|
-
# function ARN. The length constraint applies only to the full ARN. If
|
|
970
|
-
# you specify only the function name, it is limited to 64 characters in
|
|
971
|
-
# length.
|
|
972
|
-
#
|
|
973
|
-
# @option params [required, String] :endpoint_name
|
|
974
|
-
# The name of the endpoint to delete. You can specify the endpoint name
|
|
975
|
-
# or the endpoint ARN. The length constraint applies only to the full
|
|
976
|
-
# ARN. If you specify only the endpoint name, it is limited to 64
|
|
977
|
-
# characters in length.
|
|
978
|
-
#
|
|
979
|
-
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
980
|
-
#
|
|
981
|
-
# @example Request syntax with placeholder values
|
|
982
|
-
#
|
|
983
|
-
# resp = client.delete_web_function_endpoint({
|
|
984
|
-
# function_name: "FunctionName", # required
|
|
985
|
-
# endpoint_name: "EndpointName", # required
|
|
986
|
-
# })
|
|
987
|
-
#
|
|
988
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/DeleteWebFunctionEndpoint AWS API Documentation
|
|
989
|
-
#
|
|
990
|
-
# @overload delete_web_function_endpoint(params = {})
|
|
991
|
-
# @param [Hash] params ({})
|
|
992
|
-
def delete_web_function_endpoint(params = {}, options = {})
|
|
993
|
-
req = build_request(:delete_web_function_endpoint, params)
|
|
994
|
-
req.send_request(options)
|
|
995
|
-
end
|
|
996
|
-
|
|
997
|
-
# Deletes a web function revision. You cannot delete a revision that is
|
|
998
|
-
# currently serving traffic on an endpoint.
|
|
999
|
-
#
|
|
1000
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1001
|
-
# available to external customers.
|
|
1002
|
-
#
|
|
1003
|
-
# </note>
|
|
1004
|
-
#
|
|
1005
|
-
# @option params [required, String] :function_name
|
|
1006
|
-
# The name of the web function. You can specify the function name or the
|
|
1007
|
-
# function ARN. The length constraint applies only to the full ARN. If
|
|
1008
|
-
# you specify only the function name, it is limited to 64 characters in
|
|
1009
|
-
# length.
|
|
1010
|
-
#
|
|
1011
|
-
# @option params [required, String] :revision_id
|
|
1012
|
-
# The identifier of the revision to delete. You can specify the revision
|
|
1013
|
-
# identifier or the revision ARN. The length constraint applies only to
|
|
1014
|
-
# the full ARN.
|
|
1015
|
-
#
|
|
1016
|
-
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1017
|
-
#
|
|
1018
|
-
# @example Request syntax with placeholder values
|
|
1019
|
-
#
|
|
1020
|
-
# resp = client.delete_web_function_revision({
|
|
1021
|
-
# function_name: "FunctionName", # required
|
|
1022
|
-
# revision_id: "RevisionId", # required
|
|
1023
|
-
# })
|
|
1024
|
-
#
|
|
1025
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/DeleteWebFunctionRevision AWS API Documentation
|
|
1026
|
-
#
|
|
1027
|
-
# @overload delete_web_function_revision(params = {})
|
|
1028
|
-
# @param [Hash] params ({})
|
|
1029
|
-
def delete_web_function_revision(params = {}, options = {})
|
|
1030
|
-
req = build_request(:delete_web_function_revision, params)
|
|
1031
|
-
req.send_request(options)
|
|
1032
|
-
end
|
|
1033
|
-
|
|
1034
|
-
# Retrieves the resource-based policy attached to a web function.
|
|
1035
|
-
#
|
|
1036
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1037
|
-
# available to external customers.
|
|
1038
|
-
#
|
|
1039
|
-
# </note>
|
|
1040
|
-
#
|
|
1041
|
-
# @option params [required, String] :resource_arn
|
|
1042
|
-
# The Amazon Resource Name (ARN) of the web function.
|
|
1043
|
-
#
|
|
1044
|
-
# @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1045
|
-
#
|
|
1046
|
-
# * {Types::GetResourcePolicyResponse#policy #policy} => String
|
|
1047
|
-
# * {Types::GetResourcePolicyResponse#revision_id #revision_id} => String
|
|
1048
|
-
#
|
|
1049
|
-
# @example Request syntax with placeholder values
|
|
1050
|
-
#
|
|
1051
|
-
# resp = client.get_resource_policy({
|
|
1052
|
-
# resource_arn: "ResourceArn", # required
|
|
1053
|
-
# })
|
|
1054
|
-
#
|
|
1055
|
-
# @example Response structure
|
|
1056
|
-
#
|
|
1057
|
-
# resp.policy #=> String
|
|
1058
|
-
# resp.revision_id #=> String
|
|
1059
|
-
#
|
|
1060
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetResourcePolicy AWS API Documentation
|
|
1061
|
-
#
|
|
1062
|
-
# @overload get_resource_policy(params = {})
|
|
1063
|
-
# @param [Hash] params ({})
|
|
1064
|
-
def get_resource_policy(params = {}, options = {})
|
|
1065
|
-
req = build_request(:get_resource_policy, params)
|
|
1066
|
-
req.send_request(options)
|
|
1067
|
-
end
|
|
1068
|
-
|
|
1069
477
|
# Retrieves details about your AWS Lambda Web Functions account settings
|
|
1070
478
|
# for the current AWS Region, including the quotas that apply to web
|
|
1071
479
|
# functions and your current usage.
|
|
@@ -1097,730 +505,6 @@ module Aws::LambdaWeb
|
|
|
1097
505
|
req.send_request(options)
|
|
1098
506
|
end
|
|
1099
507
|
|
|
1100
|
-
# Retrieves details about a web function, including its current state
|
|
1101
|
-
# and configuration.
|
|
1102
|
-
#
|
|
1103
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1104
|
-
# available to external customers.
|
|
1105
|
-
#
|
|
1106
|
-
# </note>
|
|
1107
|
-
#
|
|
1108
|
-
# @option params [required, String] :function_name
|
|
1109
|
-
# The name of the web function to retrieve. You can specify the function
|
|
1110
|
-
# name or the function ARN. The length constraint applies only to the
|
|
1111
|
-
# full ARN. If you specify only the function name, it is limited to 64
|
|
1112
|
-
# characters in length.
|
|
1113
|
-
#
|
|
1114
|
-
# @return [Types::GetWebFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1115
|
-
#
|
|
1116
|
-
# * {Types::GetWebFunctionResponse#function_name #function_name} => String
|
|
1117
|
-
# * {Types::GetWebFunctionResponse#function_arn #function_arn} => String
|
|
1118
|
-
# * {Types::GetWebFunctionResponse#state #state} => String
|
|
1119
|
-
# * {Types::GetWebFunctionResponse#state_reason #state_reason} => String
|
|
1120
|
-
# * {Types::GetWebFunctionResponse#created_at #created_at} => Time
|
|
1121
|
-
# * {Types::GetWebFunctionResponse#updated_at #updated_at} => Time
|
|
1122
|
-
#
|
|
1123
|
-
# @example Request syntax with placeholder values
|
|
1124
|
-
#
|
|
1125
|
-
# resp = client.get_web_function({
|
|
1126
|
-
# function_name: "FunctionName", # required
|
|
1127
|
-
# })
|
|
1128
|
-
#
|
|
1129
|
-
# @example Response structure
|
|
1130
|
-
#
|
|
1131
|
-
# resp.function_name #=> String
|
|
1132
|
-
# resp.function_arn #=> String
|
|
1133
|
-
# resp.state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
1134
|
-
# resp.state_reason #=> String
|
|
1135
|
-
# resp.created_at #=> Time
|
|
1136
|
-
# resp.updated_at #=> Time
|
|
1137
|
-
#
|
|
1138
|
-
#
|
|
1139
|
-
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1140
|
-
#
|
|
1141
|
-
# * web_function_active
|
|
1142
|
-
# * web_function_deleted
|
|
1143
|
-
#
|
|
1144
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebFunction AWS API Documentation
|
|
1145
|
-
#
|
|
1146
|
-
# @overload get_web_function(params = {})
|
|
1147
|
-
# @param [Hash] params ({})
|
|
1148
|
-
def get_web_function(params = {}, options = {})
|
|
1149
|
-
req = build_request(:get_web_function, params)
|
|
1150
|
-
req.send_request(options)
|
|
1151
|
-
end
|
|
1152
|
-
|
|
1153
|
-
# Retrieves details about a web function endpoint, including its current
|
|
1154
|
-
# state, configuration, and domain name.
|
|
1155
|
-
#
|
|
1156
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1157
|
-
# available to external customers.
|
|
1158
|
-
#
|
|
1159
|
-
# </note>
|
|
1160
|
-
#
|
|
1161
|
-
# @option params [required, String] :function_name
|
|
1162
|
-
# The name of the web function. You can specify the function name or the
|
|
1163
|
-
# function ARN. The length constraint applies only to the full ARN. If
|
|
1164
|
-
# you specify only the function name, it is limited to 64 characters in
|
|
1165
|
-
# length.
|
|
1166
|
-
#
|
|
1167
|
-
# @option params [required, String] :endpoint_name
|
|
1168
|
-
# The name of the endpoint to retrieve. You can specify the endpoint
|
|
1169
|
-
# name or the endpoint ARN. The length constraint applies only to the
|
|
1170
|
-
# full ARN. If you specify only the endpoint name, it is limited to 64
|
|
1171
|
-
# characters in length.
|
|
1172
|
-
#
|
|
1173
|
-
# @return [Types::GetWebFunctionEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1174
|
-
#
|
|
1175
|
-
# * {Types::GetWebFunctionEndpointResponse#function_arn #function_arn} => String
|
|
1176
|
-
# * {Types::GetWebFunctionEndpointResponse#endpoint_arn #endpoint_arn} => String
|
|
1177
|
-
# * {Types::GetWebFunctionEndpointResponse#endpoint_name #endpoint_name} => String
|
|
1178
|
-
# * {Types::GetWebFunctionEndpointResponse#description #description} => String
|
|
1179
|
-
# * {Types::GetWebFunctionEndpointResponse#endpoint_type #endpoint_type} => String
|
|
1180
|
-
# * {Types::GetWebFunctionEndpointResponse#domain_name #domain_name} => String
|
|
1181
|
-
# * {Types::GetWebFunctionEndpointResponse#auth_type #auth_type} => String
|
|
1182
|
-
# * {Types::GetWebFunctionEndpointResponse#auto_deployment_mode #auto_deployment_mode} => String
|
|
1183
|
-
# * {Types::GetWebFunctionEndpointResponse#revision_weights #revision_weights} => Array<Types::RevisionWeight>
|
|
1184
|
-
# * {Types::GetWebFunctionEndpointResponse#regions #regions} => Array<String>
|
|
1185
|
-
# * {Types::GetWebFunctionEndpointResponse#scaling_config #scaling_config} => Types::ScalingConfig
|
|
1186
|
-
# * {Types::GetWebFunctionEndpointResponse#throttle_config #throttle_config} => Types::ThrottleConfig
|
|
1187
|
-
# * {Types::GetWebFunctionEndpointResponse#state #state} => String
|
|
1188
|
-
# * {Types::GetWebFunctionEndpointResponse#state_reason #state_reason} => String
|
|
1189
|
-
# * {Types::GetWebFunctionEndpointResponse#update_status #update_status} => String
|
|
1190
|
-
# * {Types::GetWebFunctionEndpointResponse#update_status_reason #update_status_reason} => String
|
|
1191
|
-
# * {Types::GetWebFunctionEndpointResponse#regional_endpoints #regional_endpoints} => Hash<String,Types::RegionalEndpoint>
|
|
1192
|
-
# * {Types::GetWebFunctionEndpointResponse#created_at #created_at} => Time
|
|
1193
|
-
# * {Types::GetWebFunctionEndpointResponse#updated_at #updated_at} => Time
|
|
1194
|
-
#
|
|
1195
|
-
# @example Request syntax with placeholder values
|
|
1196
|
-
#
|
|
1197
|
-
# resp = client.get_web_function_endpoint({
|
|
1198
|
-
# function_name: "FunctionName", # required
|
|
1199
|
-
# endpoint_name: "EndpointName", # required
|
|
1200
|
-
# })
|
|
1201
|
-
#
|
|
1202
|
-
# @example Response structure
|
|
1203
|
-
#
|
|
1204
|
-
# resp.function_arn #=> String
|
|
1205
|
-
# resp.endpoint_arn #=> String
|
|
1206
|
-
# resp.endpoint_name #=> String
|
|
1207
|
-
# resp.description #=> String
|
|
1208
|
-
# resp.endpoint_type #=> String, one of "HomeRegion", "MultiRegion", "PerRegion"
|
|
1209
|
-
# resp.domain_name #=> String
|
|
1210
|
-
# resp.auth_type #=> String, one of "ApplicationManaged", "IamAuth"
|
|
1211
|
-
# resp.auto_deployment_mode #=> String, one of "LatestRevision", "Disabled"
|
|
1212
|
-
# resp.revision_weights #=> Array
|
|
1213
|
-
# resp.revision_weights[0].revision_id #=> String
|
|
1214
|
-
# resp.revision_weights[0].weight #=> Integer
|
|
1215
|
-
# resp.regions #=> Array
|
|
1216
|
-
# resp.regions[0] #=> String
|
|
1217
|
-
# resp.scaling_config.max_environments #=> Integer
|
|
1218
|
-
# resp.throttle_config.rate_limit #=> Integer
|
|
1219
|
-
# resp.state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
1220
|
-
# resp.state_reason #=> String
|
|
1221
|
-
# resp.update_status #=> String, one of "InProgress", "Successful", "Failed"
|
|
1222
|
-
# resp.update_status_reason #=> String
|
|
1223
|
-
# resp.regional_endpoints #=> Hash
|
|
1224
|
-
# resp.regional_endpoints["Region"].domain_name #=> String
|
|
1225
|
-
# resp.regional_endpoints["Region"].auth_type #=> String, one of "ApplicationManaged", "IamAuth"
|
|
1226
|
-
# resp.regional_endpoints["Region"].revision_weights #=> Array
|
|
1227
|
-
# resp.regional_endpoints["Region"].revision_weights[0].revision_id #=> String
|
|
1228
|
-
# resp.regional_endpoints["Region"].revision_weights[0].weight #=> Integer
|
|
1229
|
-
# resp.regional_endpoints["Region"].scaling_config.max_environments #=> Integer
|
|
1230
|
-
# resp.regional_endpoints["Region"].throttle_config.rate_limit #=> Integer
|
|
1231
|
-
# resp.regional_endpoints["Region"].state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
1232
|
-
# resp.regional_endpoints["Region"].state_reason #=> String
|
|
1233
|
-
# resp.regional_endpoints["Region"].update_status #=> String, one of "InProgress", "Successful", "Failed"
|
|
1234
|
-
# resp.regional_endpoints["Region"].update_status_reason #=> String
|
|
1235
|
-
# resp.created_at #=> Time
|
|
1236
|
-
# resp.updated_at #=> Time
|
|
1237
|
-
#
|
|
1238
|
-
#
|
|
1239
|
-
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1240
|
-
#
|
|
1241
|
-
# * web_function_endpoint_active
|
|
1242
|
-
# * web_function_endpoint_deleted
|
|
1243
|
-
# * web_function_endpoint_updated
|
|
1244
|
-
#
|
|
1245
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebFunctionEndpoint AWS API Documentation
|
|
1246
|
-
#
|
|
1247
|
-
# @overload get_web_function_endpoint(params = {})
|
|
1248
|
-
# @param [Hash] params ({})
|
|
1249
|
-
def get_web_function_endpoint(params = {}, options = {})
|
|
1250
|
-
req = build_request(:get_web_function_endpoint, params)
|
|
1251
|
-
req.send_request(options)
|
|
1252
|
-
end
|
|
1253
|
-
|
|
1254
|
-
# Retrieves details about a web function revision, including its state
|
|
1255
|
-
# and configuration.
|
|
1256
|
-
#
|
|
1257
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1258
|
-
# available to external customers.
|
|
1259
|
-
#
|
|
1260
|
-
# </note>
|
|
1261
|
-
#
|
|
1262
|
-
# @option params [required, String] :function_name
|
|
1263
|
-
# The name of the web function. You can specify the function name or the
|
|
1264
|
-
# function ARN. The length constraint applies only to the full ARN. If
|
|
1265
|
-
# you specify only the function name, it is limited to 64 characters in
|
|
1266
|
-
# length.
|
|
1267
|
-
#
|
|
1268
|
-
# @option params [required, String] :revision_id
|
|
1269
|
-
# The identifier of the revision to retrieve. You can specify the
|
|
1270
|
-
# revision identifier or the revision ARN. The length constraint applies
|
|
1271
|
-
# only to the full ARN.
|
|
1272
|
-
#
|
|
1273
|
-
# @return [Types::GetWebFunctionRevisionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1274
|
-
#
|
|
1275
|
-
# * {Types::GetWebFunctionRevisionResponse#function_arn #function_arn} => String
|
|
1276
|
-
# * {Types::GetWebFunctionRevisionResponse#revision_arn #revision_arn} => String
|
|
1277
|
-
# * {Types::GetWebFunctionRevisionResponse#revision_id #revision_id} => String
|
|
1278
|
-
# * {Types::GetWebFunctionRevisionResponse#description #description} => String
|
|
1279
|
-
# * {Types::GetWebFunctionRevisionResponse#kms_key_arn #kms_key_arn} => String
|
|
1280
|
-
# * {Types::GetWebFunctionRevisionResponse#build_config #build_config} => Types::BuildConfig
|
|
1281
|
-
# * {Types::GetWebFunctionRevisionResponse#service_config #service_config} => Types::ServiceConfig
|
|
1282
|
-
# * {Types::GetWebFunctionRevisionResponse#state #state} => String
|
|
1283
|
-
# * {Types::GetWebFunctionRevisionResponse#state_reason #state_reason} => String
|
|
1284
|
-
# * {Types::GetWebFunctionRevisionResponse#errors #errors} => Array<Types::RevisionError>
|
|
1285
|
-
# * {Types::GetWebFunctionRevisionResponse#created_at #created_at} => Time
|
|
1286
|
-
#
|
|
1287
|
-
# @example Request syntax with placeholder values
|
|
1288
|
-
#
|
|
1289
|
-
# resp = client.get_web_function_revision({
|
|
1290
|
-
# function_name: "FunctionName", # required
|
|
1291
|
-
# revision_id: "RevisionId", # required
|
|
1292
|
-
# })
|
|
1293
|
-
#
|
|
1294
|
-
# @example Response structure
|
|
1295
|
-
#
|
|
1296
|
-
# resp.function_arn #=> String
|
|
1297
|
-
# resp.revision_arn #=> String
|
|
1298
|
-
# resp.revision_id #=> String
|
|
1299
|
-
# resp.description #=> String
|
|
1300
|
-
# resp.kms_key_arn #=> String
|
|
1301
|
-
# resp.build_config.code_config.s3_object.bucket #=> String
|
|
1302
|
-
# resp.build_config.code_config.s3_object.key #=> String
|
|
1303
|
-
# resp.build_config.code_config.s3_object.version_id #=> String
|
|
1304
|
-
# resp.build_config.runtime_config.runtime #=> String
|
|
1305
|
-
# resp.service_config.execution_role_arn #=> String
|
|
1306
|
-
# resp.service_config.timeout_seconds #=> Integer
|
|
1307
|
-
# resp.service_config.max_concurrency_per_environment #=> Integer
|
|
1308
|
-
# resp.service_config.environment_variables #=> Hash
|
|
1309
|
-
# resp.service_config.environment_variables["EnvironmentVariablesKeyString"] #=> String
|
|
1310
|
-
# resp.service_config.telemetry_config.logging_config.log_group #=> String
|
|
1311
|
-
# resp.service_config.telemetry_config.logging_config.application_log_level #=> String, one of "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL"
|
|
1312
|
-
# resp.service_config.telemetry_config.logging_config.system_log_level #=> String, one of "DEBUG", "INFO", "WARN"
|
|
1313
|
-
# resp.state #=> String, one of "Pending", "Active", "Failed"
|
|
1314
|
-
# resp.state_reason #=> String
|
|
1315
|
-
# resp.errors #=> Array
|
|
1316
|
-
# resp.errors[0].attribute #=> String
|
|
1317
|
-
# resp.errors[0].error_code #=> String
|
|
1318
|
-
# resp.errors[0].error_message #=> String
|
|
1319
|
-
# resp.created_at #=> Time
|
|
1320
|
-
#
|
|
1321
|
-
#
|
|
1322
|
-
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1323
|
-
#
|
|
1324
|
-
# * web_function_revision_active
|
|
1325
|
-
#
|
|
1326
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/GetWebFunctionRevision AWS API Documentation
|
|
1327
|
-
#
|
|
1328
|
-
# @overload get_web_function_revision(params = {})
|
|
1329
|
-
# @param [Hash] params ({})
|
|
1330
|
-
def get_web_function_revision(params = {}, options = {})
|
|
1331
|
-
req = build_request(:get_web_function_revision, params)
|
|
1332
|
-
req.send_request(options)
|
|
1333
|
-
end
|
|
1334
|
-
|
|
1335
|
-
# Returns a list of tags applied to a web function.
|
|
1336
|
-
#
|
|
1337
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1338
|
-
# available to external customers.
|
|
1339
|
-
#
|
|
1340
|
-
# </note>
|
|
1341
|
-
#
|
|
1342
|
-
# @option params [required, String] :resource
|
|
1343
|
-
# The Amazon Resource Name (ARN) of the web function.
|
|
1344
|
-
#
|
|
1345
|
-
# @return [Types::ListTagsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1346
|
-
#
|
|
1347
|
-
# * {Types::ListTagsResponse#tags #tags} => Hash<String,String>
|
|
1348
|
-
#
|
|
1349
|
-
# @example Request syntax with placeholder values
|
|
1350
|
-
#
|
|
1351
|
-
# resp = client.list_tags({
|
|
1352
|
-
# resource: "ResourceArn", # required
|
|
1353
|
-
# })
|
|
1354
|
-
#
|
|
1355
|
-
# @example Response structure
|
|
1356
|
-
#
|
|
1357
|
-
# resp.tags #=> Hash
|
|
1358
|
-
# resp.tags["TagKey"] #=> String
|
|
1359
|
-
#
|
|
1360
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListTags AWS API Documentation
|
|
1361
|
-
#
|
|
1362
|
-
# @overload list_tags(params = {})
|
|
1363
|
-
# @param [Hash] params ({})
|
|
1364
|
-
def list_tags(params = {}, options = {})
|
|
1365
|
-
req = build_request(:list_tags, params)
|
|
1366
|
-
req.send_request(options)
|
|
1367
|
-
end
|
|
1368
|
-
|
|
1369
|
-
# Lists endpoints for a web function. We recommend using pagination to
|
|
1370
|
-
# ensure that the operation returns quickly and successfully.
|
|
1371
|
-
#
|
|
1372
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1373
|
-
# available to external customers.
|
|
1374
|
-
#
|
|
1375
|
-
# </note>
|
|
1376
|
-
#
|
|
1377
|
-
# @option params [required, String] :function_name
|
|
1378
|
-
# The name of the web function. You can specify the function name or the
|
|
1379
|
-
# function ARN. The length constraint applies only to the full ARN. If
|
|
1380
|
-
# you specify only the function name, it is limited to 64 characters in
|
|
1381
|
-
# length.
|
|
1382
|
-
#
|
|
1383
|
-
# @option params [Array<Types::Filter>] :filters
|
|
1384
|
-
# A list of filters to apply to the results. Supported filter names:
|
|
1385
|
-
# `authType`, `autoDeploymentMode`, `endpointType`, `state`, and
|
|
1386
|
-
# `updateStatus`.
|
|
1387
|
-
#
|
|
1388
|
-
# @option params [Integer] :max_results
|
|
1389
|
-
# The maximum number of results to return in a single call. Minimum
|
|
1390
|
-
# value of 1, maximum value of 50. Default is 50.
|
|
1391
|
-
#
|
|
1392
|
-
# @option params [String] :next_token
|
|
1393
|
-
# The pagination token that's returned by a previous request to
|
|
1394
|
-
# retrieve the next page of results.
|
|
1395
|
-
#
|
|
1396
|
-
# @return [Types::ListWebFunctionEndpointsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1397
|
-
#
|
|
1398
|
-
# * {Types::ListWebFunctionEndpointsResponse#endpoints #endpoints} => Array<Types::FunctionEndpointSummary>
|
|
1399
|
-
# * {Types::ListWebFunctionEndpointsResponse#next_token #next_token} => String
|
|
1400
|
-
#
|
|
1401
|
-
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1402
|
-
#
|
|
1403
|
-
# @example Request syntax with placeholder values
|
|
1404
|
-
#
|
|
1405
|
-
# resp = client.list_web_function_endpoints({
|
|
1406
|
-
# function_name: "FunctionName", # required
|
|
1407
|
-
# filters: [
|
|
1408
|
-
# {
|
|
1409
|
-
# name: "FilterNameString", # required
|
|
1410
|
-
# values: ["FilterValueListMemberString"], # required
|
|
1411
|
-
# },
|
|
1412
|
-
# ],
|
|
1413
|
-
# max_results: 1,
|
|
1414
|
-
# next_token: "NextToken",
|
|
1415
|
-
# })
|
|
1416
|
-
#
|
|
1417
|
-
# @example Response structure
|
|
1418
|
-
#
|
|
1419
|
-
# resp.endpoints #=> Array
|
|
1420
|
-
# resp.endpoints[0].endpoint_arn #=> String
|
|
1421
|
-
# resp.endpoints[0].endpoint_name #=> String
|
|
1422
|
-
# resp.endpoints[0].description #=> String
|
|
1423
|
-
# resp.endpoints[0].endpoint_type #=> String, one of "HomeRegion", "MultiRegion", "PerRegion"
|
|
1424
|
-
# resp.endpoints[0].domain_name #=> String
|
|
1425
|
-
# resp.endpoints[0].auth_type #=> String, one of "ApplicationManaged", "IamAuth"
|
|
1426
|
-
# resp.endpoints[0].auto_deployment_mode #=> String, one of "LatestRevision", "Disabled"
|
|
1427
|
-
# resp.endpoints[0].revision_weights #=> Array
|
|
1428
|
-
# resp.endpoints[0].revision_weights[0].revision_id #=> String
|
|
1429
|
-
# resp.endpoints[0].revision_weights[0].weight #=> Integer
|
|
1430
|
-
# resp.endpoints[0].regions #=> Array
|
|
1431
|
-
# resp.endpoints[0].regions[0] #=> String
|
|
1432
|
-
# resp.endpoints[0].scaling_config.max_environments #=> Integer
|
|
1433
|
-
# resp.endpoints[0].throttle_config.rate_limit #=> Integer
|
|
1434
|
-
# resp.endpoints[0].state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
1435
|
-
# resp.endpoints[0].state_reason #=> String
|
|
1436
|
-
# resp.endpoints[0].update_status #=> String, one of "InProgress", "Successful", "Failed"
|
|
1437
|
-
# resp.endpoints[0].update_status_reason #=> String
|
|
1438
|
-
# resp.endpoints[0].created_at #=> Time
|
|
1439
|
-
# resp.endpoints[0].updated_at #=> Time
|
|
1440
|
-
# resp.next_token #=> String
|
|
1441
|
-
#
|
|
1442
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListWebFunctionEndpoints AWS API Documentation
|
|
1443
|
-
#
|
|
1444
|
-
# @overload list_web_function_endpoints(params = {})
|
|
1445
|
-
# @param [Hash] params ({})
|
|
1446
|
-
def list_web_function_endpoints(params = {}, options = {})
|
|
1447
|
-
req = build_request(:list_web_function_endpoints, params)
|
|
1448
|
-
req.send_request(options)
|
|
1449
|
-
end
|
|
1450
|
-
|
|
1451
|
-
# Lists revisions for a web function. We recommend using pagination to
|
|
1452
|
-
# ensure that the operation returns quickly and successfully.
|
|
1453
|
-
#
|
|
1454
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1455
|
-
# available to external customers.
|
|
1456
|
-
#
|
|
1457
|
-
# </note>
|
|
1458
|
-
#
|
|
1459
|
-
# @option params [required, String] :function_name
|
|
1460
|
-
# The name of the web function. You can specify the function name or the
|
|
1461
|
-
# function ARN. The length constraint applies only to the full ARN. If
|
|
1462
|
-
# you specify only the function name, it is limited to 64 characters in
|
|
1463
|
-
# length.
|
|
1464
|
-
#
|
|
1465
|
-
# @option params [Array<Types::Filter>] :filters
|
|
1466
|
-
# A list of filters to apply to the results. The only supported filter
|
|
1467
|
-
# name is `state`.
|
|
1468
|
-
#
|
|
1469
|
-
# @option params [Integer] :max_results
|
|
1470
|
-
# The maximum number of results to return in a single call. Minimum
|
|
1471
|
-
# value of 1, maximum value of 50. Default is 50.
|
|
1472
|
-
#
|
|
1473
|
-
# @option params [String] :next_token
|
|
1474
|
-
# The pagination token that's returned by a previous request to
|
|
1475
|
-
# retrieve the next page of results.
|
|
1476
|
-
#
|
|
1477
|
-
# @return [Types::ListWebFunctionRevisionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1478
|
-
#
|
|
1479
|
-
# * {Types::ListWebFunctionRevisionsResponse#revisions #revisions} => Array<Types::FunctionRevisionSummary>
|
|
1480
|
-
# * {Types::ListWebFunctionRevisionsResponse#next_token #next_token} => String
|
|
1481
|
-
#
|
|
1482
|
-
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1483
|
-
#
|
|
1484
|
-
# @example Request syntax with placeholder values
|
|
1485
|
-
#
|
|
1486
|
-
# resp = client.list_web_function_revisions({
|
|
1487
|
-
# function_name: "FunctionName", # required
|
|
1488
|
-
# filters: [
|
|
1489
|
-
# {
|
|
1490
|
-
# name: "FilterNameString", # required
|
|
1491
|
-
# values: ["FilterValueListMemberString"], # required
|
|
1492
|
-
# },
|
|
1493
|
-
# ],
|
|
1494
|
-
# max_results: 1,
|
|
1495
|
-
# next_token: "NextToken",
|
|
1496
|
-
# })
|
|
1497
|
-
#
|
|
1498
|
-
# @example Response structure
|
|
1499
|
-
#
|
|
1500
|
-
# resp.revisions #=> Array
|
|
1501
|
-
# resp.revisions[0].revision_arn #=> String
|
|
1502
|
-
# resp.revisions[0].revision_id #=> String
|
|
1503
|
-
# resp.revisions[0].description #=> String
|
|
1504
|
-
# resp.revisions[0].state #=> String, one of "Pending", "Active", "Failed"
|
|
1505
|
-
# resp.revisions[0].state_reason #=> String
|
|
1506
|
-
# resp.revisions[0].created_at #=> Time
|
|
1507
|
-
# resp.next_token #=> String
|
|
1508
|
-
#
|
|
1509
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListWebFunctionRevisions AWS API Documentation
|
|
1510
|
-
#
|
|
1511
|
-
# @overload list_web_function_revisions(params = {})
|
|
1512
|
-
# @param [Hash] params ({})
|
|
1513
|
-
def list_web_function_revisions(params = {}, options = {})
|
|
1514
|
-
req = build_request(:list_web_function_revisions, params)
|
|
1515
|
-
req.send_request(options)
|
|
1516
|
-
end
|
|
1517
|
-
|
|
1518
|
-
# Lists web functions in your account. We recommend using pagination to
|
|
1519
|
-
# ensure that the operation returns quickly and successfully.
|
|
1520
|
-
#
|
|
1521
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1522
|
-
# available to external customers.
|
|
1523
|
-
#
|
|
1524
|
-
# </note>
|
|
1525
|
-
#
|
|
1526
|
-
# @option params [Array<Types::Filter>] :filters
|
|
1527
|
-
# A list of filters to apply to the results. The only supported filter
|
|
1528
|
-
# name is `state`.
|
|
1529
|
-
#
|
|
1530
|
-
# @option params [Integer] :max_results
|
|
1531
|
-
# The maximum number of results to return in a single call. Minimum
|
|
1532
|
-
# value of 1, maximum value of 50. Default is 50.
|
|
1533
|
-
#
|
|
1534
|
-
# @option params [String] :next_token
|
|
1535
|
-
# The pagination token that's returned by a previous request to
|
|
1536
|
-
# retrieve the next page of results.
|
|
1537
|
-
#
|
|
1538
|
-
# @return [Types::ListWebFunctionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1539
|
-
#
|
|
1540
|
-
# * {Types::ListWebFunctionsResponse#functions #functions} => Array<Types::FunctionSummary>
|
|
1541
|
-
# * {Types::ListWebFunctionsResponse#next_token #next_token} => String
|
|
1542
|
-
#
|
|
1543
|
-
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1544
|
-
#
|
|
1545
|
-
# @example Request syntax with placeholder values
|
|
1546
|
-
#
|
|
1547
|
-
# resp = client.list_web_functions({
|
|
1548
|
-
# filters: [
|
|
1549
|
-
# {
|
|
1550
|
-
# name: "FilterNameString", # required
|
|
1551
|
-
# values: ["FilterValueListMemberString"], # required
|
|
1552
|
-
# },
|
|
1553
|
-
# ],
|
|
1554
|
-
# max_results: 1,
|
|
1555
|
-
# next_token: "NextToken",
|
|
1556
|
-
# })
|
|
1557
|
-
#
|
|
1558
|
-
# @example Response structure
|
|
1559
|
-
#
|
|
1560
|
-
# resp.functions #=> Array
|
|
1561
|
-
# resp.functions[0].function_name #=> String
|
|
1562
|
-
# resp.functions[0].function_arn #=> String
|
|
1563
|
-
# resp.functions[0].state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
1564
|
-
# resp.functions[0].state_reason #=> String
|
|
1565
|
-
# resp.functions[0].created_at #=> Time
|
|
1566
|
-
# resp.functions[0].updated_at #=> Time
|
|
1567
|
-
# resp.next_token #=> String
|
|
1568
|
-
#
|
|
1569
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/ListWebFunctions AWS API Documentation
|
|
1570
|
-
#
|
|
1571
|
-
# @overload list_web_functions(params = {})
|
|
1572
|
-
# @param [Hash] params ({})
|
|
1573
|
-
def list_web_functions(params = {}, options = {})
|
|
1574
|
-
req = build_request(:list_web_functions, params)
|
|
1575
|
-
req.send_request(options)
|
|
1576
|
-
end
|
|
1577
|
-
|
|
1578
|
-
# Adds or updates a resource-based policy on a web function. A
|
|
1579
|
-
# resource-based policy grants permissions to other AWS accounts or
|
|
1580
|
-
# services to perform actions on the web function.
|
|
1581
|
-
#
|
|
1582
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1583
|
-
# available to external customers.
|
|
1584
|
-
#
|
|
1585
|
-
# </note>
|
|
1586
|
-
#
|
|
1587
|
-
# @option params [required, String] :resource_arn
|
|
1588
|
-
# The Amazon Resource Name (ARN) of the web function.
|
|
1589
|
-
#
|
|
1590
|
-
# @option params [required, String] :policy
|
|
1591
|
-
# The JSON-formatted resource-based policy to attach to the web
|
|
1592
|
-
# function.
|
|
1593
|
-
#
|
|
1594
|
-
# @option params [String] :revision_id
|
|
1595
|
-
# The revision ID of the existing policy. Use this to prevent conflicts
|
|
1596
|
-
# when updating a policy concurrently. If you don't specify a value,
|
|
1597
|
-
# the update proceeds without checking the current revision.
|
|
1598
|
-
#
|
|
1599
|
-
# @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1600
|
-
#
|
|
1601
|
-
# * {Types::PutResourcePolicyResponse#policy #policy} => String
|
|
1602
|
-
# * {Types::PutResourcePolicyResponse#revision_id #revision_id} => String
|
|
1603
|
-
#
|
|
1604
|
-
# @example Request syntax with placeholder values
|
|
1605
|
-
#
|
|
1606
|
-
# resp = client.put_resource_policy({
|
|
1607
|
-
# resource_arn: "ResourceArn", # required
|
|
1608
|
-
# policy: "ResourcePolicy", # required
|
|
1609
|
-
# revision_id: "PolicyRevisionId",
|
|
1610
|
-
# })
|
|
1611
|
-
#
|
|
1612
|
-
# @example Response structure
|
|
1613
|
-
#
|
|
1614
|
-
# resp.policy #=> String
|
|
1615
|
-
# resp.revision_id #=> String
|
|
1616
|
-
#
|
|
1617
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/PutResourcePolicy AWS API Documentation
|
|
1618
|
-
#
|
|
1619
|
-
# @overload put_resource_policy(params = {})
|
|
1620
|
-
# @param [Hash] params ({})
|
|
1621
|
-
def put_resource_policy(params = {}, options = {})
|
|
1622
|
-
req = build_request(:put_resource_policy, params)
|
|
1623
|
-
req.send_request(options)
|
|
1624
|
-
end
|
|
1625
|
-
|
|
1626
|
-
# Adds tags to a web function. If a tag key already exists, the existing
|
|
1627
|
-
# value is overwritten with the new value.
|
|
1628
|
-
#
|
|
1629
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1630
|
-
# available to external customers.
|
|
1631
|
-
#
|
|
1632
|
-
# </note>
|
|
1633
|
-
#
|
|
1634
|
-
# @option params [required, String] :resource
|
|
1635
|
-
# The Amazon Resource Name (ARN) of the web function.
|
|
1636
|
-
#
|
|
1637
|
-
# @option params [required, Hash<String,String>] :tags
|
|
1638
|
-
# A map of tag keys and values to add to the web function.
|
|
1639
|
-
#
|
|
1640
|
-
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1641
|
-
#
|
|
1642
|
-
# @example Request syntax with placeholder values
|
|
1643
|
-
#
|
|
1644
|
-
# resp = client.tag_resource({
|
|
1645
|
-
# resource: "ResourceArn", # required
|
|
1646
|
-
# tags: { # required
|
|
1647
|
-
# "TagKey" => "TagsValueString",
|
|
1648
|
-
# },
|
|
1649
|
-
# })
|
|
1650
|
-
#
|
|
1651
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/TagResource AWS API Documentation
|
|
1652
|
-
#
|
|
1653
|
-
# @overload tag_resource(params = {})
|
|
1654
|
-
# @param [Hash] params ({})
|
|
1655
|
-
def tag_resource(params = {}, options = {})
|
|
1656
|
-
req = build_request(:tag_resource, params)
|
|
1657
|
-
req.send_request(options)
|
|
1658
|
-
end
|
|
1659
|
-
|
|
1660
|
-
# Removes tags from a web function.
|
|
1661
|
-
#
|
|
1662
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1663
|
-
# available to external customers.
|
|
1664
|
-
#
|
|
1665
|
-
# </note>
|
|
1666
|
-
#
|
|
1667
|
-
# @option params [required, String] :resource
|
|
1668
|
-
# The Amazon Resource Name (ARN) of the web function.
|
|
1669
|
-
#
|
|
1670
|
-
# @option params [required, Array<String>] :tag_keys
|
|
1671
|
-
# A list of tag keys to remove from the web function.
|
|
1672
|
-
#
|
|
1673
|
-
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1674
|
-
#
|
|
1675
|
-
# @example Request syntax with placeholder values
|
|
1676
|
-
#
|
|
1677
|
-
# resp = client.untag_resource({
|
|
1678
|
-
# resource: "ResourceArn", # required
|
|
1679
|
-
# tag_keys: ["TagKey"], # required
|
|
1680
|
-
# })
|
|
1681
|
-
#
|
|
1682
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/UntagResource AWS API Documentation
|
|
1683
|
-
#
|
|
1684
|
-
# @overload untag_resource(params = {})
|
|
1685
|
-
# @param [Hash] params ({})
|
|
1686
|
-
def untag_resource(params = {}, options = {})
|
|
1687
|
-
req = build_request(:untag_resource, params)
|
|
1688
|
-
req.send_request(options)
|
|
1689
|
-
end
|
|
1690
|
-
|
|
1691
|
-
# Updates the configuration of a web function endpoint. You can modify
|
|
1692
|
-
# the authorization type, auto-deployment mode, revision weights,
|
|
1693
|
-
# scaling, and throttling settings.
|
|
1694
|
-
#
|
|
1695
|
-
# <note markdown="1"> This API is experimental and for internal AWS use only. It is not yet
|
|
1696
|
-
# available to external customers.
|
|
1697
|
-
#
|
|
1698
|
-
# </note>
|
|
1699
|
-
#
|
|
1700
|
-
# @option params [required, String] :function_name
|
|
1701
|
-
# The name of the web function. You can specify the function name or the
|
|
1702
|
-
# function ARN. The length constraint applies only to the full ARN. If
|
|
1703
|
-
# you specify only the function name, it is limited to 64 characters in
|
|
1704
|
-
# length.
|
|
1705
|
-
#
|
|
1706
|
-
# @option params [required, String] :endpoint_name
|
|
1707
|
-
# The name of the endpoint to update. You can specify the endpoint name
|
|
1708
|
-
# or the endpoint ARN. The length constraint applies only to the full
|
|
1709
|
-
# ARN. If you specify only the endpoint name, it is limited to 64
|
|
1710
|
-
# characters in length.
|
|
1711
|
-
#
|
|
1712
|
-
# @option params [String] :description
|
|
1713
|
-
# A description of the endpoint.
|
|
1714
|
-
#
|
|
1715
|
-
# @option params [String] :auth_type
|
|
1716
|
-
# The authorization type for the endpoint.
|
|
1717
|
-
#
|
|
1718
|
-
# @option params [String] :auto_deployment_mode
|
|
1719
|
-
# The auto-deployment mode for the endpoint.
|
|
1720
|
-
#
|
|
1721
|
-
# @option params [Array<Types::RevisionWeight>] :revision_weights
|
|
1722
|
-
# A list of revision weights that determine how traffic is distributed
|
|
1723
|
-
# across revisions.
|
|
1724
|
-
#
|
|
1725
|
-
# @option params [Types::ScalingConfig] :scaling_config
|
|
1726
|
-
# The scaling configuration for the endpoint. Omit this field to keep
|
|
1727
|
-
# the current scaling configuration. To clear a previously set
|
|
1728
|
-
# `maxEnvironments` value, specify an empty object.
|
|
1729
|
-
#
|
|
1730
|
-
# @option params [Types::ThrottleConfig] :throttle_config
|
|
1731
|
-
# The throttling configuration for the endpoint. Omit this field to keep
|
|
1732
|
-
# the current throttling configuration. To clear a previously set
|
|
1733
|
-
# `rateLimit` value, specify an empty object.
|
|
1734
|
-
#
|
|
1735
|
-
# @return [Types::UpdateWebFunctionEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1736
|
-
#
|
|
1737
|
-
# * {Types::UpdateWebFunctionEndpointResponse#function_arn #function_arn} => String
|
|
1738
|
-
# * {Types::UpdateWebFunctionEndpointResponse#endpoint_arn #endpoint_arn} => String
|
|
1739
|
-
# * {Types::UpdateWebFunctionEndpointResponse#endpoint_name #endpoint_name} => String
|
|
1740
|
-
# * {Types::UpdateWebFunctionEndpointResponse#description #description} => String
|
|
1741
|
-
# * {Types::UpdateWebFunctionEndpointResponse#endpoint_type #endpoint_type} => String
|
|
1742
|
-
# * {Types::UpdateWebFunctionEndpointResponse#domain_name #domain_name} => String
|
|
1743
|
-
# * {Types::UpdateWebFunctionEndpointResponse#auth_type #auth_type} => String
|
|
1744
|
-
# * {Types::UpdateWebFunctionEndpointResponse#auto_deployment_mode #auto_deployment_mode} => String
|
|
1745
|
-
# * {Types::UpdateWebFunctionEndpointResponse#revision_weights #revision_weights} => Array<Types::RevisionWeight>
|
|
1746
|
-
# * {Types::UpdateWebFunctionEndpointResponse#regions #regions} => Array<String>
|
|
1747
|
-
# * {Types::UpdateWebFunctionEndpointResponse#scaling_config #scaling_config} => Types::ScalingConfig
|
|
1748
|
-
# * {Types::UpdateWebFunctionEndpointResponse#throttle_config #throttle_config} => Types::ThrottleConfig
|
|
1749
|
-
# * {Types::UpdateWebFunctionEndpointResponse#state #state} => String
|
|
1750
|
-
# * {Types::UpdateWebFunctionEndpointResponse#state_reason #state_reason} => String
|
|
1751
|
-
# * {Types::UpdateWebFunctionEndpointResponse#update_status #update_status} => String
|
|
1752
|
-
# * {Types::UpdateWebFunctionEndpointResponse#update_status_reason #update_status_reason} => String
|
|
1753
|
-
# * {Types::UpdateWebFunctionEndpointResponse#regional_endpoints #regional_endpoints} => Hash<String,Types::RegionalEndpoint>
|
|
1754
|
-
# * {Types::UpdateWebFunctionEndpointResponse#created_at #created_at} => Time
|
|
1755
|
-
# * {Types::UpdateWebFunctionEndpointResponse#updated_at #updated_at} => Time
|
|
1756
|
-
#
|
|
1757
|
-
# @example Request syntax with placeholder values
|
|
1758
|
-
#
|
|
1759
|
-
# resp = client.update_web_function_endpoint({
|
|
1760
|
-
# function_name: "FunctionName", # required
|
|
1761
|
-
# endpoint_name: "EndpointName", # required
|
|
1762
|
-
# description: "Description",
|
|
1763
|
-
# auth_type: "ApplicationManaged", # accepts ApplicationManaged, IamAuth
|
|
1764
|
-
# auto_deployment_mode: "LatestRevision", # accepts LatestRevision, Disabled
|
|
1765
|
-
# revision_weights: [
|
|
1766
|
-
# {
|
|
1767
|
-
# revision_id: "RevisionId", # required
|
|
1768
|
-
# weight: 1, # required
|
|
1769
|
-
# },
|
|
1770
|
-
# ],
|
|
1771
|
-
# scaling_config: {
|
|
1772
|
-
# max_environments: 1,
|
|
1773
|
-
# },
|
|
1774
|
-
# throttle_config: {
|
|
1775
|
-
# rate_limit: 1,
|
|
1776
|
-
# },
|
|
1777
|
-
# })
|
|
1778
|
-
#
|
|
1779
|
-
# @example Response structure
|
|
1780
|
-
#
|
|
1781
|
-
# resp.function_arn #=> String
|
|
1782
|
-
# resp.endpoint_arn #=> String
|
|
1783
|
-
# resp.endpoint_name #=> String
|
|
1784
|
-
# resp.description #=> String
|
|
1785
|
-
# resp.endpoint_type #=> String, one of "HomeRegion", "MultiRegion", "PerRegion"
|
|
1786
|
-
# resp.domain_name #=> String
|
|
1787
|
-
# resp.auth_type #=> String, one of "ApplicationManaged", "IamAuth"
|
|
1788
|
-
# resp.auto_deployment_mode #=> String, one of "LatestRevision", "Disabled"
|
|
1789
|
-
# resp.revision_weights #=> Array
|
|
1790
|
-
# resp.revision_weights[0].revision_id #=> String
|
|
1791
|
-
# resp.revision_weights[0].weight #=> Integer
|
|
1792
|
-
# resp.regions #=> Array
|
|
1793
|
-
# resp.regions[0] #=> String
|
|
1794
|
-
# resp.scaling_config.max_environments #=> Integer
|
|
1795
|
-
# resp.throttle_config.rate_limit #=> Integer
|
|
1796
|
-
# resp.state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
1797
|
-
# resp.state_reason #=> String
|
|
1798
|
-
# resp.update_status #=> String, one of "InProgress", "Successful", "Failed"
|
|
1799
|
-
# resp.update_status_reason #=> String
|
|
1800
|
-
# resp.regional_endpoints #=> Hash
|
|
1801
|
-
# resp.regional_endpoints["Region"].domain_name #=> String
|
|
1802
|
-
# resp.regional_endpoints["Region"].auth_type #=> String, one of "ApplicationManaged", "IamAuth"
|
|
1803
|
-
# resp.regional_endpoints["Region"].revision_weights #=> Array
|
|
1804
|
-
# resp.regional_endpoints["Region"].revision_weights[0].revision_id #=> String
|
|
1805
|
-
# resp.regional_endpoints["Region"].revision_weights[0].weight #=> Integer
|
|
1806
|
-
# resp.regional_endpoints["Region"].scaling_config.max_environments #=> Integer
|
|
1807
|
-
# resp.regional_endpoints["Region"].throttle_config.rate_limit #=> Integer
|
|
1808
|
-
# resp.regional_endpoints["Region"].state #=> String, one of "Pending", "Active", "Failed", "Deleting"
|
|
1809
|
-
# resp.regional_endpoints["Region"].state_reason #=> String
|
|
1810
|
-
# resp.regional_endpoints["Region"].update_status #=> String, one of "InProgress", "Successful", "Failed"
|
|
1811
|
-
# resp.regional_endpoints["Region"].update_status_reason #=> String
|
|
1812
|
-
# resp.created_at #=> Time
|
|
1813
|
-
# resp.updated_at #=> Time
|
|
1814
|
-
#
|
|
1815
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-web-2025-03-07/UpdateWebFunctionEndpoint AWS API Documentation
|
|
1816
|
-
#
|
|
1817
|
-
# @overload update_web_function_endpoint(params = {})
|
|
1818
|
-
# @param [Hash] params ({})
|
|
1819
|
-
def update_web_function_endpoint(params = {}, options = {})
|
|
1820
|
-
req = build_request(:update_web_function_endpoint, params)
|
|
1821
|
-
req.send_request(options)
|
|
1822
|
-
end
|
|
1823
|
-
|
|
1824
508
|
# @!endgroup
|
|
1825
509
|
|
|
1826
510
|
# @param params ({})
|
|
@@ -1839,137 +523,14 @@ module Aws::LambdaWeb
|
|
|
1839
523
|
tracer: tracer
|
|
1840
524
|
)
|
|
1841
525
|
context[:gem_name] = 'aws-sdk-lambdaweb'
|
|
1842
|
-
context[:gem_version] = '1.
|
|
526
|
+
context[:gem_version] = '1.2.0'
|
|
1843
527
|
Seahorse::Client::Request.new(handlers, context)
|
|
1844
528
|
end
|
|
1845
529
|
|
|
1846
|
-
# Polls an API operation until a resource enters a desired state.
|
|
1847
|
-
#
|
|
1848
|
-
# ## Basic Usage
|
|
1849
|
-
#
|
|
1850
|
-
# A waiter will call an API operation until:
|
|
1851
|
-
#
|
|
1852
|
-
# * It is successful
|
|
1853
|
-
# * It enters a terminal state
|
|
1854
|
-
# * It makes the maximum number of attempts
|
|
1855
|
-
#
|
|
1856
|
-
# In between attempts, the waiter will sleep.
|
|
1857
|
-
#
|
|
1858
|
-
# # polls in a loop, sleeping between attempts
|
|
1859
|
-
# client.wait_until(waiter_name, params)
|
|
1860
|
-
#
|
|
1861
|
-
# ## Configuration
|
|
1862
|
-
#
|
|
1863
|
-
# You can configure the maximum number of polling attempts, and the
|
|
1864
|
-
# delay (in seconds) between each polling attempt. You can pass
|
|
1865
|
-
# configuration as the final arguments hash.
|
|
1866
|
-
#
|
|
1867
|
-
# # poll for ~25 seconds
|
|
1868
|
-
# client.wait_until(waiter_name, params, {
|
|
1869
|
-
# max_attempts: 5,
|
|
1870
|
-
# delay: 5,
|
|
1871
|
-
# })
|
|
1872
|
-
#
|
|
1873
|
-
# ## Callbacks
|
|
1874
|
-
#
|
|
1875
|
-
# You can be notified before each polling attempt and before each
|
|
1876
|
-
# delay. If you throw `:success` or `:failure` from these callbacks,
|
|
1877
|
-
# it will terminate the waiter.
|
|
1878
|
-
#
|
|
1879
|
-
# started_at = Time.now
|
|
1880
|
-
# client.wait_until(waiter_name, params, {
|
|
1881
|
-
#
|
|
1882
|
-
# # disable max attempts
|
|
1883
|
-
# max_attempts: nil,
|
|
1884
|
-
#
|
|
1885
|
-
# # poll for 1 hour, instead of a number of attempts
|
|
1886
|
-
# before_wait: -> (attempts, response) do
|
|
1887
|
-
# throw :failure if Time.now - started_at > 3600
|
|
1888
|
-
# end
|
|
1889
|
-
# })
|
|
1890
|
-
#
|
|
1891
|
-
# ## Handling Errors
|
|
1892
|
-
#
|
|
1893
|
-
# When a waiter is unsuccessful, it will raise an error.
|
|
1894
|
-
# All of the failure errors extend from
|
|
1895
|
-
# {Aws::Waiters::Errors::WaiterFailed}.
|
|
1896
|
-
#
|
|
1897
|
-
# begin
|
|
1898
|
-
# client.wait_until(...)
|
|
1899
|
-
# rescue Aws::Waiters::Errors::WaiterFailed
|
|
1900
|
-
# # resource did not enter the desired state in time
|
|
1901
|
-
# end
|
|
1902
|
-
#
|
|
1903
|
-
# ## Valid Waiters
|
|
1904
|
-
#
|
|
1905
|
-
# The following table lists the valid waiter names, the operations they call,
|
|
1906
|
-
# and the default `:delay` and `:max_attempts` values.
|
|
1907
|
-
#
|
|
1908
|
-
# | waiter_name | params | :delay | :max_attempts |
|
|
1909
|
-
# | ----------------------------- | ---------------------------------- | -------- | ------------- |
|
|
1910
|
-
# | web_function_active | {Client#get_web_function} | 1 | 300 |
|
|
1911
|
-
# | web_function_deleted | {Client#get_web_function} | 1 | 300 |
|
|
1912
|
-
# | web_function_endpoint_active | {Client#get_web_function_endpoint} | 1 | 300 |
|
|
1913
|
-
# | web_function_endpoint_deleted | {Client#get_web_function_endpoint} | 1 | 300 |
|
|
1914
|
-
# | web_function_endpoint_updated | {Client#get_web_function_endpoint} | 1 | 300 |
|
|
1915
|
-
# | web_function_revision_active | {Client#get_web_function_revision} | 1 | 300 |
|
|
1916
|
-
#
|
|
1917
|
-
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
|
1918
|
-
# because the waiter has entered a state that it will not transition
|
|
1919
|
-
# out of, preventing success.
|
|
1920
|
-
#
|
|
1921
|
-
# @raise [Errors::TooManyAttemptsError] Raised when the configured
|
|
1922
|
-
# maximum number of attempts have been made, and the waiter is not
|
|
1923
|
-
# yet successful.
|
|
1924
|
-
#
|
|
1925
|
-
# @raise [Errors::UnexpectedError] Raised when an error is encounted
|
|
1926
|
-
# while polling for a resource that is not expected.
|
|
1927
|
-
#
|
|
1928
|
-
# @raise [Errors::NoSuchWaiterError] Raised when you request to wait
|
|
1929
|
-
# for an unknown state.
|
|
1930
|
-
#
|
|
1931
|
-
# @return [Boolean] Returns `true` if the waiter was successful.
|
|
1932
|
-
# @param [Symbol] waiter_name
|
|
1933
|
-
# @param [Hash] params ({})
|
|
1934
|
-
# @param [Hash] options ({})
|
|
1935
|
-
# @option options [Integer] :max_attempts
|
|
1936
|
-
# @option options [Integer] :delay
|
|
1937
|
-
# @option options [Proc] :before_attempt
|
|
1938
|
-
# @option options [Proc] :before_wait
|
|
1939
|
-
def wait_until(waiter_name, params = {}, options = {})
|
|
1940
|
-
w = waiter(waiter_name, options)
|
|
1941
|
-
yield(w.waiter) if block_given? # deprecated
|
|
1942
|
-
w.wait(params)
|
|
1943
|
-
end
|
|
1944
|
-
|
|
1945
530
|
# @api private
|
|
1946
531
|
# @deprecated
|
|
1947
532
|
def waiter_names
|
|
1948
|
-
|
|
1949
|
-
end
|
|
1950
|
-
|
|
1951
|
-
private
|
|
1952
|
-
|
|
1953
|
-
# @param [Symbol] waiter_name
|
|
1954
|
-
# @param [Hash] options ({})
|
|
1955
|
-
def waiter(waiter_name, options = {})
|
|
1956
|
-
waiter_class = waiters[waiter_name]
|
|
1957
|
-
if waiter_class
|
|
1958
|
-
waiter_class.new(options.merge(client: self))
|
|
1959
|
-
else
|
|
1960
|
-
raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
|
|
1961
|
-
end
|
|
1962
|
-
end
|
|
1963
|
-
|
|
1964
|
-
def waiters
|
|
1965
|
-
{
|
|
1966
|
-
web_function_active: Waiters::WebFunctionActive,
|
|
1967
|
-
web_function_deleted: Waiters::WebFunctionDeleted,
|
|
1968
|
-
web_function_endpoint_active: Waiters::WebFunctionEndpointActive,
|
|
1969
|
-
web_function_endpoint_deleted: Waiters::WebFunctionEndpointDeleted,
|
|
1970
|
-
web_function_endpoint_updated: Waiters::WebFunctionEndpointUpdated,
|
|
1971
|
-
web_function_revision_active: Waiters::WebFunctionRevisionActive
|
|
1972
|
-
}
|
|
533
|
+
[]
|
|
1973
534
|
end
|
|
1974
535
|
|
|
1975
536
|
class << self
|