aws-sdk-lambda 1.167.0 → 1.168.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.
@@ -56,7 +56,7 @@ module Aws::Lambda
56
56
  autoload :Endpoints, 'aws-sdk-lambda/endpoints'
57
57
  autoload :EventStreams, 'aws-sdk-lambda/event_streams'
58
58
 
59
- GEM_VERSION = '1.167.0'
59
+ GEM_VERSION = '1.168.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -140,6 +140,40 @@ module Aws
140
140
  ) -> _CreateAliasResponseSuccess
141
141
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAliasResponseSuccess
142
142
 
143
+ interface _CreateCapacityProviderResponseSuccess
144
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCapacityProviderResponse]
145
+ def capacity_provider: () -> Types::CapacityProvider
146
+ end
147
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#create_capacity_provider-instance_method
148
+ def create_capacity_provider: (
149
+ capacity_provider_name: ::String,
150
+ vpc_config: {
151
+ subnet_ids: Array[::String],
152
+ security_group_ids: Array[::String]
153
+ },
154
+ permissions_config: {
155
+ capacity_provider_operator_role_arn: ::String
156
+ },
157
+ ?instance_requirements: {
158
+ architectures: Array[("x86_64" | "arm64")]?,
159
+ allowed_instance_types: Array[::String]?,
160
+ excluded_instance_types: Array[::String]?
161
+ },
162
+ ?capacity_provider_scaling_config: {
163
+ max_v_cpu_count: ::Integer?,
164
+ scaling_mode: ("Auto" | "Manual")?,
165
+ scaling_policies: Array[
166
+ {
167
+ predefined_metric_type: ("LambdaCapacityProviderAverageCPUUtilization"),
168
+ target_value: ::Float
169
+ },
170
+ ]?
171
+ },
172
+ ?kms_key_arn: ::String,
173
+ ?tags: Hash[::String, ::String]
174
+ ) -> _CreateCapacityProviderResponseSuccess
175
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCapacityProviderResponseSuccess
176
+
143
177
  interface _CreateCodeSigningConfigResponseSuccess
144
178
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateCodeSigningConfigResponse]
145
179
  def code_signing_config: () -> Types::CodeSigningConfig
@@ -312,12 +346,12 @@ module Aws
312
346
  def master_arn: () -> ::String
313
347
  def revision_id: () -> ::String
314
348
  def layers: () -> ::Array[Types::Layer]
315
- def state: () -> ("Pending" | "Active" | "Inactive" | "Failed")
349
+ def state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
316
350
  def state_reason: () -> ::String
317
- def state_reason_code: () -> ("Idle" | "Creating" | "Restoring" | "EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError")
351
+ def state_reason_code: () -> ("Idle" | "Creating" | "Restoring" | "EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError" | "VcpuLimitExceeded" | "CapacityProviderScalingLimitExceeded" | "InsufficientCapacity" | "EC2RequestLimitExceeded" | "FunctionError.InitTimeout" | "FunctionError.RuntimeInitError" | "FunctionError.ExtensionInitError" | "FunctionError.InvalidEntryPoint" | "FunctionError.InvalidWorkingDirectory" | "FunctionError.PermissionDenied" | "FunctionError.TooManyExtensions" | "FunctionError.InitResourceExhausted")
318
352
  def last_update_status: () -> ("Successful" | "Failed" | "InProgress")
319
353
  def last_update_status_reason: () -> ::String
320
- def last_update_status_reason_code: () -> ("EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError")
354
+ def last_update_status_reason_code: () -> ("EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError" | "VcpuLimitExceeded" | "CapacityProviderScalingLimitExceeded" | "InsufficientCapacity" | "EC2RequestLimitExceeded" | "FunctionError.InitTimeout" | "FunctionError.RuntimeInitError" | "FunctionError.ExtensionInitError" | "FunctionError.InvalidEntryPoint" | "FunctionError.InvalidWorkingDirectory" | "FunctionError.PermissionDenied" | "FunctionError.TooManyExtensions" | "FunctionError.InitResourceExhausted")
321
355
  def file_system_configs: () -> ::Array[Types::FileSystemConfig]
322
356
  def package_type: () -> ("Zip" | "Image")
323
357
  def image_config_response: () -> Types::ImageConfigResponse
@@ -328,6 +362,8 @@ module Aws
328
362
  def snap_start: () -> Types::SnapStartResponse
329
363
  def runtime_version_config: () -> Types::RuntimeVersionConfig
330
364
  def logging_config: () -> Types::LoggingConfig
365
+ def capacity_provider_config: () -> Types::CapacityProviderConfig
366
+ def config_sha_256: () -> ::String
331
367
  def tenancy_config: () -> Types::TenancyConfig
332
368
  end
333
369
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#create_function-instance_method
@@ -391,6 +427,14 @@ module Aws
391
427
  system_log_level: ("DEBUG" | "INFO" | "WARN")?,
392
428
  log_group: ::String?
393
429
  },
430
+ ?capacity_provider_config: {
431
+ lambda_managed_instances_capacity_provider_config: {
432
+ capacity_provider_arn: ::String,
433
+ per_execution_environment_max_concurrency: ::Integer?,
434
+ execution_environment_memory_gi_b_per_v_cpu: ::Float?
435
+ }
436
+ },
437
+ ?publish_to: ("LATEST_PUBLISHED"),
394
438
  ?tenancy_config: {
395
439
  tenant_isolation_mode: ("PER_TENANT")
396
440
  }
@@ -430,6 +474,16 @@ module Aws
430
474
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
431
475
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
432
476
 
477
+ interface _DeleteCapacityProviderResponseSuccess
478
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCapacityProviderResponse]
479
+ def capacity_provider: () -> Types::CapacityProvider
480
+ end
481
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_capacity_provider-instance_method
482
+ def delete_capacity_provider: (
483
+ capacity_provider_name: ::String
484
+ ) -> _DeleteCapacityProviderResponseSuccess
485
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCapacityProviderResponseSuccess
486
+
433
487
  interface _DeleteCodeSigningConfigResponseSuccess
434
488
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCodeSigningConfigResponse]
435
489
  end
@@ -480,12 +534,16 @@ module Aws
480
534
  ) -> _DeleteEventSourceMappingResponseSuccess
481
535
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteEventSourceMappingResponseSuccess
482
536
 
537
+ interface _DeleteFunctionResponseSuccess
538
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFunctionResponse]
539
+ def status_code: () -> ::Integer
540
+ end
483
541
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_function-instance_method
484
542
  def delete_function: (
485
543
  function_name: ::String,
486
544
  ?qualifier: ::String
487
- ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
488
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
545
+ ) -> _DeleteFunctionResponseSuccess
546
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteFunctionResponseSuccess
489
547
 
490
548
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_function_code_signing_config-instance_method
491
549
  def delete_function_code_signing_config: (
@@ -553,6 +611,16 @@ module Aws
553
611
  ) -> _GetAliasResponseSuccess
554
612
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAliasResponseSuccess
555
613
 
614
+ interface _GetCapacityProviderResponseSuccess
615
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCapacityProviderResponse]
616
+ def capacity_provider: () -> Types::CapacityProvider
617
+ end
618
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_capacity_provider-instance_method
619
+ def get_capacity_provider: (
620
+ capacity_provider_name: ::String
621
+ ) -> _GetCapacityProviderResponseSuccess
622
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCapacityProviderResponseSuccess
623
+
556
624
  interface _GetCodeSigningConfigResponseSuccess
557
625
  include ::Seahorse::Client::_ResponseSuccess[Types::GetCodeSigningConfigResponse]
558
626
  def code_signing_config: () -> Types::CodeSigningConfig
@@ -662,12 +730,12 @@ module Aws
662
730
  def master_arn: () -> ::String
663
731
  def revision_id: () -> ::String
664
732
  def layers: () -> ::Array[Types::Layer]
665
- def state: () -> ("Pending" | "Active" | "Inactive" | "Failed")
733
+ def state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
666
734
  def state_reason: () -> ::String
667
- def state_reason_code: () -> ("Idle" | "Creating" | "Restoring" | "EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError")
735
+ def state_reason_code: () -> ("Idle" | "Creating" | "Restoring" | "EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError" | "VcpuLimitExceeded" | "CapacityProviderScalingLimitExceeded" | "InsufficientCapacity" | "EC2RequestLimitExceeded" | "FunctionError.InitTimeout" | "FunctionError.RuntimeInitError" | "FunctionError.ExtensionInitError" | "FunctionError.InvalidEntryPoint" | "FunctionError.InvalidWorkingDirectory" | "FunctionError.PermissionDenied" | "FunctionError.TooManyExtensions" | "FunctionError.InitResourceExhausted")
668
736
  def last_update_status: () -> ("Successful" | "Failed" | "InProgress")
669
737
  def last_update_status_reason: () -> ::String
670
- def last_update_status_reason_code: () -> ("EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError")
738
+ def last_update_status_reason_code: () -> ("EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError" | "VcpuLimitExceeded" | "CapacityProviderScalingLimitExceeded" | "InsufficientCapacity" | "EC2RequestLimitExceeded" | "FunctionError.InitTimeout" | "FunctionError.RuntimeInitError" | "FunctionError.ExtensionInitError" | "FunctionError.InvalidEntryPoint" | "FunctionError.InvalidWorkingDirectory" | "FunctionError.PermissionDenied" | "FunctionError.TooManyExtensions" | "FunctionError.InitResourceExhausted")
671
739
  def file_system_configs: () -> ::Array[Types::FileSystemConfig]
672
740
  def package_type: () -> ("Zip" | "Image")
673
741
  def image_config_response: () -> Types::ImageConfigResponse
@@ -678,6 +746,8 @@ module Aws
678
746
  def snap_start: () -> Types::SnapStartResponse
679
747
  def runtime_version_config: () -> Types::RuntimeVersionConfig
680
748
  def logging_config: () -> Types::LoggingConfig
749
+ def capacity_provider_config: () -> Types::CapacityProviderConfig
750
+ def config_sha_256: () -> ::String
681
751
  def tenancy_config: () -> Types::TenancyConfig
682
752
  end
683
753
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_function_configuration-instance_method
@@ -712,6 +782,19 @@ module Aws
712
782
  ) -> _GetFunctionRecursionConfigResponseSuccess
713
783
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFunctionRecursionConfigResponseSuccess
714
784
 
785
+ interface _GetFunctionScalingConfigResponseSuccess
786
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetFunctionScalingConfigResponse]
787
+ def function_arn: () -> ::String
788
+ def applied_function_scaling_config: () -> Types::FunctionScalingConfig
789
+ def requested_function_scaling_config: () -> Types::FunctionScalingConfig
790
+ end
791
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_function_scaling_config-instance_method
792
+ def get_function_scaling_config: (
793
+ function_name: ::String,
794
+ qualifier: ::String
795
+ ) -> _GetFunctionScalingConfigResponseSuccess
796
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFunctionScalingConfigResponseSuccess
797
+
715
798
  interface _GetFunctionUrlConfigResponseSuccess
716
799
  include ::Seahorse::Client::_ResponseSuccess[Types::GetFunctionUrlConfigResponse]
717
800
  def function_url: () -> ::String
@@ -883,6 +966,19 @@ module Aws
883
966
  ) -> _ListAliasesResponseSuccess
884
967
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAliasesResponseSuccess
885
968
 
969
+ interface _ListCapacityProvidersResponseSuccess
970
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCapacityProvidersResponse]
971
+ def capacity_providers: () -> ::Array[Types::CapacityProvider]
972
+ def next_marker: () -> ::String
973
+ end
974
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#list_capacity_providers-instance_method
975
+ def list_capacity_providers: (
976
+ ?state: ("Pending" | "Active" | "Failed" | "Deleting"),
977
+ ?marker: ::String,
978
+ ?max_items: ::Integer
979
+ ) -> _ListCapacityProvidersResponseSuccess
980
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCapacityProvidersResponseSuccess
981
+
886
982
  interface _ListCodeSigningConfigsResponseSuccess
887
983
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCodeSigningConfigsResponse]
888
984
  def next_marker: () -> ::String
@@ -935,6 +1031,20 @@ module Aws
935
1031
  ) -> _ListFunctionUrlConfigsResponseSuccess
936
1032
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFunctionUrlConfigsResponseSuccess
937
1033
 
1034
+ interface _ListFunctionVersionsByCapacityProviderResponseSuccess
1035
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListFunctionVersionsByCapacityProviderResponse]
1036
+ def capacity_provider_arn: () -> ::String
1037
+ def function_versions: () -> ::Array[Types::FunctionVersionsByCapacityProviderListItem]
1038
+ def next_marker: () -> ::String
1039
+ end
1040
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#list_function_versions_by_capacity_provider-instance_method
1041
+ def list_function_versions_by_capacity_provider: (
1042
+ capacity_provider_name: ::String,
1043
+ ?marker: ::String,
1044
+ ?max_items: ::Integer
1045
+ ) -> _ListFunctionVersionsByCapacityProviderResponseSuccess
1046
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFunctionVersionsByCapacityProviderResponseSuccess
1047
+
938
1048
  interface _ListFunctionsResponseSuccess
939
1049
  include ::Seahorse::Client::_ResponseSuccess[Types::ListFunctionsResponse]
940
1050
  def next_marker: () -> ::String
@@ -1077,12 +1187,12 @@ module Aws
1077
1187
  def master_arn: () -> ::String
1078
1188
  def revision_id: () -> ::String
1079
1189
  def layers: () -> ::Array[Types::Layer]
1080
- def state: () -> ("Pending" | "Active" | "Inactive" | "Failed")
1190
+ def state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
1081
1191
  def state_reason: () -> ::String
1082
- def state_reason_code: () -> ("Idle" | "Creating" | "Restoring" | "EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError")
1192
+ def state_reason_code: () -> ("Idle" | "Creating" | "Restoring" | "EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError" | "VcpuLimitExceeded" | "CapacityProviderScalingLimitExceeded" | "InsufficientCapacity" | "EC2RequestLimitExceeded" | "FunctionError.InitTimeout" | "FunctionError.RuntimeInitError" | "FunctionError.ExtensionInitError" | "FunctionError.InvalidEntryPoint" | "FunctionError.InvalidWorkingDirectory" | "FunctionError.PermissionDenied" | "FunctionError.TooManyExtensions" | "FunctionError.InitResourceExhausted")
1083
1193
  def last_update_status: () -> ("Successful" | "Failed" | "InProgress")
1084
1194
  def last_update_status_reason: () -> ::String
1085
- def last_update_status_reason_code: () -> ("EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError")
1195
+ def last_update_status_reason_code: () -> ("EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError" | "VcpuLimitExceeded" | "CapacityProviderScalingLimitExceeded" | "InsufficientCapacity" | "EC2RequestLimitExceeded" | "FunctionError.InitTimeout" | "FunctionError.RuntimeInitError" | "FunctionError.ExtensionInitError" | "FunctionError.InvalidEntryPoint" | "FunctionError.InvalidWorkingDirectory" | "FunctionError.PermissionDenied" | "FunctionError.TooManyExtensions" | "FunctionError.InitResourceExhausted")
1086
1196
  def file_system_configs: () -> ::Array[Types::FileSystemConfig]
1087
1197
  def package_type: () -> ("Zip" | "Image")
1088
1198
  def image_config_response: () -> Types::ImageConfigResponse
@@ -1093,6 +1203,8 @@ module Aws
1093
1203
  def snap_start: () -> Types::SnapStartResponse
1094
1204
  def runtime_version_config: () -> Types::RuntimeVersionConfig
1095
1205
  def logging_config: () -> Types::LoggingConfig
1206
+ def capacity_provider_config: () -> Types::CapacityProviderConfig
1207
+ def config_sha_256: () -> ::String
1096
1208
  def tenancy_config: () -> Types::TenancyConfig
1097
1209
  end
1098
1210
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#publish_version-instance_method
@@ -1100,7 +1212,8 @@ module Aws
1100
1212
  function_name: ::String,
1101
1213
  ?code_sha_256: ::String,
1102
1214
  ?description: ::String,
1103
- ?revision_id: ::String
1215
+ ?revision_id: ::String,
1216
+ ?publish_to: ("LATEST_PUBLISHED")
1104
1217
  ) -> _PublishVersionResponseSuccess
1105
1218
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PublishVersionResponseSuccess
1106
1219
 
@@ -1163,6 +1276,21 @@ module Aws
1163
1276
  ) -> _PutFunctionRecursionConfigResponseSuccess
1164
1277
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutFunctionRecursionConfigResponseSuccess
1165
1278
 
1279
+ interface _PutFunctionScalingConfigResponseSuccess
1280
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutFunctionScalingConfigResponse]
1281
+ def function_state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
1282
+ end
1283
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#put_function_scaling_config-instance_method
1284
+ def put_function_scaling_config: (
1285
+ function_name: ::String,
1286
+ qualifier: ::String,
1287
+ ?function_scaling_config: {
1288
+ min_execution_environments: ::Integer?,
1289
+ max_execution_environments: ::Integer?
1290
+ }
1291
+ ) -> _PutFunctionScalingConfigResponseSuccess
1292
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutFunctionScalingConfigResponseSuccess
1293
+
1166
1294
  interface _PutProvisionedConcurrencyConfigResponseSuccess
1167
1295
  include ::Seahorse::Client::_ResponseSuccess[Types::PutProvisionedConcurrencyConfigResponse]
1168
1296
  def requested_provisioned_concurrent_executions: () -> ::Integer
@@ -1249,6 +1377,26 @@ module Aws
1249
1377
  ) -> _UpdateAliasResponseSuccess
1250
1378
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAliasResponseSuccess
1251
1379
 
1380
+ interface _UpdateCapacityProviderResponseSuccess
1381
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCapacityProviderResponse]
1382
+ def capacity_provider: () -> Types::CapacityProvider
1383
+ end
1384
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#update_capacity_provider-instance_method
1385
+ def update_capacity_provider: (
1386
+ capacity_provider_name: ::String,
1387
+ ?capacity_provider_scaling_config: {
1388
+ max_v_cpu_count: ::Integer?,
1389
+ scaling_mode: ("Auto" | "Manual")?,
1390
+ scaling_policies: Array[
1391
+ {
1392
+ predefined_metric_type: ("LambdaCapacityProviderAverageCPUUtilization"),
1393
+ target_value: ::Float
1394
+ },
1395
+ ]?
1396
+ }
1397
+ ) -> _UpdateCapacityProviderResponseSuccess
1398
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCapacityProviderResponseSuccess
1399
+
1252
1400
  interface _UpdateCodeSigningConfigResponseSuccess
1253
1401
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCodeSigningConfigResponse]
1254
1402
  def code_signing_config: () -> Types::CodeSigningConfig
@@ -1413,12 +1561,12 @@ module Aws
1413
1561
  def master_arn: () -> ::String
1414
1562
  def revision_id: () -> ::String
1415
1563
  def layers: () -> ::Array[Types::Layer]
1416
- def state: () -> ("Pending" | "Active" | "Inactive" | "Failed")
1564
+ def state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
1417
1565
  def state_reason: () -> ::String
1418
- def state_reason_code: () -> ("Idle" | "Creating" | "Restoring" | "EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError")
1566
+ def state_reason_code: () -> ("Idle" | "Creating" | "Restoring" | "EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError" | "VcpuLimitExceeded" | "CapacityProviderScalingLimitExceeded" | "InsufficientCapacity" | "EC2RequestLimitExceeded" | "FunctionError.InitTimeout" | "FunctionError.RuntimeInitError" | "FunctionError.ExtensionInitError" | "FunctionError.InvalidEntryPoint" | "FunctionError.InvalidWorkingDirectory" | "FunctionError.PermissionDenied" | "FunctionError.TooManyExtensions" | "FunctionError.InitResourceExhausted")
1419
1567
  def last_update_status: () -> ("Successful" | "Failed" | "InProgress")
1420
1568
  def last_update_status_reason: () -> ::String
1421
- def last_update_status_reason_code: () -> ("EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError")
1569
+ def last_update_status_reason_code: () -> ("EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError" | "VcpuLimitExceeded" | "CapacityProviderScalingLimitExceeded" | "InsufficientCapacity" | "EC2RequestLimitExceeded" | "FunctionError.InitTimeout" | "FunctionError.RuntimeInitError" | "FunctionError.ExtensionInitError" | "FunctionError.InvalidEntryPoint" | "FunctionError.InvalidWorkingDirectory" | "FunctionError.PermissionDenied" | "FunctionError.TooManyExtensions" | "FunctionError.InitResourceExhausted")
1422
1570
  def file_system_configs: () -> ::Array[Types::FileSystemConfig]
1423
1571
  def package_type: () -> ("Zip" | "Image")
1424
1572
  def image_config_response: () -> Types::ImageConfigResponse
@@ -1429,6 +1577,8 @@ module Aws
1429
1577
  def snap_start: () -> Types::SnapStartResponse
1430
1578
  def runtime_version_config: () -> Types::RuntimeVersionConfig
1431
1579
  def logging_config: () -> Types::LoggingConfig
1580
+ def capacity_provider_config: () -> Types::CapacityProviderConfig
1581
+ def config_sha_256: () -> ::String
1432
1582
  def tenancy_config: () -> Types::TenancyConfig
1433
1583
  end
1434
1584
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#update_function_code-instance_method
@@ -1443,7 +1593,8 @@ module Aws
1443
1593
  ?dry_run: bool,
1444
1594
  ?revision_id: ::String,
1445
1595
  ?architectures: Array[("x86_64" | "arm64")],
1446
- ?source_kms_key_arn: ::String
1596
+ ?source_kms_key_arn: ::String,
1597
+ ?publish_to: ("LATEST_PUBLISHED")
1447
1598
  ) -> _UpdateFunctionCodeResponseSuccess
1448
1599
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateFunctionCodeResponseSuccess
1449
1600
 
@@ -1469,12 +1620,12 @@ module Aws
1469
1620
  def master_arn: () -> ::String
1470
1621
  def revision_id: () -> ::String
1471
1622
  def layers: () -> ::Array[Types::Layer]
1472
- def state: () -> ("Pending" | "Active" | "Inactive" | "Failed")
1623
+ def state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
1473
1624
  def state_reason: () -> ::String
1474
- def state_reason_code: () -> ("Idle" | "Creating" | "Restoring" | "EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError")
1625
+ def state_reason_code: () -> ("Idle" | "Creating" | "Restoring" | "EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError" | "VcpuLimitExceeded" | "CapacityProviderScalingLimitExceeded" | "InsufficientCapacity" | "EC2RequestLimitExceeded" | "FunctionError.InitTimeout" | "FunctionError.RuntimeInitError" | "FunctionError.ExtensionInitError" | "FunctionError.InvalidEntryPoint" | "FunctionError.InvalidWorkingDirectory" | "FunctionError.PermissionDenied" | "FunctionError.TooManyExtensions" | "FunctionError.InitResourceExhausted")
1475
1626
  def last_update_status: () -> ("Successful" | "Failed" | "InProgress")
1476
1627
  def last_update_status_reason: () -> ::String
1477
- def last_update_status_reason_code: () -> ("EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError")
1628
+ def last_update_status_reason_code: () -> ("EniLimitExceeded" | "InsufficientRolePermissions" | "InvalidConfiguration" | "InternalError" | "SubnetOutOfIPAddresses" | "InvalidSubnet" | "InvalidSecurityGroup" | "ImageDeleted" | "ImageAccessDenied" | "InvalidImage" | "KMSKeyAccessDenied" | "KMSKeyNotFound" | "InvalidStateKMSKey" | "DisabledKMSKey" | "EFSIOError" | "EFSMountConnectivityError" | "EFSMountFailure" | "EFSMountTimeout" | "InvalidRuntime" | "InvalidZipFileException" | "FunctionError" | "VcpuLimitExceeded" | "CapacityProviderScalingLimitExceeded" | "InsufficientCapacity" | "EC2RequestLimitExceeded" | "FunctionError.InitTimeout" | "FunctionError.RuntimeInitError" | "FunctionError.ExtensionInitError" | "FunctionError.InvalidEntryPoint" | "FunctionError.InvalidWorkingDirectory" | "FunctionError.PermissionDenied" | "FunctionError.TooManyExtensions" | "FunctionError.InitResourceExhausted")
1478
1629
  def file_system_configs: () -> ::Array[Types::FileSystemConfig]
1479
1630
  def package_type: () -> ("Zip" | "Image")
1480
1631
  def image_config_response: () -> Types::ImageConfigResponse
@@ -1485,6 +1636,8 @@ module Aws
1485
1636
  def snap_start: () -> Types::SnapStartResponse
1486
1637
  def runtime_version_config: () -> Types::RuntimeVersionConfig
1487
1638
  def logging_config: () -> Types::LoggingConfig
1639
+ def capacity_provider_config: () -> Types::CapacityProviderConfig
1640
+ def config_sha_256: () -> ::String
1488
1641
  def tenancy_config: () -> Types::TenancyConfig
1489
1642
  end
1490
1643
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#update_function_configuration-instance_method
@@ -1535,6 +1688,13 @@ module Aws
1535
1688
  application_log_level: ("TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL")?,
1536
1689
  system_log_level: ("DEBUG" | "INFO" | "WARN")?,
1537
1690
  log_group: ::String?
1691
+ },
1692
+ ?capacity_provider_config: {
1693
+ lambda_managed_instances_capacity_provider_config: {
1694
+ capacity_provider_arn: ::String,
1695
+ per_execution_environment_max_concurrency: ::Integer?,
1696
+ execution_environment_memory_gi_b_per_v_cpu: ::Float?
1697
+ }
1538
1698
  }
1539
1699
  ) -> _UpdateFunctionConfigurationResponseSuccess
1540
1700
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateFunctionConfigurationResponseSuccess
data/sig/errors.rbs CHANGED
@@ -11,6 +11,10 @@ module Aws
11
11
  class ServiceError < ::Aws::Errors::ServiceError
12
12
  end
13
13
 
14
+ class CapacityProviderLimitExceededException < ::Aws::Errors::ServiceError
15
+ def type: () -> ::String
16
+ def message: () -> ::String
17
+ end
14
18
  class CodeSigningConfigNotFoundException < ::Aws::Errors::ServiceError
15
19
  def type: () -> ::String
16
20
  def message: () -> ::String
@@ -56,6 +60,10 @@ module Aws
56
60
  def type: () -> ::String
57
61
  def message: () -> ::String
58
62
  end
63
+ class FunctionVersionsPerCapacityProviderLimitExceededException < ::Aws::Errors::ServiceError
64
+ def type: () -> ::String
65
+ def message: () -> ::String
66
+ end
59
67
  class InvalidCodeSignatureException < ::Aws::Errors::ServiceError
60
68
  def type: () -> ::String
61
69
  def message: () -> ::String
@@ -100,6 +108,10 @@ module Aws
100
108
  def type: () -> ::String
101
109
  def message: () -> ::String
102
110
  end
111
+ class NoPublishedVersionException < ::Aws::Errors::ServiceError
112
+ def type: () -> ::String
113
+ def message: () -> ::String
114
+ end
103
115
  class PolicyLengthExceededException < ::Aws::Errors::ServiceError
104
116
  def type: () -> ::String
105
117
  def message: () -> ::String