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.
@@ -225,14 +225,8 @@ module Aws::Lambda
225
225
  # @return [String]
226
226
  #
227
227
  # @!attribute [rw] invoked_via_function_url
228
- # Restricts the `lambda:InvokeFunction` action to function URL calls.
229
- # When specified, this option prevents the principal from invoking the
230
- # function by any means other than the function URL. For more
231
- # information, see [Control access to Lambda function URLs][1].
232
- #
233
- #
234
- #
235
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html
228
+ # Indicates whether the permission applies when the function is
229
+ # invoked through a function URL.
236
230
  # @return [Boolean]
237
231
  #
238
232
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionRequest AWS API Documentation
@@ -375,6 +369,162 @@ module Aws::Lambda
375
369
  include Aws::Structure
376
370
  end
377
371
 
372
+ # A capacity provider manages compute resources for Lambda functions.
373
+ #
374
+ # @!attribute [rw] capacity_provider_arn
375
+ # The Amazon Resource Name (ARN) of the capacity provider.
376
+ # @return [String]
377
+ #
378
+ # @!attribute [rw] state
379
+ # The current state of the capacity provider.
380
+ # @return [String]
381
+ #
382
+ # @!attribute [rw] vpc_config
383
+ # The VPC configuration for the capacity provider.
384
+ # @return [Types::CapacityProviderVpcConfig]
385
+ #
386
+ # @!attribute [rw] permissions_config
387
+ # The permissions configuration for the capacity provider.
388
+ # @return [Types::CapacityProviderPermissionsConfig]
389
+ #
390
+ # @!attribute [rw] instance_requirements
391
+ # The instance requirements for compute resources managed by the
392
+ # capacity provider.
393
+ # @return [Types::InstanceRequirements]
394
+ #
395
+ # @!attribute [rw] capacity_provider_scaling_config
396
+ # The scaling configuration for the capacity provider.
397
+ # @return [Types::CapacityProviderScalingConfig]
398
+ #
399
+ # @!attribute [rw] kms_key_arn
400
+ # The ARN of the KMS key used to encrypt the capacity provider's
401
+ # resources.
402
+ # @return [String]
403
+ #
404
+ # @!attribute [rw] last_modified
405
+ # The date and time when the capacity provider was last modified.
406
+ # @return [Time]
407
+ #
408
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CapacityProvider AWS API Documentation
409
+ #
410
+ class CapacityProvider < Struct.new(
411
+ :capacity_provider_arn,
412
+ :state,
413
+ :vpc_config,
414
+ :permissions_config,
415
+ :instance_requirements,
416
+ :capacity_provider_scaling_config,
417
+ :kms_key_arn,
418
+ :last_modified)
419
+ SENSITIVE = []
420
+ include Aws::Structure
421
+ end
422
+
423
+ # Configuration for the capacity provider that manages compute resources
424
+ # for Lambda functions.
425
+ #
426
+ # @!attribute [rw] lambda_managed_instances_capacity_provider_config
427
+ # Configuration for Lambda-managed instances used by the capacity
428
+ # provider.
429
+ # @return [Types::LambdaManagedInstancesCapacityProviderConfig]
430
+ #
431
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CapacityProviderConfig AWS API Documentation
432
+ #
433
+ class CapacityProviderConfig < Struct.new(
434
+ :lambda_managed_instances_capacity_provider_config)
435
+ SENSITIVE = []
436
+ include Aws::Structure
437
+ end
438
+
439
+ # The maximum number of capacity providers for your account has been
440
+ # exceeded. For more information, see [Lambda quotas][1]
441
+ #
442
+ #
443
+ #
444
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html
445
+ #
446
+ # @!attribute [rw] type
447
+ # The exception type.
448
+ # @return [String]
449
+ #
450
+ # @!attribute [rw] message
451
+ # @return [String]
452
+ #
453
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CapacityProviderLimitExceededException AWS API Documentation
454
+ #
455
+ class CapacityProviderLimitExceededException < Struct.new(
456
+ :type,
457
+ :message)
458
+ SENSITIVE = []
459
+ include Aws::Structure
460
+ end
461
+
462
+ # Configuration that specifies the permissions required for the capacity
463
+ # provider to manage compute resources.
464
+ #
465
+ # @!attribute [rw] capacity_provider_operator_role_arn
466
+ # The ARN of the IAM role that the capacity provider uses to manage
467
+ # compute instances and other Amazon Web Services resources.
468
+ # @return [String]
469
+ #
470
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CapacityProviderPermissionsConfig AWS API Documentation
471
+ #
472
+ class CapacityProviderPermissionsConfig < Struct.new(
473
+ :capacity_provider_operator_role_arn)
474
+ SENSITIVE = []
475
+ include Aws::Structure
476
+ end
477
+
478
+ # Configuration that defines how the capacity provider scales compute
479
+ # instances based on demand and policies.
480
+ #
481
+ # @!attribute [rw] max_v_cpu_count
482
+ # The maximum number of vCPUs that the capacity provider can provision
483
+ # across all compute instances.
484
+ # @return [Integer]
485
+ #
486
+ # @!attribute [rw] scaling_mode
487
+ # The scaling mode that determines how the capacity provider responds
488
+ # to changes in demand.
489
+ # @return [String]
490
+ #
491
+ # @!attribute [rw] scaling_policies
492
+ # A list of scaling policies that define how the capacity provider
493
+ # scales compute instances based on metrics and thresholds.
494
+ # @return [Array<Types::TargetTrackingScalingPolicy>]
495
+ #
496
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CapacityProviderScalingConfig AWS API Documentation
497
+ #
498
+ class CapacityProviderScalingConfig < Struct.new(
499
+ :max_v_cpu_count,
500
+ :scaling_mode,
501
+ :scaling_policies)
502
+ SENSITIVE = []
503
+ include Aws::Structure
504
+ end
505
+
506
+ # VPC configuration that specifies the network settings for compute
507
+ # instances managed by the capacity provider.
508
+ #
509
+ # @!attribute [rw] subnet_ids
510
+ # A list of subnet IDs where the capacity provider launches compute
511
+ # instances.
512
+ # @return [Array<String>]
513
+ #
514
+ # @!attribute [rw] security_group_ids
515
+ # A list of security group IDs that control network access for compute
516
+ # instances managed by the capacity provider.
517
+ # @return [Array<String>]
518
+ #
519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CapacityProviderVpcConfig AWS API Documentation
520
+ #
521
+ class CapacityProviderVpcConfig < Struct.new(
522
+ :subnet_ids,
523
+ :security_group_ids)
524
+ SENSITIVE = []
525
+ include Aws::Structure
526
+ end
527
+
378
528
  # Details about a [Code signing configuration][1].
379
529
  #
380
530
  #
@@ -630,6 +780,67 @@ module Aws::Lambda
630
780
  include Aws::Structure
631
781
  end
632
782
 
783
+ # @!attribute [rw] capacity_provider_name
784
+ # The name of the capacity provider.
785
+ # @return [String]
786
+ #
787
+ # @!attribute [rw] vpc_config
788
+ # The VPC configuration for the capacity provider, including subnet
789
+ # IDs and security group IDs where compute instances will be launched.
790
+ # @return [Types::CapacityProviderVpcConfig]
791
+ #
792
+ # @!attribute [rw] permissions_config
793
+ # The permissions configuration that specifies the IAM role ARN used
794
+ # by the capacity provider to manage compute resources.
795
+ # @return [Types::CapacityProviderPermissionsConfig]
796
+ #
797
+ # @!attribute [rw] instance_requirements
798
+ # The instance requirements that specify the compute instance
799
+ # characteristics, including architectures and allowed or excluded
800
+ # instance types.
801
+ # @return [Types::InstanceRequirements]
802
+ #
803
+ # @!attribute [rw] capacity_provider_scaling_config
804
+ # The scaling configuration that defines how the capacity provider
805
+ # scales compute instances, including maximum vCPU count and scaling
806
+ # policies.
807
+ # @return [Types::CapacityProviderScalingConfig]
808
+ #
809
+ # @!attribute [rw] kms_key_arn
810
+ # The ARN of the KMS key used to encrypt data associated with the
811
+ # capacity provider.
812
+ # @return [String]
813
+ #
814
+ # @!attribute [rw] tags
815
+ # A list of tags to associate with the capacity provider.
816
+ # @return [Hash<String,String>]
817
+ #
818
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCapacityProviderRequest AWS API Documentation
819
+ #
820
+ class CreateCapacityProviderRequest < Struct.new(
821
+ :capacity_provider_name,
822
+ :vpc_config,
823
+ :permissions_config,
824
+ :instance_requirements,
825
+ :capacity_provider_scaling_config,
826
+ :kms_key_arn,
827
+ :tags)
828
+ SENSITIVE = []
829
+ include Aws::Structure
830
+ end
831
+
832
+ # @!attribute [rw] capacity_provider
833
+ # Information about the capacity provider that was created.
834
+ # @return [Types::CapacityProvider]
835
+ #
836
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCapacityProviderResponse AWS API Documentation
837
+ #
838
+ class CreateCapacityProviderResponse < Struct.new(
839
+ :capacity_provider)
840
+ SENSITIVE = []
841
+ include Aws::Structure
842
+ end
843
+
633
844
  # @!attribute [rw] description
634
845
  # Descriptive name for this code signing configuration.
635
846
  # @return [String]
@@ -1164,6 +1375,15 @@ module Aws::Lambda
1164
1375
  # The function's Amazon CloudWatch Logs configuration settings.
1165
1376
  # @return [Types::LoggingConfig]
1166
1377
  #
1378
+ # @!attribute [rw] capacity_provider_config
1379
+ # Configuration for the capacity provider that manages compute
1380
+ # resources for Lambda functions.
1381
+ # @return [Types::CapacityProviderConfig]
1382
+ #
1383
+ # @!attribute [rw] publish_to
1384
+ # Specifies where to publish the function version or configuration.
1385
+ # @return [String]
1386
+ #
1167
1387
  # @!attribute [rw] tenancy_config
1168
1388
  # Configuration for multi-tenant applications that use Lambda
1169
1389
  # functions. Defines tenant isolation settings and resource
@@ -1197,6 +1417,8 @@ module Aws::Lambda
1197
1417
  :ephemeral_storage,
1198
1418
  :snap_start,
1199
1419
  :logging_config,
1420
+ :capacity_provider_config,
1421
+ :publish_to,
1200
1422
  :tenancy_config)
1201
1423
  SENSITIVE = []
1202
1424
  include Aws::Structure
@@ -1382,6 +1604,30 @@ module Aws::Lambda
1382
1604
  include Aws::Structure
1383
1605
  end
1384
1606
 
1607
+ # @!attribute [rw] capacity_provider_name
1608
+ # The name of the capacity provider to delete.
1609
+ # @return [String]
1610
+ #
1611
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCapacityProviderRequest AWS API Documentation
1612
+ #
1613
+ class DeleteCapacityProviderRequest < Struct.new(
1614
+ :capacity_provider_name)
1615
+ SENSITIVE = []
1616
+ include Aws::Structure
1617
+ end
1618
+
1619
+ # @!attribute [rw] capacity_provider
1620
+ # Information about the deleted capacity provider.
1621
+ # @return [Types::CapacityProvider]
1622
+ #
1623
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCapacityProviderResponse AWS API Documentation
1624
+ #
1625
+ class DeleteCapacityProviderResponse < Struct.new(
1626
+ :capacity_provider)
1627
+ SENSITIVE = []
1628
+ include Aws::Structure
1629
+ end
1630
+
1385
1631
  # @!attribute [rw] code_signing_config_arn
1386
1632
  # The The Amazon Resource Name (ARN) of the code signing
1387
1633
  # configuration.
@@ -1522,6 +1768,18 @@ module Aws::Lambda
1522
1768
  include Aws::Structure
1523
1769
  end
1524
1770
 
1771
+ # @!attribute [rw] status_code
1772
+ # The HTTP status code returned by the operation.
1773
+ # @return [Integer]
1774
+ #
1775
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionResponse AWS API Documentation
1776
+ #
1777
+ class DeleteFunctionResponse < Struct.new(
1778
+ :status_code)
1779
+ SENSITIVE = []
1780
+ include Aws::Structure
1781
+ end
1782
+
1525
1783
  # @!attribute [rw] function_name
1526
1784
  # The name or ARN of the Lambda function.
1527
1785
  #
@@ -2587,6 +2845,15 @@ module Aws::Lambda
2587
2845
  # The function's Amazon CloudWatch Logs configuration settings.
2588
2846
  # @return [Types::LoggingConfig]
2589
2847
  #
2848
+ # @!attribute [rw] capacity_provider_config
2849
+ # Configuration for the capacity provider that manages compute
2850
+ # resources for Lambda functions.
2851
+ # @return [Types::CapacityProviderConfig]
2852
+ #
2853
+ # @!attribute [rw] config_sha_256
2854
+ # The SHA256 hash of the function configuration.
2855
+ # @return [String]
2856
+ #
2590
2857
  # @!attribute [rw] tenancy_config
2591
2858
  # The function's tenant isolation configuration settings. Determines
2592
2859
  # whether the Lambda function runs on a shared or dedicated
@@ -2632,6 +2899,8 @@ module Aws::Lambda
2632
2899
  :snap_start,
2633
2900
  :runtime_version_config,
2634
2901
  :logging_config,
2902
+ :capacity_provider_config,
2903
+ :config_sha_256,
2635
2904
  :tenancy_config)
2636
2905
  SENSITIVE = []
2637
2906
  include Aws::Structure
@@ -2690,6 +2959,29 @@ module Aws::Lambda
2690
2959
  include Aws::Structure
2691
2960
  end
2692
2961
 
2962
+ # Configuration that defines the scaling behavior for a Lambda Managed
2963
+ # Instances function, including the minimum and maximum number of
2964
+ # execution environments that can be provisioned.
2965
+ #
2966
+ # @!attribute [rw] min_execution_environments
2967
+ # The minimum number of execution environments to maintain for the
2968
+ # function.
2969
+ # @return [Integer]
2970
+ #
2971
+ # @!attribute [rw] max_execution_environments
2972
+ # The maximum number of execution environments that can be provisioned
2973
+ # for the function.
2974
+ # @return [Integer]
2975
+ #
2976
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionScalingConfig AWS API Documentation
2977
+ #
2978
+ class FunctionScalingConfig < Struct.new(
2979
+ :min_execution_environments,
2980
+ :max_execution_environments)
2981
+ SENSITIVE = []
2982
+ include Aws::Structure
2983
+ end
2984
+
2693
2985
  # Details about a Lambda function URL.
2694
2986
  #
2695
2987
  # @!attribute [rw] function_url
@@ -2767,6 +3059,50 @@ module Aws::Lambda
2767
3059
  include Aws::Structure
2768
3060
  end
2769
3061
 
3062
+ # Information about a function version that uses a specific capacity
3063
+ # provider, including its ARN and current state.
3064
+ #
3065
+ # @!attribute [rw] function_arn
3066
+ # The Amazon Resource Name (ARN) of the function version.
3067
+ # @return [String]
3068
+ #
3069
+ # @!attribute [rw] state
3070
+ # The current state of the function version.
3071
+ # @return [String]
3072
+ #
3073
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionVersionsByCapacityProviderListItem AWS API Documentation
3074
+ #
3075
+ class FunctionVersionsByCapacityProviderListItem < Struct.new(
3076
+ :function_arn,
3077
+ :state)
3078
+ SENSITIVE = []
3079
+ include Aws::Structure
3080
+ end
3081
+
3082
+ # The maximum number of function versions that can be associated with a
3083
+ # single capacity provider has been exceeded. For more information, see
3084
+ # [Lambda quotas][1].
3085
+ #
3086
+ #
3087
+ #
3088
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html
3089
+ #
3090
+ # @!attribute [rw] type
3091
+ # The exception type.
3092
+ # @return [String]
3093
+ #
3094
+ # @!attribute [rw] message
3095
+ # @return [String]
3096
+ #
3097
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionVersionsPerCapacityProviderLimitExceededException AWS API Documentation
3098
+ #
3099
+ class FunctionVersionsPerCapacityProviderLimitExceededException < Struct.new(
3100
+ :type,
3101
+ :message)
3102
+ SENSITIVE = []
3103
+ include Aws::Structure
3104
+ end
3105
+
2770
3106
  # @api private
2771
3107
  #
2772
3108
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettingsRequest AWS API Documentation
@@ -2819,6 +3155,31 @@ module Aws::Lambda
2819
3155
  include Aws::Structure
2820
3156
  end
2821
3157
 
3158
+ # @!attribute [rw] capacity_provider_name
3159
+ # The name of the capacity provider to retrieve.
3160
+ # @return [String]
3161
+ #
3162
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCapacityProviderRequest AWS API Documentation
3163
+ #
3164
+ class GetCapacityProviderRequest < Struct.new(
3165
+ :capacity_provider_name)
3166
+ SENSITIVE = []
3167
+ include Aws::Structure
3168
+ end
3169
+
3170
+ # @!attribute [rw] capacity_provider
3171
+ # Information about the capacity provider, including its configuration
3172
+ # and current state.
3173
+ # @return [Types::CapacityProvider]
3174
+ #
3175
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCapacityProviderResponse AWS API Documentation
3176
+ #
3177
+ class GetCapacityProviderResponse < Struct.new(
3178
+ :capacity_provider)
3179
+ SENSITIVE = []
3180
+ include Aws::Structure
3181
+ end
3182
+
2822
3183
  # @!attribute [rw] code_signing_config_arn
2823
3184
  # The The Amazon Resource Name (ARN) of the code signing
2824
3185
  # configuration.
@@ -3011,6 +3372,7 @@ module Aws::Lambda
3011
3372
  end
3012
3373
 
3013
3374
  # @!attribute [rw] function_name
3375
+ # The name of the function.
3014
3376
  # @return [String]
3015
3377
  #
3016
3378
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionRecursionConfigRequest AWS API Documentation
@@ -3119,6 +3481,47 @@ module Aws::Lambda
3119
3481
  include Aws::Structure
3120
3482
  end
3121
3483
 
3484
+ # @!attribute [rw] function_name
3485
+ # The name or ARN of the Lambda function.
3486
+ # @return [String]
3487
+ #
3488
+ # @!attribute [rw] qualifier
3489
+ # Specify a version or alias to get the scaling configuration for a
3490
+ # published version of the function.
3491
+ # @return [String]
3492
+ #
3493
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionScalingConfigRequest AWS API Documentation
3494
+ #
3495
+ class GetFunctionScalingConfigRequest < Struct.new(
3496
+ :function_name,
3497
+ :qualifier)
3498
+ SENSITIVE = []
3499
+ include Aws::Structure
3500
+ end
3501
+
3502
+ # @!attribute [rw] function_arn
3503
+ # The Amazon Resource Name (ARN) of the function.
3504
+ # @return [String]
3505
+ #
3506
+ # @!attribute [rw] applied_function_scaling_config
3507
+ # The scaling configuration that is currently applied to the function.
3508
+ # This represents the actual scaling settings in effect.
3509
+ # @return [Types::FunctionScalingConfig]
3510
+ #
3511
+ # @!attribute [rw] requested_function_scaling_config
3512
+ # The scaling configuration that was requested for the function.
3513
+ # @return [Types::FunctionScalingConfig]
3514
+ #
3515
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionScalingConfigResponse AWS API Documentation
3516
+ #
3517
+ class GetFunctionScalingConfigResponse < Struct.new(
3518
+ :function_arn,
3519
+ :applied_function_scaling_config,
3520
+ :requested_function_scaling_config)
3521
+ SENSITIVE = []
3522
+ include Aws::Structure
3523
+ end
3524
+
3122
3525
  # @!attribute [rw] function_name
3123
3526
  # The name or ARN of the Lambda function.
3124
3527
  #
@@ -3604,6 +4007,34 @@ module Aws::Lambda
3604
4007
  include Aws::Structure
3605
4008
  end
3606
4009
 
4010
+ # Specifications that define the characteristics and constraints for
4011
+ # compute instances used by the capacity provider.
4012
+ #
4013
+ # @!attribute [rw] architectures
4014
+ # A list of supported CPU architectures for compute instances. Valid
4015
+ # values include `x86_64` and `arm64`.
4016
+ # @return [Array<String>]
4017
+ #
4018
+ # @!attribute [rw] allowed_instance_types
4019
+ # A list of EC2 instance types that the capacity provider is allowed
4020
+ # to use. If not specified, all compatible instance types are allowed.
4021
+ # @return [Array<String>]
4022
+ #
4023
+ # @!attribute [rw] excluded_instance_types
4024
+ # A list of EC2 instance types that the capacity provider should not
4025
+ # use, even if they meet other requirements.
4026
+ # @return [Array<String>]
4027
+ #
4028
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InstanceRequirements AWS API Documentation
4029
+ #
4030
+ class InstanceRequirements < Struct.new(
4031
+ :architectures,
4032
+ :allowed_instance_types,
4033
+ :excluded_instance_types)
4034
+ SENSITIVE = []
4035
+ include Aws::Structure
4036
+ end
4037
+
3607
4038
  # The code signature failed the integrity check. If the integrity check
3608
4039
  # fails, then Lambda blocks deployment, even if the code signing policy
3609
4040
  # is set to WARN.
@@ -4201,6 +4632,33 @@ module Aws::Lambda
4201
4632
  include Aws::Structure
4202
4633
  end
4203
4634
 
4635
+ # Configuration for Lambda-managed instances used by the capacity
4636
+ # provider.
4637
+ #
4638
+ # @!attribute [rw] capacity_provider_arn
4639
+ # The Amazon Resource Name (ARN) of the capacity provider.
4640
+ # @return [String]
4641
+ #
4642
+ # @!attribute [rw] per_execution_environment_max_concurrency
4643
+ # The maximum number of concurrent execution environments that can run
4644
+ # on each compute instance.
4645
+ # @return [Integer]
4646
+ #
4647
+ # @!attribute [rw] execution_environment_memory_gi_b_per_v_cpu
4648
+ # The amount of memory in GiB allocated per vCPU for execution
4649
+ # environments.
4650
+ # @return [Float]
4651
+ #
4652
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LambdaManagedInstancesCapacityProviderConfig AWS API Documentation
4653
+ #
4654
+ class LambdaManagedInstancesCapacityProviderConfig < Struct.new(
4655
+ :capacity_provider_arn,
4656
+ :per_execution_environment_max_concurrency,
4657
+ :execution_environment_memory_gi_b_per_v_cpu)
4658
+ SENSITIVE = []
4659
+ include Aws::Structure
4660
+ end
4661
+
4204
4662
  # An [Lambda layer][1].
4205
4663
  #
4206
4664
  #
@@ -4461,6 +4919,46 @@ module Aws::Lambda
4461
4919
  include Aws::Structure
4462
4920
  end
4463
4921
 
4922
+ # @!attribute [rw] state
4923
+ # Filter capacity providers by their current state.
4924
+ # @return [String]
4925
+ #
4926
+ # @!attribute [rw] marker
4927
+ # Specify the pagination token that's returned by a previous request
4928
+ # to retrieve the next page of results.
4929
+ # @return [String]
4930
+ #
4931
+ # @!attribute [rw] max_items
4932
+ # The maximum number of capacity providers to return.
4933
+ # @return [Integer]
4934
+ #
4935
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCapacityProvidersRequest AWS API Documentation
4936
+ #
4937
+ class ListCapacityProvidersRequest < Struct.new(
4938
+ :state,
4939
+ :marker,
4940
+ :max_items)
4941
+ SENSITIVE = []
4942
+ include Aws::Structure
4943
+ end
4944
+
4945
+ # @!attribute [rw] capacity_providers
4946
+ # A list of capacity providers in your account.
4947
+ # @return [Array<Types::CapacityProvider>]
4948
+ #
4949
+ # @!attribute [rw] next_marker
4950
+ # The pagination token that's included if more results are available.
4951
+ # @return [String]
4952
+ #
4953
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCapacityProvidersResponse AWS API Documentation
4954
+ #
4955
+ class ListCapacityProvidersResponse < Struct.new(
4956
+ :capacity_providers,
4957
+ :next_marker)
4958
+ SENSITIVE = []
4959
+ include Aws::Structure
4960
+ end
4961
+
4464
4962
  # @!attribute [rw] marker
4465
4963
  # Specify the pagination token that's returned by a previous request
4466
4964
  # to retrieve the next page of results.
@@ -4683,6 +5181,52 @@ module Aws::Lambda
4683
5181
  include Aws::Structure
4684
5182
  end
4685
5183
 
5184
+ # @!attribute [rw] capacity_provider_name
5185
+ # The name of the capacity provider to list function versions for.
5186
+ # @return [String]
5187
+ #
5188
+ # @!attribute [rw] marker
5189
+ # Specify the pagination token that's returned by a previous request
5190
+ # to retrieve the next page of results.
5191
+ # @return [String]
5192
+ #
5193
+ # @!attribute [rw] max_items
5194
+ # The maximum number of function versions to return in the response.
5195
+ # @return [Integer]
5196
+ #
5197
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionVersionsByCapacityProviderRequest AWS API Documentation
5198
+ #
5199
+ class ListFunctionVersionsByCapacityProviderRequest < Struct.new(
5200
+ :capacity_provider_name,
5201
+ :marker,
5202
+ :max_items)
5203
+ SENSITIVE = []
5204
+ include Aws::Structure
5205
+ end
5206
+
5207
+ # @!attribute [rw] capacity_provider_arn
5208
+ # The Amazon Resource Name (ARN) of the capacity provider.
5209
+ # @return [String]
5210
+ #
5211
+ # @!attribute [rw] function_versions
5212
+ # A list of function versions that use the specified capacity
5213
+ # provider.
5214
+ # @return [Array<Types::FunctionVersionsByCapacityProviderListItem>]
5215
+ #
5216
+ # @!attribute [rw] next_marker
5217
+ # The pagination token that's included if more results are available.
5218
+ # @return [String]
5219
+ #
5220
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionVersionsByCapacityProviderResponse AWS API Documentation
5221
+ #
5222
+ class ListFunctionVersionsByCapacityProviderResponse < Struct.new(
5223
+ :capacity_provider_arn,
5224
+ :function_versions,
5225
+ :next_marker)
5226
+ SENSITIVE = []
5227
+ include Aws::Structure
5228
+ end
5229
+
4686
5230
  # @!attribute [rw] code_signing_config_arn
4687
5231
  # The The Amazon Resource Name (ARN) of the code signing
4688
5232
  # configuration.
@@ -5074,6 +5618,24 @@ module Aws::Lambda
5074
5618
  include Aws::Structure
5075
5619
  end
5076
5620
 
5621
+ # The function has no published versions available.
5622
+ #
5623
+ # @!attribute [rw] type
5624
+ # The exception type.
5625
+ # @return [String]
5626
+ #
5627
+ # @!attribute [rw] message
5628
+ # @return [String]
5629
+ #
5630
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/NoPublishedVersionException AWS API Documentation
5631
+ #
5632
+ class NoPublishedVersionException < Struct.new(
5633
+ :type,
5634
+ :message)
5635
+ SENSITIVE = []
5636
+ include Aws::Structure
5637
+ end
5638
+
5077
5639
  # A destination for events that failed processing. For more information,
5078
5640
  # see [Adding a destination][1].
5079
5641
  #
@@ -5304,10 +5866,11 @@ module Aws::Lambda
5304
5866
  # @!attribute [rw] poller_group_name
5305
5867
  # (Amazon MSK and self-managed Apache Kafka) The name of the
5306
5868
  # provisioned poller group. Use this option to group multiple ESMs
5307
- # within the VPC to share Event Poller Unit (EPU) capacity. This
5308
- # option is used to optimize Provisioned mode costs for your ESMs. You
5309
- # can group up to 100 ESMs per poller group and aggregate maximum
5310
- # pollers across all ESMs in a group cannot exceed 2000.
5869
+ # within the event source's VPC to share Event Poller Unit (EPU)
5870
+ # capacity. You can use this option to optimize Provisioned mode costs
5871
+ # for your ESMs. You can group up to 100 ESMs per poller group and
5872
+ # aggregate maximum pollers across all ESMs in a group cannot exceed
5873
+ # 2000.
5311
5874
  # @return [String]
5312
5875
  #
5313
5876
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ProvisionedPollerConfig AWS API Documentation
@@ -5488,13 +6051,18 @@ module Aws::Lambda
5488
6051
  # function configuration has changed since you last updated it.
5489
6052
  # @return [String]
5490
6053
  #
6054
+ # @!attribute [rw] publish_to
6055
+ # Specifies where to publish the function version or configuration.
6056
+ # @return [String]
6057
+ #
5491
6058
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersionRequest AWS API Documentation
5492
6059
  #
5493
6060
  class PublishVersionRequest < Struct.new(
5494
6061
  :function_name,
5495
6062
  :code_sha_256,
5496
6063
  :description,
5497
- :revision_id)
6064
+ :revision_id,
6065
+ :publish_to)
5498
6066
  SENSITIVE = []
5499
6067
  include Aws::Structure
5500
6068
  end
@@ -5730,6 +6298,43 @@ module Aws::Lambda
5730
6298
  include Aws::Structure
5731
6299
  end
5732
6300
 
6301
+ # @!attribute [rw] function_name
6302
+ # The name or ARN of the Lambda function.
6303
+ # @return [String]
6304
+ #
6305
+ # @!attribute [rw] qualifier
6306
+ # Specify a version or alias to set the scaling configuration for a
6307
+ # published version of the function.
6308
+ # @return [String]
6309
+ #
6310
+ # @!attribute [rw] function_scaling_config
6311
+ # The scaling configuration to apply to the function, including
6312
+ # minimum and maximum execution environment limits.
6313
+ # @return [Types::FunctionScalingConfig]
6314
+ #
6315
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionScalingConfigRequest AWS API Documentation
6316
+ #
6317
+ class PutFunctionScalingConfigRequest < Struct.new(
6318
+ :function_name,
6319
+ :qualifier,
6320
+ :function_scaling_config)
6321
+ SENSITIVE = []
6322
+ include Aws::Structure
6323
+ end
6324
+
6325
+ # @!attribute [rw] function_state
6326
+ # The current state of the function after applying the scaling
6327
+ # configuration.
6328
+ # @return [String]
6329
+ #
6330
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionScalingConfigResponse AWS API Documentation
6331
+ #
6332
+ class PutFunctionScalingConfigResponse < Struct.new(
6333
+ :function_state)
6334
+ SENSITIVE = []
6335
+ include Aws::Structure
6336
+ end
6337
+
5733
6338
  # @!attribute [rw] function_name
5734
6339
  # The name or ARN of the Lambda function.
5735
6340
  #
@@ -6199,10 +6804,8 @@ module Aws::Lambda
6199
6804
  include Aws::Structure
6200
6805
  end
6201
6806
 
6202
- # The processed request payload exceeded the `Invoke` request body size
6203
- # limit for asynchronous invocations. While the event payload may be
6204
- # under 1 MB, the size after internal serialization exceeds the maximum
6205
- # allowed size for asynchronous invocations.
6807
+ # The request payload exceeded the maximum allowed size for serialized
6808
+ # request entities.
6206
6809
  #
6207
6810
  # @!attribute [rw] type
6208
6811
  # The error type.
@@ -6466,6 +7069,27 @@ module Aws::Lambda
6466
7069
  include Aws::Structure
6467
7070
  end
6468
7071
 
7072
+ # A scaling policy for the capacity provider that automatically adjusts
7073
+ # capacity to maintain a target value for a specific metric.
7074
+ #
7075
+ # @!attribute [rw] predefined_metric_type
7076
+ # The predefined metric type to track for scaling decisions.
7077
+ # @return [String]
7078
+ #
7079
+ # @!attribute [rw] target_value
7080
+ # The target value for the metric that the scaling policy attempts to
7081
+ # maintain through scaling actions.
7082
+ # @return [Float]
7083
+ #
7084
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TargetTrackingScalingPolicy AWS API Documentation
7085
+ #
7086
+ class TargetTrackingScalingPolicy < Struct.new(
7087
+ :predefined_metric_type,
7088
+ :target_value)
7089
+ SENSITIVE = []
7090
+ include Aws::Structure
7091
+ end
7092
+
6469
7093
  # Specifies the tenant isolation mode configuration for a Lambda
6470
7094
  # function. This allows you to configure specific tenant isolation
6471
7095
  # strategies for your function invocations. Tenant isolation
@@ -6638,6 +7262,35 @@ module Aws::Lambda
6638
7262
  include Aws::Structure
6639
7263
  end
6640
7264
 
7265
+ # @!attribute [rw] capacity_provider_name
7266
+ # The name of the capacity provider to update.
7267
+ # @return [String]
7268
+ #
7269
+ # @!attribute [rw] capacity_provider_scaling_config
7270
+ # The updated scaling configuration for the capacity provider.
7271
+ # @return [Types::CapacityProviderScalingConfig]
7272
+ #
7273
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCapacityProviderRequest AWS API Documentation
7274
+ #
7275
+ class UpdateCapacityProviderRequest < Struct.new(
7276
+ :capacity_provider_name,
7277
+ :capacity_provider_scaling_config)
7278
+ SENSITIVE = []
7279
+ include Aws::Structure
7280
+ end
7281
+
7282
+ # @!attribute [rw] capacity_provider
7283
+ # Information about the updated capacity provider.
7284
+ # @return [Types::CapacityProvider]
7285
+ #
7286
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCapacityProviderResponse AWS API Documentation
7287
+ #
7288
+ class UpdateCapacityProviderResponse < Struct.new(
7289
+ :capacity_provider)
7290
+ SENSITIVE = []
7291
+ include Aws::Structure
7292
+ end
7293
+
6641
7294
  # @!attribute [rw] code_signing_config_arn
6642
7295
  # The The Amazon Resource Name (ARN) of the code signing
6643
7296
  # configuration.
@@ -6965,6 +7618,10 @@ module Aws::Lambda
6965
7618
  # Services managed key.
6966
7619
  # @return [String]
6967
7620
  #
7621
+ # @!attribute [rw] publish_to
7622
+ # Specifies where to publish the function version or configuration.
7623
+ # @return [String]
7624
+ #
6968
7625
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCodeRequest AWS API Documentation
6969
7626
  #
6970
7627
  class UpdateFunctionCodeRequest < Struct.new(
@@ -6978,7 +7635,8 @@ module Aws::Lambda
6978
7635
  :dry_run,
6979
7636
  :revision_id,
6980
7637
  :architectures,
6981
- :source_kms_key_arn)
7638
+ :source_kms_key_arn,
7639
+ :publish_to)
6982
7640
  SENSITIVE = [:zip_file]
6983
7641
  include Aws::Structure
6984
7642
  end
@@ -7181,6 +7839,11 @@ module Aws::Lambda
7181
7839
  # The function's Amazon CloudWatch Logs configuration settings.
7182
7840
  # @return [Types::LoggingConfig]
7183
7841
  #
7842
+ # @!attribute [rw] capacity_provider_config
7843
+ # Configuration for the capacity provider that manages compute
7844
+ # resources for Lambda functions.
7845
+ # @return [Types::CapacityProviderConfig]
7846
+ #
7184
7847
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
7185
7848
  #
7186
7849
  class UpdateFunctionConfigurationRequest < Struct.new(
@@ -7202,7 +7865,8 @@ module Aws::Lambda
7202
7865
  :image_config,
7203
7866
  :ephemeral_storage,
7204
7867
  :snap_start,
7205
- :logging_config)
7868
+ :logging_config,
7869
+ :capacity_provider_config)
7206
7870
  SENSITIVE = []
7207
7871
  include Aws::Structure
7208
7872
  end