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