aws-sdk-lambda 1.68.0 → 1.72.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -275,6 +275,15 @@ module Aws::Lambda
275
275
  # ** Please note ** When response stubbing is enabled, no HTTP
276
276
  # requests are made, and retries are disabled.
277
277
  #
278
+ # @option options [Boolean] :use_dualstack_endpoint
279
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
280
+ # will be used if available.
281
+ #
282
+ # @option options [Boolean] :use_fips_endpoint
283
+ # When set to `true`, fips compatible endpoints will be used if available.
284
+ # When a `fips` region is used, the region is normalized and this config
285
+ # is set to `true`.
286
+ #
278
287
  # @option options [Boolean] :validate_params (true)
279
288
  # When `true`, request parameters are validated before
280
289
  # sending the request.
@@ -404,7 +413,8 @@ module Aws::Lambda
404
413
  # use a function. You can apply the policy at the function level, or
405
414
  # specify a qualifier to restrict access to a single version or alias.
406
415
  # If you use a qualifier, the invoker must use the full Amazon Resource
407
- # Name (ARN) of that version or alias to invoke the function.
416
+ # Name (ARN) of that version or alias to invoke the function. Note:
417
+ # Lambda does not support adding policies to version $LATEST.
408
418
  #
409
419
  # To grant permission to another account, specify the account ID as the
410
420
  # `Principal`. For Amazon Web Services services, the principal is a
@@ -458,6 +468,9 @@ module Aws::Lambda
458
468
  # resource that invokes the function. For example, an Amazon S3 bucket
459
469
  # or Amazon SNS topic.
460
470
  #
471
+ # Note that Lambda configures the comparison using the `StringLike`
472
+ # operator.
473
+ #
461
474
  # @option params [String] :source_account
462
475
  # For Amazon S3, the ID of the account that owns the resource. Use this
463
476
  # together with `SourceArn` to ensure that the resource is owned by the
@@ -650,21 +663,20 @@ module Aws::Lambda
650
663
  # Creates a mapping between an event source and an Lambda function.
651
664
  # Lambda reads items from the event source and triggers the function.
652
665
  #
653
- # For details about each event source type, see the following topics. In
654
- # particular, each of the topics describes the required and optional
655
- # parameters for the specific event source.
666
+ # For details about how to configure different event sources, see the
667
+ # following topics.
656
668
  #
657
- # * [ Configuring a Dynamo DB stream as an event source][1]
669
+ # * [ Amazon DynamoDB Streams][1]
658
670
  #
659
- # * [ Configuring a Kinesis stream as an event source][2]
671
+ # * [ Amazon Kinesis][2]
660
672
  #
661
- # * [ Configuring an SQS queue as an event source][3]
673
+ # * [ Amazon SQS][3]
662
674
  #
663
- # * [ Configuring an MQ broker as an event source][4]
675
+ # * [ Amazon MQ and RabbitMQ][4]
664
676
  #
665
- # * [ Configuring MSK as an event source][5]
677
+ # * [ Amazon MSK][5]
666
678
  #
667
- # * [ Configuring Self-Managed Apache Kafka as an event source][6]
679
+ # * [ Apache Kafka][6]
668
680
  #
669
681
  # The following error handling options are only available for stream
670
682
  # sources (DynamoDB and Kinesis):
@@ -686,6 +698,21 @@ module Aws::Lambda
686
698
  # * `ParallelizationFactor` - Process multiple batches from each shard
687
699
  # concurrently.
688
700
  #
701
+ # For information about which configuration parameters apply to each
702
+ # event source, see the following topics.
703
+ #
704
+ # * [ Amazon DynamoDB Streams][7]
705
+ #
706
+ # * [ Amazon Kinesis][8]
707
+ #
708
+ # * [ Amazon SQS][9]
709
+ #
710
+ # * [ Amazon MQ and RabbitMQ][10]
711
+ #
712
+ # * [ Amazon MSK][11]
713
+ #
714
+ # * [ Apache Kafka][12]
715
+ #
689
716
  #
690
717
  #
691
718
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping
@@ -694,6 +721,12 @@ module Aws::Lambda
694
721
  # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping
695
722
  # [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
696
723
  # [6]: https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html
724
+ # [7]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params
725
+ # [8]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params
726
+ # [9]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params
727
+ # [10]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params
728
+ # [11]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms
729
+ # [12]: https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms
697
730
  #
698
731
  # @option params [String] :event_source_arn
699
732
  # The Amazon Resource Name (ARN) of the event source.
@@ -727,11 +760,16 @@ module Aws::Lambda
727
760
  # only the function name, it's limited to 64 characters in length.
728
761
  #
729
762
  # @option params [Boolean] :enabled
730
- # If true, the event source mapping is active. Set to false to pause
731
- # polling and invocation.
763
+ # When true, the event source mapping is active. When false, Lambda
764
+ # pauses polling and invocation.
765
+ #
766
+ # Default: True
732
767
  #
733
768
  # @option params [Integer] :batch_size
734
- # The maximum number of items to retrieve in a single batch.
769
+ # The maximum number of records in each batch that Lambda pulls from
770
+ # your stream or queue and sends to your function. Lambda passes all of
771
+ # the records in the batch to the function in a single call, up to the
772
+ # payload limit for synchronous invocation (6 MB).
735
773
  #
736
774
  # * **Amazon Kinesis** - Default 100. Max 10,000.
737
775
  #
@@ -745,9 +783,17 @@ module Aws::Lambda
745
783
  #
746
784
  # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
747
785
  #
786
+ # * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
787
+ #
748
788
  # @option params [Integer] :maximum_batching_window_in_seconds
749
- # (Streams and SQS standard queues) The maximum amount of time to gather
750
- # records before invoking the function, in seconds.
789
+ # (Streams and Amazon SQS standard queues) The maximum amount of time,
790
+ # in seconds, that Lambda spends gathering records before invoking the
791
+ # function.
792
+ #
793
+ # Default: 0
794
+ #
795
+ # Related setting: When you set `BatchSize` to a value greater than 10,
796
+ # you must set `MaximumBatchingWindowInSeconds` to at least 1.
751
797
  #
752
798
  # @option params [Integer] :parallelization_factor
753
799
  # (Streams only) The number of batches to process from each shard
@@ -852,7 +898,7 @@ module Aws::Lambda
852
898
  # queues: ["Queue"],
853
899
  # source_access_configurations: [
854
900
  # {
855
- # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
901
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST, CLIENT_CERTIFICATE_TLS_AUTH, SERVER_ROOT_CA_CERTIFICATE
856
902
  # uri: "URI",
857
903
  # },
858
904
  # ],
@@ -885,7 +931,7 @@ module Aws::Lambda
885
931
  # resp.queues #=> Array
886
932
  # resp.queues[0] #=> String
887
933
  # resp.source_access_configurations #=> Array
888
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
934
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST", "CLIENT_CERTIFICATE_TLS_AUTH", "SERVER_ROOT_CA_CERTIFICATE"
889
935
  # resp.source_access_configurations[0].uri #=> String
890
936
  # resp.self_managed_event_source.endpoints #=> Hash
891
937
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -921,7 +967,10 @@ module Aws::Lambda
921
967
  # You set the package type to `Zip` if the deployment package is a [.zip
922
968
  # file archive][4]. For a .zip file archive, the code property specifies
923
969
  # the location of the .zip file. You must also specify the handler and
924
- # runtime properties.
970
+ # runtime properties. The code in the deployment package must be
971
+ # compatible with the target instruction set architecture of the
972
+ # function (`x86-64` or `arm64`). If you do not specify the
973
+ # architecture, the default value is `x86-64`.
925
974
  #
926
975
  # When you create a function, Lambda provisions an instance of the
927
976
  # function and its supporting resources. If your function connects to a
@@ -1016,10 +1065,10 @@ module Aws::Lambda
1016
1065
  # A description of the function.
1017
1066
  #
1018
1067
  # @option params [Integer] :timeout
1019
- # The amount of time that Lambda allows a function to run before
1020
- # stopping it. The default is 3 seconds. The maximum allowed value is
1021
- # 900 seconds. For additional information, see [Lambda execution
1022
- # environment][1].
1068
+ # The amount of time (in seconds) that Lambda allows a function to run
1069
+ # before stopping it. The default is 3 seconds. The maximum allowed
1070
+ # value is 900 seconds. For additional information, see [Lambda
1071
+ # execution environment][1].
1023
1072
  #
1024
1073
  #
1025
1074
  #
@@ -1111,6 +1160,11 @@ module Aws::Lambda
1111
1160
  # set of signing profiles, which define the trusted publishers for this
1112
1161
  # function.
1113
1162
  #
1163
+ # @option params [Array<String>] :architectures
1164
+ # The instruction set architecture that the function supports. Enter a
1165
+ # string array with one of the valid values (arm64 or x86\_64). The
1166
+ # default value is `x86_64`.
1167
+ #
1114
1168
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1115
1169
  #
1116
1170
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -1144,6 +1198,7 @@ module Aws::Lambda
1144
1198
  # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
1145
1199
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
1146
1200
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
1201
+ # * {Types::FunctionConfiguration#architectures #architectures} => Array&lt;String&gt;
1147
1202
  #
1148
1203
  # @example Request syntax with placeholder values
1149
1204
  #
@@ -1196,6 +1251,7 @@ module Aws::Lambda
1196
1251
  # working_directory: "WorkingDirectory",
1197
1252
  # },
1198
1253
  # code_signing_config_arn: "CodeSigningConfigArn",
1254
+ # architectures: ["x86_64"], # accepts x86_64, arm64
1199
1255
  # })
1200
1256
  #
1201
1257
  # @example Response structure
@@ -1250,6 +1306,8 @@ module Aws::Lambda
1250
1306
  # resp.image_config_response.error.message #=> String
1251
1307
  # resp.signing_profile_version_arn #=> String
1252
1308
  # resp.signing_job_arn #=> String
1309
+ # resp.architectures #=> Array
1310
+ # resp.architectures[0] #=> String, one of "x86_64", "arm64"
1253
1311
  #
1254
1312
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
1255
1313
  #
@@ -1390,7 +1448,7 @@ module Aws::Lambda
1390
1448
  # resp.queues #=> Array
1391
1449
  # resp.queues[0] #=> String
1392
1450
  # resp.source_access_configurations #=> Array
1393
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
1451
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST", "CLIENT_CERTIFICATE_TLS_AUTH", "SERVER_ROOT_CA_CERTIFICATE"
1394
1452
  # resp.source_access_configurations[0].uri #=> String
1395
1453
  # resp.self_managed_event_source.endpoints #=> Hash
1396
1454
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -1823,7 +1881,7 @@ module Aws::Lambda
1823
1881
  # resp.queues #=> Array
1824
1882
  # resp.queues[0] #=> String
1825
1883
  # resp.source_access_configurations #=> Array
1826
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
1884
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST", "CLIENT_CERTIFICATE_TLS_AUTH", "SERVER_ROOT_CA_CERTIFICATE"
1827
1885
  # resp.source_access_configurations[0].uri #=> String
1828
1886
  # resp.self_managed_event_source.endpoints #=> Hash
1829
1887
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -1936,6 +1994,8 @@ module Aws::Lambda
1936
1994
  # resp.configuration.image_config_response.error.message #=> String
1937
1995
  # resp.configuration.signing_profile_version_arn #=> String
1938
1996
  # resp.configuration.signing_job_arn #=> String
1997
+ # resp.configuration.architectures #=> Array
1998
+ # resp.configuration.architectures[0] #=> String, one of "x86_64", "arm64"
1939
1999
  # resp.code.repository_type #=> String
1940
2000
  # resp.code.location #=> String
1941
2001
  # resp.code.image_uri #=> String
@@ -2103,6 +2163,7 @@ module Aws::Lambda
2103
2163
  # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
2104
2164
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
2105
2165
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
2166
+ # * {Types::FunctionConfiguration#architectures #architectures} => Array&lt;String&gt;
2106
2167
  #
2107
2168
  # @example Request syntax with placeholder values
2108
2169
  #
@@ -2163,6 +2224,8 @@ module Aws::Lambda
2163
2224
  # resp.image_config_response.error.message #=> String
2164
2225
  # resp.signing_profile_version_arn #=> String
2165
2226
  # resp.signing_job_arn #=> String
2227
+ # resp.architectures #=> Array
2228
+ # resp.architectures[0] #=> String, one of "x86_64", "arm64"
2166
2229
  #
2167
2230
  #
2168
2231
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -2261,6 +2324,7 @@ module Aws::Lambda
2261
2324
  # * {Types::GetLayerVersionResponse#version #version} => Integer
2262
2325
  # * {Types::GetLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
2263
2326
  # * {Types::GetLayerVersionResponse#license_info #license_info} => String
2327
+ # * {Types::GetLayerVersionResponse#compatible_architectures #compatible_architectures} => Array&lt;String&gt;
2264
2328
  #
2265
2329
  # @example Request syntax with placeholder values
2266
2330
  #
@@ -2284,6 +2348,8 @@ module Aws::Lambda
2284
2348
  # resp.compatible_runtimes #=> Array
2285
2349
  # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
2286
2350
  # resp.license_info #=> String
2351
+ # resp.compatible_architectures #=> Array
2352
+ # resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
2287
2353
  #
2288
2354
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion AWS API Documentation
2289
2355
  #
@@ -2314,6 +2380,7 @@ module Aws::Lambda
2314
2380
  # * {Types::GetLayerVersionResponse#version #version} => Integer
2315
2381
  # * {Types::GetLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
2316
2382
  # * {Types::GetLayerVersionResponse#license_info #license_info} => String
2383
+ # * {Types::GetLayerVersionResponse#compatible_architectures #compatible_architectures} => Array&lt;String&gt;
2317
2384
  #
2318
2385
  # @example Request syntax with placeholder values
2319
2386
  #
@@ -2336,6 +2403,8 @@ module Aws::Lambda
2336
2403
  # resp.compatible_runtimes #=> Array
2337
2404
  # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
2338
2405
  # resp.license_info #=> String
2406
+ # resp.compatible_architectures #=> Array
2407
+ # resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
2339
2408
  #
2340
2409
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArn AWS API Documentation
2341
2410
  #
@@ -2576,7 +2645,8 @@ module Aws::Lambda
2576
2645
  # role has permission to invoke the function.
2577
2646
  #
2578
2647
  # @option params [String] :log_type
2579
- # Set to `Tail` to include the execution log in the response.
2648
+ # Set to `Tail` to include the execution log in the response. Applies to
2649
+ # synchronously invoked functions only.
2580
2650
  #
2581
2651
  # @option params [String] :client_context
2582
2652
  # Up to 3583 bytes of base64-encoded data about the invoking client to
@@ -2585,6 +2655,10 @@ module Aws::Lambda
2585
2655
  # @option params [String, StringIO, File] :payload
2586
2656
  # The JSON that you want to provide to your Lambda function as input.
2587
2657
  #
2658
+ # You can enter the JSON directly. For example, `--payload '\{ "key":
2659
+ # "value" \}'`. You can also specify a file path. For example,
2660
+ # `--payload file://payload.json`.
2661
+ #
2588
2662
  # @option params [String] :qualifier
2589
2663
  # Specify a version or alias to invoke a published version of the
2590
2664
  # function.
@@ -2871,7 +2945,7 @@ module Aws::Lambda
2871
2945
  # resp.event_source_mappings[0].queues #=> Array
2872
2946
  # resp.event_source_mappings[0].queues[0] #=> String
2873
2947
  # resp.event_source_mappings[0].source_access_configurations #=> Array
2874
- # resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
2948
+ # resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST", "CLIENT_CERTIFICATE_TLS_AUTH", "SERVER_ROOT_CA_CERTIFICATE"
2875
2949
  # resp.event_source_mappings[0].source_access_configurations[0].uri #=> String
2876
2950
  # resp.event_source_mappings[0].self_managed_event_source.endpoints #=> Hash
2877
2951
  # resp.event_source_mappings[0].self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -3059,6 +3133,8 @@ module Aws::Lambda
3059
3133
  # resp.functions[0].image_config_response.error.message #=> String
3060
3134
  # resp.functions[0].signing_profile_version_arn #=> String
3061
3135
  # resp.functions[0].signing_job_arn #=> String
3136
+ # resp.functions[0].architectures #=> Array
3137
+ # resp.functions[0].architectures[0] #=> String, one of "x86_64", "arm64"
3062
3138
  #
3063
3139
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
3064
3140
  #
@@ -3116,6 +3192,8 @@ module Aws::Lambda
3116
3192
  # Lists the versions of an [Lambda layer][1]. Versions that have been
3117
3193
  # deleted aren't listed. Specify a [runtime identifier][2] to list only
3118
3194
  # versions that indicate that they're compatible with that runtime.
3195
+ # Specify a compatible architecture to include only layer versions that
3196
+ # are compatible with that architecture.
3119
3197
  #
3120
3198
  #
3121
3199
  #
@@ -3134,6 +3212,13 @@ module Aws::Lambda
3134
3212
  # @option params [Integer] :max_items
3135
3213
  # The maximum number of versions to return.
3136
3214
  #
3215
+ # @option params [String] :compatible_architecture
3216
+ # The compatible [instruction set architecture][1].
3217
+ #
3218
+ #
3219
+ #
3220
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html
3221
+ #
3137
3222
  # @return [Types::ListLayerVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3138
3223
  #
3139
3224
  # * {Types::ListLayerVersionsResponse#next_marker #next_marker} => String
@@ -3148,6 +3233,7 @@ module Aws::Lambda
3148
3233
  # layer_name: "LayerName", # required
3149
3234
  # marker: "String",
3150
3235
  # max_items: 1,
3236
+ # compatible_architecture: "x86_64", # accepts x86_64, arm64
3151
3237
  # })
3152
3238
  #
3153
3239
  # @example Response structure
@@ -3161,6 +3247,8 @@ module Aws::Lambda
3161
3247
  # resp.layer_versions[0].compatible_runtimes #=> Array
3162
3248
  # resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3163
3249
  # resp.layer_versions[0].license_info #=> String
3250
+ # resp.layer_versions[0].compatible_architectures #=> Array
3251
+ # resp.layer_versions[0].compatible_architectures[0] #=> String, one of "x86_64", "arm64"
3164
3252
  #
3165
3253
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions AWS API Documentation
3166
3254
  #
@@ -3173,12 +3261,15 @@ module Aws::Lambda
3173
3261
 
3174
3262
  # Lists [Lambda layers][1] and shows information about the latest
3175
3263
  # version of each. Specify a [runtime identifier][2] to list only layers
3176
- # that indicate that they're compatible with that runtime.
3264
+ # that indicate that they're compatible with that runtime. Specify a
3265
+ # compatible architecture to include only layers that are compatible
3266
+ # with that [instruction set architecture][3].
3177
3267
  #
3178
3268
  #
3179
3269
  #
3180
- # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
3270
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html
3181
3271
  # [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
3272
+ # [3]: https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html
3182
3273
  #
3183
3274
  # @option params [String] :compatible_runtime
3184
3275
  # A runtime identifier. For example, `go1.x`.
@@ -3189,6 +3280,13 @@ module Aws::Lambda
3189
3280
  # @option params [Integer] :max_items
3190
3281
  # The maximum number of layers to return.
3191
3282
  #
3283
+ # @option params [String] :compatible_architecture
3284
+ # The compatible [instruction set architecture][1].
3285
+ #
3286
+ #
3287
+ #
3288
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html
3289
+ #
3192
3290
  # @return [Types::ListLayersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3193
3291
  #
3194
3292
  # * {Types::ListLayersResponse#next_marker #next_marker} => String
@@ -3202,6 +3300,7 @@ module Aws::Lambda
3202
3300
  # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
3203
3301
  # marker: "String",
3204
3302
  # max_items: 1,
3303
+ # compatible_architecture: "x86_64", # accepts x86_64, arm64
3205
3304
  # })
3206
3305
  #
3207
3306
  # @example Response structure
@@ -3217,6 +3316,8 @@ module Aws::Lambda
3217
3316
  # resp.layers[0].latest_matching_version.compatible_runtimes #=> Array
3218
3317
  # 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", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3219
3318
  # resp.layers[0].latest_matching_version.license_info #=> String
3319
+ # resp.layers[0].latest_matching_version.compatible_architectures #=> Array
3320
+ # resp.layers[0].latest_matching_version.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
3220
3321
  #
3221
3322
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers AWS API Documentation
3222
3323
  #
@@ -3296,7 +3397,8 @@ module Aws::Lambda
3296
3397
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/tagging.html
3297
3398
  #
3298
3399
  # @option params [required, String] :resource
3299
- # The function's Amazon Resource Name (ARN).
3400
+ # The function's Amazon Resource Name (ARN). Note: Lambda does not
3401
+ # support adding tags to aliases or versions.
3300
3402
  #
3301
3403
  # @return [Types::ListTagsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3302
3404
  #
@@ -3422,6 +3524,8 @@ module Aws::Lambda
3422
3524
  # resp.versions[0].image_config_response.error.message #=> String
3423
3525
  # resp.versions[0].signing_profile_version_arn #=> String
3424
3526
  # resp.versions[0].signing_job_arn #=> String
3527
+ # resp.versions[0].architectures #=> Array
3528
+ # resp.versions[0].architectures[0] #=> String, one of "x86_64", "arm64"
3425
3529
  #
3426
3530
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
3427
3531
  #
@@ -3474,6 +3578,13 @@ module Aws::Lambda
3474
3578
  #
3475
3579
  # [1]: https://spdx.org/licenses/
3476
3580
  #
3581
+ # @option params [Array<String>] :compatible_architectures
3582
+ # A list of compatible [instruction set architectures][1].
3583
+ #
3584
+ #
3585
+ #
3586
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html
3587
+ #
3477
3588
  # @return [Types::PublishLayerVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3478
3589
  #
3479
3590
  # * {Types::PublishLayerVersionResponse#content #content} => Types::LayerVersionContentOutput
@@ -3484,6 +3595,7 @@ module Aws::Lambda
3484
3595
  # * {Types::PublishLayerVersionResponse#version #version} => Integer
3485
3596
  # * {Types::PublishLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
3486
3597
  # * {Types::PublishLayerVersionResponse#license_info #license_info} => String
3598
+ # * {Types::PublishLayerVersionResponse#compatible_architectures #compatible_architectures} => Array&lt;String&gt;
3487
3599
  #
3488
3600
  # @example Request syntax with placeholder values
3489
3601
  #
@@ -3498,6 +3610,7 @@ module Aws::Lambda
3498
3610
  # },
3499
3611
  # compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
3500
3612
  # license_info: "LicenseInfo",
3613
+ # compatible_architectures: ["x86_64"], # accepts x86_64, arm64
3501
3614
  # })
3502
3615
  #
3503
3616
  # @example Response structure
@@ -3515,6 +3628,8 @@ module Aws::Lambda
3515
3628
  # resp.compatible_runtimes #=> Array
3516
3629
  # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
3517
3630
  # resp.license_info #=> String
3631
+ # resp.compatible_architectures #=> Array
3632
+ # resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
3518
3633
  #
3519
3634
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion AWS API Documentation
3520
3635
  #
@@ -3605,6 +3720,7 @@ module Aws::Lambda
3605
3720
  # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
3606
3721
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
3607
3722
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
3723
+ # * {Types::FunctionConfiguration#architectures #architectures} => Array&lt;String&gt;
3608
3724
  #
3609
3725
  # @example Request syntax with placeholder values
3610
3726
  #
@@ -3667,6 +3783,8 @@ module Aws::Lambda
3667
3783
  # resp.image_config_response.error.message #=> String
3668
3784
  # resp.signing_profile_version_arn #=> String
3669
3785
  # resp.signing_job_arn #=> String
3786
+ # resp.architectures #=> Array
3787
+ # resp.architectures[0] #=> String, one of "x86_64", "arm64"
3670
3788
  #
3671
3789
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
3672
3790
  #
@@ -4254,6 +4372,21 @@ module Aws::Lambda
4254
4372
  # Lambda invokes, or pause invocation and resume later from the same
4255
4373
  # location.
4256
4374
  #
4375
+ # For details about how to configure different event sources, see the
4376
+ # following topics.
4377
+ #
4378
+ # * [ Amazon DynamoDB Streams][1]
4379
+ #
4380
+ # * [ Amazon Kinesis][2]
4381
+ #
4382
+ # * [ Amazon SQS][3]
4383
+ #
4384
+ # * [ Amazon MQ and RabbitMQ][4]
4385
+ #
4386
+ # * [ Amazon MSK][5]
4387
+ #
4388
+ # * [ Apache Kafka][6]
4389
+ #
4257
4390
  # The following error handling options are only available for stream
4258
4391
  # sources (DynamoDB and Kinesis):
4259
4392
  #
@@ -4274,6 +4407,36 @@ module Aws::Lambda
4274
4407
  # * `ParallelizationFactor` - Process multiple batches from each shard
4275
4408
  # concurrently.
4276
4409
  #
4410
+ # For information about which configuration parameters apply to each
4411
+ # event source, see the following topics.
4412
+ #
4413
+ # * [ Amazon DynamoDB Streams][7]
4414
+ #
4415
+ # * [ Amazon Kinesis][8]
4416
+ #
4417
+ # * [ Amazon SQS][9]
4418
+ #
4419
+ # * [ Amazon MQ and RabbitMQ][10]
4420
+ #
4421
+ # * [ Amazon MSK][11]
4422
+ #
4423
+ # * [ Apache Kafka][12]
4424
+ #
4425
+ #
4426
+ #
4427
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping
4428
+ # [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping
4429
+ # [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource
4430
+ # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping
4431
+ # [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
4432
+ # [6]: https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html
4433
+ # [7]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params
4434
+ # [8]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params
4435
+ # [9]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params
4436
+ # [10]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params
4437
+ # [11]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms
4438
+ # [12]: https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms
4439
+ #
4277
4440
  # @option params [required, String] :uuid
4278
4441
  # The identifier of the event source mapping.
4279
4442
  #
@@ -4296,11 +4459,16 @@ module Aws::Lambda
4296
4459
  # only the function name, it's limited to 64 characters in length.
4297
4460
  #
4298
4461
  # @option params [Boolean] :enabled
4299
- # If true, the event source mapping is active. Set to false to pause
4300
- # polling and invocation.
4462
+ # When true, the event source mapping is active. When false, Lambda
4463
+ # pauses polling and invocation.
4464
+ #
4465
+ # Default: True
4301
4466
  #
4302
4467
  # @option params [Integer] :batch_size
4303
- # The maximum number of items to retrieve in a single batch.
4468
+ # The maximum number of records in each batch that Lambda pulls from
4469
+ # your stream or queue and sends to your function. Lambda passes all of
4470
+ # the records in the batch to the function in a single call, up to the
4471
+ # payload limit for synchronous invocation (6 MB).
4304
4472
  #
4305
4473
  # * **Amazon Kinesis** - Default 100. Max 10,000.
4306
4474
  #
@@ -4314,9 +4482,17 @@ module Aws::Lambda
4314
4482
  #
4315
4483
  # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
4316
4484
  #
4485
+ # * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
4486
+ #
4317
4487
  # @option params [Integer] :maximum_batching_window_in_seconds
4318
- # (Streams and SQS standard queues) The maximum amount of time to gather
4319
- # records before invoking the function, in seconds.
4488
+ # (Streams and Amazon SQS standard queues) The maximum amount of time,
4489
+ # in seconds, that Lambda spends gathering records before invoking the
4490
+ # function.
4491
+ #
4492
+ # Default: 0
4493
+ #
4494
+ # Related setting: When you set `BatchSize` to a value greater than 10,
4495
+ # you must set `MaximumBatchingWindowInSeconds` to at least 1.
4320
4496
  #
4321
4497
  # @option params [Types::DestinationConfig] :destination_config
4322
4498
  # (Streams only) An Amazon SQS queue or Amazon SNS topic destination for
@@ -4398,7 +4574,7 @@ module Aws::Lambda
4398
4574
  # parallelization_factor: 1,
4399
4575
  # source_access_configurations: [
4400
4576
  # {
4401
- # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
4577
+ # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST, CLIENT_CERTIFICATE_TLS_AUTH, SERVER_ROOT_CA_CERTIFICATE
4402
4578
  # uri: "URI",
4403
4579
  # },
4404
4580
  # ],
@@ -4427,7 +4603,7 @@ module Aws::Lambda
4427
4603
  # resp.queues #=> Array
4428
4604
  # resp.queues[0] #=> String
4429
4605
  # resp.source_access_configurations #=> Array
4430
- # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
4606
+ # resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST", "CLIENT_CERTIFICATE_TLS_AUTH", "SERVER_ROOT_CA_CERTIFICATE"
4431
4607
  # resp.source_access_configurations[0].uri #=> String
4432
4608
  # resp.self_managed_event_source.endpoints #=> Hash
4433
4609
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -4514,6 +4690,11 @@ module Aws::Lambda
4514
4690
  # specified. Use this option to avoid modifying a function that has
4515
4691
  # changed since you last read it.
4516
4692
  #
4693
+ # @option params [Array<String>] :architectures
4694
+ # The instruction set architecture that the function supports. Enter a
4695
+ # string array with one of the valid values (arm64 or x86\_64). The
4696
+ # default value is `x86_64`.
4697
+ #
4517
4698
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4518
4699
  #
4519
4700
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -4547,6 +4728,7 @@ module Aws::Lambda
4547
4728
  # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
4548
4729
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
4549
4730
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
4731
+ # * {Types::FunctionConfiguration#architectures #architectures} => Array&lt;String&gt;
4550
4732
  #
4551
4733
  # @example Request syntax with placeholder values
4552
4734
  #
@@ -4560,6 +4742,7 @@ module Aws::Lambda
4560
4742
  # publish: false,
4561
4743
  # dry_run: false,
4562
4744
  # revision_id: "String",
4745
+ # architectures: ["x86_64"], # accepts x86_64, arm64
4563
4746
  # })
4564
4747
  #
4565
4748
  # @example Response structure
@@ -4614,6 +4797,8 @@ module Aws::Lambda
4614
4797
  # resp.image_config_response.error.message #=> String
4615
4798
  # resp.signing_profile_version_arn #=> String
4616
4799
  # resp.signing_job_arn #=> String
4800
+ # resp.architectures #=> Array
4801
+ # resp.architectures[0] #=> String, one of "x86_64", "arm64"
4617
4802
  #
4618
4803
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
4619
4804
  #
@@ -4680,10 +4865,10 @@ module Aws::Lambda
4680
4865
  # A description of the function.
4681
4866
  #
4682
4867
  # @option params [Integer] :timeout
4683
- # The amount of time that Lambda allows a function to run before
4684
- # stopping it. The default is 3 seconds. The maximum allowed value is
4685
- # 900 seconds. For additional information, see [Lambda execution
4686
- # environment][1].
4868
+ # The amount of time (in seconds) that Lambda allows a function to run
4869
+ # before stopping it. The default is 3 seconds. The maximum allowed
4870
+ # value is 900 seconds. For additional information, see [Lambda
4871
+ # execution environment][1].
4687
4872
  #
4688
4873
  #
4689
4874
  #
@@ -4760,7 +4945,7 @@ module Aws::Lambda
4760
4945
  #
4761
4946
  # @option params [Types::ImageConfig] :image_config
4762
4947
  # [Container image configuration values][1] that override the values in
4763
- # the container image Dockerfile.
4948
+ # the container image Docker file.
4764
4949
  #
4765
4950
  #
4766
4951
  #
@@ -4799,6 +4984,7 @@ module Aws::Lambda
4799
4984
  # * {Types::FunctionConfiguration#image_config_response #image_config_response} => Types::ImageConfigResponse
4800
4985
  # * {Types::FunctionConfiguration#signing_profile_version_arn #signing_profile_version_arn} => String
4801
4986
  # * {Types::FunctionConfiguration#signing_job_arn #signing_job_arn} => String
4987
+ # * {Types::FunctionConfiguration#architectures #architectures} => Array&lt;String&gt;
4802
4988
  #
4803
4989
  # @example Request syntax with placeholder values
4804
4990
  #
@@ -4893,6 +5079,8 @@ module Aws::Lambda
4893
5079
  # resp.image_config_response.error.message #=> String
4894
5080
  # resp.signing_profile_version_arn #=> String
4895
5081
  # resp.signing_job_arn #=> String
5082
+ # resp.architectures #=> Array
5083
+ # resp.architectures[0] #=> String, one of "x86_64", "arm64"
4896
5084
  #
4897
5085
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
4898
5086
  #
@@ -5007,7 +5195,7 @@ module Aws::Lambda
5007
5195
  params: params,
5008
5196
  config: config)
5009
5197
  context[:gem_name] = 'aws-sdk-lambda'
5010
- context[:gem_version] = '1.68.0'
5198
+ context[:gem_version] = '1.72.0'
5011
5199
  Seahorse::Client::Request.new(handlers, context)
5012
5200
  end
5013
5201