aws-sdk-lambdacore 1.14.0 → 1.15.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-lambdacore/client.rb +1451 -2
- data/lib/aws-sdk-lambdacore/client_api.rb +571 -0
- data/lib/aws-sdk-lambdacore/errors.rb +21 -0
- data/lib/aws-sdk-lambdacore/types.rb +1340 -53
- data/lib/aws-sdk-lambdacore/waiters.rb +159 -0
- data/lib/aws-sdk-lambdacore.rb +2 -1
- data/sig/client.rbs +306 -0
- data/sig/errors.rbs +4 -0
- data/sig/types.rbs +340 -0
- data/sig/waiters.rbs +35 -0
- metadata +3 -1
|
@@ -586,6 +586,310 @@ module Aws::LambdaCore
|
|
|
586
586
|
req.send_request(options)
|
|
587
587
|
end
|
|
588
588
|
|
|
589
|
+
# Creates a customer-managed runtime, a resource providing a centrally
|
|
590
|
+
# managed execution environment for your Lambda functions. The runtime
|
|
591
|
+
# resource is the parent of the runtime version and runtime alias child
|
|
592
|
+
# resources.
|
|
593
|
+
#
|
|
594
|
+
# @option params [required, String] :name
|
|
595
|
+
# The name of the runtime to create.
|
|
596
|
+
#
|
|
597
|
+
# @option params [Hash<String,String>] :tags
|
|
598
|
+
# A map of tag keys and values to associate with the runtime.
|
|
599
|
+
#
|
|
600
|
+
# @option params [String] :description
|
|
601
|
+
# A description of the runtime.
|
|
602
|
+
#
|
|
603
|
+
# @option params [String] :license_info
|
|
604
|
+
# The license information for the runtime.
|
|
605
|
+
#
|
|
606
|
+
# @option params [Types::RuntimeReleaseLifecycle] :release_lifecycle
|
|
607
|
+
# The runtime lifecycle for the runtime (optional). Use this to schedule
|
|
608
|
+
# runtime deprecation.
|
|
609
|
+
#
|
|
610
|
+
# @return [Types::CreateRuntimeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
611
|
+
#
|
|
612
|
+
# * {Types::CreateRuntimeResponse#arn #arn} => String
|
|
613
|
+
# * {Types::CreateRuntimeResponse#name #name} => String
|
|
614
|
+
# * {Types::CreateRuntimeResponse#description #description} => String
|
|
615
|
+
# * {Types::CreateRuntimeResponse#license_info #license_info} => String
|
|
616
|
+
# * {Types::CreateRuntimeResponse#release_lifecycle #release_lifecycle} => Types::RuntimeReleaseLifecycle
|
|
617
|
+
# * {Types::CreateRuntimeResponse#created #created} => String
|
|
618
|
+
# * {Types::CreateRuntimeResponse#last_modified #last_modified} => String
|
|
619
|
+
#
|
|
620
|
+
#
|
|
621
|
+
# @example Example: Create a runtime
|
|
622
|
+
#
|
|
623
|
+
# # Creates a customer-managed runtime resource.
|
|
624
|
+
#
|
|
625
|
+
# resp = client.create_runtime({
|
|
626
|
+
# description: "PHP 8 custom runtime",
|
|
627
|
+
# license_info: "MIT",
|
|
628
|
+
# name: "php8",
|
|
629
|
+
# tags: {
|
|
630
|
+
# "team" => "runtimes",
|
|
631
|
+
# },
|
|
632
|
+
# })
|
|
633
|
+
#
|
|
634
|
+
# resp.to_h outputs the following:
|
|
635
|
+
# {
|
|
636
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8",
|
|
637
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
638
|
+
# description: "PHP 8 custom runtime",
|
|
639
|
+
# last_modified: "2026-10-01T12:00:00.000Z",
|
|
640
|
+
# license_info: "MIT",
|
|
641
|
+
# name: "php8",
|
|
642
|
+
# }
|
|
643
|
+
#
|
|
644
|
+
# @example Request syntax with placeholder values
|
|
645
|
+
#
|
|
646
|
+
# resp = client.create_runtime({
|
|
647
|
+
# name: "RuntimeName", # required
|
|
648
|
+
# tags: {
|
|
649
|
+
# "String" => "String",
|
|
650
|
+
# },
|
|
651
|
+
# description: "RuntimeDescription",
|
|
652
|
+
# license_info: "RuntimeLicenseInfo",
|
|
653
|
+
# release_lifecycle: {
|
|
654
|
+
# release_state: "PREVIEW", # accepts PREVIEW, GA, DEPRECATED
|
|
655
|
+
# deprecation_date: "RuntimeLifecycleDate",
|
|
656
|
+
# function_create_block_date: "RuntimeLifecycleDate",
|
|
657
|
+
# function_update_block_date: "RuntimeLifecycleDate",
|
|
658
|
+
# },
|
|
659
|
+
# })
|
|
660
|
+
#
|
|
661
|
+
# @example Response structure
|
|
662
|
+
#
|
|
663
|
+
# resp.arn #=> String
|
|
664
|
+
# resp.name #=> String
|
|
665
|
+
# resp.description #=> String
|
|
666
|
+
# resp.license_info #=> String
|
|
667
|
+
# resp.release_lifecycle.release_state #=> String, one of "PREVIEW", "GA", "DEPRECATED"
|
|
668
|
+
# resp.release_lifecycle.deprecation_date #=> String
|
|
669
|
+
# resp.release_lifecycle.function_create_block_date #=> String
|
|
670
|
+
# resp.release_lifecycle.function_update_block_date #=> String
|
|
671
|
+
# resp.created #=> String
|
|
672
|
+
# resp.last_modified #=> String
|
|
673
|
+
#
|
|
674
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/CreateRuntime AWS API Documentation
|
|
675
|
+
#
|
|
676
|
+
# @overload create_runtime(params = {})
|
|
677
|
+
# @param [Hash] params ({})
|
|
678
|
+
def create_runtime(params = {}, options = {})
|
|
679
|
+
req = build_request(:create_runtime, params)
|
|
680
|
+
req.send_request(options)
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
# Creates a new customer-managed runtime alias. The alias is a named
|
|
684
|
+
# pointer to a runtime version. Functions consume the customer-managed
|
|
685
|
+
# runtime through the runtime alias.
|
|
686
|
+
#
|
|
687
|
+
# @option params [required, String] :runtime_name
|
|
688
|
+
# The name or ARN of the runtime to create an alias for.
|
|
689
|
+
#
|
|
690
|
+
# @option params [required, String] :runtime_version
|
|
691
|
+
# The name of the runtime version the alias points to.
|
|
692
|
+
#
|
|
693
|
+
# @option params [required, String] :name
|
|
694
|
+
# The name to assign to the new runtime alias.
|
|
695
|
+
#
|
|
696
|
+
# @option params [String] :description
|
|
697
|
+
# A description of the runtime alias.
|
|
698
|
+
#
|
|
699
|
+
# @option params [Types::RuntimeReleaseLifecycle] :release_lifecycle
|
|
700
|
+
# The runtime lifecycle for the alias. By default, this is inherited
|
|
701
|
+
# from the runtime lifecycle. Optionally, you can override the lifecycle
|
|
702
|
+
# information at the alias level, if required.
|
|
703
|
+
#
|
|
704
|
+
# @return [Types::CreateRuntimeAliasResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
705
|
+
#
|
|
706
|
+
# * {Types::CreateRuntimeAliasResponse#name #name} => String
|
|
707
|
+
# * {Types::CreateRuntimeAliasResponse#arn #arn} => String
|
|
708
|
+
# * {Types::CreateRuntimeAliasResponse#runtime_version #runtime_version} => String
|
|
709
|
+
# * {Types::CreateRuntimeAliasResponse#runtime_version_arn #runtime_version_arn} => String
|
|
710
|
+
# * {Types::CreateRuntimeAliasResponse#state #state} => String
|
|
711
|
+
# * {Types::CreateRuntimeAliasResponse#description #description} => String
|
|
712
|
+
# * {Types::CreateRuntimeAliasResponse#release_lifecycle #release_lifecycle} => Types::RuntimeReleaseLifecycle
|
|
713
|
+
# * {Types::CreateRuntimeAliasResponse#created #created} => String
|
|
714
|
+
# * {Types::CreateRuntimeAliasResponse#last_modified #last_modified} => String
|
|
715
|
+
#
|
|
716
|
+
#
|
|
717
|
+
# @example Example: Create a runtime alias
|
|
718
|
+
#
|
|
719
|
+
# # Creates an alias that points at a published runtime version.
|
|
720
|
+
#
|
|
721
|
+
# resp = client.create_runtime_alias({
|
|
722
|
+
# description: "Points at the newest published version",
|
|
723
|
+
# name: "latest",
|
|
724
|
+
# runtime_name: "php8",
|
|
725
|
+
# runtime_version: "v1",
|
|
726
|
+
# })
|
|
727
|
+
#
|
|
728
|
+
# resp.to_h outputs the following:
|
|
729
|
+
# {
|
|
730
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/alias/latest",
|
|
731
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
732
|
+
# description: "Points at the newest published version",
|
|
733
|
+
# last_modified: "2026-10-01T12:00:00.000Z",
|
|
734
|
+
# name: "latest",
|
|
735
|
+
# runtime_version: "v1",
|
|
736
|
+
# runtime_version_arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/version/v1",
|
|
737
|
+
# state: "CREATING",
|
|
738
|
+
# }
|
|
739
|
+
#
|
|
740
|
+
# @example Request syntax with placeholder values
|
|
741
|
+
#
|
|
742
|
+
# resp = client.create_runtime_alias({
|
|
743
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
744
|
+
# runtime_version: "RuntimeVersionName", # required
|
|
745
|
+
# name: "RuntimeAliasName", # required
|
|
746
|
+
# description: "RuntimeAliasDescription",
|
|
747
|
+
# release_lifecycle: {
|
|
748
|
+
# release_state: "PREVIEW", # accepts PREVIEW, GA, DEPRECATED
|
|
749
|
+
# deprecation_date: "RuntimeLifecycleDate",
|
|
750
|
+
# function_create_block_date: "RuntimeLifecycleDate",
|
|
751
|
+
# function_update_block_date: "RuntimeLifecycleDate",
|
|
752
|
+
# },
|
|
753
|
+
# })
|
|
754
|
+
#
|
|
755
|
+
# @example Response structure
|
|
756
|
+
#
|
|
757
|
+
# resp.name #=> String
|
|
758
|
+
# resp.arn #=> String
|
|
759
|
+
# resp.runtime_version #=> String
|
|
760
|
+
# resp.runtime_version_arn #=> String
|
|
761
|
+
# resp.state #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "PENDING_DELETION"
|
|
762
|
+
# resp.description #=> String
|
|
763
|
+
# resp.release_lifecycle.release_state #=> String, one of "PREVIEW", "GA", "DEPRECATED"
|
|
764
|
+
# resp.release_lifecycle.deprecation_date #=> String
|
|
765
|
+
# resp.release_lifecycle.function_create_block_date #=> String
|
|
766
|
+
# resp.release_lifecycle.function_update_block_date #=> String
|
|
767
|
+
# resp.created #=> String
|
|
768
|
+
# resp.last_modified #=> String
|
|
769
|
+
#
|
|
770
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/CreateRuntimeAlias AWS API Documentation
|
|
771
|
+
#
|
|
772
|
+
# @overload create_runtime_alias(params = {})
|
|
773
|
+
# @param [Hash] params ({})
|
|
774
|
+
def create_runtime_alias(params = {}, options = {})
|
|
775
|
+
req = build_request(:create_runtime_alias, params)
|
|
776
|
+
req.send_request(options)
|
|
777
|
+
end
|
|
778
|
+
|
|
779
|
+
# Creates a new runtime version. A runtime version defines the function
|
|
780
|
+
# execution environment by referencing a container image. Runtime
|
|
781
|
+
# versions are immutable. To update the runtime, create a new runtime
|
|
782
|
+
# version and migrate functions by updating the runtime aliases to point
|
|
783
|
+
# to the new runtime version.
|
|
784
|
+
#
|
|
785
|
+
# @option params [required, String] :runtime_name
|
|
786
|
+
# The name or ARN of the runtime to create a version for.
|
|
787
|
+
#
|
|
788
|
+
# @option params [required, String] :image_uri
|
|
789
|
+
# The URI of the container image used to define the function execution
|
|
790
|
+
# environment for this runtime version.
|
|
791
|
+
#
|
|
792
|
+
# @option params [required, String] :name
|
|
793
|
+
# The name to assign to the new runtime version.
|
|
794
|
+
#
|
|
795
|
+
# @option params [String] :release_notes
|
|
796
|
+
# The release notes to associate with the runtime version.
|
|
797
|
+
#
|
|
798
|
+
# @option params [Boolean] :dry_run
|
|
799
|
+
# When set to true, the request is validated without creating a new
|
|
800
|
+
# runtime version. Use this to check that the request would succeed. No
|
|
801
|
+
# runtime version is created and no changes are made.
|
|
802
|
+
#
|
|
803
|
+
# @return [Types::CreateRuntimeVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
804
|
+
#
|
|
805
|
+
# * {Types::CreateRuntimeVersionResponse#name #name} => String
|
|
806
|
+
# * {Types::CreateRuntimeVersionResponse#arn #arn} => String
|
|
807
|
+
# * {Types::CreateRuntimeVersionResponse#resolved_uri #resolved_uri} => String
|
|
808
|
+
# * {Types::CreateRuntimeVersionResponse#state #state} => String
|
|
809
|
+
# * {Types::CreateRuntimeVersionResponse#release_notes #release_notes} => String
|
|
810
|
+
# * {Types::CreateRuntimeVersionResponse#platforms #platforms} => Array<Types::Platform>
|
|
811
|
+
# * {Types::CreateRuntimeVersionResponse#compatibility #compatibility} => Types::Compatibility
|
|
812
|
+
# * {Types::CreateRuntimeVersionResponse#created #created} => String
|
|
813
|
+
# * {Types::CreateRuntimeVersionResponse#last_modified #last_modified} => String
|
|
814
|
+
#
|
|
815
|
+
#
|
|
816
|
+
# @example Example: Create a runtime version
|
|
817
|
+
#
|
|
818
|
+
# # Creates a new runtime version from a container image.
|
|
819
|
+
#
|
|
820
|
+
# resp = client.create_runtime_version({
|
|
821
|
+
# image_uri: "123456789012.dkr.ecr.us-west-2.amazonaws.com/php8:latest",
|
|
822
|
+
# name: "v1",
|
|
823
|
+
# release_notes: "Initial release",
|
|
824
|
+
# runtime_name: "php8",
|
|
825
|
+
# })
|
|
826
|
+
#
|
|
827
|
+
# resp.to_h outputs the following:
|
|
828
|
+
# {
|
|
829
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/version/v1",
|
|
830
|
+
# compatibility: {
|
|
831
|
+
# architectures: [
|
|
832
|
+
# "arm64",
|
|
833
|
+
# "x86_64",
|
|
834
|
+
# ],
|
|
835
|
+
# integration_models: [
|
|
836
|
+
# "RuntimeAPI",
|
|
837
|
+
# ],
|
|
838
|
+
# managed_instances: "Supported",
|
|
839
|
+
# },
|
|
840
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
841
|
+
# last_modified: "2026-10-01T12:00:00.000Z",
|
|
842
|
+
# name: "v1",
|
|
843
|
+
# platforms: [
|
|
844
|
+
# {
|
|
845
|
+
# architecture: "arm64",
|
|
846
|
+
# digest: "sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
|
|
847
|
+
# os: "linux",
|
|
848
|
+
# },
|
|
849
|
+
# ],
|
|
850
|
+
# release_notes: "Initial release",
|
|
851
|
+
# resolved_uri: "123456789012.dkr.ecr.us-west-2.amazonaws.com/php8@sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
|
|
852
|
+
# state: "CREATING",
|
|
853
|
+
# }
|
|
854
|
+
#
|
|
855
|
+
# @example Request syntax with placeholder values
|
|
856
|
+
#
|
|
857
|
+
# resp = client.create_runtime_version({
|
|
858
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
859
|
+
# image_uri: "String", # required
|
|
860
|
+
# name: "RuntimeVersionName", # required
|
|
861
|
+
# release_notes: "String",
|
|
862
|
+
# dry_run: false,
|
|
863
|
+
# })
|
|
864
|
+
#
|
|
865
|
+
# @example Response structure
|
|
866
|
+
#
|
|
867
|
+
# resp.name #=> String
|
|
868
|
+
# resp.arn #=> String
|
|
869
|
+
# resp.resolved_uri #=> String
|
|
870
|
+
# resp.state #=> String, one of "CREATING", "ACTIVE", "FAILED", "DELETING", "PENDING_DELETION"
|
|
871
|
+
# resp.release_notes #=> String
|
|
872
|
+
# resp.platforms #=> Array
|
|
873
|
+
# resp.platforms[0].architecture #=> String
|
|
874
|
+
# resp.platforms[0].os #=> String
|
|
875
|
+
# resp.platforms[0].digest #=> String
|
|
876
|
+
# resp.compatibility.integration_models #=> Array
|
|
877
|
+
# resp.compatibility.integration_models[0] #=> String, one of "RuntimeAPI"
|
|
878
|
+
# resp.compatibility.architectures #=> Array
|
|
879
|
+
# resp.compatibility.architectures[0] #=> String, one of "x86_64", "arm64"
|
|
880
|
+
# resp.compatibility.managed_instances #=> String, one of "Supported", "NotSupported"
|
|
881
|
+
# resp.created #=> String
|
|
882
|
+
# resp.last_modified #=> String
|
|
883
|
+
#
|
|
884
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/CreateRuntimeVersion AWS API Documentation
|
|
885
|
+
#
|
|
886
|
+
# @overload create_runtime_version(params = {})
|
|
887
|
+
# @param [Hash] params ({})
|
|
888
|
+
def create_runtime_version(params = {}, options = {})
|
|
889
|
+
req = build_request(:create_runtime_version, params)
|
|
890
|
+
req.send_request(options)
|
|
891
|
+
end
|
|
892
|
+
|
|
589
893
|
# Initiates deletion of a network connector. The connector transitions
|
|
590
894
|
# to `DELETING` state while elastic network interfaces are cleaned up
|
|
591
895
|
# asynchronously. After deletion completes, subsequent calls to
|
|
@@ -654,6 +958,147 @@ module Aws::LambdaCore
|
|
|
654
958
|
req.send_request(options)
|
|
655
959
|
end
|
|
656
960
|
|
|
961
|
+
# Schedules a customer-managed runtime to be deleted. Runtimes scheduled
|
|
962
|
+
# for deletion enter the PENDING\_DELETION state and can be restored
|
|
963
|
+
# during the scheduled deletion window. Runtime versions and aliases
|
|
964
|
+
# must be deleted or scheduled for deletion before deleting the runtime.
|
|
965
|
+
# Function invokes fail for functions using runtime versions or aliases
|
|
966
|
+
# that are deleted or pending deletion.
|
|
967
|
+
#
|
|
968
|
+
# @option params [required, String] :runtime_name
|
|
969
|
+
# The name or ARN of the runtime to delete.
|
|
970
|
+
#
|
|
971
|
+
# @option params [Integer] :recovery_window_in_days
|
|
972
|
+
# Optional. The waiting period, in days (7-30), before the runtime is
|
|
973
|
+
# permanently deleted.
|
|
974
|
+
#
|
|
975
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
976
|
+
#
|
|
977
|
+
#
|
|
978
|
+
# @example Example: Delete a runtime
|
|
979
|
+
#
|
|
980
|
+
# # Schedules a customer-managed runtime to be deleted.
|
|
981
|
+
#
|
|
982
|
+
# resp = client.delete_runtime({
|
|
983
|
+
# runtime_name: "php8",
|
|
984
|
+
# })
|
|
985
|
+
#
|
|
986
|
+
# resp.to_h outputs the following:
|
|
987
|
+
# {
|
|
988
|
+
# }
|
|
989
|
+
#
|
|
990
|
+
# @example Request syntax with placeholder values
|
|
991
|
+
#
|
|
992
|
+
# resp = client.delete_runtime({
|
|
993
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
994
|
+
# recovery_window_in_days: 1,
|
|
995
|
+
# })
|
|
996
|
+
#
|
|
997
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/DeleteRuntime AWS API Documentation
|
|
998
|
+
#
|
|
999
|
+
# @overload delete_runtime(params = {})
|
|
1000
|
+
# @param [Hash] params ({})
|
|
1001
|
+
def delete_runtime(params = {}, options = {})
|
|
1002
|
+
req = build_request(:delete_runtime, params)
|
|
1003
|
+
req.send_request(options)
|
|
1004
|
+
end
|
|
1005
|
+
|
|
1006
|
+
# Schedules a runtime alias to be deleted. Runtime aliases scheduled for
|
|
1007
|
+
# deletion enter the PENDING\_DELETION state and can be restored during
|
|
1008
|
+
# the scheduled deletion window. Function invokes fail for functions
|
|
1009
|
+
# using runtime aliases that are deleted or pending deletion.
|
|
1010
|
+
#
|
|
1011
|
+
# @option params [required, String] :runtime_name
|
|
1012
|
+
# The name or ARN of the runtime.
|
|
1013
|
+
#
|
|
1014
|
+
# @option params [required, String] :name
|
|
1015
|
+
# The name of the runtime alias to delete.
|
|
1016
|
+
#
|
|
1017
|
+
# @option params [Integer] :recovery_window_in_days
|
|
1018
|
+
# Optional. The waiting period, in days (7-30), before the runtime alias
|
|
1019
|
+
# is permanently deleted.
|
|
1020
|
+
#
|
|
1021
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1022
|
+
#
|
|
1023
|
+
#
|
|
1024
|
+
# @example Example: Delete a runtime alias
|
|
1025
|
+
#
|
|
1026
|
+
# # Schedules a runtime alias to be deleted.
|
|
1027
|
+
#
|
|
1028
|
+
# resp = client.delete_runtime_alias({
|
|
1029
|
+
# name: "latest",
|
|
1030
|
+
# runtime_name: "php8",
|
|
1031
|
+
# })
|
|
1032
|
+
#
|
|
1033
|
+
# resp.to_h outputs the following:
|
|
1034
|
+
# {
|
|
1035
|
+
# }
|
|
1036
|
+
#
|
|
1037
|
+
# @example Request syntax with placeholder values
|
|
1038
|
+
#
|
|
1039
|
+
# resp = client.delete_runtime_alias({
|
|
1040
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
1041
|
+
# name: "RuntimeAliasName", # required
|
|
1042
|
+
# recovery_window_in_days: 1,
|
|
1043
|
+
# })
|
|
1044
|
+
#
|
|
1045
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/DeleteRuntimeAlias AWS API Documentation
|
|
1046
|
+
#
|
|
1047
|
+
# @overload delete_runtime_alias(params = {})
|
|
1048
|
+
# @param [Hash] params ({})
|
|
1049
|
+
def delete_runtime_alias(params = {}, options = {})
|
|
1050
|
+
req = build_request(:delete_runtime_alias, params)
|
|
1051
|
+
req.send_request(options)
|
|
1052
|
+
end
|
|
1053
|
+
|
|
1054
|
+
# Schedules a runtime version to be deleted. Runtime versions scheduled
|
|
1055
|
+
# for deletion enter the PENDING\_DELETION state and can be restored
|
|
1056
|
+
# during the scheduled deletion window. Function invokes fail for
|
|
1057
|
+
# functions using a runtime version that is deleted or pending deletion.
|
|
1058
|
+
#
|
|
1059
|
+
# @option params [required, String] :runtime_name
|
|
1060
|
+
# The name or ARN of the runtime.
|
|
1061
|
+
#
|
|
1062
|
+
# @option params [required, String] :name
|
|
1063
|
+
# The name of the runtime version to delete.
|
|
1064
|
+
#
|
|
1065
|
+
# @option params [Integer] :recovery_window_in_days
|
|
1066
|
+
# Optional. The waiting period, in days (7-30), before the runtime
|
|
1067
|
+
# version is permanently deleted.
|
|
1068
|
+
#
|
|
1069
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1070
|
+
#
|
|
1071
|
+
#
|
|
1072
|
+
# @example Example: Delete a runtime version
|
|
1073
|
+
#
|
|
1074
|
+
# # Schedules a runtime version to be deleted.
|
|
1075
|
+
#
|
|
1076
|
+
# resp = client.delete_runtime_version({
|
|
1077
|
+
# name: "v1",
|
|
1078
|
+
# runtime_name: "php8",
|
|
1079
|
+
# })
|
|
1080
|
+
#
|
|
1081
|
+
# resp.to_h outputs the following:
|
|
1082
|
+
# {
|
|
1083
|
+
# }
|
|
1084
|
+
#
|
|
1085
|
+
# @example Request syntax with placeholder values
|
|
1086
|
+
#
|
|
1087
|
+
# resp = client.delete_runtime_version({
|
|
1088
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
1089
|
+
# name: "RuntimeVersionName", # required
|
|
1090
|
+
# recovery_window_in_days: 1,
|
|
1091
|
+
# })
|
|
1092
|
+
#
|
|
1093
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/DeleteRuntimeVersion AWS API Documentation
|
|
1094
|
+
#
|
|
1095
|
+
# @overload delete_runtime_version(params = {})
|
|
1096
|
+
# @param [Hash] params ({})
|
|
1097
|
+
def delete_runtime_version(params = {}, options = {})
|
|
1098
|
+
req = build_request(:delete_runtime_version, params)
|
|
1099
|
+
req.send_request(options)
|
|
1100
|
+
end
|
|
1101
|
+
|
|
657
1102
|
# Retrieves the current configuration, state, and metadata of a network
|
|
658
1103
|
# connector. The `Identifier` parameter accepts the connector ID, name,
|
|
659
1104
|
# or full ARN. Use this operation to poll connector state after creation
|
|
@@ -731,6 +1176,281 @@ module Aws::LambdaCore
|
|
|
731
1176
|
req.send_request(options)
|
|
732
1177
|
end
|
|
733
1178
|
|
|
1179
|
+
# Retrieves the configuration and metadata of a runtime.
|
|
1180
|
+
#
|
|
1181
|
+
# @option params [required, String] :runtime_name
|
|
1182
|
+
# The name or ARN of the runtime to retrieve.
|
|
1183
|
+
#
|
|
1184
|
+
# @return [Types::GetRuntimeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1185
|
+
#
|
|
1186
|
+
# * {Types::GetRuntimeResponse#arn #arn} => String
|
|
1187
|
+
# * {Types::GetRuntimeResponse#name #name} => String
|
|
1188
|
+
# * {Types::GetRuntimeResponse#description #description} => String
|
|
1189
|
+
# * {Types::GetRuntimeResponse#license_info #license_info} => String
|
|
1190
|
+
# * {Types::GetRuntimeResponse#release_lifecycle #release_lifecycle} => Types::RuntimeReleaseLifecycle
|
|
1191
|
+
# * {Types::GetRuntimeResponse#state #state} => String
|
|
1192
|
+
# * {Types::GetRuntimeResponse#pending_deletion_at #pending_deletion_at} => String
|
|
1193
|
+
# * {Types::GetRuntimeResponse#created #created} => String
|
|
1194
|
+
# * {Types::GetRuntimeResponse#last_modified #last_modified} => String
|
|
1195
|
+
# * {Types::GetRuntimeResponse#id #id} => String
|
|
1196
|
+
#
|
|
1197
|
+
#
|
|
1198
|
+
# @example Example: Get a runtime
|
|
1199
|
+
#
|
|
1200
|
+
# # Retrieves the metadata for a runtime by name.
|
|
1201
|
+
#
|
|
1202
|
+
# resp = client.get_runtime({
|
|
1203
|
+
# runtime_name: "php8",
|
|
1204
|
+
# })
|
|
1205
|
+
#
|
|
1206
|
+
# resp.to_h outputs the following:
|
|
1207
|
+
# {
|
|
1208
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8",
|
|
1209
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
1210
|
+
# description: "PHP 8 custom runtime",
|
|
1211
|
+
# last_modified: "2026-10-02T09:30:00.000Z",
|
|
1212
|
+
# license_info: "MIT",
|
|
1213
|
+
# name: "php8",
|
|
1214
|
+
# release_lifecycle: {
|
|
1215
|
+
# release_state: "GA",
|
|
1216
|
+
# },
|
|
1217
|
+
# }
|
|
1218
|
+
#
|
|
1219
|
+
# @example Request syntax with placeholder values
|
|
1220
|
+
#
|
|
1221
|
+
# resp = client.get_runtime({
|
|
1222
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
1223
|
+
# })
|
|
1224
|
+
#
|
|
1225
|
+
# @example Response structure
|
|
1226
|
+
#
|
|
1227
|
+
# resp.arn #=> String
|
|
1228
|
+
# resp.name #=> String
|
|
1229
|
+
# resp.description #=> String
|
|
1230
|
+
# resp.license_info #=> String
|
|
1231
|
+
# resp.release_lifecycle.release_state #=> String, one of "PREVIEW", "GA", "DEPRECATED"
|
|
1232
|
+
# resp.release_lifecycle.deprecation_date #=> String
|
|
1233
|
+
# resp.release_lifecycle.function_create_block_date #=> String
|
|
1234
|
+
# resp.release_lifecycle.function_update_block_date #=> String
|
|
1235
|
+
# resp.state #=> String, one of "ACTIVE", "PENDING_DELETION", "DELETING", "FAILED"
|
|
1236
|
+
# resp.pending_deletion_at #=> String
|
|
1237
|
+
# resp.created #=> String
|
|
1238
|
+
# resp.last_modified #=> String
|
|
1239
|
+
# resp.id #=> String
|
|
1240
|
+
#
|
|
1241
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/GetRuntime AWS API Documentation
|
|
1242
|
+
#
|
|
1243
|
+
# @overload get_runtime(params = {})
|
|
1244
|
+
# @param [Hash] params ({})
|
|
1245
|
+
def get_runtime(params = {}, options = {})
|
|
1246
|
+
req = build_request(:get_runtime, params)
|
|
1247
|
+
req.send_request(options)
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1250
|
+
# Retrieves the configuration, state, and metadata of a runtime alias.
|
|
1251
|
+
#
|
|
1252
|
+
# @option params [required, String] :runtime_name
|
|
1253
|
+
# The name or ARN of the runtime.
|
|
1254
|
+
#
|
|
1255
|
+
# @option params [required, String] :name
|
|
1256
|
+
# The name of the runtime alias to retrieve.
|
|
1257
|
+
#
|
|
1258
|
+
# @return [Types::GetRuntimeAliasResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1259
|
+
#
|
|
1260
|
+
# * {Types::GetRuntimeAliasResponse#name #name} => String
|
|
1261
|
+
# * {Types::GetRuntimeAliasResponse#arn #arn} => String
|
|
1262
|
+
# * {Types::GetRuntimeAliasResponse#runtime_version #runtime_version} => String
|
|
1263
|
+
# * {Types::GetRuntimeAliasResponse#runtime_version_arn #runtime_version_arn} => String
|
|
1264
|
+
# * {Types::GetRuntimeAliasResponse#state #state} => String
|
|
1265
|
+
# * {Types::GetRuntimeAliasResponse#pending_deletion_at #pending_deletion_at} => String
|
|
1266
|
+
# * {Types::GetRuntimeAliasResponse#description #description} => String
|
|
1267
|
+
# * {Types::GetRuntimeAliasResponse#compatibility #compatibility} => Types::Compatibility
|
|
1268
|
+
# * {Types::GetRuntimeAliasResponse#release_lifecycle #release_lifecycle} => Types::RuntimeReleaseLifecycle
|
|
1269
|
+
# * {Types::GetRuntimeAliasResponse#created #created} => String
|
|
1270
|
+
# * {Types::GetRuntimeAliasResponse#last_modified #last_modified} => String
|
|
1271
|
+
#
|
|
1272
|
+
#
|
|
1273
|
+
# @example Example: Get a runtime alias
|
|
1274
|
+
#
|
|
1275
|
+
# # Retrieves an alias, including the version it currently points at and its compatibility matrix.
|
|
1276
|
+
#
|
|
1277
|
+
# resp = client.get_runtime_alias({
|
|
1278
|
+
# name: "latest",
|
|
1279
|
+
# runtime_name: "php8",
|
|
1280
|
+
# })
|
|
1281
|
+
#
|
|
1282
|
+
# resp.to_h outputs the following:
|
|
1283
|
+
# {
|
|
1284
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/alias/latest",
|
|
1285
|
+
# compatibility: {
|
|
1286
|
+
# architectures: [
|
|
1287
|
+
# "arm64",
|
|
1288
|
+
# "x86_64",
|
|
1289
|
+
# ],
|
|
1290
|
+
# integration_models: [
|
|
1291
|
+
# "RuntimeAPI",
|
|
1292
|
+
# ],
|
|
1293
|
+
# managed_instances: "Supported",
|
|
1294
|
+
# },
|
|
1295
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
1296
|
+
# description: "Points at the newest published version",
|
|
1297
|
+
# last_modified: "2026-10-02T09:30:00.000Z",
|
|
1298
|
+
# name: "latest",
|
|
1299
|
+
# release_lifecycle: {
|
|
1300
|
+
# release_state: "GA",
|
|
1301
|
+
# },
|
|
1302
|
+
# runtime_version: "v1",
|
|
1303
|
+
# runtime_version_arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/version/v1",
|
|
1304
|
+
# state: "ACTIVE",
|
|
1305
|
+
# }
|
|
1306
|
+
#
|
|
1307
|
+
# @example Request syntax with placeholder values
|
|
1308
|
+
#
|
|
1309
|
+
# resp = client.get_runtime_alias({
|
|
1310
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
1311
|
+
# name: "RuntimeAliasName", # required
|
|
1312
|
+
# })
|
|
1313
|
+
#
|
|
1314
|
+
# @example Response structure
|
|
1315
|
+
#
|
|
1316
|
+
# resp.name #=> String
|
|
1317
|
+
# resp.arn #=> String
|
|
1318
|
+
# resp.runtime_version #=> String
|
|
1319
|
+
# resp.runtime_version_arn #=> String
|
|
1320
|
+
# resp.state #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "PENDING_DELETION"
|
|
1321
|
+
# resp.pending_deletion_at #=> String
|
|
1322
|
+
# resp.description #=> String
|
|
1323
|
+
# resp.compatibility.integration_models #=> Array
|
|
1324
|
+
# resp.compatibility.integration_models[0] #=> String, one of "RuntimeAPI"
|
|
1325
|
+
# resp.compatibility.architectures #=> Array
|
|
1326
|
+
# resp.compatibility.architectures[0] #=> String, one of "x86_64", "arm64"
|
|
1327
|
+
# resp.compatibility.managed_instances #=> String, one of "Supported", "NotSupported"
|
|
1328
|
+
# resp.release_lifecycle.release_state #=> String, one of "PREVIEW", "GA", "DEPRECATED"
|
|
1329
|
+
# resp.release_lifecycle.deprecation_date #=> String
|
|
1330
|
+
# resp.release_lifecycle.function_create_block_date #=> String
|
|
1331
|
+
# resp.release_lifecycle.function_update_block_date #=> String
|
|
1332
|
+
# resp.created #=> String
|
|
1333
|
+
# resp.last_modified #=> String
|
|
1334
|
+
#
|
|
1335
|
+
#
|
|
1336
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1337
|
+
#
|
|
1338
|
+
# * runtime_alias_active
|
|
1339
|
+
#
|
|
1340
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/GetRuntimeAlias AWS API Documentation
|
|
1341
|
+
#
|
|
1342
|
+
# @overload get_runtime_alias(params = {})
|
|
1343
|
+
# @param [Hash] params ({})
|
|
1344
|
+
def get_runtime_alias(params = {}, options = {})
|
|
1345
|
+
req = build_request(:get_runtime_alias, params)
|
|
1346
|
+
req.send_request(options)
|
|
1347
|
+
end
|
|
1348
|
+
|
|
1349
|
+
# Retrieves the configuration, state, and metadata of a runtime version.
|
|
1350
|
+
#
|
|
1351
|
+
# @option params [required, String] :runtime_name
|
|
1352
|
+
# The name or ARN of the runtime.
|
|
1353
|
+
#
|
|
1354
|
+
# @option params [required, String] :name
|
|
1355
|
+
# The name of the runtime version to retrieve.
|
|
1356
|
+
#
|
|
1357
|
+
# @return [Types::GetRuntimeVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1358
|
+
#
|
|
1359
|
+
# * {Types::GetRuntimeVersionResponse#name #name} => String
|
|
1360
|
+
# * {Types::GetRuntimeVersionResponse#arn #arn} => String
|
|
1361
|
+
# * {Types::GetRuntimeVersionResponse#resolved_uri #resolved_uri} => String
|
|
1362
|
+
# * {Types::GetRuntimeVersionResponse#state #state} => String
|
|
1363
|
+
# * {Types::GetRuntimeVersionResponse#pending_deletion_at #pending_deletion_at} => String
|
|
1364
|
+
# * {Types::GetRuntimeVersionResponse#release_notes #release_notes} => String
|
|
1365
|
+
# * {Types::GetRuntimeVersionResponse#platforms #platforms} => Array<Types::Platform>
|
|
1366
|
+
# * {Types::GetRuntimeVersionResponse#compatibility #compatibility} => Types::Compatibility
|
|
1367
|
+
# * {Types::GetRuntimeVersionResponse#created #created} => String
|
|
1368
|
+
# * {Types::GetRuntimeVersionResponse#last_modified #last_modified} => String
|
|
1369
|
+
#
|
|
1370
|
+
#
|
|
1371
|
+
# @example Example: Get a runtime version
|
|
1372
|
+
#
|
|
1373
|
+
# # Retrieves a runtime version, including its resolved image URI, per-architecture platforms, and compatibility matrix.
|
|
1374
|
+
#
|
|
1375
|
+
# resp = client.get_runtime_version({
|
|
1376
|
+
# name: "v1",
|
|
1377
|
+
# runtime_name: "php8",
|
|
1378
|
+
# })
|
|
1379
|
+
#
|
|
1380
|
+
# resp.to_h outputs the following:
|
|
1381
|
+
# {
|
|
1382
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/version/v1",
|
|
1383
|
+
# compatibility: {
|
|
1384
|
+
# architectures: [
|
|
1385
|
+
# "arm64",
|
|
1386
|
+
# "x86_64",
|
|
1387
|
+
# ],
|
|
1388
|
+
# integration_models: [
|
|
1389
|
+
# "RuntimeAPI",
|
|
1390
|
+
# ],
|
|
1391
|
+
# managed_instances: "Supported",
|
|
1392
|
+
# },
|
|
1393
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
1394
|
+
# last_modified: "2026-10-01T12:00:00.000Z",
|
|
1395
|
+
# name: "v1",
|
|
1396
|
+
# platforms: [
|
|
1397
|
+
# {
|
|
1398
|
+
# architecture: "arm64",
|
|
1399
|
+
# digest: "sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
|
|
1400
|
+
# os: "linux",
|
|
1401
|
+
# },
|
|
1402
|
+
# {
|
|
1403
|
+
# architecture: "x86_64",
|
|
1404
|
+
# digest: "sha256:2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c",
|
|
1405
|
+
# os: "linux",
|
|
1406
|
+
# },
|
|
1407
|
+
# ],
|
|
1408
|
+
# release_notes: "Initial release",
|
|
1409
|
+
# resolved_uri: "123456789012.dkr.ecr.us-west-2.amazonaws.com/php8@sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
|
|
1410
|
+
# state: "ACTIVE",
|
|
1411
|
+
# }
|
|
1412
|
+
#
|
|
1413
|
+
# @example Request syntax with placeholder values
|
|
1414
|
+
#
|
|
1415
|
+
# resp = client.get_runtime_version({
|
|
1416
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
1417
|
+
# name: "RuntimeVersionName", # required
|
|
1418
|
+
# })
|
|
1419
|
+
#
|
|
1420
|
+
# @example Response structure
|
|
1421
|
+
#
|
|
1422
|
+
# resp.name #=> String
|
|
1423
|
+
# resp.arn #=> String
|
|
1424
|
+
# resp.resolved_uri #=> String
|
|
1425
|
+
# resp.state #=> String, one of "CREATING", "ACTIVE", "FAILED", "DELETING", "PENDING_DELETION"
|
|
1426
|
+
# resp.pending_deletion_at #=> String
|
|
1427
|
+
# resp.release_notes #=> String
|
|
1428
|
+
# resp.platforms #=> Array
|
|
1429
|
+
# resp.platforms[0].architecture #=> String
|
|
1430
|
+
# resp.platforms[0].os #=> String
|
|
1431
|
+
# resp.platforms[0].digest #=> String
|
|
1432
|
+
# resp.compatibility.integration_models #=> Array
|
|
1433
|
+
# resp.compatibility.integration_models[0] #=> String, one of "RuntimeAPI"
|
|
1434
|
+
# resp.compatibility.architectures #=> Array
|
|
1435
|
+
# resp.compatibility.architectures[0] #=> String, one of "x86_64", "arm64"
|
|
1436
|
+
# resp.compatibility.managed_instances #=> String, one of "Supported", "NotSupported"
|
|
1437
|
+
# resp.created #=> String
|
|
1438
|
+
# resp.last_modified #=> String
|
|
1439
|
+
#
|
|
1440
|
+
#
|
|
1441
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
1442
|
+
#
|
|
1443
|
+
# * runtime_version_active
|
|
1444
|
+
#
|
|
1445
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/GetRuntimeVersion AWS API Documentation
|
|
1446
|
+
#
|
|
1447
|
+
# @overload get_runtime_version(params = {})
|
|
1448
|
+
# @param [Hash] params ({})
|
|
1449
|
+
def get_runtime_version(params = {}, options = {})
|
|
1450
|
+
req = build_request(:get_runtime_version, params)
|
|
1451
|
+
req.send_request(options)
|
|
1452
|
+
end
|
|
1453
|
+
|
|
734
1454
|
# Returns a paginated list of the versions of a network connector. Each
|
|
735
1455
|
# configuration update creates a new immutable version; this operation
|
|
736
1456
|
# lists those versions for the connector you specify. You can optionally
|
|
@@ -859,6 +1579,344 @@ module Aws::LambdaCore
|
|
|
859
1579
|
req.send_request(options)
|
|
860
1580
|
end
|
|
861
1581
|
|
|
1582
|
+
# Returns a paginated list of aliases for the specified runtime.
|
|
1583
|
+
#
|
|
1584
|
+
# @option params [required, String] :runtime_name
|
|
1585
|
+
# The name or ARN of the runtime whose aliases to list.
|
|
1586
|
+
#
|
|
1587
|
+
# @option params [String] :next_token
|
|
1588
|
+
# The pagination token from a previous response. Use it to retrieve the
|
|
1589
|
+
# next page of results.
|
|
1590
|
+
#
|
|
1591
|
+
# @option params [Integer] :max_results
|
|
1592
|
+
# The maximum number of runtime aliases to return per page. Valid range:
|
|
1593
|
+
# 1 to 100.
|
|
1594
|
+
#
|
|
1595
|
+
# @return [Types::ListRuntimeAliasesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1596
|
+
#
|
|
1597
|
+
# * {Types::ListRuntimeAliasesResponse#items #items} => Array<Types::RuntimeAliasInfo>
|
|
1598
|
+
# * {Types::ListRuntimeAliasesResponse#next_token #next_token} => String
|
|
1599
|
+
#
|
|
1600
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1601
|
+
#
|
|
1602
|
+
#
|
|
1603
|
+
# @example Example: List runtime aliases
|
|
1604
|
+
#
|
|
1605
|
+
# # Lists the aliases defined on a runtime.
|
|
1606
|
+
#
|
|
1607
|
+
# resp = client.list_runtime_aliases({
|
|
1608
|
+
# max_results: 10,
|
|
1609
|
+
# runtime_name: "php8",
|
|
1610
|
+
# })
|
|
1611
|
+
#
|
|
1612
|
+
# resp.to_h outputs the following:
|
|
1613
|
+
# {
|
|
1614
|
+
# items: [
|
|
1615
|
+
# {
|
|
1616
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/alias/latest",
|
|
1617
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
1618
|
+
# description: "Points at the newest published version",
|
|
1619
|
+
# last_modified: "2026-10-02T09:30:00.000Z",
|
|
1620
|
+
# name: "latest",
|
|
1621
|
+
# runtime_version: "v1",
|
|
1622
|
+
# runtime_version_arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/version/v1",
|
|
1623
|
+
# state: "ACTIVE",
|
|
1624
|
+
# },
|
|
1625
|
+
# ],
|
|
1626
|
+
# }
|
|
1627
|
+
#
|
|
1628
|
+
# @example Request syntax with placeholder values
|
|
1629
|
+
#
|
|
1630
|
+
# resp = client.list_runtime_aliases({
|
|
1631
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
1632
|
+
# next_token: "String",
|
|
1633
|
+
# max_results: 1,
|
|
1634
|
+
# })
|
|
1635
|
+
#
|
|
1636
|
+
# @example Response structure
|
|
1637
|
+
#
|
|
1638
|
+
# resp.items #=> Array
|
|
1639
|
+
# resp.items[0].name #=> String
|
|
1640
|
+
# resp.items[0].arn #=> String
|
|
1641
|
+
# resp.items[0].runtime_version #=> String
|
|
1642
|
+
# resp.items[0].runtime_version_arn #=> String
|
|
1643
|
+
# resp.items[0].state #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "PENDING_DELETION"
|
|
1644
|
+
# resp.items[0].pending_deletion_at #=> String
|
|
1645
|
+
# resp.items[0].description #=> String
|
|
1646
|
+
# resp.items[0].compatibility.integration_models #=> Array
|
|
1647
|
+
# resp.items[0].compatibility.integration_models[0] #=> String, one of "RuntimeAPI"
|
|
1648
|
+
# resp.items[0].compatibility.architectures #=> Array
|
|
1649
|
+
# resp.items[0].compatibility.architectures[0] #=> String, one of "x86_64", "arm64"
|
|
1650
|
+
# resp.items[0].compatibility.managed_instances #=> String, one of "Supported", "NotSupported"
|
|
1651
|
+
# resp.items[0].release_lifecycle.release_state #=> String, one of "PREVIEW", "GA", "DEPRECATED"
|
|
1652
|
+
# resp.items[0].release_lifecycle.deprecation_date #=> String
|
|
1653
|
+
# resp.items[0].release_lifecycle.function_create_block_date #=> String
|
|
1654
|
+
# resp.items[0].release_lifecycle.function_update_block_date #=> String
|
|
1655
|
+
# resp.items[0].created #=> String
|
|
1656
|
+
# resp.items[0].last_modified #=> String
|
|
1657
|
+
# resp.next_token #=> String
|
|
1658
|
+
#
|
|
1659
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/ListRuntimeAliases AWS API Documentation
|
|
1660
|
+
#
|
|
1661
|
+
# @overload list_runtime_aliases(params = {})
|
|
1662
|
+
# @param [Hash] params ({})
|
|
1663
|
+
def list_runtime_aliases(params = {}, options = {})
|
|
1664
|
+
req = build_request(:list_runtime_aliases, params)
|
|
1665
|
+
req.send_request(options)
|
|
1666
|
+
end
|
|
1667
|
+
|
|
1668
|
+
# Returns a paginated list of versions for the specified runtime.
|
|
1669
|
+
#
|
|
1670
|
+
# @option params [required, String] :runtime_name
|
|
1671
|
+
# The name or ARN of the runtime whose versions to list.
|
|
1672
|
+
#
|
|
1673
|
+
# @option params [String] :next_token
|
|
1674
|
+
# The pagination token from a previous response. Use it to retrieve the
|
|
1675
|
+
# next page of results.
|
|
1676
|
+
#
|
|
1677
|
+
# @option params [Integer] :max_results
|
|
1678
|
+
# The maximum number of runtime versions to return per page. Valid
|
|
1679
|
+
# range: 1 to 100.
|
|
1680
|
+
#
|
|
1681
|
+
# @return [Types::ListRuntimeVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1682
|
+
#
|
|
1683
|
+
# * {Types::ListRuntimeVersionsResponse#items #items} => Array<Types::RuntimeVersionInfo>
|
|
1684
|
+
# * {Types::ListRuntimeVersionsResponse#next_token #next_token} => String
|
|
1685
|
+
#
|
|
1686
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1687
|
+
#
|
|
1688
|
+
#
|
|
1689
|
+
# @example Example: List runtime versions
|
|
1690
|
+
#
|
|
1691
|
+
# # Lists the versions published for a runtime.
|
|
1692
|
+
#
|
|
1693
|
+
# resp = client.list_runtime_versions({
|
|
1694
|
+
# max_results: 10,
|
|
1695
|
+
# runtime_name: "php8",
|
|
1696
|
+
# })
|
|
1697
|
+
#
|
|
1698
|
+
# resp.to_h outputs the following:
|
|
1699
|
+
# {
|
|
1700
|
+
# items: [
|
|
1701
|
+
# {
|
|
1702
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/version/v1",
|
|
1703
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
1704
|
+
# last_modified: "2026-10-01T12:00:00.000Z",
|
|
1705
|
+
# name: "v1",
|
|
1706
|
+
# release_notes: "Initial release",
|
|
1707
|
+
# resolved_uri: "123456789012.dkr.ecr.us-west-2.amazonaws.com/php8@sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
|
|
1708
|
+
# state: "ACTIVE",
|
|
1709
|
+
# },
|
|
1710
|
+
# ],
|
|
1711
|
+
# }
|
|
1712
|
+
#
|
|
1713
|
+
# @example Request syntax with placeholder values
|
|
1714
|
+
#
|
|
1715
|
+
# resp = client.list_runtime_versions({
|
|
1716
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
1717
|
+
# next_token: "String",
|
|
1718
|
+
# max_results: 1,
|
|
1719
|
+
# })
|
|
1720
|
+
#
|
|
1721
|
+
# @example Response structure
|
|
1722
|
+
#
|
|
1723
|
+
# resp.items #=> Array
|
|
1724
|
+
# resp.items[0].name #=> String
|
|
1725
|
+
# resp.items[0].arn #=> String
|
|
1726
|
+
# resp.items[0].resolved_uri #=> String
|
|
1727
|
+
# resp.items[0].state #=> String, one of "CREATING", "ACTIVE", "FAILED", "DELETING", "PENDING_DELETION"
|
|
1728
|
+
# resp.items[0].pending_deletion_at #=> String
|
|
1729
|
+
# resp.items[0].release_notes #=> String
|
|
1730
|
+
# resp.items[0].compatibility.integration_models #=> Array
|
|
1731
|
+
# resp.items[0].compatibility.integration_models[0] #=> String, one of "RuntimeAPI"
|
|
1732
|
+
# resp.items[0].compatibility.architectures #=> Array
|
|
1733
|
+
# resp.items[0].compatibility.architectures[0] #=> String, one of "x86_64", "arm64"
|
|
1734
|
+
# resp.items[0].compatibility.managed_instances #=> String, one of "Supported", "NotSupported"
|
|
1735
|
+
# resp.items[0].created #=> String
|
|
1736
|
+
# resp.items[0].last_modified #=> String
|
|
1737
|
+
# resp.next_token #=> String
|
|
1738
|
+
#
|
|
1739
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/ListRuntimeVersions AWS API Documentation
|
|
1740
|
+
#
|
|
1741
|
+
# @overload list_runtime_versions(params = {})
|
|
1742
|
+
# @param [Hash] params ({})
|
|
1743
|
+
def list_runtime_versions(params = {}, options = {})
|
|
1744
|
+
req = build_request(:list_runtime_versions, params)
|
|
1745
|
+
req.send_request(options)
|
|
1746
|
+
end
|
|
1747
|
+
|
|
1748
|
+
# Returns a paginated list of runtimes in your account for the current
|
|
1749
|
+
# Region.
|
|
1750
|
+
#
|
|
1751
|
+
# @option params [String] :next_token
|
|
1752
|
+
# The pagination token from a previous response. Use it to retrieve the
|
|
1753
|
+
# next page of results.
|
|
1754
|
+
#
|
|
1755
|
+
# @option params [Integer] :max_results
|
|
1756
|
+
# The maximum number of runtimes to return per page. Valid range: 1 to
|
|
1757
|
+
# 100.
|
|
1758
|
+
#
|
|
1759
|
+
# @return [Types::ListRuntimesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1760
|
+
#
|
|
1761
|
+
# * {Types::ListRuntimesResponse#next_token #next_token} => String
|
|
1762
|
+
# * {Types::ListRuntimesResponse#items #items} => Array<Types::RuntimeInfo>
|
|
1763
|
+
#
|
|
1764
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1765
|
+
#
|
|
1766
|
+
#
|
|
1767
|
+
# @example Example: List runtimes
|
|
1768
|
+
#
|
|
1769
|
+
# # Lists the runtimes in the account and region.
|
|
1770
|
+
#
|
|
1771
|
+
# resp = client.list_runtimes({
|
|
1772
|
+
# max_results: 10,
|
|
1773
|
+
# })
|
|
1774
|
+
#
|
|
1775
|
+
# resp.to_h outputs the following:
|
|
1776
|
+
# {
|
|
1777
|
+
# items: [
|
|
1778
|
+
# {
|
|
1779
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8",
|
|
1780
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
1781
|
+
# description: "PHP 8 custom runtime",
|
|
1782
|
+
# last_modified: "2026-10-02T09:30:00.000Z",
|
|
1783
|
+
# license_info: "MIT",
|
|
1784
|
+
# name: "php8",
|
|
1785
|
+
# release_lifecycle: {
|
|
1786
|
+
# release_state: "GA",
|
|
1787
|
+
# },
|
|
1788
|
+
# },
|
|
1789
|
+
# ],
|
|
1790
|
+
# }
|
|
1791
|
+
#
|
|
1792
|
+
# @example Request syntax with placeholder values
|
|
1793
|
+
#
|
|
1794
|
+
# resp = client.list_runtimes({
|
|
1795
|
+
# next_token: "String",
|
|
1796
|
+
# max_results: 1,
|
|
1797
|
+
# })
|
|
1798
|
+
#
|
|
1799
|
+
# @example Response structure
|
|
1800
|
+
#
|
|
1801
|
+
# resp.next_token #=> String
|
|
1802
|
+
# resp.items #=> Array
|
|
1803
|
+
# resp.items[0].arn #=> String
|
|
1804
|
+
# resp.items[0].name #=> String
|
|
1805
|
+
# resp.items[0].description #=> String
|
|
1806
|
+
# resp.items[0].license_info #=> String
|
|
1807
|
+
# resp.items[0].release_lifecycle.release_state #=> String, one of "PREVIEW", "GA", "DEPRECATED"
|
|
1808
|
+
# resp.items[0].release_lifecycle.deprecation_date #=> String
|
|
1809
|
+
# resp.items[0].release_lifecycle.function_create_block_date #=> String
|
|
1810
|
+
# resp.items[0].release_lifecycle.function_update_block_date #=> String
|
|
1811
|
+
# resp.items[0].state #=> String, one of "ACTIVE", "PENDING_DELETION", "DELETING", "FAILED"
|
|
1812
|
+
# resp.items[0].pending_deletion_at #=> String
|
|
1813
|
+
# resp.items[0].created #=> String
|
|
1814
|
+
# resp.items[0].last_modified #=> String
|
|
1815
|
+
#
|
|
1816
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/ListRuntimes AWS API Documentation
|
|
1817
|
+
#
|
|
1818
|
+
# @overload list_runtimes(params = {})
|
|
1819
|
+
# @param [Hash] params ({})
|
|
1820
|
+
def list_runtimes(params = {}, options = {})
|
|
1821
|
+
req = build_request(:list_runtimes, params)
|
|
1822
|
+
req.send_request(options)
|
|
1823
|
+
end
|
|
1824
|
+
|
|
1825
|
+
# Cancels a pending scheduled deletion, returning the resource to the
|
|
1826
|
+
# ACTIVE state. Scope is determined by the RuntimeName path parameter
|
|
1827
|
+
# plus an optional, mutually exclusive RuntimeVersion or RuntimeAlias
|
|
1828
|
+
# query parameter: with neither, the runtime itself is restored; with
|
|
1829
|
+
# RuntimeVersion, the named runtime version; with RuntimeAlias, the
|
|
1830
|
+
# named runtime alias. Restoring a resource that is already ACTIVE is a
|
|
1831
|
+
# no-op success. Restore only works while the target is
|
|
1832
|
+
# PENDING\_DELETION; once the scheduled deletion has begun executing
|
|
1833
|
+
# (DELETING) or has completed, the call fails.
|
|
1834
|
+
#
|
|
1835
|
+
# @option params [required, String] :runtime_name
|
|
1836
|
+
# The name or ARN of the runtime to restore. When RuntimeVersion or
|
|
1837
|
+
# RuntimeAlias is specified, the runtime that owns the runtime version
|
|
1838
|
+
# or runtime alias to restore.
|
|
1839
|
+
#
|
|
1840
|
+
# @option params [String] :runtime_version
|
|
1841
|
+
# Optional. Restores the named RuntimeVersion under RuntimeName.
|
|
1842
|
+
# Mutually exclusive with RuntimeAlias; supplying both is rejected with
|
|
1843
|
+
# InvalidParameterValueException.
|
|
1844
|
+
#
|
|
1845
|
+
# @option params [String] :runtime_alias
|
|
1846
|
+
# Optional. Restores the named RuntimeAlias under RuntimeName. Mutually
|
|
1847
|
+
# exclusive with RuntimeVersion; supplying both is rejected with
|
|
1848
|
+
# InvalidParameterValueException.
|
|
1849
|
+
#
|
|
1850
|
+
# @return [Types::RestoreRuntimeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1851
|
+
#
|
|
1852
|
+
# * {Types::RestoreRuntimeResponse#runtime_name #runtime_name} => String
|
|
1853
|
+
# * {Types::RestoreRuntimeResponse#runtime_version #runtime_version} => String
|
|
1854
|
+
# * {Types::RestoreRuntimeResponse#runtime_alias #runtime_alias} => String
|
|
1855
|
+
# * {Types::RestoreRuntimeResponse#arn #arn} => String
|
|
1856
|
+
# * {Types::RestoreRuntimeResponse#state #state} => String
|
|
1857
|
+
# * {Types::RestoreRuntimeResponse#last_modified #last_modified} => String
|
|
1858
|
+
#
|
|
1859
|
+
#
|
|
1860
|
+
# @example Example: Restore a runtime alias that is scheduled for deletion
|
|
1861
|
+
#
|
|
1862
|
+
# # Cancels a pending deletion for an alias, returning it to ACTIVE.
|
|
1863
|
+
#
|
|
1864
|
+
# resp = client.restore_runtime({
|
|
1865
|
+
# runtime_alias: "release",
|
|
1866
|
+
# runtime_name: "php8",
|
|
1867
|
+
# })
|
|
1868
|
+
#
|
|
1869
|
+
# resp.to_h outputs the following:
|
|
1870
|
+
# {
|
|
1871
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/alias/release",
|
|
1872
|
+
# last_modified: "2026-10-02T19:40:00.000Z",
|
|
1873
|
+
# runtime_alias: "release",
|
|
1874
|
+
# runtime_name: "php8",
|
|
1875
|
+
# state: "ACTIVE",
|
|
1876
|
+
# }
|
|
1877
|
+
#
|
|
1878
|
+
# @example Example: Restore a customer-managed runtime that is scheduled for deletion
|
|
1879
|
+
#
|
|
1880
|
+
# # Cancels a pending deletion for the runtime, returning it to ACTIVE.
|
|
1881
|
+
#
|
|
1882
|
+
# resp = client.restore_runtime({
|
|
1883
|
+
# runtime_name: "php8",
|
|
1884
|
+
# })
|
|
1885
|
+
#
|
|
1886
|
+
# resp.to_h outputs the following:
|
|
1887
|
+
# {
|
|
1888
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8",
|
|
1889
|
+
# last_modified: "2026-10-02T19:41:00.000Z",
|
|
1890
|
+
# runtime_name: "php8",
|
|
1891
|
+
# state: "ACTIVE",
|
|
1892
|
+
# }
|
|
1893
|
+
#
|
|
1894
|
+
# @example Request syntax with placeholder values
|
|
1895
|
+
#
|
|
1896
|
+
# resp = client.restore_runtime({
|
|
1897
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
1898
|
+
# runtime_version: "RuntimeVersionName",
|
|
1899
|
+
# runtime_alias: "RuntimeAliasName",
|
|
1900
|
+
# })
|
|
1901
|
+
#
|
|
1902
|
+
# @example Response structure
|
|
1903
|
+
#
|
|
1904
|
+
# resp.runtime_name #=> String
|
|
1905
|
+
# resp.runtime_version #=> String
|
|
1906
|
+
# resp.runtime_alias #=> String
|
|
1907
|
+
# resp.arn #=> String
|
|
1908
|
+
# resp.state #=> String, one of "ACTIVE", "PENDING_DELETION", "DELETING", "FAILED"
|
|
1909
|
+
# resp.last_modified #=> String
|
|
1910
|
+
#
|
|
1911
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/RestoreRuntime AWS API Documentation
|
|
1912
|
+
#
|
|
1913
|
+
# @overload restore_runtime(params = {})
|
|
1914
|
+
# @param [Hash] params ({})
|
|
1915
|
+
def restore_runtime(params = {}, options = {})
|
|
1916
|
+
req = build_request(:restore_runtime, params)
|
|
1917
|
+
req.send_request(options)
|
|
1918
|
+
end
|
|
1919
|
+
|
|
862
1920
|
# Updates the VPC configuration or operator role of an existing network
|
|
863
1921
|
# connector. You can modify the subnet IDs, security group IDs, network
|
|
864
1922
|
# protocol, or operator role. The connector must be in `ACTIVE` state to
|
|
@@ -958,6 +2016,282 @@ module Aws::LambdaCore
|
|
|
958
2016
|
req.send_request(options)
|
|
959
2017
|
end
|
|
960
2018
|
|
|
2019
|
+
# Updates the properties of an existing customer-managed runtime, such
|
|
2020
|
+
# as its description, license information, or lifecycle information.
|
|
2021
|
+
#
|
|
2022
|
+
# @option params [required, String] :runtime_name
|
|
2023
|
+
# The name or ARN of the runtime to update.
|
|
2024
|
+
#
|
|
2025
|
+
# @option params [String] :description
|
|
2026
|
+
# The updated description of the runtime.
|
|
2027
|
+
#
|
|
2028
|
+
# @option params [String] :license_info
|
|
2029
|
+
# The updated license information for the runtime.
|
|
2030
|
+
#
|
|
2031
|
+
# @option params [Types::RuntimeReleaseLifecycle] :release_lifecycle
|
|
2032
|
+
# The runtime lifecycle for the runtime. Optional. Used to schedule
|
|
2033
|
+
# runtime deprecation. Omitting or providing an empty object removes the
|
|
2034
|
+
# existing lifecycle.
|
|
2035
|
+
#
|
|
2036
|
+
# @return [Types::UpdateRuntimeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2037
|
+
#
|
|
2038
|
+
# * {Types::UpdateRuntimeResponse#arn #arn} => String
|
|
2039
|
+
# * {Types::UpdateRuntimeResponse#name #name} => String
|
|
2040
|
+
# * {Types::UpdateRuntimeResponse#description #description} => String
|
|
2041
|
+
# * {Types::UpdateRuntimeResponse#license_info #license_info} => String
|
|
2042
|
+
# * {Types::UpdateRuntimeResponse#release_lifecycle #release_lifecycle} => Types::RuntimeReleaseLifecycle
|
|
2043
|
+
# * {Types::UpdateRuntimeResponse#created #created} => String
|
|
2044
|
+
# * {Types::UpdateRuntimeResponse#last_modified #last_modified} => String
|
|
2045
|
+
#
|
|
2046
|
+
#
|
|
2047
|
+
# @example Example: Update a runtime
|
|
2048
|
+
#
|
|
2049
|
+
# # Updates a runtime's description and declares it generally available.
|
|
2050
|
+
#
|
|
2051
|
+
# resp = client.update_runtime({
|
|
2052
|
+
# description: "PHP 8 custom runtime (updated)",
|
|
2053
|
+
# release_lifecycle: {
|
|
2054
|
+
# release_state: "GA",
|
|
2055
|
+
# },
|
|
2056
|
+
# runtime_name: "php8",
|
|
2057
|
+
# })
|
|
2058
|
+
#
|
|
2059
|
+
# resp.to_h outputs the following:
|
|
2060
|
+
# {
|
|
2061
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8",
|
|
2062
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
2063
|
+
# description: "PHP 8 custom runtime (updated)",
|
|
2064
|
+
# last_modified: "2026-10-02T09:30:00.000Z",
|
|
2065
|
+
# license_info: "MIT",
|
|
2066
|
+
# name: "php8",
|
|
2067
|
+
# release_lifecycle: {
|
|
2068
|
+
# release_state: "GA",
|
|
2069
|
+
# },
|
|
2070
|
+
# }
|
|
2071
|
+
#
|
|
2072
|
+
# @example Request syntax with placeholder values
|
|
2073
|
+
#
|
|
2074
|
+
# resp = client.update_runtime({
|
|
2075
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
2076
|
+
# description: "RuntimeDescription",
|
|
2077
|
+
# license_info: "RuntimeLicenseInfo",
|
|
2078
|
+
# release_lifecycle: {
|
|
2079
|
+
# release_state: "PREVIEW", # accepts PREVIEW, GA, DEPRECATED
|
|
2080
|
+
# deprecation_date: "RuntimeLifecycleDate",
|
|
2081
|
+
# function_create_block_date: "RuntimeLifecycleDate",
|
|
2082
|
+
# function_update_block_date: "RuntimeLifecycleDate",
|
|
2083
|
+
# },
|
|
2084
|
+
# })
|
|
2085
|
+
#
|
|
2086
|
+
# @example Response structure
|
|
2087
|
+
#
|
|
2088
|
+
# resp.arn #=> String
|
|
2089
|
+
# resp.name #=> String
|
|
2090
|
+
# resp.description #=> String
|
|
2091
|
+
# resp.license_info #=> String
|
|
2092
|
+
# resp.release_lifecycle.release_state #=> String, one of "PREVIEW", "GA", "DEPRECATED"
|
|
2093
|
+
# resp.release_lifecycle.deprecation_date #=> String
|
|
2094
|
+
# resp.release_lifecycle.function_create_block_date #=> String
|
|
2095
|
+
# resp.release_lifecycle.function_update_block_date #=> String
|
|
2096
|
+
# resp.created #=> String
|
|
2097
|
+
# resp.last_modified #=> String
|
|
2098
|
+
#
|
|
2099
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/UpdateRuntime AWS API Documentation
|
|
2100
|
+
#
|
|
2101
|
+
# @overload update_runtime(params = {})
|
|
2102
|
+
# @param [Hash] params ({})
|
|
2103
|
+
def update_runtime(params = {}, options = {})
|
|
2104
|
+
req = build_request(:update_runtime, params)
|
|
2105
|
+
req.send_request(options)
|
|
2106
|
+
end
|
|
2107
|
+
|
|
2108
|
+
# Updates an existing runtime alias to point to a different runtime
|
|
2109
|
+
# version or to change its description or lifecycle information.
|
|
2110
|
+
#
|
|
2111
|
+
# @option params [required, String] :runtime_name
|
|
2112
|
+
# The name or ARN of the runtime.
|
|
2113
|
+
#
|
|
2114
|
+
# @option params [required, String] :name
|
|
2115
|
+
# The name of the runtime alias to update.
|
|
2116
|
+
#
|
|
2117
|
+
# @option params [required, String] :runtime_version
|
|
2118
|
+
# The name of the runtime version the alias should point to.
|
|
2119
|
+
#
|
|
2120
|
+
# @option params [String] :description
|
|
2121
|
+
# A description of the runtime alias.
|
|
2122
|
+
#
|
|
2123
|
+
# @option params [Types::RuntimeReleaseLifecycle] :release_lifecycle
|
|
2124
|
+
# The lifecycle for the alias. By default, this is inherited from the
|
|
2125
|
+
# runtime lifecycle. Optionally, you can override the lifecycle
|
|
2126
|
+
# information at the alias level, if required. Omitting or providing an
|
|
2127
|
+
# empty object removes the existing lifecycle override.
|
|
2128
|
+
#
|
|
2129
|
+
# @return [Types::UpdateRuntimeAliasResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2130
|
+
#
|
|
2131
|
+
# * {Types::UpdateRuntimeAliasResponse#runtime_name #runtime_name} => String
|
|
2132
|
+
# * {Types::UpdateRuntimeAliasResponse#name #name} => String
|
|
2133
|
+
# * {Types::UpdateRuntimeAliasResponse#arn #arn} => String
|
|
2134
|
+
# * {Types::UpdateRuntimeAliasResponse#runtime_version #runtime_version} => String
|
|
2135
|
+
# * {Types::UpdateRuntimeAliasResponse#runtime_version_arn #runtime_version_arn} => String
|
|
2136
|
+
# * {Types::UpdateRuntimeAliasResponse#state #state} => String
|
|
2137
|
+
# * {Types::UpdateRuntimeAliasResponse#description #description} => String
|
|
2138
|
+
# * {Types::UpdateRuntimeAliasResponse#compatibility #compatibility} => Types::Compatibility
|
|
2139
|
+
# * {Types::UpdateRuntimeAliasResponse#release_lifecycle #release_lifecycle} => Types::RuntimeReleaseLifecycle
|
|
2140
|
+
# * {Types::UpdateRuntimeAliasResponse#created #created} => String
|
|
2141
|
+
# * {Types::UpdateRuntimeAliasResponse#last_modified #last_modified} => String
|
|
2142
|
+
#
|
|
2143
|
+
#
|
|
2144
|
+
# @example Example: Update a runtime alias
|
|
2145
|
+
#
|
|
2146
|
+
# # Repoints an alias at a different runtime version.
|
|
2147
|
+
#
|
|
2148
|
+
# resp = client.update_runtime_alias({
|
|
2149
|
+
# name: "latest",
|
|
2150
|
+
# runtime_name: "php8",
|
|
2151
|
+
# runtime_version: "v2",
|
|
2152
|
+
# })
|
|
2153
|
+
#
|
|
2154
|
+
# resp.to_h outputs the following:
|
|
2155
|
+
# {
|
|
2156
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/alias/latest",
|
|
2157
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
2158
|
+
# description: "Points at the newest published version",
|
|
2159
|
+
# last_modified: "2026-10-03T08:15:00.000Z",
|
|
2160
|
+
# name: "latest",
|
|
2161
|
+
# runtime_name: "php8",
|
|
2162
|
+
# runtime_version: "v2",
|
|
2163
|
+
# runtime_version_arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/version/v2",
|
|
2164
|
+
# state: "UPDATING",
|
|
2165
|
+
# }
|
|
2166
|
+
#
|
|
2167
|
+
# @example Request syntax with placeholder values
|
|
2168
|
+
#
|
|
2169
|
+
# resp = client.update_runtime_alias({
|
|
2170
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
2171
|
+
# name: "RuntimeAliasName", # required
|
|
2172
|
+
# runtime_version: "RuntimeVersionName", # required
|
|
2173
|
+
# description: "RuntimeAliasDescription",
|
|
2174
|
+
# release_lifecycle: {
|
|
2175
|
+
# release_state: "PREVIEW", # accepts PREVIEW, GA, DEPRECATED
|
|
2176
|
+
# deprecation_date: "RuntimeLifecycleDate",
|
|
2177
|
+
# function_create_block_date: "RuntimeLifecycleDate",
|
|
2178
|
+
# function_update_block_date: "RuntimeLifecycleDate",
|
|
2179
|
+
# },
|
|
2180
|
+
# })
|
|
2181
|
+
#
|
|
2182
|
+
# @example Response structure
|
|
2183
|
+
#
|
|
2184
|
+
# resp.runtime_name #=> String
|
|
2185
|
+
# resp.name #=> String
|
|
2186
|
+
# resp.arn #=> String
|
|
2187
|
+
# resp.runtime_version #=> String
|
|
2188
|
+
# resp.runtime_version_arn #=> String
|
|
2189
|
+
# resp.state #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "PENDING_DELETION"
|
|
2190
|
+
# resp.description #=> String
|
|
2191
|
+
# resp.compatibility.integration_models #=> Array
|
|
2192
|
+
# resp.compatibility.integration_models[0] #=> String, one of "RuntimeAPI"
|
|
2193
|
+
# resp.compatibility.architectures #=> Array
|
|
2194
|
+
# resp.compatibility.architectures[0] #=> String, one of "x86_64", "arm64"
|
|
2195
|
+
# resp.compatibility.managed_instances #=> String, one of "Supported", "NotSupported"
|
|
2196
|
+
# resp.release_lifecycle.release_state #=> String, one of "PREVIEW", "GA", "DEPRECATED"
|
|
2197
|
+
# resp.release_lifecycle.deprecation_date #=> String
|
|
2198
|
+
# resp.release_lifecycle.function_create_block_date #=> String
|
|
2199
|
+
# resp.release_lifecycle.function_update_block_date #=> String
|
|
2200
|
+
# resp.created #=> String
|
|
2201
|
+
# resp.last_modified #=> String
|
|
2202
|
+
#
|
|
2203
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/UpdateRuntimeAlias AWS API Documentation
|
|
2204
|
+
#
|
|
2205
|
+
# @overload update_runtime_alias(params = {})
|
|
2206
|
+
# @param [Hash] params ({})
|
|
2207
|
+
def update_runtime_alias(params = {}, options = {})
|
|
2208
|
+
req = build_request(:update_runtime_alias, params)
|
|
2209
|
+
req.send_request(options)
|
|
2210
|
+
end
|
|
2211
|
+
|
|
2212
|
+
# Updates the runtime version release notes. The runtime version must be
|
|
2213
|
+
# in the ACTIVE state. The runtime version image is immutable. To change
|
|
2214
|
+
# the runtime contents, create a new runtime version.
|
|
2215
|
+
#
|
|
2216
|
+
# @option params [required, String] :runtime_name
|
|
2217
|
+
# The name or ARN of the runtime.
|
|
2218
|
+
#
|
|
2219
|
+
# @option params [required, String] :name
|
|
2220
|
+
# The name of the runtime version to update.
|
|
2221
|
+
#
|
|
2222
|
+
# @option params [required, String] :release_notes
|
|
2223
|
+
# The release notes to associate with the runtime version.
|
|
2224
|
+
#
|
|
2225
|
+
# @return [Types::UpdateRuntimeVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2226
|
+
#
|
|
2227
|
+
# * {Types::UpdateRuntimeVersionResponse#name #name} => String
|
|
2228
|
+
# * {Types::UpdateRuntimeVersionResponse#arn #arn} => String
|
|
2229
|
+
# * {Types::UpdateRuntimeVersionResponse#resolved_uri #resolved_uri} => String
|
|
2230
|
+
# * {Types::UpdateRuntimeVersionResponse#state #state} => String
|
|
2231
|
+
# * {Types::UpdateRuntimeVersionResponse#release_notes #release_notes} => String
|
|
2232
|
+
# * {Types::UpdateRuntimeVersionResponse#platforms #platforms} => Array<Types::Platform>
|
|
2233
|
+
# * {Types::UpdateRuntimeVersionResponse#compatibility #compatibility} => Types::Compatibility
|
|
2234
|
+
# * {Types::UpdateRuntimeVersionResponse#created #created} => String
|
|
2235
|
+
# * {Types::UpdateRuntimeVersionResponse#last_modified #last_modified} => String
|
|
2236
|
+
#
|
|
2237
|
+
#
|
|
2238
|
+
# @example Example: Update a runtime version's release notes
|
|
2239
|
+
#
|
|
2240
|
+
# # Updates the release notes of an ACTIVE runtime version.
|
|
2241
|
+
#
|
|
2242
|
+
# resp = client.update_runtime_version({
|
|
2243
|
+
# name: "v1",
|
|
2244
|
+
# release_notes: "Patched OpenSSL to 3.0.14",
|
|
2245
|
+
# runtime_name: "php8",
|
|
2246
|
+
# })
|
|
2247
|
+
#
|
|
2248
|
+
# resp.to_h outputs the following:
|
|
2249
|
+
# {
|
|
2250
|
+
# arn: "arn:aws:lambda:us-west-2:123456789012:runtime/php8/version/v1",
|
|
2251
|
+
# created: "2026-10-01T12:00:00.000Z",
|
|
2252
|
+
# last_modified: "2026-10-03T08:15:00.000Z",
|
|
2253
|
+
# name: "v1",
|
|
2254
|
+
# release_notes: "Patched OpenSSL to 3.0.14",
|
|
2255
|
+
# resolved_uri: "123456789012.dkr.ecr.us-west-2.amazonaws.com/php8@sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
|
|
2256
|
+
# state: "ACTIVE",
|
|
2257
|
+
# }
|
|
2258
|
+
#
|
|
2259
|
+
# @example Request syntax with placeholder values
|
|
2260
|
+
#
|
|
2261
|
+
# resp = client.update_runtime_version({
|
|
2262
|
+
# runtime_name: "RuntimeIdentifier", # required
|
|
2263
|
+
# name: "RuntimeVersionName", # required
|
|
2264
|
+
# release_notes: "String", # required
|
|
2265
|
+
# })
|
|
2266
|
+
#
|
|
2267
|
+
# @example Response structure
|
|
2268
|
+
#
|
|
2269
|
+
# resp.name #=> String
|
|
2270
|
+
# resp.arn #=> String
|
|
2271
|
+
# resp.resolved_uri #=> String
|
|
2272
|
+
# resp.state #=> String, one of "CREATING", "ACTIVE", "FAILED", "DELETING", "PENDING_DELETION"
|
|
2273
|
+
# resp.release_notes #=> String
|
|
2274
|
+
# resp.platforms #=> Array
|
|
2275
|
+
# resp.platforms[0].architecture #=> String
|
|
2276
|
+
# resp.platforms[0].os #=> String
|
|
2277
|
+
# resp.platforms[0].digest #=> String
|
|
2278
|
+
# resp.compatibility.integration_models #=> Array
|
|
2279
|
+
# resp.compatibility.integration_models[0] #=> String, one of "RuntimeAPI"
|
|
2280
|
+
# resp.compatibility.architectures #=> Array
|
|
2281
|
+
# resp.compatibility.architectures[0] #=> String, one of "x86_64", "arm64"
|
|
2282
|
+
# resp.compatibility.managed_instances #=> String, one of "Supported", "NotSupported"
|
|
2283
|
+
# resp.created #=> String
|
|
2284
|
+
# resp.last_modified #=> String
|
|
2285
|
+
#
|
|
2286
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-core-2026-04-30/UpdateRuntimeVersion AWS API Documentation
|
|
2287
|
+
#
|
|
2288
|
+
# @overload update_runtime_version(params = {})
|
|
2289
|
+
# @param [Hash] params ({})
|
|
2290
|
+
def update_runtime_version(params = {}, options = {})
|
|
2291
|
+
req = build_request(:update_runtime_version, params)
|
|
2292
|
+
req.send_request(options)
|
|
2293
|
+
end
|
|
2294
|
+
|
|
961
2295
|
# @!endgroup
|
|
962
2296
|
|
|
963
2297
|
# @param params ({})
|
|
@@ -976,14 +2310,129 @@ module Aws::LambdaCore
|
|
|
976
2310
|
tracer: tracer
|
|
977
2311
|
)
|
|
978
2312
|
context[:gem_name] = 'aws-sdk-lambdacore'
|
|
979
|
-
context[:gem_version] = '1.
|
|
2313
|
+
context[:gem_version] = '1.15.0'
|
|
980
2314
|
Seahorse::Client::Request.new(handlers, context)
|
|
981
2315
|
end
|
|
982
2316
|
|
|
2317
|
+
# Polls an API operation until a resource enters a desired state.
|
|
2318
|
+
#
|
|
2319
|
+
# ## Basic Usage
|
|
2320
|
+
#
|
|
2321
|
+
# A waiter will call an API operation until:
|
|
2322
|
+
#
|
|
2323
|
+
# * It is successful
|
|
2324
|
+
# * It enters a terminal state
|
|
2325
|
+
# * It makes the maximum number of attempts
|
|
2326
|
+
#
|
|
2327
|
+
# In between attempts, the waiter will sleep.
|
|
2328
|
+
#
|
|
2329
|
+
# # polls in a loop, sleeping between attempts
|
|
2330
|
+
# client.wait_until(waiter_name, params)
|
|
2331
|
+
#
|
|
2332
|
+
# ## Configuration
|
|
2333
|
+
#
|
|
2334
|
+
# You can configure the maximum number of polling attempts, and the
|
|
2335
|
+
# delay (in seconds) between each polling attempt. You can pass
|
|
2336
|
+
# configuration as the final arguments hash.
|
|
2337
|
+
#
|
|
2338
|
+
# # poll for ~25 seconds
|
|
2339
|
+
# client.wait_until(waiter_name, params, {
|
|
2340
|
+
# max_attempts: 5,
|
|
2341
|
+
# delay: 5,
|
|
2342
|
+
# })
|
|
2343
|
+
#
|
|
2344
|
+
# ## Callbacks
|
|
2345
|
+
#
|
|
2346
|
+
# You can be notified before each polling attempt and before each
|
|
2347
|
+
# delay. If you throw `:success` or `:failure` from these callbacks,
|
|
2348
|
+
# it will terminate the waiter.
|
|
2349
|
+
#
|
|
2350
|
+
# started_at = Time.now
|
|
2351
|
+
# client.wait_until(waiter_name, params, {
|
|
2352
|
+
#
|
|
2353
|
+
# # disable max attempts
|
|
2354
|
+
# max_attempts: nil,
|
|
2355
|
+
#
|
|
2356
|
+
# # poll for 1 hour, instead of a number of attempts
|
|
2357
|
+
# before_wait: -> (attempts, response) do
|
|
2358
|
+
# throw :failure if Time.now - started_at > 3600
|
|
2359
|
+
# end
|
|
2360
|
+
# })
|
|
2361
|
+
#
|
|
2362
|
+
# ## Handling Errors
|
|
2363
|
+
#
|
|
2364
|
+
# When a waiter is unsuccessful, it will raise an error.
|
|
2365
|
+
# All of the failure errors extend from
|
|
2366
|
+
# {Aws::Waiters::Errors::WaiterFailed}.
|
|
2367
|
+
#
|
|
2368
|
+
# begin
|
|
2369
|
+
# client.wait_until(...)
|
|
2370
|
+
# rescue Aws::Waiters::Errors::WaiterFailed
|
|
2371
|
+
# # resource did not enter the desired state in time
|
|
2372
|
+
# end
|
|
2373
|
+
#
|
|
2374
|
+
# ## Valid Waiters
|
|
2375
|
+
#
|
|
2376
|
+
# The following table lists the valid waiter names, the operations they call,
|
|
2377
|
+
# and the default `:delay` and `:max_attempts` values.
|
|
2378
|
+
#
|
|
2379
|
+
# | waiter_name | params | :delay | :max_attempts |
|
|
2380
|
+
# | ---------------------- | ---------------------------- | -------- | ------------- |
|
|
2381
|
+
# | runtime_alias_active | {Client#get_runtime_alias} | 2 | 60 |
|
|
2382
|
+
# | runtime_version_active | {Client#get_runtime_version} | 2 | 60 |
|
|
2383
|
+
#
|
|
2384
|
+
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
|
2385
|
+
# because the waiter has entered a state that it will not transition
|
|
2386
|
+
# out of, preventing success.
|
|
2387
|
+
#
|
|
2388
|
+
# @raise [Errors::TooManyAttemptsError] Raised when the configured
|
|
2389
|
+
# maximum number of attempts have been made, and the waiter is not
|
|
2390
|
+
# yet successful.
|
|
2391
|
+
#
|
|
2392
|
+
# @raise [Errors::UnexpectedError] Raised when an error is encounted
|
|
2393
|
+
# while polling for a resource that is not expected.
|
|
2394
|
+
#
|
|
2395
|
+
# @raise [Errors::NoSuchWaiterError] Raised when you request to wait
|
|
2396
|
+
# for an unknown state.
|
|
2397
|
+
#
|
|
2398
|
+
# @return [Boolean] Returns `true` if the waiter was successful.
|
|
2399
|
+
# @param [Symbol] waiter_name
|
|
2400
|
+
# @param [Hash] params ({})
|
|
2401
|
+
# @param [Hash] options ({})
|
|
2402
|
+
# @option options [Integer] :max_attempts
|
|
2403
|
+
# @option options [Integer] :delay
|
|
2404
|
+
# @option options [Proc] :before_attempt
|
|
2405
|
+
# @option options [Proc] :before_wait
|
|
2406
|
+
def wait_until(waiter_name, params = {}, options = {})
|
|
2407
|
+
w = waiter(waiter_name, options)
|
|
2408
|
+
yield(w.waiter) if block_given? # deprecated
|
|
2409
|
+
w.wait(params)
|
|
2410
|
+
end
|
|
2411
|
+
|
|
983
2412
|
# @api private
|
|
984
2413
|
# @deprecated
|
|
985
2414
|
def waiter_names
|
|
986
|
-
|
|
2415
|
+
waiters.keys
|
|
2416
|
+
end
|
|
2417
|
+
|
|
2418
|
+
private
|
|
2419
|
+
|
|
2420
|
+
# @param [Symbol] waiter_name
|
|
2421
|
+
# @param [Hash] options ({})
|
|
2422
|
+
def waiter(waiter_name, options = {})
|
|
2423
|
+
waiter_class = waiters[waiter_name]
|
|
2424
|
+
if waiter_class
|
|
2425
|
+
waiter_class.new(options.merge(client: self))
|
|
2426
|
+
else
|
|
2427
|
+
raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
|
|
2428
|
+
end
|
|
2429
|
+
end
|
|
2430
|
+
|
|
2431
|
+
def waiters
|
|
2432
|
+
{
|
|
2433
|
+
runtime_alias_active: Waiters::RuntimeAliasActive,
|
|
2434
|
+
runtime_version_active: Waiters::RuntimeVersionActive
|
|
2435
|
+
}
|
|
987
2436
|
end
|
|
988
2437
|
|
|
989
2438
|
class << self
|