aws-sdk-lambda 1.84.0 → 1.86.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +67 -16
- data/lib/aws-sdk-lambda/client_api.rb +12 -0
- data/lib/aws-sdk-lambda/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-lambda/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-lambda/endpoints.rb +897 -0
- data/lib/aws-sdk-lambda/plugins/endpoints.rb +194 -0
- data/lib/aws-sdk-lambda/types.rb +93 -11
- data/lib/aws-sdk-lambda.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cc23296256f1ddfbad01aa07762d0a333dcf8a639c9d3c1aadbb0d6bd699ea3
|
4
|
+
data.tar.gz: 542626e26266910a1bed5716e50b7f55c91cf76a00b1e6cc33fe993568a272a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b787be60d6488b54976c4f3370497fb5896a78c6dcd8e2a9761d0c2bc7ef3f6bccc436492782097251286e49942b020919c36710c79522274d9b0368f4af7ff
|
7
|
+
data.tar.gz: fd81f40f0dcb4f5f513b1682796fb296fc2e6b606185be89faf0a84a12001f45c9258a6eb126524103665945833a38cb6c41c110b636b8aadbb7bbc9909e5599
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.86.0 (2022-10-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.85.0 (2022-08-17)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Added support for customization of Consumer Group ID for MSK and Kafka Event Source Mappings.
|
13
|
+
|
4
14
|
1.84.0 (2022-05-12)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.86.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:lambda)
|
@@ -79,8 +79,9 @@ module Aws::Lambda
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::Lambda::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::Lambda
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::Lambda
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::Lambda::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Lambda::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -696,7 +713,7 @@ module Aws::Lambda
|
|
696
713
|
end
|
697
714
|
|
698
715
|
# Creates a mapping between an event source and an Lambda function.
|
699
|
-
# Lambda reads items from the event source and
|
716
|
+
# Lambda reads items from the event source and invokes the function.
|
700
717
|
#
|
701
718
|
# For details about how to configure different event sources, see the
|
702
719
|
# following topics.
|
@@ -713,7 +730,7 @@ module Aws::Lambda
|
|
713
730
|
#
|
714
731
|
# * [ Apache Kafka][6]
|
715
732
|
#
|
716
|
-
# The following error handling options are only
|
733
|
+
# The following error handling options are available only for stream
|
717
734
|
# sources (DynamoDB and Kinesis):
|
718
735
|
#
|
719
736
|
# * `BisectBatchOnFunctionError` - If the function returns an error,
|
@@ -816,7 +833,7 @@ module Aws::Lambda
|
|
816
833
|
# * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
|
817
834
|
# 10,000.
|
818
835
|
#
|
819
|
-
# * **Self-
|
836
|
+
# * **Self-managed Apache Kafka** - Default 100. Max 10,000.
|
820
837
|
#
|
821
838
|
# * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
|
822
839
|
#
|
@@ -846,7 +863,7 @@ module Aws::Lambda
|
|
846
863
|
# @option params [String] :starting_position
|
847
864
|
# The position in a stream from which to start reading. Required for
|
848
865
|
# Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
|
849
|
-
# `AT_TIMESTAMP` is only
|
866
|
+
# `AT_TIMESTAMP` is supported only for Amazon Kinesis streams.
|
850
867
|
#
|
851
868
|
# @option params [Time,DateTime,Date,Integer,String] :starting_position_timestamp
|
852
869
|
# With `StartingPosition` set to `AT_TIMESTAMP`, the time from which to
|
@@ -867,11 +884,11 @@ module Aws::Lambda
|
|
867
884
|
# @option params [Integer] :maximum_retry_attempts
|
868
885
|
# (Streams only) Discard records after the specified number of retries.
|
869
886
|
# The default value is infinite (-1). When set to infinite (-1), failed
|
870
|
-
# records
|
887
|
+
# records are retried until the record expires.
|
871
888
|
#
|
872
889
|
# @option params [Integer] :tumbling_window_in_seconds
|
873
890
|
# (Streams only) The duration in seconds of a processing window. The
|
874
|
-
# range is between 1 second
|
891
|
+
# range is between 1 second and 900 seconds.
|
875
892
|
#
|
876
893
|
# @option params [Array<String>] :topics
|
877
894
|
# The name of the Kafka topic.
|
@@ -884,12 +901,20 @@ module Aws::Lambda
|
|
884
901
|
# secure your event source.
|
885
902
|
#
|
886
903
|
# @option params [Types::SelfManagedEventSource] :self_managed_event_source
|
887
|
-
# The
|
904
|
+
# The self-managed Apache Kafka cluster to receive records from.
|
888
905
|
#
|
889
906
|
# @option params [Array<String>] :function_response_types
|
890
907
|
# (Streams and Amazon SQS) A list of current response type enums applied
|
891
908
|
# to the event source mapping.
|
892
909
|
#
|
910
|
+
# @option params [Types::AmazonManagedKafkaEventSourceConfig] :amazon_managed_kafka_event_source_config
|
911
|
+
# Specific configuration settings for an Amazon Managed Streaming for
|
912
|
+
# Apache Kafka (Amazon MSK) event source.
|
913
|
+
#
|
914
|
+
# @option params [Types::SelfManagedKafkaEventSourceConfig] :self_managed_kafka_event_source_config
|
915
|
+
# Specific configuration settings for a self-managed Apache Kafka event
|
916
|
+
# source.
|
917
|
+
#
|
893
918
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
894
919
|
#
|
895
920
|
# * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
|
@@ -915,6 +940,8 @@ module Aws::Lambda
|
|
915
940
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
916
941
|
# * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
|
917
942
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
943
|
+
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
944
|
+
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
918
945
|
#
|
919
946
|
# @example Request syntax with placeholder values
|
920
947
|
#
|
@@ -960,6 +987,12 @@ module Aws::Lambda
|
|
960
987
|
# },
|
961
988
|
# },
|
962
989
|
# function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
|
990
|
+
# amazon_managed_kafka_event_source_config: {
|
991
|
+
# consumer_group_id: "URI",
|
992
|
+
# },
|
993
|
+
# self_managed_kafka_event_source_config: {
|
994
|
+
# consumer_group_id: "URI",
|
995
|
+
# },
|
963
996
|
# })
|
964
997
|
#
|
965
998
|
# @example Response structure
|
@@ -996,6 +1029,8 @@ module Aws::Lambda
|
|
996
1029
|
# resp.tumbling_window_in_seconds #=> Integer
|
997
1030
|
# resp.function_response_types #=> Array
|
998
1031
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
1032
|
+
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
1033
|
+
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
999
1034
|
#
|
1000
1035
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
|
1001
1036
|
#
|
@@ -1577,6 +1612,8 @@ module Aws::Lambda
|
|
1577
1612
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
1578
1613
|
# * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
|
1579
1614
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
1615
|
+
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
1616
|
+
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
1580
1617
|
#
|
1581
1618
|
# @example Request syntax with placeholder values
|
1582
1619
|
#
|
@@ -1618,6 +1655,8 @@ module Aws::Lambda
|
|
1618
1655
|
# resp.tumbling_window_in_seconds #=> Integer
|
1619
1656
|
# resp.function_response_types #=> Array
|
1620
1657
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
1658
|
+
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
1659
|
+
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
1621
1660
|
#
|
1622
1661
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
|
1623
1662
|
#
|
@@ -2053,6 +2092,8 @@ module Aws::Lambda
|
|
2053
2092
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
2054
2093
|
# * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
|
2055
2094
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
2095
|
+
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
2096
|
+
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
2056
2097
|
#
|
2057
2098
|
# @example Request syntax with placeholder values
|
2058
2099
|
#
|
@@ -2094,6 +2135,8 @@ module Aws::Lambda
|
|
2094
2135
|
# resp.tumbling_window_in_seconds #=> Integer
|
2095
2136
|
# resp.function_response_types #=> Array
|
2096
2137
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
2138
|
+
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
2139
|
+
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
2097
2140
|
#
|
2098
2141
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
|
2099
2142
|
#
|
@@ -2869,7 +2912,8 @@ module Aws::Lambda
|
|
2869
2912
|
# for long connections with timeout or keep-alive settings.
|
2870
2913
|
#
|
2871
2914
|
# This operation requires permission for the [lambda:InvokeFunction][8]
|
2872
|
-
# action.
|
2915
|
+
# action. For details on how to set up permissions for cross-account
|
2916
|
+
# invocations, see [Granting function access to other accounts][9].
|
2873
2917
|
#
|
2874
2918
|
#
|
2875
2919
|
#
|
@@ -2881,6 +2925,7 @@ module Aws::Lambda
|
|
2881
2925
|
# [6]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq
|
2882
2926
|
# [7]: https://docs.aws.amazon.com/lambda/latest/dg/limits.html
|
2883
2927
|
# [8]: https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html
|
2928
|
+
# [9]: https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountinvoke
|
2884
2929
|
#
|
2885
2930
|
# @option params [required, String] :function_name
|
2886
2931
|
# The name of the Lambda function, version, or alias.
|
@@ -3134,7 +3179,7 @@ module Aws::Lambda
|
|
3134
3179
|
req.send_request(options)
|
3135
3180
|
end
|
3136
3181
|
|
3137
|
-
# Lists event source mappings. Specify an `EventSourceArn` to only
|
3182
|
+
# Lists event source mappings. Specify an `EventSourceArn` to show only
|
3138
3183
|
# event source mappings for a single event source.
|
3139
3184
|
#
|
3140
3185
|
# @option params [String] :event_source_arn
|
@@ -3228,6 +3273,8 @@ module Aws::Lambda
|
|
3228
3273
|
# resp.event_source_mappings[0].tumbling_window_in_seconds #=> Integer
|
3229
3274
|
# resp.event_source_mappings[0].function_response_types #=> Array
|
3230
3275
|
# resp.event_source_mappings[0].function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
3276
|
+
# resp.event_source_mappings[0].amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
3277
|
+
# resp.event_source_mappings[0].self_managed_kafka_event_source_config.consumer_group_id #=> String
|
3231
3278
|
#
|
3232
3279
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
|
3233
3280
|
#
|
@@ -4733,7 +4780,7 @@ module Aws::Lambda
|
|
4733
4780
|
#
|
4734
4781
|
# * [ Apache Kafka][6]
|
4735
4782
|
#
|
4736
|
-
# The following error handling options are only
|
4783
|
+
# The following error handling options are available only for stream
|
4737
4784
|
# sources (DynamoDB and Kinesis):
|
4738
4785
|
#
|
4739
4786
|
# * `BisectBatchOnFunctionError` - If the function returns an error,
|
@@ -4826,7 +4873,7 @@ module Aws::Lambda
|
|
4826
4873
|
# * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
|
4827
4874
|
# 10,000.
|
4828
4875
|
#
|
4829
|
-
# * **Self-
|
4876
|
+
# * **Self-managed Apache Kafka** - Default 100. Max 10,000.
|
4830
4877
|
#
|
4831
4878
|
# * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
|
4832
4879
|
#
|
@@ -4864,7 +4911,7 @@ module Aws::Lambda
|
|
4864
4911
|
# @option params [Integer] :maximum_retry_attempts
|
4865
4912
|
# (Streams only) Discard records after the specified number of retries.
|
4866
4913
|
# The default value is infinite (-1). When set to infinite (-1), failed
|
4867
|
-
# records
|
4914
|
+
# records are retried until the record expires.
|
4868
4915
|
#
|
4869
4916
|
# @option params [Integer] :parallelization_factor
|
4870
4917
|
# (Streams only) The number of batches to process from each shard
|
@@ -4876,7 +4923,7 @@ module Aws::Lambda
|
|
4876
4923
|
#
|
4877
4924
|
# @option params [Integer] :tumbling_window_in_seconds
|
4878
4925
|
# (Streams only) The duration in seconds of a processing window. The
|
4879
|
-
# range is between 1 second
|
4926
|
+
# range is between 1 second and 900 seconds.
|
4880
4927
|
#
|
4881
4928
|
# @option params [Array<String>] :function_response_types
|
4882
4929
|
# (Streams and Amazon SQS) A list of current response type enums applied
|
@@ -4907,6 +4954,8 @@ module Aws::Lambda
|
|
4907
4954
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
4908
4955
|
# * {Types::EventSourceMappingConfiguration#tumbling_window_in_seconds #tumbling_window_in_seconds} => Integer
|
4909
4956
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
4957
|
+
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
4958
|
+
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
4910
4959
|
#
|
4911
4960
|
# @example Request syntax with placeholder values
|
4912
4961
|
#
|
@@ -4979,6 +5028,8 @@ module Aws::Lambda
|
|
4979
5028
|
# resp.tumbling_window_in_seconds #=> Integer
|
4980
5029
|
# resp.function_response_types #=> Array
|
4981
5030
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
5031
|
+
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
5032
|
+
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
4982
5033
|
#
|
4983
5034
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
|
4984
5035
|
#
|
@@ -5682,7 +5733,7 @@ module Aws::Lambda
|
|
5682
5733
|
params: params,
|
5683
5734
|
config: config)
|
5684
5735
|
context[:gem_name] = 'aws-sdk-lambda'
|
5685
|
-
context[:gem_version] = '1.
|
5736
|
+
context[:gem_version] = '1.86.0'
|
5686
5737
|
Seahorse::Client::Request.new(handlers, context)
|
5687
5738
|
end
|
5688
5739
|
|
@@ -30,6 +30,7 @@ module Aws::Lambda
|
|
30
30
|
AllowMethodsList = Shapes::ListShape.new(name: 'AllowMethodsList')
|
31
31
|
AllowOriginsList = Shapes::ListShape.new(name: 'AllowOriginsList')
|
32
32
|
AllowedPublishers = Shapes::StructureShape.new(name: 'AllowedPublishers')
|
33
|
+
AmazonManagedKafkaEventSourceConfig = Shapes::StructureShape.new(name: 'AmazonManagedKafkaEventSourceConfig')
|
33
34
|
Architecture = Shapes::StringShape.new(name: 'Architecture')
|
34
35
|
ArchitecturesList = Shapes::ListShape.new(name: 'ArchitecturesList')
|
35
36
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
@@ -281,6 +282,7 @@ module Aws::Lambda
|
|
281
282
|
SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
|
282
283
|
SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
|
283
284
|
SelfManagedEventSource = Shapes::StructureShape.new(name: 'SelfManagedEventSource')
|
285
|
+
SelfManagedKafkaEventSourceConfig = Shapes::StructureShape.new(name: 'SelfManagedKafkaEventSourceConfig')
|
284
286
|
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
285
287
|
ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
|
286
288
|
SigningProfileVersionArns = Shapes::ListShape.new(name: 'SigningProfileVersionArns')
|
@@ -395,6 +397,9 @@ module Aws::Lambda
|
|
395
397
|
AllowedPublishers.add_member(:signing_profile_version_arns, Shapes::ShapeRef.new(shape: SigningProfileVersionArns, required: true, location_name: "SigningProfileVersionArns"))
|
396
398
|
AllowedPublishers.struct_class = Types::AllowedPublishers
|
397
399
|
|
400
|
+
AmazonManagedKafkaEventSourceConfig.add_member(:consumer_group_id, Shapes::ShapeRef.new(shape: URI, location_name: "ConsumerGroupId"))
|
401
|
+
AmazonManagedKafkaEventSourceConfig.struct_class = Types::AmazonManagedKafkaEventSourceConfig
|
402
|
+
|
398
403
|
ArchitecturesList.member = Shapes::ShapeRef.new(shape: Architecture)
|
399
404
|
|
400
405
|
CodeSigningConfig.add_member(:code_signing_config_id, Shapes::ShapeRef.new(shape: CodeSigningConfigId, required: true, location_name: "CodeSigningConfigId"))
|
@@ -471,6 +476,8 @@ module Aws::Lambda
|
|
471
476
|
CreateEventSourceMappingRequest.add_member(:source_access_configurations, Shapes::ShapeRef.new(shape: SourceAccessConfigurations, location_name: "SourceAccessConfigurations"))
|
472
477
|
CreateEventSourceMappingRequest.add_member(:self_managed_event_source, Shapes::ShapeRef.new(shape: SelfManagedEventSource, location_name: "SelfManagedEventSource"))
|
473
478
|
CreateEventSourceMappingRequest.add_member(:function_response_types, Shapes::ShapeRef.new(shape: FunctionResponseTypeList, location_name: "FunctionResponseTypes"))
|
479
|
+
CreateEventSourceMappingRequest.add_member(:amazon_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: AmazonManagedKafkaEventSourceConfig, location_name: "AmazonManagedKafkaEventSourceConfig"))
|
480
|
+
CreateEventSourceMappingRequest.add_member(:self_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: SelfManagedKafkaEventSourceConfig, location_name: "SelfManagedKafkaEventSourceConfig"))
|
474
481
|
CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
|
475
482
|
|
476
483
|
CreateFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
|
@@ -633,6 +640,8 @@ module Aws::Lambda
|
|
633
640
|
EventSourceMappingConfiguration.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttemptsEventSourceMapping, location_name: "MaximumRetryAttempts"))
|
634
641
|
EventSourceMappingConfiguration.add_member(:tumbling_window_in_seconds, Shapes::ShapeRef.new(shape: TumblingWindowInSeconds, location_name: "TumblingWindowInSeconds"))
|
635
642
|
EventSourceMappingConfiguration.add_member(:function_response_types, Shapes::ShapeRef.new(shape: FunctionResponseTypeList, location_name: "FunctionResponseTypes"))
|
643
|
+
EventSourceMappingConfiguration.add_member(:amazon_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: AmazonManagedKafkaEventSourceConfig, location_name: "AmazonManagedKafkaEventSourceConfig"))
|
644
|
+
EventSourceMappingConfiguration.add_member(:self_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: SelfManagedKafkaEventSourceConfig, location_name: "SelfManagedKafkaEventSourceConfig"))
|
636
645
|
EventSourceMappingConfiguration.struct_class = Types::EventSourceMappingConfiguration
|
637
646
|
|
638
647
|
EventSourceMappingsList.member = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
|
@@ -1195,6 +1204,9 @@ module Aws::Lambda
|
|
1195
1204
|
SelfManagedEventSource.add_member(:endpoints, Shapes::ShapeRef.new(shape: Endpoints, location_name: "Endpoints"))
|
1196
1205
|
SelfManagedEventSource.struct_class = Types::SelfManagedEventSource
|
1197
1206
|
|
1207
|
+
SelfManagedKafkaEventSourceConfig.add_member(:consumer_group_id, Shapes::ShapeRef.new(shape: URI, location_name: "ConsumerGroupId"))
|
1208
|
+
SelfManagedKafkaEventSourceConfig.struct_class = Types::SelfManagedKafkaEventSourceConfig
|
1209
|
+
|
1198
1210
|
ServiceException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
1199
1211
|
ServiceException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
1200
1212
|
ServiceException.struct_class = Types::ServiceException
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Lambda
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Lambda
|
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
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
e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