aws-sdk-lambda 1.13.0 → 1.14.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/lib/aws-sdk-lambda.rb +1 -1
- data/lib/aws-sdk-lambda/client.rb +93 -115
- data/lib/aws-sdk-lambda/types.rb +65 -73
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 075b9110bf571081c91af34a63bbcc56bd258f72
|
4
|
+
data.tar.gz: af15f146904cf673d2d4644bbfac665a2640f8ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b6f3d1266d5d56199bed69f29e5e492b367bc44a61f5e034848c072f2ac8c1b6e0aceb823216e72ba3ccd99788b185664e7aef6301a0123d12129fac771bc92
|
7
|
+
data.tar.gz: 48aabebaa12a2e462f3a87760038c342262207d3a8d2ec59a94beca5a37673b55ee58e1839525f753ea1ecfa4ac58f7c44f7fd8bed975ff88156181a72195fc5
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -15,6 +15,7 @@ require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
|
|
15
15
|
require 'aws-sdk-core/plugins/retry_errors.rb'
|
16
16
|
require 'aws-sdk-core/plugins/global_configuration.rb'
|
17
17
|
require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
18
|
+
require 'aws-sdk-core/plugins/endpoint_discovery.rb'
|
18
19
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
19
20
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
21
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
@@ -45,6 +46,7 @@ module Aws::Lambda
|
|
45
46
|
add_plugin(Aws::Plugins::RetryErrors)
|
46
47
|
add_plugin(Aws::Plugins::GlobalConfiguration)
|
47
48
|
add_plugin(Aws::Plugins::RegionalEndpoint)
|
49
|
+
add_plugin(Aws::Plugins::EndpointDiscovery)
|
48
50
|
add_plugin(Aws::Plugins::ResponsePaging)
|
49
51
|
add_plugin(Aws::Plugins::StubResponses)
|
50
52
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
@@ -98,6 +100,10 @@ module Aws::Lambda
|
|
98
100
|
#
|
99
101
|
# @option options [String] :access_key_id
|
100
102
|
#
|
103
|
+
# @option options [Boolean] :active_endpoint_cache (false)
|
104
|
+
# When set to `true`, a thread polling for endpoints will be running in
|
105
|
+
# the background every 60 secs (default). Defaults to `false`.
|
106
|
+
#
|
101
107
|
# @option options [Boolean] :client_side_monitoring (false)
|
102
108
|
# When `true`, client-side metrics will be collected for all API requests from
|
103
109
|
# this client.
|
@@ -123,6 +129,21 @@ module Aws::Lambda
|
|
123
129
|
# option. You should only configure an `:endpoint` when connecting
|
124
130
|
# to test endpoints. This should be avalid HTTP(S) URI.
|
125
131
|
#
|
132
|
+
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
133
|
+
# Used for the maximum size limit of the LRU cache storing endpoints data
|
134
|
+
# for endpoint discovery enabled operations. Defaults to 1000.
|
135
|
+
#
|
136
|
+
# @option options [Integer] :endpoint_cache_max_threads (10)
|
137
|
+
# Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
|
138
|
+
#
|
139
|
+
# @option options [Integer] :endpoint_cache_poll_interval (60)
|
140
|
+
# When :endpoint_discovery and :active_endpoint_cache is enabled,
|
141
|
+
# Use this option to config the time interval in seconds for making
|
142
|
+
# requests fetching endpoints information. Defaults to 60 sec.
|
143
|
+
#
|
144
|
+
# @option options [Boolean] :endpoint_discovery (false)
|
145
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
|
146
|
+
#
|
126
147
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
127
148
|
# The log formatter.
|
128
149
|
#
|
@@ -398,45 +419,35 @@ module Aws::Lambda
|
|
398
419
|
req.send_request(options)
|
399
420
|
end
|
400
421
|
|
401
|
-
#
|
402
|
-
#
|
403
|
-
# specified function when records are posted to the event source.
|
404
|
-
#
|
405
|
-
# This association between a poll-based source and a Lambda function is
|
406
|
-
# called the event source mapping.
|
407
|
-
#
|
408
|
-
# You provide mapping information (for example, which stream or SQS
|
409
|
-
# queue to read from and which Lambda function to invoke) in the request
|
410
|
-
# body.
|
411
|
-
#
|
412
|
-
# Amazon Kinesis or DynamoDB stream event sources can be associated with
|
413
|
-
# multiple AWS Lambda functions and a given Lambda function can be
|
414
|
-
# associated with multiple AWS event sources. For Amazon SQS, you can
|
415
|
-
# configure multiple queues as event sources for a single Lambda
|
416
|
-
# function, but an SQS queue can be mapped only to a single Lambda
|
417
|
-
# function.
|
422
|
+
# Creates a mapping between an event source and an AWS Lambda function.
|
423
|
+
# Lambda reads items from the event source and triggers the function.
|
418
424
|
#
|
419
|
-
#
|
420
|
-
# function's account. Also the queue needs to reside in the same AWS
|
421
|
-
# region as your function.
|
425
|
+
# For details about each event source type, see the following topics.
|
422
426
|
#
|
423
|
-
#
|
424
|
-
# version or an alias via the function name parameter. For more
|
425
|
-
# information about versioning, see [AWS Lambda Function Versioning and
|
426
|
-
# Aliases][1].
|
427
|
+
# * [Using AWS Lambda with Amazon Kinesis][1]
|
427
428
|
#
|
428
|
-
#
|
429
|
-
# `lambda:CreateEventSourceMapping` action.
|
429
|
+
# * [Using AWS Lambda with Amazon SQS][2]
|
430
430
|
#
|
431
|
+
# * [Using AWS Lambda with Amazon DynamoDB][3]
|
431
432
|
#
|
432
433
|
#
|
433
|
-
#
|
434
|
+
#
|
435
|
+
# [1]: http://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
|
436
|
+
# [2]: http://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
|
437
|
+
# [3]: http://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
|
434
438
|
#
|
435
439
|
# @option params [required, String] :event_source_arn
|
436
440
|
# The Amazon Resource Name (ARN) of the event source.
|
437
441
|
#
|
442
|
+
# * **Amazon Kinesis** - The ARN of the data stream or a stream
|
443
|
+
# consumer.
|
444
|
+
#
|
445
|
+
# * **Amazon DynamoDB Streams** - The ARN of the stream.
|
446
|
+
#
|
447
|
+
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
448
|
+
#
|
438
449
|
# @option params [required, String] :function_name
|
439
|
-
# The name of the
|
450
|
+
# The name of the Lambda function.
|
440
451
|
#
|
441
452
|
# **Name formats**
|
442
453
|
#
|
@@ -451,43 +462,28 @@ module Aws::Lambda
|
|
451
462
|
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
452
463
|
#
|
453
464
|
# The length constraint applies only to the full ARN. If you specify
|
454
|
-
# only the function name, it
|
465
|
+
# only the function name, it's limited to 64 characters in length.
|
455
466
|
#
|
456
467
|
# @option params [Boolean] :enabled
|
457
|
-
#
|
468
|
+
# Disables the event source mapping to pause polling and invocation.
|
458
469
|
#
|
459
470
|
# @option params [Integer] :batch_size
|
460
|
-
# The
|
461
|
-
# event source at the time of invoking your function. Your function
|
462
|
-
# receives an event with all the retrieved records. The default for
|
463
|
-
# Amazon Kinesis and Amazon DynamoDB is 100 records. Both the default
|
464
|
-
# and maximum for Amazon SQS are 10 messages.
|
471
|
+
# The maximum number of items to retrieve in a single batch.
|
465
472
|
#
|
466
|
-
#
|
467
|
-
# The position in the DynamoDB or Kinesis stream where AWS Lambda should
|
468
|
-
# start reading. For more information, see [GetShardIterator][1] in the
|
469
|
-
# *Amazon Kinesis API Reference Guide* or [GetShardIterator][2] in the
|
470
|
-
# *Amazon DynamoDB API Reference Guide*. The `AT_TIMESTAMP` value is
|
471
|
-
# supported only for [Kinesis streams][3].
|
473
|
+
# * **Amazon Kinesis** - Default 100. Max 10,000.
|
472
474
|
#
|
475
|
+
# * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
|
473
476
|
#
|
477
|
+
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
474
478
|
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
#
|
479
|
+
# @option params [String] :starting_position
|
480
|
+
# The position in a stream from which to start reading. Required for
|
481
|
+
# Amazon Kinesis and Amazon DynamoDB Streams sources. `AT_TIMESTAMP` is
|
482
|
+
# only supported for Amazon Kinesis streams.
|
478
483
|
#
|
479
484
|
# @option params [Time,DateTime,Date,Integer,String] :starting_position_timestamp
|
480
|
-
#
|
481
|
-
#
|
482
|
-
# exact timestamp does not exist, the iterator returned is for the next
|
483
|
-
# (later) record. If the timestamp is older than the current trim
|
484
|
-
# horizon, the iterator returned is for the oldest untrimmed data record
|
485
|
-
# (TRIM\_HORIZON). Valid only for [Kinesis streams][2].
|
486
|
-
#
|
487
|
-
#
|
488
|
-
#
|
489
|
-
# [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
|
490
|
-
# [2]: http://docs.aws.amazon.com/streams/latest/dev/amazon-kinesis-streams.html
|
485
|
+
# With `StartingPosition` set to `AT_TIMESTAMP`, the Unix time in
|
486
|
+
# seconds from which to start reading.
|
491
487
|
#
|
492
488
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
493
489
|
#
|
@@ -691,7 +687,7 @@ module Aws::Lambda
|
|
691
687
|
#
|
692
688
|
# resp = client.create_function({
|
693
689
|
# function_name: "FunctionName", # required
|
694
|
-
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x
|
690
|
+
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x
|
695
691
|
# role: "RoleArn", # required
|
696
692
|
# handler: "Handler", # required
|
697
693
|
# code: { # required
|
@@ -729,7 +725,7 @@ module Aws::Lambda
|
|
729
725
|
#
|
730
726
|
# resp.function_name #=> String
|
731
727
|
# resp.function_arn #=> String
|
732
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
728
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
733
729
|
# resp.role #=> String
|
734
730
|
# resp.handler #=> String
|
735
731
|
# resp.code_size #=> Integer
|
@@ -818,14 +814,10 @@ module Aws::Lambda
|
|
818
814
|
req.send_request(options)
|
819
815
|
end
|
820
816
|
|
821
|
-
#
|
822
|
-
# invoke the function for events in the associated source.
|
823
|
-
#
|
824
|
-
# This operation requires permission for the
|
825
|
-
# `lambda:DeleteEventSourceMapping` action.
|
817
|
+
# Deletes an event source mapping.
|
826
818
|
#
|
827
819
|
# @option params [required, String] :uuid
|
828
|
-
# The event source mapping
|
820
|
+
# The identifier of the event source mapping.
|
829
821
|
#
|
830
822
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
831
823
|
#
|
@@ -1106,14 +1098,10 @@ module Aws::Lambda
|
|
1106
1098
|
req.send_request(options)
|
1107
1099
|
end
|
1108
1100
|
|
1109
|
-
# Returns
|
1110
|
-
# mapping (see CreateEventSourceMapping).
|
1111
|
-
#
|
1112
|
-
# This operation requires permission for the
|
1113
|
-
# `lambda:GetEventSourceMapping` action.
|
1101
|
+
# Returns details about an event source mapping.
|
1114
1102
|
#
|
1115
1103
|
# @option params [required, String] :uuid
|
1116
|
-
# The
|
1104
|
+
# The identifier of the event source mapping.
|
1117
1105
|
#
|
1118
1106
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1119
1107
|
#
|
@@ -1270,7 +1258,7 @@ module Aws::Lambda
|
|
1270
1258
|
#
|
1271
1259
|
# resp.configuration.function_name #=> String
|
1272
1260
|
# resp.configuration.function_arn #=> String
|
1273
|
-
# resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
1261
|
+
# resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
1274
1262
|
# resp.configuration.role #=> String
|
1275
1263
|
# resp.configuration.handler #=> String
|
1276
1264
|
# resp.configuration.code_size #=> Integer
|
@@ -1413,7 +1401,7 @@ module Aws::Lambda
|
|
1413
1401
|
#
|
1414
1402
|
# resp.function_name #=> String
|
1415
1403
|
# resp.function_arn #=> String
|
1416
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
1404
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
1417
1405
|
# resp.role #=> String
|
1418
1406
|
# resp.handler #=> String
|
1419
1407
|
# resp.code_size #=> Integer
|
@@ -1831,21 +1819,21 @@ module Aws::Lambda
|
|
1831
1819
|
req.send_request(options)
|
1832
1820
|
end
|
1833
1821
|
|
1834
|
-
#
|
1835
|
-
#
|
1822
|
+
# Lists event source mappings. Specify an `EventSourceArn` to only show
|
1823
|
+
# event source mappings for a single event source.
|
1824
|
+
#
|
1825
|
+
# @option params [String] :event_source_arn
|
1826
|
+
# The Amazon Resource Name (ARN) of the event source.
|
1836
1827
|
#
|
1837
|
-
#
|
1838
|
-
#
|
1828
|
+
# * **Amazon Kinesis** - The ARN of the data stream or a stream
|
1829
|
+
# consumer.
|
1839
1830
|
#
|
1840
|
-
#
|
1841
|
-
# `lambda:ListEventSourceMappings` action.
|
1831
|
+
# * **Amazon DynamoDB Streams** - The ARN of the stream.
|
1842
1832
|
#
|
1843
|
-
#
|
1844
|
-
# The Amazon Resource Name (ARN) of the Amazon Kinesis or DynamoDB
|
1845
|
-
# stream. (This parameter is optional.)
|
1833
|
+
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
1846
1834
|
#
|
1847
1835
|
# @option params [String] :function_name
|
1848
|
-
# The name of the
|
1836
|
+
# The name of the Lambda function.
|
1849
1837
|
#
|
1850
1838
|
# **Name formats**
|
1851
1839
|
#
|
@@ -1860,16 +1848,13 @@ module Aws::Lambda
|
|
1860
1848
|
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
1861
1849
|
#
|
1862
1850
|
# The length constraint applies only to the full ARN. If you specify
|
1863
|
-
# only the function name, it
|
1851
|
+
# only the function name, it's limited to 64 characters in length.
|
1864
1852
|
#
|
1865
1853
|
# @option params [String] :marker
|
1866
|
-
#
|
1867
|
-
# `ListEventSourceMappings` operation. If present, specifies to continue
|
1868
|
-
# the list from where the returning call left off.
|
1854
|
+
# A pagination token returned by a previous call.
|
1869
1855
|
#
|
1870
1856
|
# @option params [Integer] :max_items
|
1871
|
-
#
|
1872
|
-
# return in response. This value must be greater than 0.
|
1857
|
+
# The maximum number of event source mappings to return.
|
1873
1858
|
#
|
1874
1859
|
# @return [Types::ListEventSourceMappingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1875
1860
|
#
|
@@ -1980,7 +1965,7 @@ module Aws::Lambda
|
|
1980
1965
|
# resp.functions #=> Array
|
1981
1966
|
# resp.functions[0].function_name #=> String
|
1982
1967
|
# resp.functions[0].function_arn #=> String
|
1983
|
-
# resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
1968
|
+
# resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
1984
1969
|
# resp.functions[0].role #=> String
|
1985
1970
|
# resp.functions[0].handler #=> String
|
1986
1971
|
# resp.functions[0].code_size #=> Integer
|
@@ -2125,7 +2110,7 @@ module Aws::Lambda
|
|
2125
2110
|
# resp.versions #=> Array
|
2126
2111
|
# resp.versions[0].function_name #=> String
|
2127
2112
|
# resp.versions[0].function_arn #=> String
|
2128
|
-
# resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
2113
|
+
# resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
2129
2114
|
# resp.versions[0].role #=> String
|
2130
2115
|
# resp.versions[0].handler #=> String
|
2131
2116
|
# resp.versions[0].code_size #=> Integer
|
@@ -2269,7 +2254,7 @@ module Aws::Lambda
|
|
2269
2254
|
#
|
2270
2255
|
# resp.function_name #=> String
|
2271
2256
|
# resp.function_arn #=> String
|
2272
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
2257
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
2273
2258
|
# resp.role #=> String
|
2274
2259
|
# resp.handler #=> String
|
2275
2260
|
# resp.code_size #=> Integer
|
@@ -2644,25 +2629,15 @@ module Aws::Lambda
|
|
2644
2629
|
req.send_request(options)
|
2645
2630
|
end
|
2646
2631
|
|
2647
|
-
#
|
2648
|
-
#
|
2649
|
-
#
|
2650
|
-
# stream records, but to change the stream itself, you must create a new
|
2651
|
-
# mapping.
|
2652
|
-
#
|
2653
|
-
# If you disable the event source mapping, AWS Lambda stops polling. If
|
2654
|
-
# you enable again, it will resume polling from the time it had stopped
|
2655
|
-
# polling, so you don't lose processing of any records. However, if you
|
2656
|
-
# delete event source mapping and create it again, it will reset.
|
2657
|
-
#
|
2658
|
-
# This operation requires permission for the
|
2659
|
-
# `lambda:UpdateEventSourceMapping` action.
|
2632
|
+
# Updates an event source mapping. You can change the function that AWS
|
2633
|
+
# Lambda invokes, or pause invocation and resume later from the same
|
2634
|
+
# location.
|
2660
2635
|
#
|
2661
2636
|
# @option params [required, String] :uuid
|
2662
|
-
# The event source mapping
|
2637
|
+
# The identifier of the event source mapping.
|
2663
2638
|
#
|
2664
2639
|
# @option params [String] :function_name
|
2665
|
-
# The name of the
|
2640
|
+
# The name of the Lambda function.
|
2666
2641
|
#
|
2667
2642
|
# **Name formats**
|
2668
2643
|
#
|
@@ -2677,16 +2652,19 @@ module Aws::Lambda
|
|
2677
2652
|
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
2678
2653
|
#
|
2679
2654
|
# The length constraint applies only to the full ARN. If you specify
|
2680
|
-
# only the function name, it
|
2655
|
+
# only the function name, it's limited to 64 characters in length.
|
2681
2656
|
#
|
2682
2657
|
# @option params [Boolean] :enabled
|
2683
|
-
#
|
2684
|
-
# If disabled, AWS Lambda will not poll the stream.
|
2658
|
+
# Disables the event source mapping to pause polling and invocation.
|
2685
2659
|
#
|
2686
2660
|
# @option params [Integer] :batch_size
|
2687
|
-
# The
|
2688
|
-
#
|
2689
|
-
#
|
2661
|
+
# The maximum number of items to retrieve in a single batch.
|
2662
|
+
#
|
2663
|
+
# * **Amazon Kinesis** - Default 100. Max 10,000.
|
2664
|
+
#
|
2665
|
+
# * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
|
2666
|
+
#
|
2667
|
+
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
2690
2668
|
#
|
2691
2669
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2692
2670
|
#
|
@@ -2898,7 +2876,7 @@ module Aws::Lambda
|
|
2898
2876
|
#
|
2899
2877
|
# resp.function_name #=> String
|
2900
2878
|
# resp.function_arn #=> String
|
2901
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
2879
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
2902
2880
|
# resp.role #=> String
|
2903
2881
|
# resp.handler #=> String
|
2904
2882
|
# resp.code_size #=> Integer
|
@@ -3103,7 +3081,7 @@ module Aws::Lambda
|
|
3103
3081
|
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
3104
3082
|
# },
|
3105
3083
|
# },
|
3106
|
-
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x
|
3084
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x
|
3107
3085
|
# dead_letter_config: {
|
3108
3086
|
# target_arn: "ResourceArn",
|
3109
3087
|
# },
|
@@ -3118,7 +3096,7 @@ module Aws::Lambda
|
|
3118
3096
|
#
|
3119
3097
|
# resp.function_name #=> String
|
3120
3098
|
# resp.function_arn #=> String
|
3121
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
3099
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
|
3122
3100
|
# resp.role #=> String
|
3123
3101
|
# resp.handler #=> String
|
3124
3102
|
# resp.code_size #=> Integer
|
@@ -3165,7 +3143,7 @@ module Aws::Lambda
|
|
3165
3143
|
params: params,
|
3166
3144
|
config: config)
|
3167
3145
|
context[:gem_name] = 'aws-sdk-lambda'
|
3168
|
-
context[:gem_version] = '1.
|
3146
|
+
context[:gem_version] = '1.14.0'
|
3169
3147
|
Seahorse::Client::Request.new(handlers, context)
|
3170
3148
|
end
|
3171
3149
|
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -363,10 +363,17 @@ module Aws::Lambda
|
|
363
363
|
#
|
364
364
|
# @!attribute [rw] event_source_arn
|
365
365
|
# The Amazon Resource Name (ARN) of the event source.
|
366
|
+
#
|
367
|
+
# * **Amazon Kinesis** - The ARN of the data stream or a stream
|
368
|
+
# consumer.
|
369
|
+
#
|
370
|
+
# * **Amazon DynamoDB Streams** - The ARN of the stream.
|
371
|
+
#
|
372
|
+
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
366
373
|
# @return [String]
|
367
374
|
#
|
368
375
|
# @!attribute [rw] function_name
|
369
|
-
# The name of the
|
376
|
+
# The name of the Lambda function.
|
370
377
|
#
|
371
378
|
# **Name formats**
|
372
379
|
#
|
@@ -381,47 +388,32 @@ module Aws::Lambda
|
|
381
388
|
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
382
389
|
#
|
383
390
|
# The length constraint applies only to the full ARN. If you specify
|
384
|
-
# only the function name, it
|
391
|
+
# only the function name, it's limited to 64 characters in length.
|
385
392
|
# @return [String]
|
386
393
|
#
|
387
394
|
# @!attribute [rw] enabled
|
388
|
-
#
|
395
|
+
# Disables the event source mapping to pause polling and invocation.
|
389
396
|
# @return [Boolean]
|
390
397
|
#
|
391
398
|
# @!attribute [rw] batch_size
|
392
|
-
# The
|
393
|
-
# your event source at the time of invoking your function. Your
|
394
|
-
# function receives an event with all the retrieved records. The
|
395
|
-
# default for Amazon Kinesis and Amazon DynamoDB is 100 records. Both
|
396
|
-
# the default and maximum for Amazon SQS are 10 messages.
|
397
|
-
# @return [Integer]
|
399
|
+
# The maximum number of items to retrieve in a single batch.
|
398
400
|
#
|
399
|
-
#
|
400
|
-
# The position in the DynamoDB or Kinesis stream where AWS Lambda
|
401
|
-
# should start reading. For more information, see
|
402
|
-
# [GetShardIterator][1] in the *Amazon Kinesis API Reference Guide* or
|
403
|
-
# [GetShardIterator][2] in the *Amazon DynamoDB API Reference Guide*.
|
404
|
-
# The `AT_TIMESTAMP` value is supported only for [Kinesis streams][3].
|
401
|
+
# * **Amazon Kinesis** - Default 100. Max 10,000.
|
405
402
|
#
|
403
|
+
# * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
|
406
404
|
#
|
405
|
+
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
406
|
+
# @return [Integer]
|
407
407
|
#
|
408
|
-
#
|
409
|
-
#
|
410
|
-
#
|
408
|
+
# @!attribute [rw] starting_position
|
409
|
+
# The position in a stream from which to start reading. Required for
|
410
|
+
# Amazon Kinesis and Amazon DynamoDB Streams sources. `AT_TIMESTAMP`
|
411
|
+
# is only supported for Amazon Kinesis streams.
|
411
412
|
# @return [String]
|
412
413
|
#
|
413
414
|
# @!attribute [rw] starting_position_timestamp
|
414
|
-
#
|
415
|
-
#
|
416
|
-
# exact timestamp does not exist, the iterator returned is for the
|
417
|
-
# next (later) record. If the timestamp is older than the current trim
|
418
|
-
# horizon, the iterator returned is for the oldest untrimmed data
|
419
|
-
# record (TRIM\_HORIZON). Valid only for [Kinesis streams][2].
|
420
|
-
#
|
421
|
-
#
|
422
|
-
#
|
423
|
-
# [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
|
424
|
-
# [2]: http://docs.aws.amazon.com/streams/latest/dev/amazon-kinesis-streams.html
|
415
|
+
# With `StartingPosition` set to `AT_TIMESTAMP`, the Unix time in
|
416
|
+
# seconds from which to start reading.
|
425
417
|
# @return [Time]
|
426
418
|
#
|
427
419
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
|
@@ -441,7 +433,7 @@ module Aws::Lambda
|
|
441
433
|
#
|
442
434
|
# {
|
443
435
|
# function_name: "FunctionName", # required
|
444
|
-
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x
|
436
|
+
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x
|
445
437
|
# role: "RoleArn", # required
|
446
438
|
# handler: "Handler", # required
|
447
439
|
# code: { # required
|
@@ -671,7 +663,7 @@ module Aws::Lambda
|
|
671
663
|
# }
|
672
664
|
#
|
673
665
|
# @!attribute [rw] uuid
|
674
|
-
# The event source mapping
|
666
|
+
# The identifier of the event source mapping.
|
675
667
|
# @return [String]
|
676
668
|
#
|
677
669
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMappingRequest AWS API Documentation
|
@@ -807,49 +799,44 @@ module Aws::Lambda
|
|
807
799
|
include Aws::Structure
|
808
800
|
end
|
809
801
|
|
810
|
-
#
|
811
|
-
#
|
802
|
+
# A mapping between an AWS resource and an AWS Lambda function. See
|
803
|
+
# CreateEventSourceMapping for details.
|
812
804
|
#
|
813
805
|
# @!attribute [rw] uuid
|
814
|
-
# The
|
806
|
+
# The identifier of the event source mapping.
|
815
807
|
# @return [String]
|
816
808
|
#
|
817
809
|
# @!attribute [rw] batch_size
|
818
|
-
# The
|
819
|
-
# your event source at the time of invoking your function. Your
|
820
|
-
# function receives an event with all the retrieved records.
|
810
|
+
# The maximum number of items to retrieve in a single batch.
|
821
811
|
# @return [Integer]
|
822
812
|
#
|
823
813
|
# @!attribute [rw] event_source_arn
|
824
|
-
# The Amazon Resource Name (ARN) of the
|
825
|
-
# stream that is the source of events.
|
814
|
+
# The Amazon Resource Name (ARN) of the event source.
|
826
815
|
# @return [String]
|
827
816
|
#
|
828
817
|
# @!attribute [rw] function_arn
|
829
|
-
# The
|
830
|
-
# the poll-based source.
|
818
|
+
# The ARN of the Lambda function.
|
831
819
|
# @return [String]
|
832
820
|
#
|
833
821
|
# @!attribute [rw] last_modified
|
834
|
-
# The
|
835
|
-
#
|
822
|
+
# The date that the event source mapping was last updated, in Unix
|
823
|
+
# time seconds.
|
836
824
|
# @return [Time]
|
837
825
|
#
|
838
826
|
# @!attribute [rw] last_processing_result
|
839
827
|
# The result of the last AWS Lambda invocation of your Lambda
|
840
|
-
# function.
|
841
|
-
# source.
|
828
|
+
# function.
|
842
829
|
# @return [String]
|
843
830
|
#
|
844
831
|
# @!attribute [rw] state
|
845
|
-
# The state of the event source mapping. It can be
|
846
|
-
#
|
847
|
-
# `Deleting`.
|
832
|
+
# The state of the event source mapping. It can be one of the
|
833
|
+
# following: `Creating`, `Enabling`, `Enabled`, `Disabling`,
|
834
|
+
# `Disabled`, `Updating`, or `Deleting`.
|
848
835
|
# @return [String]
|
849
836
|
#
|
850
837
|
# @!attribute [rw] state_transition_reason
|
851
|
-
# The
|
852
|
-
#
|
838
|
+
# The cause of the last state change, either `User initiated` or
|
839
|
+
# `Lambda initiated`.
|
853
840
|
# @return [String]
|
854
841
|
#
|
855
842
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
|
@@ -1103,7 +1090,7 @@ module Aws::Lambda
|
|
1103
1090
|
# }
|
1104
1091
|
#
|
1105
1092
|
# @!attribute [rw] uuid
|
1106
|
-
# The
|
1093
|
+
# The identifier of the event source mapping.
|
1107
1094
|
# @return [String]
|
1108
1095
|
#
|
1109
1096
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMappingRequest AWS API Documentation
|
@@ -1572,12 +1559,18 @@ module Aws::Lambda
|
|
1572
1559
|
# }
|
1573
1560
|
#
|
1574
1561
|
# @!attribute [rw] event_source_arn
|
1575
|
-
# The Amazon Resource Name (ARN) of the
|
1576
|
-
#
|
1562
|
+
# The Amazon Resource Name (ARN) of the event source.
|
1563
|
+
#
|
1564
|
+
# * **Amazon Kinesis** - The ARN of the data stream or a stream
|
1565
|
+
# consumer.
|
1566
|
+
#
|
1567
|
+
# * **Amazon DynamoDB Streams** - The ARN of the stream.
|
1568
|
+
#
|
1569
|
+
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
1577
1570
|
# @return [String]
|
1578
1571
|
#
|
1579
1572
|
# @!attribute [rw] function_name
|
1580
|
-
# The name of the
|
1573
|
+
# The name of the Lambda function.
|
1581
1574
|
#
|
1582
1575
|
# **Name formats**
|
1583
1576
|
#
|
@@ -1592,18 +1585,15 @@ module Aws::Lambda
|
|
1592
1585
|
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
1593
1586
|
#
|
1594
1587
|
# The length constraint applies only to the full ARN. If you specify
|
1595
|
-
# only the function name, it
|
1588
|
+
# only the function name, it's limited to 64 characters in length.
|
1596
1589
|
# @return [String]
|
1597
1590
|
#
|
1598
1591
|
# @!attribute [rw] marker
|
1599
|
-
#
|
1600
|
-
# `ListEventSourceMappings` operation. If present, specifies to
|
1601
|
-
# continue the list from where the returning call left off.
|
1592
|
+
# A pagination token returned by a previous call.
|
1602
1593
|
# @return [String]
|
1603
1594
|
#
|
1604
1595
|
# @!attribute [rw] max_items
|
1605
|
-
#
|
1606
|
-
# return in response. This value must be greater than 0.
|
1596
|
+
# The maximum number of event source mappings to return.
|
1607
1597
|
# @return [Integer]
|
1608
1598
|
#
|
1609
1599
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappingsRequest AWS API Documentation
|
@@ -1616,14 +1606,13 @@ module Aws::Lambda
|
|
1616
1606
|
include Aws::Structure
|
1617
1607
|
end
|
1618
1608
|
|
1619
|
-
# Contains a list of event sources (see EventSourceMappingConfiguration)
|
1620
|
-
#
|
1621
1609
|
# @!attribute [rw] next_marker
|
1622
|
-
# A
|
1610
|
+
# A pagination token that's returned when the response doesn't
|
1611
|
+
# contain all event source mappings.
|
1623
1612
|
# @return [String]
|
1624
1613
|
#
|
1625
1614
|
# @!attribute [rw] event_source_mappings
|
1626
|
-
#
|
1615
|
+
# A list of event source mappings.
|
1627
1616
|
# @return [Array<Types::EventSourceMappingConfiguration>]
|
1628
1617
|
#
|
1629
1618
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappingsResponse AWS API Documentation
|
@@ -2142,11 +2131,11 @@ module Aws::Lambda
|
|
2142
2131
|
# }
|
2143
2132
|
#
|
2144
2133
|
# @!attribute [rw] uuid
|
2145
|
-
# The event source mapping
|
2134
|
+
# The identifier of the event source mapping.
|
2146
2135
|
# @return [String]
|
2147
2136
|
#
|
2148
2137
|
# @!attribute [rw] function_name
|
2149
|
-
# The name of the
|
2138
|
+
# The name of the Lambda function.
|
2150
2139
|
#
|
2151
2140
|
# **Name formats**
|
2152
2141
|
#
|
@@ -2161,18 +2150,21 @@ module Aws::Lambda
|
|
2161
2150
|
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
2162
2151
|
#
|
2163
2152
|
# The length constraint applies only to the full ARN. If you specify
|
2164
|
-
# only the function name, it
|
2153
|
+
# only the function name, it's limited to 64 characters in length.
|
2165
2154
|
# @return [String]
|
2166
2155
|
#
|
2167
2156
|
# @!attribute [rw] enabled
|
2168
|
-
#
|
2169
|
-
# If disabled, AWS Lambda will not poll the stream.
|
2157
|
+
# Disables the event source mapping to pause polling and invocation.
|
2170
2158
|
# @return [Boolean]
|
2171
2159
|
#
|
2172
2160
|
# @!attribute [rw] batch_size
|
2173
|
-
# The
|
2174
|
-
#
|
2175
|
-
#
|
2161
|
+
# The maximum number of items to retrieve in a single batch.
|
2162
|
+
#
|
2163
|
+
# * **Amazon Kinesis** - Default 100. Max 10,000.
|
2164
|
+
#
|
2165
|
+
# * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
|
2166
|
+
#
|
2167
|
+
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
2176
2168
|
# @return [Integer]
|
2177
2169
|
#
|
2178
2170
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest AWS API Documentation
|
@@ -2301,7 +2293,7 @@ module Aws::Lambda
|
|
2301
2293
|
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
2302
2294
|
# },
|
2303
2295
|
# },
|
2304
|
-
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x
|
2296
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x
|
2305
2297
|
# dead_letter_config: {
|
2306
2298
|
# target_arn: "ResourceArn",
|
2307
2299
|
# },
|
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.14.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: 2018-
|
11
|
+
date: 2018-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.37.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.37.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|