aws-sdk-lambda 1.136.0 → 1.144.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.
@@ -906,15 +906,12 @@ module Aws::Lambda
906
906
  #
907
907
  # * [ Amazon DocumentDB][7]
908
908
  #
909
- # The following error handling options are available only for stream
910
- # sources (DynamoDB and Kinesis):
909
+ # The following error handling options are available only for DynamoDB
910
+ # and Kinesis event sources:
911
911
  #
912
912
  # * `BisectBatchOnFunctionError` – If the function returns an error,
913
913
  # split the batch in two and retry.
914
914
  #
915
- # * `DestinationConfig` – Send discarded records to an Amazon SQS queue
916
- # or Amazon SNS topic.
917
- #
918
915
  # * `MaximumRecordAgeInSeconds` – Discard records older than the
919
916
  # specified age. The default value is infinite (-1). When set to
920
917
  # infinite (-1), failed records are retried until the record expires
@@ -926,6 +923,14 @@ module Aws::Lambda
926
923
  # * `ParallelizationFactor` – Process multiple batches from each shard
927
924
  # concurrently.
928
925
  #
926
+ # For stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed
927
+ # Apache Kafka), the following option is also available:
928
+ #
929
+ # * `DestinationConfig` – Send discarded records to an Amazon SQS queue,
930
+ # Amazon SNS topic, or Amazon S3 bucket.
931
+ #
932
+ # ^
933
+ #
929
934
  # For information about which configuration parameters apply to each
930
935
  # event source, see the following topics.
931
936
  #
@@ -1144,6 +1149,23 @@ module Aws::Lambda
1144
1149
  #
1145
1150
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
1146
1151
  #
1152
+ # @option params [Types::EventSourceMappingMetricsConfig] :metrics_config
1153
+ # The metrics configuration for your event source. For more information,
1154
+ # see [Event source mapping metrics][1].
1155
+ #
1156
+ #
1157
+ #
1158
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics
1159
+ #
1160
+ # @option params [Types::ProvisionedPollerConfig] :provisioned_poller_config
1161
+ # (Amazon MSK and self-managed Apache Kafka only) The Provisioned Mode
1162
+ # configuration for the event source. For more information, see
1163
+ # [Provisioned Mode][1].
1164
+ #
1165
+ #
1166
+ #
1167
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode
1168
+ #
1147
1169
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1148
1170
  #
1149
1171
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
@@ -1176,6 +1198,8 @@ module Aws::Lambda
1176
1198
  # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
1177
1199
  # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
1178
1200
  # * {Types::EventSourceMappingConfiguration#event_source_mapping_arn #event_source_mapping_arn} => String
1201
+ # * {Types::EventSourceMappingConfiguration#metrics_config #metrics_config} => Types::EventSourceMappingMetricsConfig
1202
+ # * {Types::EventSourceMappingConfiguration#provisioned_poller_config #provisioned_poller_config} => Types::ProvisionedPollerConfig
1179
1203
  #
1180
1204
  #
1181
1205
  # @example Example: To create a mapping between an event source and an AWS Lambda function
@@ -1261,6 +1285,13 @@ module Aws::Lambda
1261
1285
  # full_document: "UpdateLookup", # accepts UpdateLookup, Default
1262
1286
  # },
1263
1287
  # kms_key_arn: "KMSKeyArn",
1288
+ # metrics_config: {
1289
+ # metrics: ["EventCount"], # accepts EventCount
1290
+ # },
1291
+ # provisioned_poller_config: {
1292
+ # minimum_pollers: 1,
1293
+ # maximum_pollers: 1,
1294
+ # },
1264
1295
  # })
1265
1296
  #
1266
1297
  # @example Response structure
@@ -1307,6 +1338,10 @@ module Aws::Lambda
1307
1338
  # resp.filter_criteria_error.error_code #=> String
1308
1339
  # resp.filter_criteria_error.message #=> String
1309
1340
  # resp.event_source_mapping_arn #=> String
1341
+ # resp.metrics_config.metrics #=> Array
1342
+ # resp.metrics_config.metrics[0] #=> String, one of "EventCount"
1343
+ # resp.provisioned_poller_config.minimum_pollers #=> Integer
1344
+ # resp.provisioned_poller_config.maximum_pollers #=> Integer
1310
1345
  #
1311
1346
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
1312
1347
  #
@@ -1497,19 +1532,33 @@ module Aws::Lambda
1497
1532
  #
1498
1533
  # @option params [String] :kms_key_arn
1499
1534
  # The ARN of the Key Management Service (KMS) customer managed key
1500
- # that's used to encrypt your function's [environment variables][1].
1501
- # When [Lambda SnapStart][2] is activated, Lambda also uses this key is
1502
- # to encrypt your function's snapshot. If you deploy your function
1503
- # using a container image, Lambda also uses this key to encrypt your
1504
- # function when it's deployed. Note that this is not the same key
1505
- # that's used to protect your container image in the Amazon Elastic
1506
- # Container Registry (Amazon ECR). If you don't provide a customer
1507
- # managed key, Lambda uses a default service key.
1535
+ # that's used to encrypt the following resources:
1536
+ #
1537
+ # * The function's [environment variables][1].
1538
+ #
1539
+ # * The function's [Lambda SnapStart][2] snapshots.
1540
+ #
1541
+ # * When used with `SourceKMSKeyArn`, the unzipped version of the .zip
1542
+ # deployment package that's used for function invocations. For more
1543
+ # information, see [ Specifying a customer managed key for Lambda][3].
1544
+ #
1545
+ # * The optimized version of the container image that's used for
1546
+ # function invocations. Note that this is not the same key that's
1547
+ # used to protect your container image in the Amazon Elastic Container
1548
+ # Registry (Amazon ECR). For more information, see [Function
1549
+ # lifecycle][4].
1550
+ #
1551
+ # If you don't provide a customer managed key, Lambda uses an [Amazon
1552
+ # Web Services owned key][5] or an [Amazon Web Services managed key][6].
1508
1553
  #
1509
1554
  #
1510
1555
  #
1511
1556
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption
1512
1557
  # [2]: https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html
1558
+ # [3]: https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption
1559
+ # [4]: https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle
1560
+ # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk
1561
+ # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
1513
1562
  #
1514
1563
  # @option params [Types::TracingConfig] :tracing_config
1515
1564
  # Set `Mode` to `Active` to sample and trace a subset of incoming
@@ -1681,7 +1730,7 @@ module Aws::Lambda
1681
1730
  #
1682
1731
  # resp = client.create_function({
1683
1732
  # function_name: "FunctionName", # required
1684
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, dotnet8, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2, nodejs18.x, python3.10, java17, ruby3.2, ruby3.3, python3.11, nodejs20.x, provided.al2023, python3.12, java21
1733
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, dotnet8, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2, nodejs18.x, python3.10, java17, ruby3.2, ruby3.3, python3.11, nodejs20.x, provided.al2023, python3.12, java21, python3.13, nodejs22.x
1685
1734
  # role: "RoleArn", # required
1686
1735
  # handler: "Handler",
1687
1736
  # code: { # required
@@ -1690,6 +1739,7 @@ module Aws::Lambda
1690
1739
  # s3_key: "S3Key",
1691
1740
  # s3_object_version: "S3ObjectVersion",
1692
1741
  # image_uri: "String",
1742
+ # source_kms_key_arn: "KMSKeyArn",
1693
1743
  # },
1694
1744
  # description: "Description",
1695
1745
  # timeout: 1,
@@ -1748,7 +1798,7 @@ module Aws::Lambda
1748
1798
  #
1749
1799
  # resp.function_name #=> String
1750
1800
  # resp.function_arn #=> String
1751
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
1801
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
1752
1802
  # resp.role #=> String
1753
1803
  # resp.handler #=> String
1754
1804
  # resp.code_size #=> Integer
@@ -2051,6 +2101,8 @@ module Aws::Lambda
2051
2101
  # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
2052
2102
  # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
2053
2103
  # * {Types::EventSourceMappingConfiguration#event_source_mapping_arn #event_source_mapping_arn} => String
2104
+ # * {Types::EventSourceMappingConfiguration#metrics_config #metrics_config} => Types::EventSourceMappingMetricsConfig
2105
+ # * {Types::EventSourceMappingConfiguration#provisioned_poller_config #provisioned_poller_config} => Types::ProvisionedPollerConfig
2054
2106
  #
2055
2107
  #
2056
2108
  # @example Example: To delete a Lambda function event source mapping
@@ -2122,6 +2174,10 @@ module Aws::Lambda
2122
2174
  # resp.filter_criteria_error.error_code #=> String
2123
2175
  # resp.filter_criteria_error.message #=> String
2124
2176
  # resp.event_source_mapping_arn #=> String
2177
+ # resp.metrics_config.metrics #=> Array
2178
+ # resp.metrics_config.metrics[0] #=> String, one of "EventCount"
2179
+ # resp.provisioned_poller_config.minimum_pollers #=> Integer
2180
+ # resp.provisioned_poller_config.maximum_pollers #=> Integer
2125
2181
  #
2126
2182
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
2127
2183
  #
@@ -2658,6 +2714,8 @@ module Aws::Lambda
2658
2714
  # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
2659
2715
  # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
2660
2716
  # * {Types::EventSourceMappingConfiguration#event_source_mapping_arn #event_source_mapping_arn} => String
2717
+ # * {Types::EventSourceMappingConfiguration#metrics_config #metrics_config} => Types::EventSourceMappingMetricsConfig
2718
+ # * {Types::EventSourceMappingConfiguration#provisioned_poller_config #provisioned_poller_config} => Types::ProvisionedPollerConfig
2661
2719
  #
2662
2720
  #
2663
2721
  # @example Example: To get a Lambda function's event source mapping
@@ -2736,6 +2794,10 @@ module Aws::Lambda
2736
2794
  # resp.filter_criteria_error.error_code #=> String
2737
2795
  # resp.filter_criteria_error.message #=> String
2738
2796
  # resp.event_source_mapping_arn #=> String
2797
+ # resp.metrics_config.metrics #=> Array
2798
+ # resp.metrics_config.metrics[0] #=> String, one of "EventCount"
2799
+ # resp.provisioned_poller_config.minimum_pollers #=> Integer
2800
+ # resp.provisioned_poller_config.maximum_pollers #=> Integer
2739
2801
  #
2740
2802
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
2741
2803
  #
@@ -2777,6 +2839,7 @@ module Aws::Lambda
2777
2839
  # * {Types::GetFunctionResponse#configuration #configuration} => Types::FunctionConfiguration
2778
2840
  # * {Types::GetFunctionResponse#code #code} => Types::FunctionCodeLocation
2779
2841
  # * {Types::GetFunctionResponse#tags #tags} => Hash<String,String>
2842
+ # * {Types::GetFunctionResponse#tags_error #tags_error} => Types::TagsError
2780
2843
  # * {Types::GetFunctionResponse#concurrency #concurrency} => Types::Concurrency
2781
2844
  #
2782
2845
  #
@@ -2838,7 +2901,7 @@ module Aws::Lambda
2838
2901
  #
2839
2902
  # resp.configuration.function_name #=> String
2840
2903
  # resp.configuration.function_arn #=> String
2841
- # resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
2904
+ # resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
2842
2905
  # resp.configuration.role #=> String
2843
2906
  # resp.configuration.handler #=> String
2844
2907
  # resp.configuration.code_size #=> Integer
@@ -2903,8 +2966,11 @@ module Aws::Lambda
2903
2966
  # resp.code.location #=> String
2904
2967
  # resp.code.image_uri #=> String
2905
2968
  # resp.code.resolved_image_uri #=> String
2969
+ # resp.code.source_kms_key_arn #=> String
2906
2970
  # resp.tags #=> Hash
2907
2971
  # resp.tags["TagKey"] #=> String
2972
+ # resp.tags_error.error_code #=> String
2973
+ # resp.tags_error.message #=> String
2908
2974
  # resp.concurrency.reserved_concurrent_executions #=> Integer
2909
2975
  #
2910
2976
  #
@@ -3138,7 +3204,7 @@ module Aws::Lambda
3138
3204
  #
3139
3205
  # resp.function_name #=> String
3140
3206
  # resp.function_arn #=> String
3141
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
3207
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
3142
3208
  # resp.role #=> String
3143
3209
  # resp.handler #=> String
3144
3210
  # resp.code_size #=> Integer
@@ -3471,7 +3537,7 @@ module Aws::Lambda
3471
3537
  # resp.created_date #=> Time
3472
3538
  # resp.version #=> Integer
3473
3539
  # resp.compatible_runtimes #=> Array
3474
- # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
3540
+ # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
3475
3541
  # resp.license_info #=> String
3476
3542
  # resp.compatible_architectures #=> Array
3477
3543
  # resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
@@ -3552,7 +3618,7 @@ module Aws::Lambda
3552
3618
  # resp.created_date #=> Time
3553
3619
  # resp.version #=> Integer
3554
3620
  # resp.compatible_runtimes #=> Array
3555
- # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
3621
+ # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
3556
3622
  # resp.license_info #=> String
3557
3623
  # resp.compatible_architectures #=> Array
3558
3624
  # resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
@@ -3705,9 +3771,9 @@ module Aws::Lambda
3705
3771
  # * {Types::GetProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
3706
3772
  #
3707
3773
  #
3708
- # @example Example: To view a provisioned concurrency configuration
3774
+ # @example Example: To get a provisioned concurrency configuration
3709
3775
  #
3710
- # # The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified
3776
+ # # The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified
3711
3777
  # # function.
3712
3778
  #
3713
3779
  # resp = client.get_provisioned_concurrency_config({
@@ -3724,9 +3790,9 @@ module Aws::Lambda
3724
3790
  # status: "READY",
3725
3791
  # }
3726
3792
  #
3727
- # @example Example: To get a provisioned concurrency configuration
3793
+ # @example Example: To view a provisioned concurrency configuration
3728
3794
  #
3729
- # # The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified
3795
+ # # The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified
3730
3796
  # # function.
3731
3797
  #
3732
3798
  # resp = client.get_provisioned_concurrency_config({
@@ -3928,9 +3994,9 @@ module Aws::Lambda
3928
3994
  # @option params [String, StringIO, File] :payload
3929
3995
  # The JSON that you want to provide to your Lambda function as input.
3930
3996
  #
3931
- # You can enter the JSON directly. For example, `--payload '\{ "key":
3932
- # "value" \}'`. You can also specify a file path. For example,
3933
- # `--payload file://payload.json`.
3997
+ # You can enter the JSON directly. For example, `--payload '{ "key":
3998
+ # "value" }'`. You can also specify a file path. For example, `--payload
3999
+ # file://payload.json`.
3934
4000
  #
3935
4001
  # @option params [String] :qualifier
3936
4002
  # Specify a version or alias to invoke a published version of the
@@ -4127,9 +4193,9 @@ module Aws::Lambda
4127
4193
  # @option params [String, StringIO, File] :payload
4128
4194
  # The JSON that you want to provide to your Lambda function as input.
4129
4195
  #
4130
- # You can enter the JSON directly. For example, `--payload '\{ "key":
4131
- # "value" \}'`. You can also specify a file path. For example,
4132
- # `--payload file://payload.json`.
4196
+ # You can enter the JSON directly. For example, `--payload '{ "key":
4197
+ # "value" }'`. You can also specify a file path. For example, `--payload
4198
+ # file://payload.json`.
4133
4199
  #
4134
4200
  # @return [Types::InvokeWithResponseStreamResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4135
4201
  #
@@ -4576,6 +4642,10 @@ module Aws::Lambda
4576
4642
  # resp.event_source_mappings[0].filter_criteria_error.error_code #=> String
4577
4643
  # resp.event_source_mappings[0].filter_criteria_error.message #=> String
4578
4644
  # resp.event_source_mappings[0].event_source_mapping_arn #=> String
4645
+ # resp.event_source_mappings[0].metrics_config.metrics #=> Array
4646
+ # resp.event_source_mappings[0].metrics_config.metrics[0] #=> String, one of "EventCount"
4647
+ # resp.event_source_mappings[0].provisioned_poller_config.minimum_pollers #=> Integer
4648
+ # resp.event_source_mappings[0].provisioned_poller_config.maximum_pollers #=> Integer
4579
4649
  #
4580
4650
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
4581
4651
  #
@@ -4861,7 +4931,7 @@ module Aws::Lambda
4861
4931
  # resp.functions #=> Array
4862
4932
  # resp.functions[0].function_name #=> String
4863
4933
  # resp.functions[0].function_arn #=> String
4864
- # resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
4934
+ # resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
4865
4935
  # resp.functions[0].role #=> String
4866
4936
  # resp.functions[0].handler #=> String
4867
4937
  # resp.functions[0].code_size #=> Integer
@@ -5060,7 +5130,7 @@ module Aws::Lambda
5060
5130
  # @example Request syntax with placeholder values
5061
5131
  #
5062
5132
  # resp = client.list_layer_versions({
5063
- # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, dotnet8, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2, nodejs18.x, python3.10, java17, ruby3.2, ruby3.3, python3.11, nodejs20.x, provided.al2023, python3.12, java21
5133
+ # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, dotnet8, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2, nodejs18.x, python3.10, java17, ruby3.2, ruby3.3, python3.11, nodejs20.x, provided.al2023, python3.12, java21, python3.13, nodejs22.x
5064
5134
  # layer_name: "LayerName", # required
5065
5135
  # marker: "String",
5066
5136
  # max_items: 1,
@@ -5076,7 +5146,7 @@ module Aws::Lambda
5076
5146
  # resp.layer_versions[0].description #=> String
5077
5147
  # resp.layer_versions[0].created_date #=> Time
5078
5148
  # resp.layer_versions[0].compatible_runtimes #=> Array
5079
- # resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
5149
+ # resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
5080
5150
  # resp.layer_versions[0].license_info #=> String
5081
5151
  # resp.layer_versions[0].compatible_architectures #=> Array
5082
5152
  # resp.layer_versions[0].compatible_architectures[0] #=> String, one of "x86_64", "arm64"
@@ -5168,7 +5238,7 @@ module Aws::Lambda
5168
5238
  # @example Request syntax with placeholder values
5169
5239
  #
5170
5240
  # resp = client.list_layers({
5171
- # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, dotnet8, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2, nodejs18.x, python3.10, java17, ruby3.2, ruby3.3, python3.11, nodejs20.x, provided.al2023, python3.12, java21
5241
+ # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, dotnet8, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2, nodejs18.x, python3.10, java17, ruby3.2, ruby3.3, python3.11, nodejs20.x, provided.al2023, python3.12, java21, python3.13, nodejs22.x
5172
5242
  # marker: "String",
5173
5243
  # max_items: 1,
5174
5244
  # compatible_architecture: "x86_64", # accepts x86_64, arm64
@@ -5185,7 +5255,7 @@ module Aws::Lambda
5185
5255
  # resp.layers[0].latest_matching_version.description #=> String
5186
5256
  # resp.layers[0].latest_matching_version.created_date #=> Time
5187
5257
  # resp.layers[0].latest_matching_version.compatible_runtimes #=> Array
5188
- # resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
5258
+ # resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
5189
5259
  # resp.layers[0].latest_matching_version.license_info #=> String
5190
5260
  # resp.layers[0].latest_matching_version.compatible_architectures #=> Array
5191
5261
  # resp.layers[0].latest_matching_version.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
@@ -5461,7 +5531,7 @@ module Aws::Lambda
5461
5531
  # resp.versions #=> Array
5462
5532
  # resp.versions[0].function_name #=> String
5463
5533
  # resp.versions[0].function_arn #=> String
5464
- # resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
5534
+ # resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
5465
5535
  # resp.versions[0].role #=> String
5466
5536
  # resp.versions[0].handler #=> String
5467
5537
  # resp.versions[0].code_size #=> Integer
@@ -5647,7 +5717,7 @@ module Aws::Lambda
5647
5717
  # s3_object_version: "S3ObjectVersion",
5648
5718
  # zip_file: "data",
5649
5719
  # },
5650
- # compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, dotnet8, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2, nodejs18.x, python3.10, java17, ruby3.2, ruby3.3, python3.11, nodejs20.x, provided.al2023, python3.12, java21
5720
+ # compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, dotnet8, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2, nodejs18.x, python3.10, java17, ruby3.2, ruby3.3, python3.11, nodejs20.x, provided.al2023, python3.12, java21, python3.13, nodejs22.x
5651
5721
  # license_info: "LicenseInfo",
5652
5722
  # compatible_architectures: ["x86_64"], # accepts x86_64, arm64
5653
5723
  # })
@@ -5665,7 +5735,7 @@ module Aws::Lambda
5665
5735
  # resp.created_date #=> Time
5666
5736
  # resp.version #=> Integer
5667
5737
  # resp.compatible_runtimes #=> Array
5668
- # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
5738
+ # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
5669
5739
  # resp.license_info #=> String
5670
5740
  # resp.compatible_architectures #=> Array
5671
5741
  # resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
@@ -5818,7 +5888,7 @@ module Aws::Lambda
5818
5888
  #
5819
5889
  # resp.function_name #=> String
5820
5890
  # resp.function_arn #=> String
5821
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
5891
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
5822
5892
  # resp.role #=> String
5823
5893
  # resp.handler #=> String
5824
5894
  # resp.code_size #=> Integer
@@ -6027,12 +6097,17 @@ module Aws::Lambda
6027
6097
  # retain discarded events, configure a dead-letter queue with
6028
6098
  # UpdateFunctionConfiguration.
6029
6099
  #
6030
- # To send an invocation record to a queue, topic, function, or event
6031
- # bus, specify a [destination][2]. You can configure separate
6100
+ # To send an invocation record to a queue, topic, S3 bucket, function,
6101
+ # or event bus, specify a [destination][2]. You can configure separate
6032
6102
  # destinations for successful invocations (on-success) and events that
6033
6103
  # fail all processing attempts (on-failure). You can configure
6034
6104
  # destinations in addition to or instead of a dead-letter queue.
6035
6105
  #
6106
+ # <note markdown="1"> S3 buckets are supported only for on-failure destinations. To retain
6107
+ # records of successful invocations, use another destination type.
6108
+ #
6109
+ # </note>
6110
+ #
6036
6111
  #
6037
6112
  #
6038
6113
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html
@@ -6076,10 +6151,17 @@ module Aws::Lambda
6076
6151
  #
6077
6152
  # * **Queue** - The ARN of a standard SQS queue.
6078
6153
  #
6154
+ # * **Bucket** - The ARN of an Amazon S3 bucket.
6155
+ #
6079
6156
  # * **Topic** - The ARN of a standard SNS topic.
6080
6157
  #
6081
6158
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
6082
6159
  #
6160
+ # <note markdown="1"> S3 buckets are supported only for on-failure destinations. To retain
6161
+ # records of successful invocations, use another destination type.
6162
+ #
6163
+ # </note>
6164
+ #
6083
6165
  # @return [Types::FunctionEventInvokeConfig] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6084
6166
  #
6085
6167
  # * {Types::FunctionEventInvokeConfig#last_modified #last_modified} => Time
@@ -6800,15 +6882,12 @@ module Aws::Lambda
6800
6882
  #
6801
6883
  # * [ Amazon DocumentDB][7]
6802
6884
  #
6803
- # The following error handling options are available only for stream
6804
- # sources (DynamoDB and Kinesis):
6885
+ # The following error handling options are available only for DynamoDB
6886
+ # and Kinesis event sources:
6805
6887
  #
6806
6888
  # * `BisectBatchOnFunctionError` – If the function returns an error,
6807
6889
  # split the batch in two and retry.
6808
6890
  #
6809
- # * `DestinationConfig` – Send discarded records to an Amazon SQS queue
6810
- # or Amazon SNS topic.
6811
- #
6812
6891
  # * `MaximumRecordAgeInSeconds` – Discard records older than the
6813
6892
  # specified age. The default value is infinite (-1). When set to
6814
6893
  # infinite (-1), failed records are retried until the record expires
@@ -6820,6 +6899,14 @@ module Aws::Lambda
6820
6899
  # * `ParallelizationFactor` – Process multiple batches from each shard
6821
6900
  # concurrently.
6822
6901
  #
6902
+ # For stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed
6903
+ # Apache Kafka), the following option is also available:
6904
+ #
6905
+ # * `DestinationConfig` – Send discarded records to an Amazon SQS queue,
6906
+ # Amazon SNS topic, or Amazon S3 bucket.
6907
+ #
6908
+ # ^
6909
+ #
6823
6910
  # For information about which configuration parameters apply to each
6824
6911
  # event source, see the following topics.
6825
6912
  #
@@ -6989,6 +7076,23 @@ module Aws::Lambda
6989
7076
  #
6990
7077
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
6991
7078
  #
7079
+ # @option params [Types::EventSourceMappingMetricsConfig] :metrics_config
7080
+ # The metrics configuration for your event source. For more information,
7081
+ # see [Event source mapping metrics][1].
7082
+ #
7083
+ #
7084
+ #
7085
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics
7086
+ #
7087
+ # @option params [Types::ProvisionedPollerConfig] :provisioned_poller_config
7088
+ # (Amazon MSK and self-managed Apache Kafka only) The Provisioned Mode
7089
+ # configuration for the event source. For more information, see
7090
+ # [Provisioned Mode][1].
7091
+ #
7092
+ #
7093
+ #
7094
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode
7095
+ #
6992
7096
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6993
7097
  #
6994
7098
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
@@ -7021,6 +7125,8 @@ module Aws::Lambda
7021
7125
  # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
7022
7126
  # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
7023
7127
  # * {Types::EventSourceMappingConfiguration#event_source_mapping_arn #event_source_mapping_arn} => String
7128
+ # * {Types::EventSourceMappingConfiguration#metrics_config #metrics_config} => Types::EventSourceMappingMetricsConfig
7129
+ # * {Types::EventSourceMappingConfiguration#provisioned_poller_config #provisioned_poller_config} => Types::ProvisionedPollerConfig
7024
7130
  #
7025
7131
  #
7026
7132
  # @example Example: To update a Lambda function event source mapping
@@ -7090,6 +7196,13 @@ module Aws::Lambda
7090
7196
  # full_document: "UpdateLookup", # accepts UpdateLookup, Default
7091
7197
  # },
7092
7198
  # kms_key_arn: "KMSKeyArn",
7199
+ # metrics_config: {
7200
+ # metrics: ["EventCount"], # accepts EventCount
7201
+ # },
7202
+ # provisioned_poller_config: {
7203
+ # minimum_pollers: 1,
7204
+ # maximum_pollers: 1,
7205
+ # },
7093
7206
  # })
7094
7207
  #
7095
7208
  # @example Response structure
@@ -7136,6 +7249,10 @@ module Aws::Lambda
7136
7249
  # resp.filter_criteria_error.error_code #=> String
7137
7250
  # resp.filter_criteria_error.message #=> String
7138
7251
  # resp.event_source_mapping_arn #=> String
7252
+ # resp.metrics_config.metrics #=> Array
7253
+ # resp.metrics_config.metrics[0] #=> String, one of "EventCount"
7254
+ # resp.provisioned_poller_config.minimum_pollers #=> Integer
7255
+ # resp.provisioned_poller_config.maximum_pollers #=> Integer
7139
7256
  #
7140
7257
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
7141
7258
  #
@@ -7234,6 +7351,12 @@ module Aws::Lambda
7234
7351
  # string array with one of the valid values (arm64 or x86\_64). The
7235
7352
  # default value is `x86_64`.
7236
7353
  #
7354
+ # @option params [String] :source_kms_key_arn
7355
+ # The ARN of the Key Management Service (KMS) customer managed key
7356
+ # that's used to encrypt your function's .zip deployment package. If
7357
+ # you don't provide a customer managed key, Lambda uses an Amazon Web
7358
+ # Services managed key.
7359
+ #
7237
7360
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7238
7361
  #
7239
7362
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -7318,13 +7441,14 @@ module Aws::Lambda
7318
7441
  # dry_run: false,
7319
7442
  # revision_id: "String",
7320
7443
  # architectures: ["x86_64"], # accepts x86_64, arm64
7444
+ # source_kms_key_arn: "KMSKeyArn",
7321
7445
  # })
7322
7446
  #
7323
7447
  # @example Response structure
7324
7448
  #
7325
7449
  # resp.function_name #=> String
7326
7450
  # resp.function_arn #=> String
7327
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
7451
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
7328
7452
  # resp.role #=> String
7329
7453
  # resp.handler #=> String
7330
7454
  # resp.code_size #=> Integer
@@ -7516,19 +7640,33 @@ module Aws::Lambda
7516
7640
  #
7517
7641
  # @option params [String] :kms_key_arn
7518
7642
  # The ARN of the Key Management Service (KMS) customer managed key
7519
- # that's used to encrypt your function's [environment variables][1].
7520
- # When [Lambda SnapStart][2] is activated, Lambda also uses this key is
7521
- # to encrypt your function's snapshot. If you deploy your function
7522
- # using a container image, Lambda also uses this key to encrypt your
7523
- # function when it's deployed. Note that this is not the same key
7524
- # that's used to protect your container image in the Amazon Elastic
7525
- # Container Registry (Amazon ECR). If you don't provide a customer
7526
- # managed key, Lambda uses a default service key.
7643
+ # that's used to encrypt the following resources:
7644
+ #
7645
+ # * The function's [environment variables][1].
7646
+ #
7647
+ # * The function's [Lambda SnapStart][2] snapshots.
7648
+ #
7649
+ # * When used with `SourceKMSKeyArn`, the unzipped version of the .zip
7650
+ # deployment package that's used for function invocations. For more
7651
+ # information, see [ Specifying a customer managed key for Lambda][3].
7652
+ #
7653
+ # * The optimized version of the container image that's used for
7654
+ # function invocations. Note that this is not the same key that's
7655
+ # used to protect your container image in the Amazon Elastic Container
7656
+ # Registry (Amazon ECR). For more information, see [Function
7657
+ # lifecycle][4].
7658
+ #
7659
+ # If you don't provide a customer managed key, Lambda uses an [Amazon
7660
+ # Web Services owned key][5] or an [Amazon Web Services managed key][6].
7527
7661
  #
7528
7662
  #
7529
7663
  #
7530
7664
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption
7531
7665
  # [2]: https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html
7666
+ # [3]: https://docs.aws.amazon.com/lambda/latest/dg/encrypt-zip-package.html#enable-zip-custom-encryption
7667
+ # [4]: https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-lifecycle
7668
+ # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk
7669
+ # [6]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
7532
7670
  #
7533
7671
  # @option params [Types::TracingConfig] :tracing_config
7534
7672
  # Set `Mode` to `Active` to sample and trace a subset of incoming
@@ -7670,7 +7808,7 @@ module Aws::Lambda
7670
7808
  # "EnvironmentVariableName" => "EnvironmentVariableValue",
7671
7809
  # },
7672
7810
  # },
7673
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, dotnet8, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2, nodejs18.x, python3.10, java17, ruby3.2, ruby3.3, python3.11, nodejs20.x, provided.al2023, python3.12, java21
7811
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, nodejs16.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, dotnet8, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2, nodejs18.x, python3.10, java17, ruby3.2, ruby3.3, python3.11, nodejs20.x, provided.al2023, python3.12, java21, python3.13, nodejs22.x
7674
7812
  # dead_letter_config: {
7675
7813
  # target_arn: "ResourceArn",
7676
7814
  # },
@@ -7709,7 +7847,7 @@ module Aws::Lambda
7709
7847
  #
7710
7848
  # resp.function_name #=> String
7711
7849
  # resp.function_arn #=> String
7712
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21"
7850
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "nodejs16.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "dotnet8", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2", "nodejs18.x", "python3.10", "java17", "ruby3.2", "ruby3.3", "python3.11", "nodejs20.x", "provided.al2023", "python3.12", "java21", "python3.13", "nodejs22.x"
7713
7851
  # resp.role #=> String
7714
7852
  # resp.handler #=> String
7715
7853
  # resp.code_size #=> Integer
@@ -7824,10 +7962,17 @@ module Aws::Lambda
7824
7962
  #
7825
7963
  # * **Queue** - The ARN of a standard SQS queue.
7826
7964
  #
7965
+ # * **Bucket** - The ARN of an Amazon S3 bucket.
7966
+ #
7827
7967
  # * **Topic** - The ARN of a standard SNS topic.
7828
7968
  #
7829
7969
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
7830
7970
  #
7971
+ # <note markdown="1"> S3 buckets are supported only for on-failure destinations. To retain
7972
+ # records of successful invocations, use another destination type.
7973
+ #
7974
+ # </note>
7975
+ #
7831
7976
  # @return [Types::FunctionEventInvokeConfig] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7832
7977
  #
7833
7978
  # * {Types::FunctionEventInvokeConfig#last_modified #last_modified} => Time
@@ -8031,7 +8176,7 @@ module Aws::Lambda
8031
8176
  tracer: tracer
8032
8177
  )
8033
8178
  context[:gem_name] = 'aws-sdk-lambda'
8034
- context[:gem_version] = '1.136.0'
8179
+ context[:gem_version] = '1.144.0'
8035
8180
  Seahorse::Client::Request.new(handlers, context)
8036
8181
  end
8037
8182