aws-sdk-lambda 1.6.0 → 1.7.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 +26 -22
- data/lib/aws-sdk-lambda/client_api.rb +4 -1
- data/lib/aws-sdk-lambda/types.rb +14 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f1ff0773638019966bd7b49189e2f618cde61a1
|
4
|
+
data.tar.gz: 2ff2eee9902f16d117d803243d67eb109f56fc18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89206f987f4228f96540f77afe2d8e85442ff03618db037b7027c42c5e8a3565a37da1fcec80f535d0525fad9fdcb51dd3bbc16d859b4109363a95f8c5d9c947
|
7
|
+
data.tar.gz: 77a59c3430a9ca5a56ae7b36a261738e6b27d054aac179b812397c7ddec0d632bc30838f2b9d66b5e7a47a4bf11af61efcde7b7da0fa50ad0f4e74be6ec3a134
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -381,20 +381,24 @@ module Aws::Lambda
|
|
381
381
|
req.send_request(options)
|
382
382
|
end
|
383
383
|
|
384
|
-
# Identifies a
|
385
|
-
#
|
386
|
-
# Lambda invokes the specified function when records are posted to
|
387
|
-
#
|
384
|
+
# Identifies a poll-based event source for a Lambda function. It can be
|
385
|
+
# either an Amazon Kinesis or DynamoDB stream, or an Amazon SQS queue.
|
386
|
+
# AWS Lambda invokes the specified function when records are posted to
|
387
|
+
# the event source.
|
388
388
|
#
|
389
|
-
# This association between a
|
389
|
+
# This association between a poll-based source and a Lambda function is
|
390
390
|
# called the event source mapping.
|
391
391
|
#
|
392
|
-
# You provide mapping information (for example, which stream
|
393
|
-
# from and which Lambda function to invoke) in the request
|
392
|
+
# You provide mapping information (for example, which stream or SQS
|
393
|
+
# queue to read from and which Lambda function to invoke) in the request
|
394
|
+
# body.
|
394
395
|
#
|
395
|
-
#
|
396
|
-
#
|
397
|
-
#
|
396
|
+
# Amazon Kinesis or DynamoDB stream event sources can be associated with
|
397
|
+
# multiple AWS Lambda functions and a given Lambda function can be
|
398
|
+
# associated with multiple AWS event sources. For Amazon SQS, you can
|
399
|
+
# configure multiple queues as event sources for a single Lambda
|
400
|
+
# function, but an SQS queue can be mapped only to a single Lambda
|
401
|
+
# function.
|
398
402
|
#
|
399
403
|
# If you are using versioning, you can specify a specific function
|
400
404
|
# version or an alias via the function name parameter. For more
|
@@ -409,11 +413,10 @@ module Aws::Lambda
|
|
409
413
|
# [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
|
410
414
|
#
|
411
415
|
# @option params [required, String] :event_source_arn
|
412
|
-
# The Amazon Resource Name (ARN) of the
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
# containing records, to your Lambda function as JSON.
|
416
|
+
# The Amazon Resource Name (ARN) of the event source. Any record added
|
417
|
+
# to this source could cause AWS Lambda to invoke your Lambda function,
|
418
|
+
# it depends on the `BatchSize`. AWS Lambda POSTs the event's records
|
419
|
+
# to your Lambda function as JSON.
|
417
420
|
#
|
418
421
|
# @option params [required, String] :function_name
|
419
422
|
# The Lambda function to invoke when AWS Lambda detects an event on the
|
@@ -446,10 +449,11 @@ module Aws::Lambda
|
|
446
449
|
# @option params [Integer] :batch_size
|
447
450
|
# The largest number of records that AWS Lambda will retrieve from your
|
448
451
|
# event source at the time of invoking your function. Your function
|
449
|
-
# receives an event with all the retrieved records. The default
|
450
|
-
# records.
|
452
|
+
# receives an event with all the retrieved records. The default for
|
453
|
+
# Amazon Kinesis and Amazon DynamoDB is 100 records. For SQS, the
|
454
|
+
# default is 1.
|
451
455
|
#
|
452
|
-
# @option params [
|
456
|
+
# @option params [String] :starting_position
|
453
457
|
# The position in the DynamoDB or Kinesis stream where AWS Lambda should
|
454
458
|
# start reading. For more information, see [GetShardIterator][1] in the
|
455
459
|
# *Amazon Kinesis API Reference Guide* or [GetShardIterator][2] in the
|
@@ -493,7 +497,7 @@ module Aws::Lambda
|
|
493
497
|
# function_name: "FunctionName", # required
|
494
498
|
# enabled: false,
|
495
499
|
# batch_size: 1,
|
496
|
-
# starting_position: "TRIM_HORIZON", #
|
500
|
+
# starting_position: "TRIM_HORIZON", # accepts TRIM_HORIZON, LATEST, AT_TIMESTAMP
|
497
501
|
# starting_position_timestamp: Time.now,
|
498
502
|
# })
|
499
503
|
#
|
@@ -1850,8 +1854,8 @@ module Aws::Lambda
|
|
1850
1854
|
# [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
|
1851
1855
|
#
|
1852
1856
|
# @option params [String] :event_source_arn
|
1853
|
-
# The Amazon Resource Name (ARN) of the Amazon Kinesis
|
1854
|
-
# parameter is optional.)
|
1857
|
+
# The Amazon Resource Name (ARN) of the Amazon Kinesis or DynamoDB
|
1858
|
+
# stream, or an SQS queue. (This parameter is optional.)
|
1855
1859
|
#
|
1856
1860
|
# @option params [String] :function_name
|
1857
1861
|
# The name of the Lambda function.
|
@@ -3157,7 +3161,7 @@ module Aws::Lambda
|
|
3157
3161
|
params: params,
|
3158
3162
|
config: config)
|
3159
3163
|
context[:gem_name] = 'aws-sdk-lambda'
|
3160
|
-
context[:gem_version] = '1.
|
3164
|
+
context[:gem_version] = '1.7.0'
|
3161
3165
|
Seahorse::Client::Request.new(handlers, context)
|
3162
3166
|
end
|
3163
3167
|
|
@@ -118,6 +118,7 @@ module Aws::Lambda
|
|
118
118
|
ReservedConcurrentExecutions = Shapes::IntegerShape.new(name: 'ReservedConcurrentExecutions')
|
119
119
|
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
120
120
|
ResourceConflictException = Shapes::StructureShape.new(name: 'ResourceConflictException')
|
121
|
+
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
121
122
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
122
123
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
123
124
|
Runtime = Shapes::StringShape.new(name: 'Runtime')
|
@@ -214,7 +215,7 @@ module Aws::Lambda
|
|
214
215
|
CreateEventSourceMappingRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
|
215
216
|
CreateEventSourceMappingRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "Enabled"))
|
216
217
|
CreateEventSourceMappingRequest.add_member(:batch_size, Shapes::ShapeRef.new(shape: BatchSize, location_name: "BatchSize"))
|
217
|
-
CreateEventSourceMappingRequest.add_member(:starting_position, Shapes::ShapeRef.new(shape: EventSourcePosition,
|
218
|
+
CreateEventSourceMappingRequest.add_member(:starting_position, Shapes::ShapeRef.new(shape: EventSourcePosition, location_name: "StartingPosition"))
|
218
219
|
CreateEventSourceMappingRequest.add_member(:starting_position_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "StartingPositionTimestamp"))
|
219
220
|
CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
|
220
221
|
|
@@ -595,6 +596,7 @@ module Aws::Lambda
|
|
595
596
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
596
597
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
597
598
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
599
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
598
600
|
end)
|
599
601
|
|
600
602
|
api.add_operation(:delete_function, Seahorse::Model::Operation.new.tap do |o|
|
@@ -891,6 +893,7 @@ module Aws::Lambda
|
|
891
893
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
892
894
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
893
895
|
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
896
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
894
897
|
end)
|
895
898
|
|
896
899
|
api.add_operation(:update_function_code, Seahorse::Model::Operation.new.tap do |o|
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -354,16 +354,15 @@ module Aws::Lambda
|
|
354
354
|
# function_name: "FunctionName", # required
|
355
355
|
# enabled: false,
|
356
356
|
# batch_size: 1,
|
357
|
-
# starting_position: "TRIM_HORIZON", #
|
357
|
+
# starting_position: "TRIM_HORIZON", # accepts TRIM_HORIZON, LATEST, AT_TIMESTAMP
|
358
358
|
# starting_position_timestamp: Time.now,
|
359
359
|
# }
|
360
360
|
#
|
361
361
|
# @!attribute [rw] event_source_arn
|
362
|
-
# The Amazon Resource Name (ARN) of the
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
# event, containing records, to your Lambda function as JSON.
|
362
|
+
# The Amazon Resource Name (ARN) of the event source. Any record added
|
363
|
+
# to this source could cause AWS Lambda to invoke your Lambda
|
364
|
+
# function, it depends on the `BatchSize`. AWS Lambda POSTs the
|
365
|
+
# event's records to your Lambda function as JSON.
|
367
366
|
# @return [String]
|
368
367
|
#
|
369
368
|
# @!attribute [rw] function_name
|
@@ -400,7 +399,8 @@ module Aws::Lambda
|
|
400
399
|
# The largest number of records that AWS Lambda will retrieve from
|
401
400
|
# your event source at the time of invoking your function. Your
|
402
401
|
# function receives an event with all the retrieved records. The
|
403
|
-
# default is 100 records.
|
402
|
+
# default for Amazon Kinesis and Amazon DynamoDB is 100 records. For
|
403
|
+
# SQS, the default is 1.
|
404
404
|
# @return [Integer]
|
405
405
|
#
|
406
406
|
# @!attribute [rw] starting_position
|
@@ -826,8 +826,8 @@ module Aws::Lambda
|
|
826
826
|
include Aws::Structure
|
827
827
|
end
|
828
828
|
|
829
|
-
# Describes mapping between an Amazon Kinesis stream
|
830
|
-
# function.
|
829
|
+
# Describes mapping between an Amazon Kinesis or DynamoDB stream or an
|
830
|
+
# Amazon SQS queue and a Lambda function.
|
831
831
|
#
|
832
832
|
# @!attribute [rw] uuid
|
833
833
|
# The AWS Lambda assigned opaque identifier for the mapping.
|
@@ -840,13 +840,13 @@ module Aws::Lambda
|
|
840
840
|
# @return [Integer]
|
841
841
|
#
|
842
842
|
# @!attribute [rw] event_source_arn
|
843
|
-
# The Amazon Resource Name (ARN) of the Amazon Kinesis
|
844
|
-
# the source of events.
|
843
|
+
# The Amazon Resource Name (ARN) of the Amazon Kinesis or DynamoDB
|
844
|
+
# stream or the SQS queue that is the source of events.
|
845
845
|
# @return [String]
|
846
846
|
#
|
847
847
|
# @!attribute [rw] function_arn
|
848
848
|
# The Lambda function to invoke when AWS Lambda detects an event on
|
849
|
-
# the
|
849
|
+
# the poll-based source.
|
850
850
|
# @return [String]
|
851
851
|
#
|
852
852
|
# @!attribute [rw] last_modified
|
@@ -1578,8 +1578,8 @@ module Aws::Lambda
|
|
1578
1578
|
# }
|
1579
1579
|
#
|
1580
1580
|
# @!attribute [rw] event_source_arn
|
1581
|
-
# The Amazon Resource Name (ARN) of the Amazon Kinesis
|
1582
|
-
# parameter is optional.)
|
1581
|
+
# The Amazon Resource Name (ARN) of the Amazon Kinesis or DynamoDB
|
1582
|
+
# stream, or an SQS queue. (This parameter is optional.)
|
1583
1583
|
# @return [String]
|
1584
1584
|
#
|
1585
1585
|
# @!attribute [rw] function_name
|
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.7.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-06-
|
11
|
+
date: 2018-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|