aws-sdk-lambda 1.51.0 → 1.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lambda.rb +1 -1
- data/lib/aws-sdk-lambda/client.rb +84 -7
- data/lib/aws-sdk-lambda/client_api.rb +18 -0
- data/lib/aws-sdk-lambda/types.rb +121 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8eac0e0f27e4bdd34c10a2763bf22c16bb1a9a393ce307a7a156c579f6e7a6d2
|
4
|
+
data.tar.gz: 118425f1298b1c16684a42771ef91a5a5502b5a3527667c9a7485d7480a9cc0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2191ed295610baf87860d4161992eba10a84b6e71df35f2688fc18ff34c272277e00b0a94a5a2546029fd94950663c3435e60ad8b56ff6bc869975363cc5adc
|
7
|
+
data.tar.gz: eb7ae0a08f21febc592e2ed6812908c42b995efea7526edd63d2d2e616dc07239609083e72fca390d1c58da02d21513c765f1e989033358db446b917624c79b9
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -687,11 +687,12 @@ module Aws::Lambda
|
|
687
687
|
# or Amazon SNS topic.
|
688
688
|
#
|
689
689
|
# * `MaximumRecordAgeInSeconds` - Discard records older than the
|
690
|
-
# specified age.
|
690
|
+
# specified age. The default value is infinite (-1). When set to
|
691
|
+
# infinite (-1), failed records are retried until the record expires
|
691
692
|
#
|
692
693
|
# * `MaximumRetryAttempts` - Discard records after the specified number
|
693
|
-
# of retries.
|
694
|
-
#
|
694
|
+
# of retries. The default value is infinite (-1). When set to infinite
|
695
|
+
# (-1), failed records are retried until the record expires.
|
695
696
|
#
|
696
697
|
# * `ParallelizationFactor` - Process multiple batches from each shard
|
697
698
|
# concurrently.
|
@@ -787,6 +788,22 @@ module Aws::Lambda
|
|
787
788
|
# @option params [Array<String>] :topics
|
788
789
|
# (MSK) The name of the Kafka topic.
|
789
790
|
#
|
791
|
+
# @option params [Array<String>] :queues
|
792
|
+
# (MQ) The name of the Amazon MQ broker destination queue to consume.
|
793
|
+
#
|
794
|
+
# @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
|
795
|
+
# (MQ) The Secrets Manager secret that stores your broker credentials.
|
796
|
+
# To store your secret, use the following format: ` \{ "username": "your
|
797
|
+
# username", "password": "your password" \}`
|
798
|
+
#
|
799
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
800
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
801
|
+
#
|
802
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret, you
|
803
|
+
# can use customer or service managed keys. When using a customer
|
804
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
805
|
+
# permissions.
|
806
|
+
#
|
790
807
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
791
808
|
#
|
792
809
|
# * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
|
@@ -801,6 +818,8 @@ module Aws::Lambda
|
|
801
818
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
802
819
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
803
820
|
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
821
|
+
# * {Types::EventSourceMappingConfiguration#queues #queues} => Array<String>
|
822
|
+
# * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array<Types::SourceAccessConfiguration>
|
804
823
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
805
824
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
806
825
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -850,6 +869,13 @@ module Aws::Lambda
|
|
850
869
|
# bisect_batch_on_function_error: false,
|
851
870
|
# maximum_retry_attempts: 1,
|
852
871
|
# topics: ["Topic"],
|
872
|
+
# queues: ["Queue"],
|
873
|
+
# source_access_configurations: [
|
874
|
+
# {
|
875
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH
|
876
|
+
# uri: "Arn",
|
877
|
+
# },
|
878
|
+
# ],
|
853
879
|
# })
|
854
880
|
#
|
855
881
|
# @example Response structure
|
@@ -868,6 +894,11 @@ module Aws::Lambda
|
|
868
894
|
# resp.destination_config.on_failure.destination #=> String
|
869
895
|
# resp.topics #=> Array
|
870
896
|
# resp.topics[0] #=> String
|
897
|
+
# resp.queues #=> Array
|
898
|
+
# resp.queues[0] #=> String
|
899
|
+
# resp.source_access_configurations #=> Array
|
900
|
+
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
|
901
|
+
# resp.source_access_configurations[0].uri #=> String
|
871
902
|
# resp.maximum_record_age_in_seconds #=> Integer
|
872
903
|
# resp.bisect_batch_on_function_error #=> Boolean
|
873
904
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -1299,6 +1330,8 @@ module Aws::Lambda
|
|
1299
1330
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
1300
1331
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
1301
1332
|
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
1333
|
+
# * {Types::EventSourceMappingConfiguration#queues #queues} => Array<String>
|
1334
|
+
# * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array<Types::SourceAccessConfiguration>
|
1302
1335
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
1303
1336
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
1304
1337
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -1345,6 +1378,11 @@ module Aws::Lambda
|
|
1345
1378
|
# resp.destination_config.on_failure.destination #=> String
|
1346
1379
|
# resp.topics #=> Array
|
1347
1380
|
# resp.topics[0] #=> String
|
1381
|
+
# resp.queues #=> Array
|
1382
|
+
# resp.queues[0] #=> String
|
1383
|
+
# resp.source_access_configurations #=> Array
|
1384
|
+
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
|
1385
|
+
# resp.source_access_configurations[0].uri #=> String
|
1348
1386
|
# resp.maximum_record_age_in_seconds #=> Integer
|
1349
1387
|
# resp.bisect_batch_on_function_error #=> Boolean
|
1350
1388
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -1757,6 +1795,8 @@ module Aws::Lambda
|
|
1757
1795
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
1758
1796
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
1759
1797
|
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
1798
|
+
# * {Types::EventSourceMappingConfiguration#queues #queues} => Array<String>
|
1799
|
+
# * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array<Types::SourceAccessConfiguration>
|
1760
1800
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
1761
1801
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
1762
1802
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -1810,6 +1850,11 @@ module Aws::Lambda
|
|
1810
1850
|
# resp.destination_config.on_failure.destination #=> String
|
1811
1851
|
# resp.topics #=> Array
|
1812
1852
|
# resp.topics[0] #=> String
|
1853
|
+
# resp.queues #=> Array
|
1854
|
+
# resp.queues[0] #=> String
|
1855
|
+
# resp.source_access_configurations #=> Array
|
1856
|
+
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
|
1857
|
+
# resp.source_access_configurations[0].uri #=> String
|
1813
1858
|
# resp.maximum_record_age_in_seconds #=> Integer
|
1814
1859
|
# resp.bisect_batch_on_function_error #=> Boolean
|
1815
1860
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -3061,6 +3106,11 @@ module Aws::Lambda
|
|
3061
3106
|
# resp.event_source_mappings[0].destination_config.on_failure.destination #=> String
|
3062
3107
|
# resp.event_source_mappings[0].topics #=> Array
|
3063
3108
|
# resp.event_source_mappings[0].topics[0] #=> String
|
3109
|
+
# resp.event_source_mappings[0].queues #=> Array
|
3110
|
+
# resp.event_source_mappings[0].queues[0] #=> String
|
3111
|
+
# resp.event_source_mappings[0].source_access_configurations #=> Array
|
3112
|
+
# resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
|
3113
|
+
# resp.event_source_mappings[0].source_access_configurations[0].uri #=> String
|
3064
3114
|
# resp.event_source_mappings[0].maximum_record_age_in_seconds #=> Integer
|
3065
3115
|
# resp.event_source_mappings[0].bisect_batch_on_function_error #=> Boolean
|
3066
3116
|
# resp.event_source_mappings[0].maximum_retry_attempts #=> Integer
|
@@ -4725,11 +4775,12 @@ module Aws::Lambda
|
|
4725
4775
|
# or Amazon SNS topic.
|
4726
4776
|
#
|
4727
4777
|
# * `MaximumRecordAgeInSeconds` - Discard records older than the
|
4728
|
-
# specified age.
|
4778
|
+
# specified age. The default value is infinite (-1). When set to
|
4779
|
+
# infinite (-1), failed records are retried until the record expires
|
4729
4780
|
#
|
4730
4781
|
# * `MaximumRetryAttempts` - Discard records after the specified number
|
4731
|
-
# of retries.
|
4732
|
-
#
|
4782
|
+
# of retries. The default value is infinite (-1). When set to infinite
|
4783
|
+
# (-1), failed records are retried until the record expires.
|
4733
4784
|
#
|
4734
4785
|
# * `ParallelizationFactor` - Process multiple batches from each shard
|
4735
4786
|
# concurrently.
|
@@ -4796,6 +4847,19 @@ module Aws::Lambda
|
|
4796
4847
|
# (Streams) The number of batches to process from each shard
|
4797
4848
|
# concurrently.
|
4798
4849
|
#
|
4850
|
+
# @option params [Array<Types::SourceAccessConfiguration>] :source_access_configurations
|
4851
|
+
# (MQ) The Secrets Manager secret that stores your broker credentials.
|
4852
|
+
# To store your secret, use the following format: ` \{ "username": "your
|
4853
|
+
# username", "password": "your password" \}`
|
4854
|
+
#
|
4855
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
4856
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
4857
|
+
#
|
4858
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret, you
|
4859
|
+
# can use customer or service managed keys. When using a customer
|
4860
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
4861
|
+
# permissions.
|
4862
|
+
#
|
4799
4863
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4800
4864
|
#
|
4801
4865
|
# * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
|
@@ -4810,6 +4874,8 @@ module Aws::Lambda
|
|
4810
4874
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
4811
4875
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
4812
4876
|
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
4877
|
+
# * {Types::EventSourceMappingConfiguration#queues #queues} => Array<String>
|
4878
|
+
# * {Types::EventSourceMappingConfiguration#source_access_configurations #source_access_configurations} => Array<Types::SourceAccessConfiguration>
|
4813
4879
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
4814
4880
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
4815
4881
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -4858,6 +4924,12 @@ module Aws::Lambda
|
|
4858
4924
|
# bisect_batch_on_function_error: false,
|
4859
4925
|
# maximum_retry_attempts: 1,
|
4860
4926
|
# parallelization_factor: 1,
|
4927
|
+
# source_access_configurations: [
|
4928
|
+
# {
|
4929
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH
|
4930
|
+
# uri: "Arn",
|
4931
|
+
# },
|
4932
|
+
# ],
|
4861
4933
|
# })
|
4862
4934
|
#
|
4863
4935
|
# @example Response structure
|
@@ -4876,6 +4948,11 @@ module Aws::Lambda
|
|
4876
4948
|
# resp.destination_config.on_failure.destination #=> String
|
4877
4949
|
# resp.topics #=> Array
|
4878
4950
|
# resp.topics[0] #=> String
|
4951
|
+
# resp.queues #=> Array
|
4952
|
+
# resp.queues[0] #=> String
|
4953
|
+
# resp.source_access_configurations #=> Array
|
4954
|
+
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH"
|
4955
|
+
# resp.source_access_configurations[0].uri #=> String
|
4879
4956
|
# resp.maximum_record_age_in_seconds #=> Integer
|
4880
4957
|
# resp.bisect_batch_on_function_error #=> Boolean
|
4881
4958
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -5464,7 +5541,7 @@ module Aws::Lambda
|
|
5464
5541
|
params: params,
|
5465
5542
|
config: config)
|
5466
5543
|
context[:gem_name] = 'aws-sdk-lambda'
|
5467
|
-
context[:gem_version] = '1.
|
5544
|
+
context[:gem_version] = '1.52.0'
|
5468
5545
|
Seahorse::Client::Request.new(handlers, context)
|
5469
5546
|
end
|
5470
5547
|
|
@@ -194,6 +194,8 @@ module Aws::Lambda
|
|
194
194
|
PutProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigRequest')
|
195
195
|
PutProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigResponse')
|
196
196
|
Qualifier = Shapes::StringShape.new(name: 'Qualifier')
|
197
|
+
Queue = Shapes::StringShape.new(name: 'Queue')
|
198
|
+
Queues = Shapes::ListShape.new(name: 'Queues')
|
197
199
|
RemoveLayerVersionPermissionRequest = Shapes::StructureShape.new(name: 'RemoveLayerVersionPermissionRequest')
|
198
200
|
RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
|
199
201
|
RequestTooLargeException = Shapes::StructureShape.new(name: 'RequestTooLargeException')
|
@@ -212,6 +214,9 @@ module Aws::Lambda
|
|
212
214
|
SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
|
213
215
|
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
214
216
|
ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
|
217
|
+
SourceAccessConfiguration = Shapes::StructureShape.new(name: 'SourceAccessConfiguration')
|
218
|
+
SourceAccessConfigurations = Shapes::ListShape.new(name: 'SourceAccessConfigurations')
|
219
|
+
SourceAccessType = Shapes::StringShape.new(name: 'SourceAccessType')
|
215
220
|
SourceOwner = Shapes::StringShape.new(name: 'SourceOwner')
|
216
221
|
State = Shapes::StringShape.new(name: 'State')
|
217
222
|
StateReason = Shapes::StringShape.new(name: 'StateReason')
|
@@ -332,6 +337,8 @@ module Aws::Lambda
|
|
332
337
|
CreateEventSourceMappingRequest.add_member(:bisect_batch_on_function_error, Shapes::ShapeRef.new(shape: BisectBatchOnFunctionError, location_name: "BisectBatchOnFunctionError"))
|
333
338
|
CreateEventSourceMappingRequest.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttemptsEventSourceMapping, location_name: "MaximumRetryAttempts"))
|
334
339
|
CreateEventSourceMappingRequest.add_member(:topics, Shapes::ShapeRef.new(shape: Topics, location_name: "Topics"))
|
340
|
+
CreateEventSourceMappingRequest.add_member(:queues, Shapes::ShapeRef.new(shape: Queues, location_name: "Queues"))
|
341
|
+
CreateEventSourceMappingRequest.add_member(:source_access_configurations, Shapes::ShapeRef.new(shape: SourceAccessConfigurations, location_name: "SourceAccessConfigurations"))
|
335
342
|
CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
|
336
343
|
|
337
344
|
CreateFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
|
@@ -445,6 +452,8 @@ module Aws::Lambda
|
|
445
452
|
EventSourceMappingConfiguration.add_member(:state_transition_reason, Shapes::ShapeRef.new(shape: String, location_name: "StateTransitionReason"))
|
446
453
|
EventSourceMappingConfiguration.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
447
454
|
EventSourceMappingConfiguration.add_member(:topics, Shapes::ShapeRef.new(shape: Topics, location_name: "Topics"))
|
455
|
+
EventSourceMappingConfiguration.add_member(:queues, Shapes::ShapeRef.new(shape: Queues, location_name: "Queues"))
|
456
|
+
EventSourceMappingConfiguration.add_member(:source_access_configurations, Shapes::ShapeRef.new(shape: SourceAccessConfigurations, location_name: "SourceAccessConfigurations"))
|
448
457
|
EventSourceMappingConfiguration.add_member(:maximum_record_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumRecordAgeInSeconds, location_name: "MaximumRecordAgeInSeconds"))
|
449
458
|
EventSourceMappingConfiguration.add_member(:bisect_batch_on_function_error, Shapes::ShapeRef.new(shape: BisectBatchOnFunctionError, location_name: "BisectBatchOnFunctionError"))
|
450
459
|
EventSourceMappingConfiguration.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttemptsEventSourceMapping, location_name: "MaximumRetryAttempts"))
|
@@ -852,6 +861,8 @@ module Aws::Lambda
|
|
852
861
|
PutProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
853
862
|
PutProvisionedConcurrencyConfigResponse.struct_class = Types::PutProvisionedConcurrencyConfigResponse
|
854
863
|
|
864
|
+
Queues.member = Shapes::ShapeRef.new(shape: Queue)
|
865
|
+
|
855
866
|
RemoveLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
856
867
|
RemoveLayerVersionPermissionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
857
868
|
RemoveLayerVersionPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location: "uri", location_name: "StatementId"))
|
@@ -890,6 +901,12 @@ module Aws::Lambda
|
|
890
901
|
ServiceException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
891
902
|
ServiceException.struct_class = Types::ServiceException
|
892
903
|
|
904
|
+
SourceAccessConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: SourceAccessType, location_name: "Type"))
|
905
|
+
SourceAccessConfiguration.add_member(:uri, Shapes::ShapeRef.new(shape: Arn, location_name: "URI"))
|
906
|
+
SourceAccessConfiguration.struct_class = Types::SourceAccessConfiguration
|
907
|
+
|
908
|
+
SourceAccessConfigurations.member = Shapes::ShapeRef.new(shape: SourceAccessConfiguration)
|
909
|
+
|
893
910
|
SubnetIPAddressLimitReachedException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
894
911
|
SubnetIPAddressLimitReachedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
895
912
|
SubnetIPAddressLimitReachedException.struct_class = Types::SubnetIPAddressLimitReachedException
|
@@ -945,6 +962,7 @@ module Aws::Lambda
|
|
945
962
|
UpdateEventSourceMappingRequest.add_member(:bisect_batch_on_function_error, Shapes::ShapeRef.new(shape: BisectBatchOnFunctionError, location_name: "BisectBatchOnFunctionError"))
|
946
963
|
UpdateEventSourceMappingRequest.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttemptsEventSourceMapping, location_name: "MaximumRetryAttempts"))
|
947
964
|
UpdateEventSourceMappingRequest.add_member(:parallelization_factor, Shapes::ShapeRef.new(shape: ParallelizationFactor, location_name: "ParallelizationFactor"))
|
965
|
+
UpdateEventSourceMappingRequest.add_member(:source_access_configurations, Shapes::ShapeRef.new(shape: SourceAccessConfigurations, location_name: "SourceAccessConfigurations"))
|
948
966
|
UpdateEventSourceMappingRequest.struct_class = Types::UpdateEventSourceMappingRequest
|
949
967
|
|
950
968
|
UpdateFunctionCodeRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -454,6 +454,13 @@ module Aws::Lambda
|
|
454
454
|
# bisect_batch_on_function_error: false,
|
455
455
|
# maximum_retry_attempts: 1,
|
456
456
|
# topics: ["Topic"],
|
457
|
+
# queues: ["Queue"],
|
458
|
+
# source_access_configurations: [
|
459
|
+
# {
|
460
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH
|
461
|
+
# uri: "Arn",
|
462
|
+
# },
|
463
|
+
# ],
|
457
464
|
# }
|
458
465
|
#
|
459
466
|
# @!attribute [rw] event_source_arn
|
@@ -553,6 +560,24 @@ module Aws::Lambda
|
|
553
560
|
# (MSK) The name of the Kafka topic.
|
554
561
|
# @return [Array<String>]
|
555
562
|
#
|
563
|
+
# @!attribute [rw] queues
|
564
|
+
# (MQ) The name of the Amazon MQ broker destination queue to consume.
|
565
|
+
# @return [Array<String>]
|
566
|
+
#
|
567
|
+
# @!attribute [rw] source_access_configurations
|
568
|
+
# (MQ) The Secrets Manager secret that stores your broker credentials.
|
569
|
+
# To store your secret, use the following format: ` \{ "username":
|
570
|
+
# "your username", "password": "your password" \}`
|
571
|
+
#
|
572
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
573
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
574
|
+
#
|
575
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
|
576
|
+
# you can use customer or service managed keys. When using a customer
|
577
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
578
|
+
# permissions.
|
579
|
+
# @return [Array<Types::SourceAccessConfiguration>]
|
580
|
+
#
|
556
581
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
|
557
582
|
#
|
558
583
|
class CreateEventSourceMappingRequest < Struct.new(
|
@@ -568,7 +593,9 @@ module Aws::Lambda
|
|
568
593
|
:maximum_record_age_in_seconds,
|
569
594
|
:bisect_batch_on_function_error,
|
570
595
|
:maximum_retry_attempts,
|
571
|
-
:topics
|
596
|
+
:topics,
|
597
|
+
:queues,
|
598
|
+
:source_access_configurations)
|
572
599
|
SENSITIVE = []
|
573
600
|
include Aws::Structure
|
574
601
|
end
|
@@ -1277,12 +1304,12 @@ module Aws::Lambda
|
|
1277
1304
|
#
|
1278
1305
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
1279
1306
|
# (Streams) The maximum amount of time to gather records before
|
1280
|
-
# invoking the function, in seconds.
|
1307
|
+
# invoking the function, in seconds. The default value is zero.
|
1281
1308
|
# @return [Integer]
|
1282
1309
|
#
|
1283
1310
|
# @!attribute [rw] parallelization_factor
|
1284
1311
|
# (Streams) The number of batches to process from each shard
|
1285
|
-
# concurrently.
|
1312
|
+
# concurrently. The default value is 1.
|
1286
1313
|
# @return [Integer]
|
1287
1314
|
#
|
1288
1315
|
# @!attribute [rw] event_source_arn
|
@@ -1320,22 +1347,42 @@ module Aws::Lambda
|
|
1320
1347
|
# @return [Types::DestinationConfig]
|
1321
1348
|
#
|
1322
1349
|
# @!attribute [rw] topics
|
1323
|
-
# (MSK) The name of the Kafka topic.
|
1350
|
+
# (MSK) The name of the Kafka topic to consume.
|
1324
1351
|
# @return [Array<String>]
|
1325
1352
|
#
|
1353
|
+
# @!attribute [rw] queues
|
1354
|
+
# (MQ) The name of the Amazon MQ broker destination queue to consume.
|
1355
|
+
# @return [Array<String>]
|
1356
|
+
#
|
1357
|
+
# @!attribute [rw] source_access_configurations
|
1358
|
+
# (MQ) The Secrets Manager secret that stores your broker credentials.
|
1359
|
+
# To store your secret, use the following format: ` \{ "username":
|
1360
|
+
# "your username", "password": "your password" \}`
|
1361
|
+
#
|
1362
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
1363
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
1364
|
+
#
|
1365
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
|
1366
|
+
# you can use customer or service managed keys. When using a customer
|
1367
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
1368
|
+
# permissions.
|
1369
|
+
# @return [Array<Types::SourceAccessConfiguration>]
|
1370
|
+
#
|
1326
1371
|
# @!attribute [rw] maximum_record_age_in_seconds
|
1327
|
-
# (Streams)
|
1328
|
-
#
|
1372
|
+
# (Streams) Discard records older than the specified age. The default
|
1373
|
+
# value is infinite (-1). When set to infinite (-1), failed records
|
1374
|
+
# are retried until the record expires.
|
1329
1375
|
# @return [Integer]
|
1330
1376
|
#
|
1331
1377
|
# @!attribute [rw] bisect_batch_on_function_error
|
1332
1378
|
# (Streams) If the function returns an error, split the batch in two
|
1333
|
-
# and retry.
|
1379
|
+
# and retry. The default value is false.
|
1334
1380
|
# @return [Boolean]
|
1335
1381
|
#
|
1336
1382
|
# @!attribute [rw] maximum_retry_attempts
|
1337
|
-
# (Streams)
|
1338
|
-
#
|
1383
|
+
# (Streams) Discard records after the specified number of retries. The
|
1384
|
+
# default value is infinite (-1). When set to infinite (-1), failed
|
1385
|
+
# records are retried until the record expires.
|
1339
1386
|
# @return [Integer]
|
1340
1387
|
#
|
1341
1388
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
|
@@ -1353,6 +1400,8 @@ module Aws::Lambda
|
|
1353
1400
|
:state_transition_reason,
|
1354
1401
|
:destination_config,
|
1355
1402
|
:topics,
|
1403
|
+
:queues,
|
1404
|
+
:source_access_configurations,
|
1356
1405
|
:maximum_record_age_in_seconds,
|
1357
1406
|
:bisect_batch_on_function_error,
|
1358
1407
|
:maximum_retry_attempts)
|
@@ -3991,6 +4040,47 @@ module Aws::Lambda
|
|
3991
4040
|
include Aws::Structure
|
3992
4041
|
end
|
3993
4042
|
|
4043
|
+
# (MQ) The Secrets Manager secret that stores your broker credentials.
|
4044
|
+
# To store your secret, use the following format: ` \{ "username": "your
|
4045
|
+
# username", "password": "your password" \}`
|
4046
|
+
#
|
4047
|
+
# @note When making an API call, you may pass SourceAccessConfiguration
|
4048
|
+
# data as a hash:
|
4049
|
+
#
|
4050
|
+
# {
|
4051
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH
|
4052
|
+
# uri: "Arn",
|
4053
|
+
# }
|
4054
|
+
#
|
4055
|
+
# @!attribute [rw] type
|
4056
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
4057
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
4058
|
+
#
|
4059
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
|
4060
|
+
# you can use customer or service managed keys. When using a customer
|
4061
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
4062
|
+
# permissions.
|
4063
|
+
# @return [String]
|
4064
|
+
#
|
4065
|
+
# @!attribute [rw] uri
|
4066
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
4067
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
4068
|
+
#
|
4069
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
|
4070
|
+
# you can use customer or service managed keys. When using a customer
|
4071
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
4072
|
+
# permissions.
|
4073
|
+
# @return [String]
|
4074
|
+
#
|
4075
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SourceAccessConfiguration AWS API Documentation
|
4076
|
+
#
|
4077
|
+
class SourceAccessConfiguration < Struct.new(
|
4078
|
+
:type,
|
4079
|
+
:uri)
|
4080
|
+
SENSITIVE = []
|
4081
|
+
include Aws::Structure
|
4082
|
+
end
|
4083
|
+
|
3994
4084
|
# AWS Lambda was not able to set up VPC access for the Lambda function
|
3995
4085
|
# because one or more configured subnets has no available IP addresses.
|
3996
4086
|
#
|
@@ -4232,6 +4322,12 @@ module Aws::Lambda
|
|
4232
4322
|
# bisect_batch_on_function_error: false,
|
4233
4323
|
# maximum_retry_attempts: 1,
|
4234
4324
|
# parallelization_factor: 1,
|
4325
|
+
# source_access_configurations: [
|
4326
|
+
# {
|
4327
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH
|
4328
|
+
# uri: "Arn",
|
4329
|
+
# },
|
4330
|
+
# ],
|
4235
4331
|
# }
|
4236
4332
|
#
|
4237
4333
|
# @!attribute [rw] uuid
|
@@ -4306,6 +4402,20 @@ module Aws::Lambda
|
|
4306
4402
|
# concurrently.
|
4307
4403
|
# @return [Integer]
|
4308
4404
|
#
|
4405
|
+
# @!attribute [rw] source_access_configurations
|
4406
|
+
# (MQ) The Secrets Manager secret that stores your broker credentials.
|
4407
|
+
# To store your secret, use the following format: ` \{ "username":
|
4408
|
+
# "your username", "password": "your password" \}`
|
4409
|
+
#
|
4410
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
4411
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
4412
|
+
#
|
4413
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
|
4414
|
+
# you can use customer or service managed keys. When using a customer
|
4415
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
4416
|
+
# permissions.
|
4417
|
+
# @return [Array<Types::SourceAccessConfiguration>]
|
4418
|
+
#
|
4309
4419
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest AWS API Documentation
|
4310
4420
|
#
|
4311
4421
|
class UpdateEventSourceMappingRequest < Struct.new(
|
@@ -4318,7 +4428,8 @@ module Aws::Lambda
|
|
4318
4428
|
:maximum_record_age_in_seconds,
|
4319
4429
|
:bisect_batch_on_function_error,
|
4320
4430
|
:maximum_retry_attempts,
|
4321
|
-
:parallelization_factor
|
4431
|
+
:parallelization_factor,
|
4432
|
+
:source_access_configurations)
|
4322
4433
|
SENSITIVE = []
|
4323
4434
|
include Aws::Structure
|
4324
4435
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.52.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|