aws-sdk-lambda 1.166.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.166.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
@@ -284,7 +318,8 @@ module Aws
284
318
  },
285
319
  ?provisioned_poller_config: {
286
320
  minimum_pollers: ::Integer?,
287
- maximum_pollers: ::Integer?
321
+ maximum_pollers: ::Integer?,
322
+ poller_group_name: ::String?
288
323
  }
289
324
  ) -> _CreateEventSourceMappingResponseSuccess
290
325
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEventSourceMappingResponseSuccess
@@ -311,12 +346,12 @@ module Aws
311
346
  def master_arn: () -> ::String
312
347
  def revision_id: () -> ::String
313
348
  def layers: () -> ::Array[Types::Layer]
314
- def state: () -> ("Pending" | "Active" | "Inactive" | "Failed")
349
+ def state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
315
350
  def state_reason: () -> ::String
316
- 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")
317
352
  def last_update_status: () -> ("Successful" | "Failed" | "InProgress")
318
353
  def last_update_status_reason: () -> ::String
319
- 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")
320
355
  def file_system_configs: () -> ::Array[Types::FileSystemConfig]
321
356
  def package_type: () -> ("Zip" | "Image")
322
357
  def image_config_response: () -> Types::ImageConfigResponse
@@ -327,6 +362,8 @@ module Aws
327
362
  def snap_start: () -> Types::SnapStartResponse
328
363
  def runtime_version_config: () -> Types::RuntimeVersionConfig
329
364
  def logging_config: () -> Types::LoggingConfig
365
+ def capacity_provider_config: () -> Types::CapacityProviderConfig
366
+ def config_sha_256: () -> ::String
330
367
  def tenancy_config: () -> Types::TenancyConfig
331
368
  end
332
369
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#create_function-instance_method
@@ -390,6 +427,14 @@ module Aws
390
427
  system_log_level: ("DEBUG" | "INFO" | "WARN")?,
391
428
  log_group: ::String?
392
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"),
393
438
  ?tenancy_config: {
394
439
  tenant_isolation_mode: ("PER_TENANT")
395
440
  }
@@ -429,6 +474,16 @@ module Aws
429
474
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
430
475
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
431
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
+
432
487
  interface _DeleteCodeSigningConfigResponseSuccess
433
488
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCodeSigningConfigResponse]
434
489
  end
@@ -479,12 +534,16 @@ module Aws
479
534
  ) -> _DeleteEventSourceMappingResponseSuccess
480
535
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteEventSourceMappingResponseSuccess
481
536
 
537
+ interface _DeleteFunctionResponseSuccess
538
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteFunctionResponse]
539
+ def status_code: () -> ::Integer
540
+ end
482
541
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_function-instance_method
483
542
  def delete_function: (
484
543
  function_name: ::String,
485
544
  ?qualifier: ::String
486
- ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
487
- | (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
488
547
 
489
548
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_function_code_signing_config-instance_method
490
549
  def delete_function_code_signing_config: (
@@ -552,6 +611,16 @@ module Aws
552
611
  ) -> _GetAliasResponseSuccess
553
612
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAliasResponseSuccess
554
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
+
555
624
  interface _GetCodeSigningConfigResponseSuccess
556
625
  include ::Seahorse::Client::_ResponseSuccess[Types::GetCodeSigningConfigResponse]
557
626
  def code_signing_config: () -> Types::CodeSigningConfig
@@ -661,12 +730,12 @@ module Aws
661
730
  def master_arn: () -> ::String
662
731
  def revision_id: () -> ::String
663
732
  def layers: () -> ::Array[Types::Layer]
664
- def state: () -> ("Pending" | "Active" | "Inactive" | "Failed")
733
+ def state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
665
734
  def state_reason: () -> ::String
666
- 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")
667
736
  def last_update_status: () -> ("Successful" | "Failed" | "InProgress")
668
737
  def last_update_status_reason: () -> ::String
669
- 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")
670
739
  def file_system_configs: () -> ::Array[Types::FileSystemConfig]
671
740
  def package_type: () -> ("Zip" | "Image")
672
741
  def image_config_response: () -> Types::ImageConfigResponse
@@ -677,6 +746,8 @@ module Aws
677
746
  def snap_start: () -> Types::SnapStartResponse
678
747
  def runtime_version_config: () -> Types::RuntimeVersionConfig
679
748
  def logging_config: () -> Types::LoggingConfig
749
+ def capacity_provider_config: () -> Types::CapacityProviderConfig
750
+ def config_sha_256: () -> ::String
680
751
  def tenancy_config: () -> Types::TenancyConfig
681
752
  end
682
753
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_function_configuration-instance_method
@@ -711,6 +782,19 @@ module Aws
711
782
  ) -> _GetFunctionRecursionConfigResponseSuccess
712
783
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFunctionRecursionConfigResponseSuccess
713
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
+
714
798
  interface _GetFunctionUrlConfigResponseSuccess
715
799
  include ::Seahorse::Client::_ResponseSuccess[Types::GetFunctionUrlConfigResponse]
716
800
  def function_url: () -> ::String
@@ -882,6 +966,19 @@ module Aws
882
966
  ) -> _ListAliasesResponseSuccess
883
967
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAliasesResponseSuccess
884
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
+
885
982
  interface _ListCodeSigningConfigsResponseSuccess
886
983
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCodeSigningConfigsResponse]
887
984
  def next_marker: () -> ::String
@@ -934,6 +1031,20 @@ module Aws
934
1031
  ) -> _ListFunctionUrlConfigsResponseSuccess
935
1032
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFunctionUrlConfigsResponseSuccess
936
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
+
937
1048
  interface _ListFunctionsResponseSuccess
938
1049
  include ::Seahorse::Client::_ResponseSuccess[Types::ListFunctionsResponse]
939
1050
  def next_marker: () -> ::String
@@ -1076,12 +1187,12 @@ module Aws
1076
1187
  def master_arn: () -> ::String
1077
1188
  def revision_id: () -> ::String
1078
1189
  def layers: () -> ::Array[Types::Layer]
1079
- def state: () -> ("Pending" | "Active" | "Inactive" | "Failed")
1190
+ def state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
1080
1191
  def state_reason: () -> ::String
1081
- 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")
1082
1193
  def last_update_status: () -> ("Successful" | "Failed" | "InProgress")
1083
1194
  def last_update_status_reason: () -> ::String
1084
- 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")
1085
1196
  def file_system_configs: () -> ::Array[Types::FileSystemConfig]
1086
1197
  def package_type: () -> ("Zip" | "Image")
1087
1198
  def image_config_response: () -> Types::ImageConfigResponse
@@ -1092,6 +1203,8 @@ module Aws
1092
1203
  def snap_start: () -> Types::SnapStartResponse
1093
1204
  def runtime_version_config: () -> Types::RuntimeVersionConfig
1094
1205
  def logging_config: () -> Types::LoggingConfig
1206
+ def capacity_provider_config: () -> Types::CapacityProviderConfig
1207
+ def config_sha_256: () -> ::String
1095
1208
  def tenancy_config: () -> Types::TenancyConfig
1096
1209
  end
1097
1210
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#publish_version-instance_method
@@ -1099,7 +1212,8 @@ module Aws
1099
1212
  function_name: ::String,
1100
1213
  ?code_sha_256: ::String,
1101
1214
  ?description: ::String,
1102
- ?revision_id: ::String
1215
+ ?revision_id: ::String,
1216
+ ?publish_to: ("LATEST_PUBLISHED")
1103
1217
  ) -> _PublishVersionResponseSuccess
1104
1218
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PublishVersionResponseSuccess
1105
1219
 
@@ -1162,6 +1276,21 @@ module Aws
1162
1276
  ) -> _PutFunctionRecursionConfigResponseSuccess
1163
1277
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutFunctionRecursionConfigResponseSuccess
1164
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
+
1165
1294
  interface _PutProvisionedConcurrencyConfigResponseSuccess
1166
1295
  include ::Seahorse::Client::_ResponseSuccess[Types::PutProvisionedConcurrencyConfigResponse]
1167
1296
  def requested_provisioned_concurrent_executions: () -> ::Integer
@@ -1248,6 +1377,26 @@ module Aws
1248
1377
  ) -> _UpdateAliasResponseSuccess
1249
1378
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateAliasResponseSuccess
1250
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
+
1251
1400
  interface _UpdateCodeSigningConfigResponseSuccess
1252
1401
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCodeSigningConfigResponse]
1253
1402
  def code_signing_config: () -> Types::CodeSigningConfig
@@ -1384,7 +1533,8 @@ module Aws
1384
1533
  },
1385
1534
  ?provisioned_poller_config: {
1386
1535
  minimum_pollers: ::Integer?,
1387
- maximum_pollers: ::Integer?
1536
+ maximum_pollers: ::Integer?,
1537
+ poller_group_name: ::String?
1388
1538
  }
1389
1539
  ) -> _UpdateEventSourceMappingResponseSuccess
1390
1540
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEventSourceMappingResponseSuccess
@@ -1411,12 +1561,12 @@ module Aws
1411
1561
  def master_arn: () -> ::String
1412
1562
  def revision_id: () -> ::String
1413
1563
  def layers: () -> ::Array[Types::Layer]
1414
- def state: () -> ("Pending" | "Active" | "Inactive" | "Failed")
1564
+ def state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
1415
1565
  def state_reason: () -> ::String
1416
- 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")
1417
1567
  def last_update_status: () -> ("Successful" | "Failed" | "InProgress")
1418
1568
  def last_update_status_reason: () -> ::String
1419
- 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")
1420
1570
  def file_system_configs: () -> ::Array[Types::FileSystemConfig]
1421
1571
  def package_type: () -> ("Zip" | "Image")
1422
1572
  def image_config_response: () -> Types::ImageConfigResponse
@@ -1427,6 +1577,8 @@ module Aws
1427
1577
  def snap_start: () -> Types::SnapStartResponse
1428
1578
  def runtime_version_config: () -> Types::RuntimeVersionConfig
1429
1579
  def logging_config: () -> Types::LoggingConfig
1580
+ def capacity_provider_config: () -> Types::CapacityProviderConfig
1581
+ def config_sha_256: () -> ::String
1430
1582
  def tenancy_config: () -> Types::TenancyConfig
1431
1583
  end
1432
1584
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#update_function_code-instance_method
@@ -1441,7 +1593,8 @@ module Aws
1441
1593
  ?dry_run: bool,
1442
1594
  ?revision_id: ::String,
1443
1595
  ?architectures: Array[("x86_64" | "arm64")],
1444
- ?source_kms_key_arn: ::String
1596
+ ?source_kms_key_arn: ::String,
1597
+ ?publish_to: ("LATEST_PUBLISHED")
1445
1598
  ) -> _UpdateFunctionCodeResponseSuccess
1446
1599
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateFunctionCodeResponseSuccess
1447
1600
 
@@ -1467,12 +1620,12 @@ module Aws
1467
1620
  def master_arn: () -> ::String
1468
1621
  def revision_id: () -> ::String
1469
1622
  def layers: () -> ::Array[Types::Layer]
1470
- def state: () -> ("Pending" | "Active" | "Inactive" | "Failed")
1623
+ def state: () -> ("Pending" | "Active" | "Inactive" | "Failed" | "Deactivating" | "Deactivated" | "ActiveNonInvocable" | "Deleting")
1471
1624
  def state_reason: () -> ::String
1472
- 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")
1473
1626
  def last_update_status: () -> ("Successful" | "Failed" | "InProgress")
1474
1627
  def last_update_status_reason: () -> ::String
1475
- 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")
1476
1629
  def file_system_configs: () -> ::Array[Types::FileSystemConfig]
1477
1630
  def package_type: () -> ("Zip" | "Image")
1478
1631
  def image_config_response: () -> Types::ImageConfigResponse
@@ -1483,6 +1636,8 @@ module Aws
1483
1636
  def snap_start: () -> Types::SnapStartResponse
1484
1637
  def runtime_version_config: () -> Types::RuntimeVersionConfig
1485
1638
  def logging_config: () -> Types::LoggingConfig
1639
+ def capacity_provider_config: () -> Types::CapacityProviderConfig
1640
+ def config_sha_256: () -> ::String
1486
1641
  def tenancy_config: () -> Types::TenancyConfig
1487
1642
  end
1488
1643
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#update_function_configuration-instance_method
@@ -1533,6 +1688,13 @@ module Aws
1533
1688
  application_log_level: ("TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL")?,
1534
1689
  system_log_level: ("DEBUG" | "INFO" | "WARN")?,
1535
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
+ }
1536
1698
  }
1537
1699
  ) -> _UpdateFunctionConfigurationResponseSuccess
1538
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