aws-sdk-lambda 1.88.0 → 1.90.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d06b72b1ea369c0f3e1755de8e32500499f002dc2f39eacef1ad56184a424b38
4
- data.tar.gz: d899618314e5c8ca564af8bc8b2a20ba2d664a3b17ce696b65f1ce99eb90a2fb
3
+ metadata.gz: e0c78bb292ba92fa13626962aa2e99e0de106e172818d90d4f1912d1d4365f7c
4
+ data.tar.gz: e76502a4195779dd993539937f8a2bbc58e0032dc0d2ffa7fadc9d4a45f4156e
5
5
  SHA512:
6
- metadata.gz: 28a053035db594c600253629f2e77898ca82ad6a0cf82bb8725529ad82688ba24120aa9cdc48bf3da5c26ab44af4d0ff9982b3f7d762e007d7e3134bb221cbe9
7
- data.tar.gz: 295cc1a6163c532e7b685c3b78de3cfb5e531dedef30f5d874518c28be69f0dc3a697e82f7f46f8a17ed02217ee2e8e711e4910a4c4f018504c103bd78a20cb7
6
+ metadata.gz: a4aef2e87fe2453c0b5038596ba1131cf21d08c5803fe000bce3faeacaf40d0f83f2b849268a9b2ced945af7aa6472e32bb5ac3d4482f7d4b409095008607dc7
7
+ data.tar.gz: c3b6d3139a24b01e6aed78d798aa2da9c16e7058f2f734fc82ad20141e13017b933b8210ab96a87cdfd16d5fcc117015796024c54b4c522102a35a00079eca65
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.90.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.89.0 (2023-01-12)
12
+ ------------------
13
+
14
+ * Feature - Add support for MaximumConcurrency parameter for SQS event source. Customers can now limit the maximum concurrent invocations for their SQS Event Source Mapping.
15
+
4
16
  1.88.0 (2022-11-29)
5
17
  ------------------
6
18
 
@@ -530,4 +542,4 @@ Unreleased Changes
530
542
  1.0.0.rc1 (2016-12-05)
531
543
  ------------------
532
544
 
533
- * Feature - Initial preview release of the `aws-sdk-lambda` gem.
545
+ * Feature - Initial preview release of the `aws-sdk-lambda` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.88.0
1
+ 1.90.0
@@ -733,21 +733,21 @@ module Aws::Lambda
733
733
  # The following error handling options are available only for stream
734
734
  # sources (DynamoDB and Kinesis):
735
735
  #
736
- # * `BisectBatchOnFunctionError` - If the function returns an error,
736
+ # * `BisectBatchOnFunctionError` If the function returns an error,
737
737
  # split the batch in two and retry.
738
738
  #
739
- # * `DestinationConfig` - Send discarded records to an Amazon SQS queue
739
+ # * `DestinationConfig` Send discarded records to an Amazon SQS queue
740
740
  # or Amazon SNS topic.
741
741
  #
742
- # * `MaximumRecordAgeInSeconds` - Discard records older than the
742
+ # * `MaximumRecordAgeInSeconds` Discard records older than the
743
743
  # specified age. The default value is infinite (-1). When set to
744
744
  # infinite (-1), failed records are retried until the record expires
745
745
  #
746
- # * `MaximumRetryAttempts` - Discard records after the specified number
746
+ # * `MaximumRetryAttempts` Discard records after the specified number
747
747
  # of retries. The default value is infinite (-1). When set to infinite
748
748
  # (-1), failed records are retried until the record expires.
749
749
  #
750
- # * `ParallelizationFactor` - Process multiple batches from each shard
750
+ # * `ParallelizationFactor` Process multiple batches from each shard
751
751
  # concurrently.
752
752
  #
753
753
  # For information about which configuration parameters apply to each
@@ -783,32 +783,32 @@ module Aws::Lambda
783
783
  # @option params [String] :event_source_arn
784
784
  # The Amazon Resource Name (ARN) of the event source.
785
785
  #
786
- # * **Amazon Kinesis** - The ARN of the data stream or a stream
786
+ # * **Amazon Kinesis** The ARN of the data stream or a stream
787
787
  # consumer.
788
788
  #
789
- # * **Amazon DynamoDB Streams** - The ARN of the stream.
789
+ # * **Amazon DynamoDB Streams** The ARN of the stream.
790
790
  #
791
- # * **Amazon Simple Queue Service** - The ARN of the queue.
791
+ # * **Amazon Simple Queue Service** The ARN of the queue.
792
792
  #
793
- # * **Amazon Managed Streaming for Apache Kafka** - The ARN of the
793
+ # * **Amazon Managed Streaming for Apache Kafka** The ARN of the
794
794
  # cluster.
795
795
  #
796
- # * **Amazon MQ** - The ARN of the broker.
796
+ # * **Amazon MQ** The ARN of the broker.
797
797
  #
798
798
  # @option params [required, String] :function_name
799
799
  # The name of the Lambda function.
800
800
  #
801
801
  # **Name formats**
802
802
  #
803
- # * **Function name** - `MyFunction`.
803
+ # * **Function name** `MyFunction`.
804
804
  #
805
- # * **Function ARN** -
805
+ # * **Function ARN**
806
806
  # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
807
807
  #
808
- # * **Version or Alias ARN** -
808
+ # * **Version or Alias ARN**
809
809
  # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`.
810
810
  #
811
- # * **Partial ARN** - `123456789012:function:MyFunction`.
811
+ # * **Partial ARN** `123456789012:function:MyFunction`.
812
812
  #
813
813
  # The length constraint applies only to the full ARN. If you specify
814
814
  # only the function name, it's limited to 64 characters in length.
@@ -825,19 +825,19 @@ module Aws::Lambda
825
825
  # the records in the batch to the function in a single call, up to the
826
826
  # payload limit for synchronous invocation (6 MB).
827
827
  #
828
- # * **Amazon Kinesis** - Default 100. Max 10,000.
828
+ # * **Amazon Kinesis** Default 100. Max 10,000.
829
829
  #
830
- # * **Amazon DynamoDB Streams** - Default 100. Max 10,000.
830
+ # * **Amazon DynamoDB Streams** Default 100. Max 10,000.
831
831
  #
832
- # * **Amazon Simple Queue Service** - Default 10. For standard queues
832
+ # * **Amazon Simple Queue Service** Default 10. For standard queues
833
833
  # the max is 10,000. For FIFO queues the max is 10.
834
834
  #
835
- # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
835
+ # * **Amazon Managed Streaming for Apache Kafka** Default 100. Max
836
836
  # 10,000.
837
837
  #
838
- # * **Self-managed Apache Kafka** - Default 100. Max 10,000.
838
+ # * **Self-managed Apache Kafka** Default 100. Max 10,000.
839
839
  #
840
- # * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
840
+ # * **Amazon MQ (ActiveMQ and RabbitMQ)** Default 100. Max 10,000.
841
841
  #
842
842
  # @option params [Types::FilterCriteria] :filter_criteria
843
843
  # An object that defines the filter criteria that determine whether
@@ -925,6 +925,15 @@ module Aws::Lambda
925
925
  # Specific configuration settings for a self-managed Apache Kafka event
926
926
  # source.
927
927
  #
928
+ # @option params [Types::ScalingConfig] :scaling_config
929
+ # (Amazon SQS only) The scaling configuration for the event source. For
930
+ # more information, see [Configuring maximum concurrency for Amazon SQS
931
+ # event sources][1].
932
+ #
933
+ #
934
+ #
935
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency
936
+ #
928
937
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
929
938
  #
930
939
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
@@ -952,6 +961,7 @@ module Aws::Lambda
952
961
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
953
962
  # * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
954
963
  # * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
964
+ # * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
955
965
  #
956
966
  # @example Request syntax with placeholder values
957
967
  #
@@ -1003,6 +1013,9 @@ module Aws::Lambda
1003
1013
  # self_managed_kafka_event_source_config: {
1004
1014
  # consumer_group_id: "URI",
1005
1015
  # },
1016
+ # scaling_config: {
1017
+ # maximum_concurrency: 1,
1018
+ # },
1006
1019
  # })
1007
1020
  #
1008
1021
  # @example Response structure
@@ -1041,6 +1054,7 @@ module Aws::Lambda
1041
1054
  # resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
1042
1055
  # resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
1043
1056
  # resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
1057
+ # resp.scaling_config.maximum_concurrency #=> Integer
1044
1058
  #
1045
1059
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
1046
1060
  #
@@ -1638,6 +1652,7 @@ module Aws::Lambda
1638
1652
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
1639
1653
  # * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
1640
1654
  # * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
1655
+ # * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
1641
1656
  #
1642
1657
  # @example Request syntax with placeholder values
1643
1658
  #
@@ -1681,6 +1696,7 @@ module Aws::Lambda
1681
1696
  # resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
1682
1697
  # resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
1683
1698
  # resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
1699
+ # resp.scaling_config.maximum_concurrency #=> Integer
1684
1700
  #
1685
1701
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
1686
1702
  #
@@ -2118,6 +2134,7 @@ module Aws::Lambda
2118
2134
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
2119
2135
  # * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
2120
2136
  # * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
2137
+ # * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
2121
2138
  #
2122
2139
  # @example Request syntax with placeholder values
2123
2140
  #
@@ -2161,6 +2178,7 @@ module Aws::Lambda
2161
2178
  # resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
2162
2179
  # resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
2163
2180
  # resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
2181
+ # resp.scaling_config.maximum_concurrency #=> Integer
2164
2182
  #
2165
2183
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
2166
2184
  #
@@ -3216,32 +3234,32 @@ module Aws::Lambda
3216
3234
  # @option params [String] :event_source_arn
3217
3235
  # The Amazon Resource Name (ARN) of the event source.
3218
3236
  #
3219
- # * **Amazon Kinesis** - The ARN of the data stream or a stream
3237
+ # * **Amazon Kinesis** The ARN of the data stream or a stream
3220
3238
  # consumer.
3221
3239
  #
3222
- # * **Amazon DynamoDB Streams** - The ARN of the stream.
3240
+ # * **Amazon DynamoDB Streams** The ARN of the stream.
3223
3241
  #
3224
- # * **Amazon Simple Queue Service** - The ARN of the queue.
3242
+ # * **Amazon Simple Queue Service** The ARN of the queue.
3225
3243
  #
3226
- # * **Amazon Managed Streaming for Apache Kafka** - The ARN of the
3244
+ # * **Amazon Managed Streaming for Apache Kafka** The ARN of the
3227
3245
  # cluster.
3228
3246
  #
3229
- # * **Amazon MQ** - The ARN of the broker.
3247
+ # * **Amazon MQ** The ARN of the broker.
3230
3248
  #
3231
3249
  # @option params [String] :function_name
3232
3250
  # The name of the Lambda function.
3233
3251
  #
3234
3252
  # **Name formats**
3235
3253
  #
3236
- # * **Function name** - `MyFunction`.
3254
+ # * **Function name** `MyFunction`.
3237
3255
  #
3238
- # * **Function ARN** -
3256
+ # * **Function ARN**
3239
3257
  # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
3240
3258
  #
3241
- # * **Version or Alias ARN** -
3259
+ # * **Version or Alias ARN**
3242
3260
  # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`.
3243
3261
  #
3244
- # * **Partial ARN** - `123456789012:function:MyFunction`.
3262
+ # * **Partial ARN** `123456789012:function:MyFunction`.
3245
3263
  #
3246
3264
  # The length constraint applies only to the full ARN. If you specify
3247
3265
  # only the function name, it's limited to 64 characters in length.
@@ -3308,6 +3326,7 @@ module Aws::Lambda
3308
3326
  # resp.event_source_mappings[0].function_response_types[0] #=> String, one of "ReportBatchItemFailures"
3309
3327
  # resp.event_source_mappings[0].amazon_managed_kafka_event_source_config.consumer_group_id #=> String
3310
3328
  # resp.event_source_mappings[0].self_managed_kafka_event_source_config.consumer_group_id #=> String
3329
+ # resp.event_source_mappings[0].scaling_config.maximum_concurrency #=> Integer
3311
3330
  #
3312
3331
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
3313
3332
  #
@@ -4823,21 +4842,21 @@ module Aws::Lambda
4823
4842
  # The following error handling options are available only for stream
4824
4843
  # sources (DynamoDB and Kinesis):
4825
4844
  #
4826
- # * `BisectBatchOnFunctionError` - If the function returns an error,
4845
+ # * `BisectBatchOnFunctionError` If the function returns an error,
4827
4846
  # split the batch in two and retry.
4828
4847
  #
4829
- # * `DestinationConfig` - Send discarded records to an Amazon SQS queue
4848
+ # * `DestinationConfig` Send discarded records to an Amazon SQS queue
4830
4849
  # or Amazon SNS topic.
4831
4850
  #
4832
- # * `MaximumRecordAgeInSeconds` - Discard records older than the
4851
+ # * `MaximumRecordAgeInSeconds` Discard records older than the
4833
4852
  # specified age. The default value is infinite (-1). When set to
4834
4853
  # infinite (-1), failed records are retried until the record expires
4835
4854
  #
4836
- # * `MaximumRetryAttempts` - Discard records after the specified number
4855
+ # * `MaximumRetryAttempts` Discard records after the specified number
4837
4856
  # of retries. The default value is infinite (-1). When set to infinite
4838
4857
  # (-1), failed records are retried until the record expires.
4839
4858
  #
4840
- # * `ParallelizationFactor` - Process multiple batches from each shard
4859
+ # * `ParallelizationFactor` Process multiple batches from each shard
4841
4860
  # concurrently.
4842
4861
  #
4843
4862
  # For information about which configuration parameters apply to each
@@ -4878,15 +4897,15 @@ module Aws::Lambda
4878
4897
  #
4879
4898
  # **Name formats**
4880
4899
  #
4881
- # * **Function name** - `MyFunction`.
4900
+ # * **Function name** `MyFunction`.
4882
4901
  #
4883
- # * **Function ARN** -
4902
+ # * **Function ARN**
4884
4903
  # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
4885
4904
  #
4886
- # * **Version or Alias ARN** -
4905
+ # * **Version or Alias ARN**
4887
4906
  # `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`.
4888
4907
  #
4889
- # * **Partial ARN** - `123456789012:function:MyFunction`.
4908
+ # * **Partial ARN** `123456789012:function:MyFunction`.
4890
4909
  #
4891
4910
  # The length constraint applies only to the full ARN. If you specify
4892
4911
  # only the function name, it's limited to 64 characters in length.
@@ -4903,19 +4922,19 @@ module Aws::Lambda
4903
4922
  # the records in the batch to the function in a single call, up to the
4904
4923
  # payload limit for synchronous invocation (6 MB).
4905
4924
  #
4906
- # * **Amazon Kinesis** - Default 100. Max 10,000.
4925
+ # * **Amazon Kinesis** Default 100. Max 10,000.
4907
4926
  #
4908
- # * **Amazon DynamoDB Streams** - Default 100. Max 10,000.
4927
+ # * **Amazon DynamoDB Streams** Default 100. Max 10,000.
4909
4928
  #
4910
- # * **Amazon Simple Queue Service** - Default 10. For standard queues
4929
+ # * **Amazon Simple Queue Service** Default 10. For standard queues
4911
4930
  # the max is 10,000. For FIFO queues the max is 10.
4912
4931
  #
4913
- # * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
4932
+ # * **Amazon Managed Streaming for Apache Kafka** Default 100. Max
4914
4933
  # 10,000.
4915
4934
  #
4916
- # * **Self-managed Apache Kafka** - Default 100. Max 10,000.
4935
+ # * **Self-managed Apache Kafka** Default 100. Max 10,000.
4917
4936
  #
4918
- # * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
4937
+ # * **Amazon MQ (ActiveMQ and RabbitMQ)** Default 100. Max 10,000.
4919
4938
  #
4920
4939
  # @option params [Types::FilterCriteria] :filter_criteria
4921
4940
  # An object that defines the filter criteria that determine whether
@@ -4977,6 +4996,15 @@ module Aws::Lambda
4977
4996
  # (Streams and Amazon SQS) A list of current response type enums applied
4978
4997
  # to the event source mapping.
4979
4998
  #
4999
+ # @option params [Types::ScalingConfig] :scaling_config
5000
+ # (Amazon SQS only) The scaling configuration for the event source. For
5001
+ # more information, see [Configuring maximum concurrency for Amazon SQS
5002
+ # event sources][1].
5003
+ #
5004
+ #
5005
+ #
5006
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency
5007
+ #
4980
5008
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4981
5009
  #
4982
5010
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
@@ -5004,6 +5032,7 @@ module Aws::Lambda
5004
5032
  # * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
5005
5033
  # * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
5006
5034
  # * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
5035
+ # * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
5007
5036
  #
5008
5037
  # @example Request syntax with placeholder values
5009
5038
  #
@@ -5040,6 +5069,9 @@ module Aws::Lambda
5040
5069
  # ],
5041
5070
  # tumbling_window_in_seconds: 1,
5042
5071
  # function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
5072
+ # scaling_config: {
5073
+ # maximum_concurrency: 1,
5074
+ # },
5043
5075
  # })
5044
5076
  #
5045
5077
  # @example Response structure
@@ -5078,6 +5110,7 @@ module Aws::Lambda
5078
5110
  # resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
5079
5111
  # resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
5080
5112
  # resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
5113
+ # resp.scaling_config.maximum_concurrency #=> Integer
5081
5114
  #
5082
5115
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
5083
5116
  #
@@ -5796,7 +5829,7 @@ module Aws::Lambda
5796
5829
  params: params,
5797
5830
  config: config)
5798
5831
  context[:gem_name] = 'aws-sdk-lambda'
5799
- context[:gem_version] = '1.88.0'
5832
+ context[:gem_version] = '1.90.0'
5800
5833
  Seahorse::Client::Request.new(handlers, context)
5801
5834
  end
5802
5835
 
@@ -227,6 +227,7 @@ module Aws::Lambda
227
227
  MaxListItems = Shapes::IntegerShape.new(name: 'MaxListItems')
228
228
  MaxProvisionedConcurrencyConfigListItems = Shapes::IntegerShape.new(name: 'MaxProvisionedConcurrencyConfigListItems')
229
229
  MaximumBatchingWindowInSeconds = Shapes::IntegerShape.new(name: 'MaximumBatchingWindowInSeconds')
230
+ MaximumConcurrency = Shapes::IntegerShape.new(name: 'MaximumConcurrency')
230
231
  MaximumEventAgeInSeconds = Shapes::IntegerShape.new(name: 'MaximumEventAgeInSeconds')
231
232
  MaximumRecordAgeInSeconds = Shapes::IntegerShape.new(name: 'MaximumRecordAgeInSeconds')
232
233
  MaximumRetryAttempts = Shapes::IntegerShape.new(name: 'MaximumRetryAttempts')
@@ -279,6 +280,7 @@ module Aws::Lambda
279
280
  S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
280
281
  S3Key = Shapes::StringShape.new(name: 'S3Key')
281
282
  S3ObjectVersion = Shapes::StringShape.new(name: 'S3ObjectVersion')
283
+ ScalingConfig = Shapes::StructureShape.new(name: 'ScalingConfig')
282
284
  SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
283
285
  SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
284
286
  SelfManagedEventSource = Shapes::StructureShape.new(name: 'SelfManagedEventSource')
@@ -485,6 +487,7 @@ module Aws::Lambda
485
487
  CreateEventSourceMappingRequest.add_member(:function_response_types, Shapes::ShapeRef.new(shape: FunctionResponseTypeList, location_name: "FunctionResponseTypes"))
486
488
  CreateEventSourceMappingRequest.add_member(:amazon_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: AmazonManagedKafkaEventSourceConfig, location_name: "AmazonManagedKafkaEventSourceConfig"))
487
489
  CreateEventSourceMappingRequest.add_member(:self_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: SelfManagedKafkaEventSourceConfig, location_name: "SelfManagedKafkaEventSourceConfig"))
490
+ CreateEventSourceMappingRequest.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
488
491
  CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
489
492
 
490
493
  CreateFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
@@ -650,6 +653,7 @@ module Aws::Lambda
650
653
  EventSourceMappingConfiguration.add_member(:function_response_types, Shapes::ShapeRef.new(shape: FunctionResponseTypeList, location_name: "FunctionResponseTypes"))
651
654
  EventSourceMappingConfiguration.add_member(:amazon_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: AmazonManagedKafkaEventSourceConfig, location_name: "AmazonManagedKafkaEventSourceConfig"))
652
655
  EventSourceMappingConfiguration.add_member(:self_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: SelfManagedKafkaEventSourceConfig, location_name: "SelfManagedKafkaEventSourceConfig"))
656
+ EventSourceMappingConfiguration.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
653
657
  EventSourceMappingConfiguration.struct_class = Types::EventSourceMappingConfiguration
654
658
 
655
659
  EventSourceMappingsList.member = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
@@ -1208,6 +1212,9 @@ module Aws::Lambda
1208
1212
  ResourceNotReadyException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
1209
1213
  ResourceNotReadyException.struct_class = Types::ResourceNotReadyException
1210
1214
 
1215
+ ScalingConfig.add_member(:maximum_concurrency, Shapes::ShapeRef.new(shape: MaximumConcurrency, location_name: "MaximumConcurrency"))
1216
+ ScalingConfig.struct_class = Types::ScalingConfig
1217
+
1211
1218
  SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
1212
1219
 
1213
1220
  SelfManagedEventSource.add_member(:endpoints, Shapes::ShapeRef.new(shape: Endpoints, location_name: "Endpoints"))
@@ -1317,6 +1324,7 @@ module Aws::Lambda
1317
1324
  UpdateEventSourceMappingRequest.add_member(:source_access_configurations, Shapes::ShapeRef.new(shape: SourceAccessConfigurations, location_name: "SourceAccessConfigurations"))
1318
1325
  UpdateEventSourceMappingRequest.add_member(:tumbling_window_in_seconds, Shapes::ShapeRef.new(shape: TumblingWindowInSeconds, location_name: "TumblingWindowInSeconds"))
1319
1326
  UpdateEventSourceMappingRequest.add_member(:function_response_types, Shapes::ShapeRef.new(shape: FunctionResponseTypeList, location_name: "FunctionResponseTypes"))
1327
+ UpdateEventSourceMappingRequest.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
1320
1328
  UpdateEventSourceMappingRequest.struct_class = Types::UpdateEventSourceMappingRequest
1321
1329
 
1322
1330
  UpdateFunctionCodeRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::Lambda
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://lambda-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://lambda-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://lambda.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://lambda.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiw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