aws-sdk-lambda 1.21.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 392a3b515776b3abdca45f34bfa8c9e13ba418b2
4
- data.tar.gz: f80f989497f686c8aa23e4df7c8c2ff934e553ac
3
+ metadata.gz: 06afa1fa8c92636bbb9776184ddacece8ab545c6
4
+ data.tar.gz: 2825bf75e44e2880800f01e2a56889b75c903c05
5
5
  SHA512:
6
- metadata.gz: fddac6782c1490e524068353b729f6dd50c1fc0e119e7f85f6cb0a411f8fc4a10f06cd32f0644352f0744ba046ae6f0dc382bcd65762d654fde223561911dfad
7
- data.tar.gz: 5a95f1b2af3952d4cb9ef002e079900d09277693bfc8892c266eb5fa3d50dd47ab2cf1eb38949db8bc2e61ae321f1795c7132bed5c87f21aef453c9e3ce779d6
6
+ metadata.gz: 88077fdf0e04716cb1b838a3e9bc22ad28273412bf1abced93532dfdb3374078de696e208a08456a593cdd46d0dd57a9ed2e3b43361cee33c8301f0f2b4fecfb
7
+ data.tar.gz: b9bba4eeb1ac5ee566fdcec9517ce442becfe8a6314fde25a591035d11c7b3c7158dc6db11578f01eebceddfcd23ec6e2cee12ed0ef8e925b1d120c0fde40e1e
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-lambda/customizations'
42
42
  # @service
43
43
  module Aws::Lambda
44
44
 
45
- GEM_VERSION = '1.21.0'
45
+ GEM_VERSION = '1.22.0'
46
46
 
47
47
  end
@@ -199,6 +199,49 @@ module Aws::Lambda
199
199
  # When `true`, request parameters are validated before
200
200
  # sending the request.
201
201
  #
202
+ # @option options [URI::HTTP,String] :http_proxy A proxy to send
203
+ # requests through. Formatted like 'http://proxy.com:123'.
204
+ #
205
+ # @option options [Float] :http_open_timeout (15) The number of
206
+ # seconds to wait when opening a HTTP session before rasing a
207
+ # `Timeout::Error`.
208
+ #
209
+ # @option options [Integer] :http_read_timeout (60) The default
210
+ # number of seconds to wait for response data. This value can
211
+ # safely be set
212
+ # per-request on the session yeidled by {#session_for}.
213
+ #
214
+ # @option options [Float] :http_idle_timeout (5) The number of
215
+ # seconds a connection is allowed to sit idble before it is
216
+ # considered stale. Stale connections are closed and removed
217
+ # from the pool before making a request.
218
+ #
219
+ # @option options [Float] :http_continue_timeout (1) The number of
220
+ # seconds to wait for a 100-continue response before sending the
221
+ # request body. This option has no effect unless the request has
222
+ # "Expect" header set to "100-continue". Defaults to `nil` which
223
+ # disables this behaviour. This value can safely be set per
224
+ # request on the session yeidled by {#session_for}.
225
+ #
226
+ # @option options [Boolean] :http_wire_trace (false) When `true`,
227
+ # HTTP debug output will be sent to the `:logger`.
228
+ #
229
+ # @option options [Boolean] :ssl_verify_peer (true) When `true`,
230
+ # SSL peer certificates are verified when establishing a
231
+ # connection.
232
+ #
233
+ # @option options [String] :ssl_ca_bundle Full path to the SSL
234
+ # certificate authority bundle file that should be used when
235
+ # verifying peer certificates. If you do not pass
236
+ # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
237
+ # will be used if available.
238
+ #
239
+ # @option options [String] :ssl_ca_directory Full path of the
240
+ # directory that contains the unbundled SSL certificate
241
+ # authority files for verifying peer certificates. If you do
242
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
243
+ # system default will be used if available.
244
+ #
202
245
  def initialize(*args)
203
246
  super
204
247
  end
@@ -1622,6 +1665,56 @@ module Aws::Lambda
1622
1665
  req.send_request(options)
1623
1666
  end
1624
1667
 
1668
+ # Returns information about a version of an [AWS Lambda layer][1], with
1669
+ # a link to download the layer archive that's valid for 10 minutes.
1670
+ #
1671
+ #
1672
+ #
1673
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
1674
+ #
1675
+ # @option params [required, String] :arn
1676
+ # The ARN of the layer version.
1677
+ #
1678
+ # @return [Types::GetLayerVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1679
+ #
1680
+ # * {Types::GetLayerVersionResponse#content #content} => Types::LayerVersionContentOutput
1681
+ # * {Types::GetLayerVersionResponse#layer_arn #layer_arn} => String
1682
+ # * {Types::GetLayerVersionResponse#layer_version_arn #layer_version_arn} => String
1683
+ # * {Types::GetLayerVersionResponse#description #description} => String
1684
+ # * {Types::GetLayerVersionResponse#created_date #created_date} => Time
1685
+ # * {Types::GetLayerVersionResponse#version #version} => Integer
1686
+ # * {Types::GetLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array<String>
1687
+ # * {Types::GetLayerVersionResponse#license_info #license_info} => String
1688
+ #
1689
+ # @example Request syntax with placeholder values
1690
+ #
1691
+ # resp = client.get_layer_version_by_arn({
1692
+ # arn: "LayerVersionArn", # required
1693
+ # })
1694
+ #
1695
+ # @example Response structure
1696
+ #
1697
+ # resp.content.location #=> String
1698
+ # resp.content.code_sha_256 #=> String
1699
+ # resp.content.code_size #=> Integer
1700
+ # resp.layer_arn #=> String
1701
+ # resp.layer_version_arn #=> String
1702
+ # resp.description #=> String
1703
+ # resp.created_date #=> Time
1704
+ # resp.version #=> Integer
1705
+ # resp.compatible_runtimes #=> Array
1706
+ # resp.compatible_runtimes[0] #=> 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", "ruby2.5", "provided"
1707
+ # resp.license_info #=> String
1708
+ #
1709
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArn AWS API Documentation
1710
+ #
1711
+ # @overload get_layer_version_by_arn(params = {})
1712
+ # @param [Hash] params ({})
1713
+ def get_layer_version_by_arn(params = {}, options = {})
1714
+ req = build_request(:get_layer_version_by_arn, params)
1715
+ req.send_request(options)
1716
+ end
1717
+
1625
1718
  # Returns the permission policy for a version of an [AWS Lambda
1626
1719
  # layer][1]. For more information, see AddLayerVersionPermission.
1627
1720
  #
@@ -1740,9 +1833,15 @@ module Aws::Lambda
1740
1833
  # asynchronous invocations, configure your function with a [dead letter
1741
1834
  # queue][2].
1742
1835
  #
1836
+ # When an error occurs, your function may be invoked multiple times.
1837
+ # Retry behavior varies by error type, client, event source, and
1838
+ # invocation type. For example, if you invoke a function asynchronously
1839
+ # and it returns an error, Lambda executes the function up to two more
1840
+ # times. For more information, see [Retry Behavior][3].
1841
+ #
1743
1842
  # The status code in the API response doesn't reflect function errors.
1744
1843
  # Error codes are reserved for errors that prevent your function from
1745
- # executing, such as permissions errors, [limit errors][3], or issues
1844
+ # executing, such as permissions errors, [limit errors][4], or issues
1746
1845
  # with your function's code and configuration. For example, Lambda
1747
1846
  # returns `TooManyRequestsException` if executing the function would
1748
1847
  # cause you to exceed a concurrency limit at either the account level
@@ -1761,7 +1860,8 @@ module Aws::Lambda
1761
1860
  #
1762
1861
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html
1763
1862
  # [2]: https://docs.aws.amazon.com/lambda/latest/dg/dlq.html
1764
- # [3]: https://docs.aws.amazon.com/lambda/latest/dg/limits.html
1863
+ # [3]: https://docs.aws.amazon.com/lambda/latest/dg/retries-on-errors.html
1864
+ # [4]: https://docs.aws.amazon.com/lambda/latest/dg/limits.html
1765
1865
  #
1766
1866
  # @option params [required, String] :function_name
1767
1867
  # The name of the Lambda function, version, or alias.
@@ -3266,7 +3366,7 @@ module Aws::Lambda
3266
3366
  req.send_request(options)
3267
3367
  end
3268
3368
 
3269
- # Modify the version-specifc settings of a Lambda function.
3369
+ # Modify the version-specific settings of a Lambda function.
3270
3370
  #
3271
3371
  # These settings can vary between versions of a function and are locked
3272
3372
  # when you publish a version. You can't modify the configuration of a
@@ -3511,7 +3611,7 @@ module Aws::Lambda
3511
3611
  params: params,
3512
3612
  config: config)
3513
3613
  context[:gem_name] = 'aws-sdk-lambda'
3514
- context[:gem_version] = '1.21.0'
3614
+ context[:gem_version] = '1.22.0'
3515
3615
  Seahorse::Client::Request.new(handlers, context)
3516
3616
  end
3517
3617
 
@@ -72,6 +72,7 @@ module Aws::Lambda
72
72
  GetFunctionConfigurationRequest = Shapes::StructureShape.new(name: 'GetFunctionConfigurationRequest')
73
73
  GetFunctionRequest = Shapes::StructureShape.new(name: 'GetFunctionRequest')
74
74
  GetFunctionResponse = Shapes::StructureShape.new(name: 'GetFunctionResponse')
75
+ GetLayerVersionByArnRequest = Shapes::StructureShape.new(name: 'GetLayerVersionByArnRequest')
75
76
  GetLayerVersionPolicyRequest = Shapes::StructureShape.new(name: 'GetLayerVersionPolicyRequest')
76
77
  GetLayerVersionPolicyResponse = Shapes::StructureShape.new(name: 'GetLayerVersionPolicyResponse')
77
78
  GetLayerVersionRequest = Shapes::StructureShape.new(name: 'GetLayerVersionRequest')
@@ -393,6 +394,9 @@ module Aws::Lambda
393
394
  GetFunctionResponse.add_member(:concurrency, Shapes::ShapeRef.new(shape: Concurrency, location_name: "Concurrency"))
394
395
  GetFunctionResponse.struct_class = Types::GetFunctionResponse
395
396
 
397
+ GetLayerVersionByArnRequest.add_member(:arn, Shapes::ShapeRef.new(shape: LayerVersionArn, required: true, location: "querystring", location_name: "Arn"))
398
+ GetLayerVersionByArnRequest.struct_class = Types::GetLayerVersionByArnRequest
399
+
396
400
  GetLayerVersionPolicyRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
397
401
  GetLayerVersionPolicyRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
398
402
  GetLayerVersionPolicyRequest.struct_class = Types::GetLayerVersionPolicyRequest
@@ -877,6 +881,18 @@ module Aws::Lambda
877
881
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
878
882
  end)
879
883
 
884
+ api.add_operation(:get_layer_version_by_arn, Seahorse::Model::Operation.new.tap do |o|
885
+ o.name = "GetLayerVersionByArn"
886
+ o.http_method = "GET"
887
+ o.http_request_uri = "/2018-10-31/layers?find=LayerVersion"
888
+ o.input = Shapes::ShapeRef.new(shape: GetLayerVersionByArnRequest)
889
+ o.output = Shapes::ShapeRef.new(shape: GetLayerVersionResponse)
890
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
891
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
892
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
893
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
894
+ end)
895
+
880
896
  api.add_operation(:get_layer_version_policy, Seahorse::Model::Operation.new.tap do |o|
881
897
  o.name = "GetLayerVersionPolicy"
882
898
  o.http_method = "GET"
@@ -1309,6 +1309,24 @@ module Aws::Lambda
1309
1309
  include Aws::Structure
1310
1310
  end
1311
1311
 
1312
+ # @note When making an API call, you may pass GetLayerVersionByArnRequest
1313
+ # data as a hash:
1314
+ #
1315
+ # {
1316
+ # arn: "LayerVersionArn", # required
1317
+ # }
1318
+ #
1319
+ # @!attribute [rw] arn
1320
+ # The ARN of the layer version.
1321
+ # @return [String]
1322
+ #
1323
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArnRequest AWS API Documentation
1324
+ #
1325
+ class GetLayerVersionByArnRequest < Struct.new(
1326
+ :arn)
1327
+ include Aws::Structure
1328
+ end
1329
+
1312
1330
  # @note When making an API call, you may pass GetLayerVersionPolicyRequest
1313
1331
  # data as a hash:
1314
1332
  #
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.21.0
4
+ version: 1.22.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: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -59,7 +59,7 @@ files:
59
59
  - lib/aws-sdk-lambda/errors.rb
60
60
  - lib/aws-sdk-lambda/resource.rb
61
61
  - lib/aws-sdk-lambda/types.rb
62
- homepage: http://github.com/aws/aws-sdk-ruby
62
+ homepage: https://github.com/aws/aws-sdk-ruby
63
63
  licenses:
64
64
  - Apache-2.0
65
65
  metadata: