aws-sdk-lambda 1.70.0 → 1.74.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.
@@ -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.
@@ -654,19 +663,20 @@ module Aws::Lambda
654
663
  # Creates a mapping between an event source and an Lambda function.
655
664
  # Lambda reads items from the event source and triggers the function.
656
665
  #
657
- # For details about each event source type, see the following topics.
666
+ # For details about how to configure different event sources, see the
667
+ # following topics.
658
668
  #
659
- # * [ Configuring a Dynamo DB stream as an event source][1]
669
+ # * [ Amazon DynamoDB Streams][1]
660
670
  #
661
- # * [ Configuring a Kinesis stream as an event source][2]
671
+ # * [ Amazon Kinesis][2]
662
672
  #
663
- # * [ Configuring an Amazon SQS queue as an event source][3]
673
+ # * [ Amazon SQS][3]
664
674
  #
665
- # * [ Configuring an MQ broker as an event source][4]
675
+ # * [ Amazon MQ and RabbitMQ][4]
666
676
  #
667
- # * [ Configuring MSK as an event source][5]
677
+ # * [ Amazon MSK][5]
668
678
  #
669
- # * [ Configuring Self-Managed Apache Kafka as an event source][6]
679
+ # * [ Apache Kafka][6]
670
680
  #
671
681
  # The following error handling options are only available for stream
672
682
  # sources (DynamoDB and Kinesis):
@@ -688,6 +698,21 @@ module Aws::Lambda
688
698
  # * `ParallelizationFactor` - Process multiple batches from each shard
689
699
  # concurrently.
690
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
+ #
691
716
  #
692
717
  #
693
718
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping
@@ -696,6 +721,12 @@ module Aws::Lambda
696
721
  # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping
697
722
  # [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
698
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
699
730
  #
700
731
  # @option params [String] :event_source_arn
701
732
  # The Amazon Resource Name (ARN) of the event source.
@@ -752,6 +783,17 @@ module Aws::Lambda
752
783
  #
753
784
  # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
754
785
  #
786
+ # * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
787
+ #
788
+ # @option params [Types::FilterCriteria] :filter_criteria
789
+ # (Streams and Amazon SQS) A object that defines the filter criteria
790
+ # used to determine whether Lambda should process an event. For more
791
+ # information, see [Lambda event filtering][1].
792
+ #
793
+ #
794
+ #
795
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
796
+ #
755
797
  # @option params [Integer] :maximum_batching_window_in_seconds
756
798
  # (Streams and Amazon SQS standard queues) The maximum amount of time,
757
799
  # in seconds, that Lambda spends gathering records before invoking the
@@ -822,6 +864,7 @@ module Aws::Lambda
822
864
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
823
865
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
824
866
  # * {Types::EventSourceMappingConfiguration#event_source_arn #event_source_arn} => String
867
+ # * {Types::EventSourceMappingConfiguration#filter_criteria #filter_criteria} => Types::FilterCriteria
825
868
  # * {Types::EventSourceMappingConfiguration#function_arn #function_arn} => String
826
869
  # * {Types::EventSourceMappingConfiguration#last_modified #last_modified} => Time
827
870
  # * {Types::EventSourceMappingConfiguration#last_processing_result #last_processing_result} => String
@@ -845,6 +888,13 @@ module Aws::Lambda
845
888
  # function_name: "FunctionName", # required
846
889
  # enabled: false,
847
890
  # batch_size: 1,
891
+ # filter_criteria: {
892
+ # filters: [
893
+ # {
894
+ # pattern: "Pattern",
895
+ # },
896
+ # ],
897
+ # },
848
898
  # maximum_batching_window_in_seconds: 1,
849
899
  # parallelization_factor: 1,
850
900
  # starting_position: "TRIM_HORIZON", # accepts TRIM_HORIZON, LATEST, AT_TIMESTAMP
@@ -865,7 +915,7 @@ module Aws::Lambda
865
915
  # queues: ["Queue"],
866
916
  # source_access_configurations: [
867
917
  # {
868
- # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
918
+ # 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
869
919
  # uri: "URI",
870
920
  # },
871
921
  # ],
@@ -886,6 +936,8 @@ module Aws::Lambda
886
936
  # resp.maximum_batching_window_in_seconds #=> Integer
887
937
  # resp.parallelization_factor #=> Integer
888
938
  # resp.event_source_arn #=> String
939
+ # resp.filter_criteria.filters #=> Array
940
+ # resp.filter_criteria.filters[0].pattern #=> String
889
941
  # resp.function_arn #=> String
890
942
  # resp.last_modified #=> Time
891
943
  # resp.last_processing_result #=> String
@@ -898,7 +950,7 @@ module Aws::Lambda
898
950
  # resp.queues #=> Array
899
951
  # resp.queues[0] #=> String
900
952
  # resp.source_access_configurations #=> Array
901
- # 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"
953
+ # 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"
902
954
  # resp.source_access_configurations[0].uri #=> String
903
955
  # resp.self_managed_event_source.endpoints #=> Hash
904
956
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -1032,10 +1084,10 @@ module Aws::Lambda
1032
1084
  # A description of the function.
1033
1085
  #
1034
1086
  # @option params [Integer] :timeout
1035
- # The amount of time that Lambda allows a function to run before
1036
- # stopping it. The default is 3 seconds. The maximum allowed value is
1037
- # 900 seconds. For additional information, see [Lambda execution
1038
- # environment][1].
1087
+ # The amount of time (in seconds) that Lambda allows a function to run
1088
+ # before stopping it. The default is 3 seconds. The maximum allowed
1089
+ # value is 900 seconds. For additional information, see [Lambda
1090
+ # execution environment][1].
1039
1091
  #
1040
1092
  #
1041
1093
  #
@@ -1129,8 +1181,8 @@ module Aws::Lambda
1129
1181
  #
1130
1182
  # @option params [Array<String>] :architectures
1131
1183
  # The instruction set architecture that the function supports. Enter a
1132
- # string array with one of the valid values. The default value is
1133
- # `x86_64`.
1184
+ # string array with one of the valid values (arm64 or x86\_64). The
1185
+ # default value is `x86_64`.
1134
1186
  #
1135
1187
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1136
1188
  #
@@ -1285,6 +1337,64 @@ module Aws::Lambda
1285
1337
  req.send_request(options)
1286
1338
  end
1287
1339
 
1340
+ # @option params [required, String] :function_name
1341
+ #
1342
+ # @option params [String] :qualifier
1343
+ #
1344
+ # @option params [required, String] :authorization_type
1345
+ #
1346
+ # @option params [Types::Cors] :cors
1347
+ #
1348
+ # @return [Types::CreateFunctionUrlConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1349
+ #
1350
+ # * {Types::CreateFunctionUrlConfigResponse#function_url #function_url} => String
1351
+ # * {Types::CreateFunctionUrlConfigResponse#function_arn #function_arn} => String
1352
+ # * {Types::CreateFunctionUrlConfigResponse#authorization_type #authorization_type} => String
1353
+ # * {Types::CreateFunctionUrlConfigResponse#cors #cors} => Types::Cors
1354
+ # * {Types::CreateFunctionUrlConfigResponse#creation_time #creation_time} => Time
1355
+ #
1356
+ # @example Request syntax with placeholder values
1357
+ #
1358
+ # resp = client.create_function_url_config({
1359
+ # function_name: "FunctionName", # required
1360
+ # qualifier: "FunctionUrlQualifier",
1361
+ # authorization_type: "NONE", # required, accepts NONE, AWS_IAM
1362
+ # cors: {
1363
+ # allow_credentials: false,
1364
+ # allow_headers: ["Header"],
1365
+ # allow_methods: ["Method"],
1366
+ # allow_origins: ["Origin"],
1367
+ # expose_headers: ["Header"],
1368
+ # max_age: 1,
1369
+ # },
1370
+ # })
1371
+ #
1372
+ # @example Response structure
1373
+ #
1374
+ # resp.function_url #=> String
1375
+ # resp.function_arn #=> String
1376
+ # resp.authorization_type #=> String, one of "NONE", "AWS_IAM"
1377
+ # resp.cors.allow_credentials #=> Boolean
1378
+ # resp.cors.allow_headers #=> Array
1379
+ # resp.cors.allow_headers[0] #=> String
1380
+ # resp.cors.allow_methods #=> Array
1381
+ # resp.cors.allow_methods[0] #=> String
1382
+ # resp.cors.allow_origins #=> Array
1383
+ # resp.cors.allow_origins[0] #=> String
1384
+ # resp.cors.expose_headers #=> Array
1385
+ # resp.cors.expose_headers[0] #=> String
1386
+ # resp.cors.max_age #=> Integer
1387
+ # resp.creation_time #=> Time
1388
+ #
1389
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfig AWS API Documentation
1390
+ #
1391
+ # @overload create_function_url_config(params = {})
1392
+ # @param [Hash] params ({})
1393
+ def create_function_url_config(params = {}, options = {})
1394
+ req = build_request(:create_function_url_config, params)
1395
+ req.send_request(options)
1396
+ end
1397
+
1288
1398
  # Deletes a Lambda function [alias][1].
1289
1399
  #
1290
1400
  #
@@ -1372,6 +1482,7 @@ module Aws::Lambda
1372
1482
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
1373
1483
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
1374
1484
  # * {Types::EventSourceMappingConfiguration#event_source_arn #event_source_arn} => String
1485
+ # * {Types::EventSourceMappingConfiguration#filter_criteria #filter_criteria} => Types::FilterCriteria
1375
1486
  # * {Types::EventSourceMappingConfiguration#function_arn #function_arn} => String
1376
1487
  # * {Types::EventSourceMappingConfiguration#last_modified #last_modified} => Time
1377
1488
  # * {Types::EventSourceMappingConfiguration#last_processing_result #last_processing_result} => String
@@ -1403,6 +1514,8 @@ module Aws::Lambda
1403
1514
  # resp.maximum_batching_window_in_seconds #=> Integer
1404
1515
  # resp.parallelization_factor #=> Integer
1405
1516
  # resp.event_source_arn #=> String
1517
+ # resp.filter_criteria.filters #=> Array
1518
+ # resp.filter_criteria.filters[0].pattern #=> String
1406
1519
  # resp.function_arn #=> String
1407
1520
  # resp.last_modified #=> Time
1408
1521
  # resp.last_processing_result #=> String
@@ -1415,7 +1528,7 @@ module Aws::Lambda
1415
1528
  # resp.queues #=> Array
1416
1529
  # resp.queues[0] #=> String
1417
1530
  # resp.source_access_configurations #=> Array
1418
- # 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"
1531
+ # 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"
1419
1532
  # resp.source_access_configurations[0].uri #=> String
1420
1533
  # resp.self_managed_event_source.endpoints #=> Hash
1421
1534
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -1596,6 +1709,28 @@ module Aws::Lambda
1596
1709
  req.send_request(options)
1597
1710
  end
1598
1711
 
1712
+ # @option params [required, String] :function_name
1713
+ #
1714
+ # @option params [String] :qualifier
1715
+ #
1716
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1717
+ #
1718
+ # @example Request syntax with placeholder values
1719
+ #
1720
+ # resp = client.delete_function_url_config({
1721
+ # function_name: "FunctionName", # required
1722
+ # qualifier: "FunctionUrlQualifier",
1723
+ # })
1724
+ #
1725
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionUrlConfig AWS API Documentation
1726
+ #
1727
+ # @overload delete_function_url_config(params = {})
1728
+ # @param [Hash] params ({})
1729
+ def delete_function_url_config(params = {}, options = {})
1730
+ req = build_request(:delete_function_url_config, params)
1731
+ req.send_request(options)
1732
+ end
1733
+
1599
1734
  # Deletes a version of an [Lambda layer][1]. Deleted versions can no
1600
1735
  # longer be viewed or added to functions. To avoid breaking functions, a
1601
1736
  # copy of the version remains in Lambda until no functions refer to it.
@@ -1805,6 +1940,7 @@ module Aws::Lambda
1805
1940
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
1806
1941
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
1807
1942
  # * {Types::EventSourceMappingConfiguration#event_source_arn #event_source_arn} => String
1943
+ # * {Types::EventSourceMappingConfiguration#filter_criteria #filter_criteria} => Types::FilterCriteria
1808
1944
  # * {Types::EventSourceMappingConfiguration#function_arn #function_arn} => String
1809
1945
  # * {Types::EventSourceMappingConfiguration#last_modified #last_modified} => Time
1810
1946
  # * {Types::EventSourceMappingConfiguration#last_processing_result #last_processing_result} => String
@@ -1836,6 +1972,8 @@ module Aws::Lambda
1836
1972
  # resp.maximum_batching_window_in_seconds #=> Integer
1837
1973
  # resp.parallelization_factor #=> Integer
1838
1974
  # resp.event_source_arn #=> String
1975
+ # resp.filter_criteria.filters #=> Array
1976
+ # resp.filter_criteria.filters[0].pattern #=> String
1839
1977
  # resp.function_arn #=> String
1840
1978
  # resp.last_modified #=> Time
1841
1979
  # resp.last_processing_result #=> String
@@ -1848,7 +1986,7 @@ module Aws::Lambda
1848
1986
  # resp.queues #=> Array
1849
1987
  # resp.queues[0] #=> String
1850
1988
  # resp.source_access_configurations #=> Array
1851
- # 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"
1989
+ # 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"
1852
1990
  # resp.source_access_configurations[0].uri #=> String
1853
1991
  # resp.self_managed_event_source.endpoints #=> Hash
1854
1992
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -2268,6 +2406,53 @@ module Aws::Lambda
2268
2406
  req.send_request(options)
2269
2407
  end
2270
2408
 
2409
+ # @option params [required, String] :function_name
2410
+ #
2411
+ # @option params [String] :qualifier
2412
+ #
2413
+ # @return [Types::GetFunctionUrlConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2414
+ #
2415
+ # * {Types::GetFunctionUrlConfigResponse#function_url #function_url} => String
2416
+ # * {Types::GetFunctionUrlConfigResponse#function_arn #function_arn} => String
2417
+ # * {Types::GetFunctionUrlConfigResponse#authorization_type #authorization_type} => String
2418
+ # * {Types::GetFunctionUrlConfigResponse#cors #cors} => Types::Cors
2419
+ # * {Types::GetFunctionUrlConfigResponse#creation_time #creation_time} => Time
2420
+ # * {Types::GetFunctionUrlConfigResponse#last_modified_time #last_modified_time} => Time
2421
+ #
2422
+ # @example Request syntax with placeholder values
2423
+ #
2424
+ # resp = client.get_function_url_config({
2425
+ # function_name: "FunctionName", # required
2426
+ # qualifier: "FunctionUrlQualifier",
2427
+ # })
2428
+ #
2429
+ # @example Response structure
2430
+ #
2431
+ # resp.function_url #=> String
2432
+ # resp.function_arn #=> String
2433
+ # resp.authorization_type #=> String, one of "NONE", "AWS_IAM"
2434
+ # resp.cors.allow_credentials #=> Boolean
2435
+ # resp.cors.allow_headers #=> Array
2436
+ # resp.cors.allow_headers[0] #=> String
2437
+ # resp.cors.allow_methods #=> Array
2438
+ # resp.cors.allow_methods[0] #=> String
2439
+ # resp.cors.allow_origins #=> Array
2440
+ # resp.cors.allow_origins[0] #=> String
2441
+ # resp.cors.expose_headers #=> Array
2442
+ # resp.cors.expose_headers[0] #=> String
2443
+ # resp.cors.max_age #=> Integer
2444
+ # resp.creation_time #=> Time
2445
+ # resp.last_modified_time #=> Time
2446
+ #
2447
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfig AWS API Documentation
2448
+ #
2449
+ # @overload get_function_url_config(params = {})
2450
+ # @param [Hash] params ({})
2451
+ def get_function_url_config(params = {}, options = {})
2452
+ req = build_request(:get_function_url_config, params)
2453
+ req.send_request(options)
2454
+ end
2455
+
2271
2456
  # Returns information about a version of an [Lambda layer][1], with a
2272
2457
  # link to download the layer archive that's valid for 10 minutes.
2273
2458
  #
@@ -2622,6 +2807,10 @@ module Aws::Lambda
2622
2807
  # @option params [String, StringIO, File] :payload
2623
2808
  # The JSON that you want to provide to your Lambda function as input.
2624
2809
  #
2810
+ # You can enter the JSON directly. For example, `--payload '\{ "key":
2811
+ # "value" \}'`. You can also specify a file path. For example,
2812
+ # `--payload file://payload.json`.
2813
+ #
2625
2814
  # @option params [String] :qualifier
2626
2815
  # Specify a version or alias to invoke a published version of the
2627
2816
  # function.
@@ -2896,6 +3085,8 @@ module Aws::Lambda
2896
3085
  # resp.event_source_mappings[0].maximum_batching_window_in_seconds #=> Integer
2897
3086
  # resp.event_source_mappings[0].parallelization_factor #=> Integer
2898
3087
  # resp.event_source_mappings[0].event_source_arn #=> String
3088
+ # resp.event_source_mappings[0].filter_criteria.filters #=> Array
3089
+ # resp.event_source_mappings[0].filter_criteria.filters[0].pattern #=> String
2899
3090
  # resp.event_source_mappings[0].function_arn #=> String
2900
3091
  # resp.event_source_mappings[0].last_modified #=> Time
2901
3092
  # resp.event_source_mappings[0].last_processing_result #=> String
@@ -2908,7 +3099,7 @@ module Aws::Lambda
2908
3099
  # resp.event_source_mappings[0].queues #=> Array
2909
3100
  # resp.event_source_mappings[0].queues[0] #=> String
2910
3101
  # resp.event_source_mappings[0].source_access_configurations #=> Array
2911
- # 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"
3102
+ # 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"
2912
3103
  # resp.event_source_mappings[0].source_access_configurations[0].uri #=> String
2913
3104
  # resp.event_source_mappings[0].self_managed_event_source.endpoints #=> Hash
2914
3105
  # resp.event_source_mappings[0].self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -2992,6 +3183,56 @@ module Aws::Lambda
2992
3183
  req.send_request(options)
2993
3184
  end
2994
3185
 
3186
+ # @option params [required, String] :function_name
3187
+ #
3188
+ # @option params [String] :marker
3189
+ #
3190
+ # @option params [Integer] :max_items
3191
+ #
3192
+ # @return [Types::ListFunctionUrlConfigsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3193
+ #
3194
+ # * {Types::ListFunctionUrlConfigsResponse#function_url_configs #function_url_configs} => Array&lt;Types::FunctionUrlConfig&gt;
3195
+ # * {Types::ListFunctionUrlConfigsResponse#next_marker #next_marker} => String
3196
+ #
3197
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3198
+ #
3199
+ # @example Request syntax with placeholder values
3200
+ #
3201
+ # resp = client.list_function_url_configs({
3202
+ # function_name: "FunctionName", # required
3203
+ # marker: "String",
3204
+ # max_items: 1,
3205
+ # })
3206
+ #
3207
+ # @example Response structure
3208
+ #
3209
+ # resp.function_url_configs #=> Array
3210
+ # resp.function_url_configs[0].function_url #=> String
3211
+ # resp.function_url_configs[0].function_arn #=> String
3212
+ # resp.function_url_configs[0].creation_time #=> Time
3213
+ # resp.function_url_configs[0].last_modified_time #=> Time
3214
+ # resp.function_url_configs[0].cors.allow_credentials #=> Boolean
3215
+ # resp.function_url_configs[0].cors.allow_headers #=> Array
3216
+ # resp.function_url_configs[0].cors.allow_headers[0] #=> String
3217
+ # resp.function_url_configs[0].cors.allow_methods #=> Array
3218
+ # resp.function_url_configs[0].cors.allow_methods[0] #=> String
3219
+ # resp.function_url_configs[0].cors.allow_origins #=> Array
3220
+ # resp.function_url_configs[0].cors.allow_origins[0] #=> String
3221
+ # resp.function_url_configs[0].cors.expose_headers #=> Array
3222
+ # resp.function_url_configs[0].cors.expose_headers[0] #=> String
3223
+ # resp.function_url_configs[0].cors.max_age #=> Integer
3224
+ # resp.function_url_configs[0].authorization_type #=> String, one of "NONE", "AWS_IAM"
3225
+ # resp.next_marker #=> String
3226
+ #
3227
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionUrlConfigs AWS API Documentation
3228
+ #
3229
+ # @overload list_function_url_configs(params = {})
3230
+ # @param [Hash] params ({})
3231
+ def list_function_url_configs(params = {}, options = {})
3232
+ req = build_request(:list_function_url_configs, params)
3233
+ req.send_request(options)
3234
+ end
3235
+
2995
3236
  # Returns a list of Lambda functions, with the version-specific
2996
3237
  # configuration of each. Lambda returns up to 50 functions per call.
2997
3238
  #
@@ -4335,6 +4576,21 @@ module Aws::Lambda
4335
4576
  # Lambda invokes, or pause invocation and resume later from the same
4336
4577
  # location.
4337
4578
  #
4579
+ # For details about how to configure different event sources, see the
4580
+ # following topics.
4581
+ #
4582
+ # * [ Amazon DynamoDB Streams][1]
4583
+ #
4584
+ # * [ Amazon Kinesis][2]
4585
+ #
4586
+ # * [ Amazon SQS][3]
4587
+ #
4588
+ # * [ Amazon MQ and RabbitMQ][4]
4589
+ #
4590
+ # * [ Amazon MSK][5]
4591
+ #
4592
+ # * [ Apache Kafka][6]
4593
+ #
4338
4594
  # The following error handling options are only available for stream
4339
4595
  # sources (DynamoDB and Kinesis):
4340
4596
  #
@@ -4355,6 +4611,36 @@ module Aws::Lambda
4355
4611
  # * `ParallelizationFactor` - Process multiple batches from each shard
4356
4612
  # concurrently.
4357
4613
  #
4614
+ # For information about which configuration parameters apply to each
4615
+ # event source, see the following topics.
4616
+ #
4617
+ # * [ Amazon DynamoDB Streams][7]
4618
+ #
4619
+ # * [ Amazon Kinesis][8]
4620
+ #
4621
+ # * [ Amazon SQS][9]
4622
+ #
4623
+ # * [ Amazon MQ and RabbitMQ][10]
4624
+ #
4625
+ # * [ Amazon MSK][11]
4626
+ #
4627
+ # * [ Apache Kafka][12]
4628
+ #
4629
+ #
4630
+ #
4631
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping
4632
+ # [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping
4633
+ # [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource
4634
+ # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping
4635
+ # [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
4636
+ # [6]: https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html
4637
+ # [7]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params
4638
+ # [8]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params
4639
+ # [9]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params
4640
+ # [10]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params
4641
+ # [11]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms
4642
+ # [12]: https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms
4643
+ #
4358
4644
  # @option params [required, String] :uuid
4359
4645
  # The identifier of the event source mapping.
4360
4646
  #
@@ -4400,6 +4686,17 @@ module Aws::Lambda
4400
4686
  #
4401
4687
  # * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
4402
4688
  #
4689
+ # * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
4690
+ #
4691
+ # @option params [Types::FilterCriteria] :filter_criteria
4692
+ # (Streams and Amazon SQS) A object that defines the filter criteria
4693
+ # used to determine whether Lambda should process an event. For more
4694
+ # information, see [Lambda event filtering][1].
4695
+ #
4696
+ #
4697
+ #
4698
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
4699
+ #
4403
4700
  # @option params [Integer] :maximum_batching_window_in_seconds
4404
4701
  # (Streams and Amazon SQS standard queues) The maximum amount of time,
4405
4702
  # in seconds, that Lambda spends gathering records before invoking the
@@ -4452,6 +4749,7 @@ module Aws::Lambda
4452
4749
  # * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
4453
4750
  # * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
4454
4751
  # * {Types::EventSourceMappingConfiguration#event_source_arn #event_source_arn} => String
4752
+ # * {Types::EventSourceMappingConfiguration#filter_criteria #filter_criteria} => Types::FilterCriteria
4455
4753
  # * {Types::EventSourceMappingConfiguration#function_arn #function_arn} => String
4456
4754
  # * {Types::EventSourceMappingConfiguration#last_modified #last_modified} => Time
4457
4755
  # * {Types::EventSourceMappingConfiguration#last_processing_result #last_processing_result} => String
@@ -4475,6 +4773,13 @@ module Aws::Lambda
4475
4773
  # function_name: "FunctionName",
4476
4774
  # enabled: false,
4477
4775
  # batch_size: 1,
4776
+ # filter_criteria: {
4777
+ # filters: [
4778
+ # {
4779
+ # pattern: "Pattern",
4780
+ # },
4781
+ # ],
4782
+ # },
4478
4783
  # maximum_batching_window_in_seconds: 1,
4479
4784
  # destination_config: {
4480
4785
  # on_success: {
@@ -4490,7 +4795,7 @@ module Aws::Lambda
4490
4795
  # parallelization_factor: 1,
4491
4796
  # source_access_configurations: [
4492
4797
  # {
4493
- # type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
4798
+ # 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
4494
4799
  # uri: "URI",
4495
4800
  # },
4496
4801
  # ],
@@ -4507,6 +4812,8 @@ module Aws::Lambda
4507
4812
  # resp.maximum_batching_window_in_seconds #=> Integer
4508
4813
  # resp.parallelization_factor #=> Integer
4509
4814
  # resp.event_source_arn #=> String
4815
+ # resp.filter_criteria.filters #=> Array
4816
+ # resp.filter_criteria.filters[0].pattern #=> String
4510
4817
  # resp.function_arn #=> String
4511
4818
  # resp.last_modified #=> Time
4512
4819
  # resp.last_processing_result #=> String
@@ -4519,7 +4826,7 @@ module Aws::Lambda
4519
4826
  # resp.queues #=> Array
4520
4827
  # resp.queues[0] #=> String
4521
4828
  # resp.source_access_configurations #=> Array
4522
- # 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"
4829
+ # 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"
4523
4830
  # resp.source_access_configurations[0].uri #=> String
4524
4831
  # resp.self_managed_event_source.endpoints #=> Hash
4525
4832
  # resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
@@ -4608,8 +4915,8 @@ module Aws::Lambda
4608
4915
  #
4609
4916
  # @option params [Array<String>] :architectures
4610
4917
  # The instruction set architecture that the function supports. Enter a
4611
- # string array with one of the valid values. The default value is
4612
- # `x86_64`.
4918
+ # string array with one of the valid values (arm64 or x86\_64). The
4919
+ # default value is `x86_64`.
4613
4920
  #
4614
4921
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4615
4922
  #
@@ -4781,10 +5088,10 @@ module Aws::Lambda
4781
5088
  # A description of the function.
4782
5089
  #
4783
5090
  # @option params [Integer] :timeout
4784
- # The amount of time that Lambda allows a function to run before
4785
- # stopping it. The default is 3 seconds. The maximum allowed value is
4786
- # 900 seconds. For additional information, see [Lambda execution
4787
- # environment][1].
5091
+ # The amount of time (in seconds) that Lambda allows a function to run
5092
+ # before stopping it. The default is 3 seconds. The maximum allowed
5093
+ # value is 900 seconds. For additional information, see [Lambda
5094
+ # execution environment][1].
4788
5095
  #
4789
5096
  #
4790
5097
  #
@@ -5098,6 +5405,66 @@ module Aws::Lambda
5098
5405
  req.send_request(options)
5099
5406
  end
5100
5407
 
5408
+ # @option params [required, String] :function_name
5409
+ #
5410
+ # @option params [String] :qualifier
5411
+ #
5412
+ # @option params [String] :authorization_type
5413
+ #
5414
+ # @option params [Types::Cors] :cors
5415
+ #
5416
+ # @return [Types::UpdateFunctionUrlConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5417
+ #
5418
+ # * {Types::UpdateFunctionUrlConfigResponse#function_url #function_url} => String
5419
+ # * {Types::UpdateFunctionUrlConfigResponse#function_arn #function_arn} => String
5420
+ # * {Types::UpdateFunctionUrlConfigResponse#authorization_type #authorization_type} => String
5421
+ # * {Types::UpdateFunctionUrlConfigResponse#cors #cors} => Types::Cors
5422
+ # * {Types::UpdateFunctionUrlConfigResponse#creation_time #creation_time} => Time
5423
+ # * {Types::UpdateFunctionUrlConfigResponse#last_modified_time #last_modified_time} => Time
5424
+ #
5425
+ # @example Request syntax with placeholder values
5426
+ #
5427
+ # resp = client.update_function_url_config({
5428
+ # function_name: "FunctionName", # required
5429
+ # qualifier: "FunctionUrlQualifier",
5430
+ # authorization_type: "NONE", # accepts NONE, AWS_IAM
5431
+ # cors: {
5432
+ # allow_credentials: false,
5433
+ # allow_headers: ["Header"],
5434
+ # allow_methods: ["Method"],
5435
+ # allow_origins: ["Origin"],
5436
+ # expose_headers: ["Header"],
5437
+ # max_age: 1,
5438
+ # },
5439
+ # })
5440
+ #
5441
+ # @example Response structure
5442
+ #
5443
+ # resp.function_url #=> String
5444
+ # resp.function_arn #=> String
5445
+ # resp.authorization_type #=> String, one of "NONE", "AWS_IAM"
5446
+ # resp.cors.allow_credentials #=> Boolean
5447
+ # resp.cors.allow_headers #=> Array
5448
+ # resp.cors.allow_headers[0] #=> String
5449
+ # resp.cors.allow_methods #=> Array
5450
+ # resp.cors.allow_methods[0] #=> String
5451
+ # resp.cors.allow_origins #=> Array
5452
+ # resp.cors.allow_origins[0] #=> String
5453
+ # resp.cors.expose_headers #=> Array
5454
+ # resp.cors.expose_headers[0] #=> String
5455
+ # resp.cors.max_age #=> Integer
5456
+ # resp.creation_time #=> Time
5457
+ # resp.last_modified_time #=> Time
5458
+ #
5459
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfig AWS API Documentation
5460
+ #
5461
+ # @overload update_function_url_config(params = {})
5462
+ # @param [Hash] params ({})
5463
+ def update_function_url_config(params = {}, options = {})
5464
+ req = build_request(:update_function_url_config, params)
5465
+ req.send_request(options)
5466
+ end
5467
+
5101
5468
  # @!endgroup
5102
5469
 
5103
5470
  # @param params ({})
@@ -5111,7 +5478,7 @@ module Aws::Lambda
5111
5478
  params: params,
5112
5479
  config: config)
5113
5480
  context[:gem_name] = 'aws-sdk-lambda'
5114
- context[:gem_version] = '1.70.0'
5481
+ context[:gem_version] = '1.74.0'
5115
5482
  Seahorse::Client::Request.new(handlers, context)
5116
5483
  end
5117
5484