aws-sdk-lambda 1.37.0 → 1.42.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Lambda
9
- # This class provides a resource oriented interface for Lambda.
10
- # To create a resource object:
11
- # resource = Aws::Lambda::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::Lambda::Client.new(region: 'us-west-2')
15
- # resource = Aws::Lambda::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -196,13 +196,10 @@ module Aws::Lambda
196
196
  # @return [String]
197
197
  #
198
198
  # @!attribute [rw] source_account
199
- # For AWS services, the ID of the account that owns the resource. Use
200
- # this instead of `SourceArn` to grant permission to resources that
201
- # are owned by another account (for example, all of an account's
202
- # Amazon S3 buckets). Or use it together with `SourceArn` to ensure
203
- # that the resource is owned by the specified account. For example, an
204
- # Amazon S3 bucket could be deleted by its owner and recreated by
205
- # another account.
199
+ # For Amazon S3, the ID of the account that owns the resource. Use
200
+ # this together with `SourceArn` to ensure that the resource is owned
201
+ # by the specified account. It is possible for an Amazon S3 bucket to
202
+ # be deleted by its owner and recreated by another account.
206
203
  # @return [String]
207
204
  #
208
205
  # @!attribute [rw] event_source_token
@@ -490,8 +487,8 @@ module Aws::Lambda
490
487
  # @return [Integer]
491
488
  #
492
489
  # @!attribute [rw] maximum_batching_window_in_seconds
493
- # The maximum amount of time to gather records before invoking the
494
- # function, in seconds.
490
+ # (Streams) The maximum amount of time to gather records before
491
+ # invoking the function, in seconds.
495
492
  # @return [Integer]
496
493
  #
497
494
  # @!attribute [rw] parallelization_factor
@@ -553,7 +550,7 @@ module Aws::Lambda
553
550
  #
554
551
  # {
555
552
  # function_name: "FunctionName", # required
556
- # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
553
+ # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
557
554
  # role: "RoleArn", # required
558
555
  # handler: "Handler", # required
559
556
  # code: { # required
@@ -1151,8 +1148,8 @@ module Aws::Lambda
1151
1148
  # @return [Integer]
1152
1149
  #
1153
1150
  # @!attribute [rw] maximum_batching_window_in_seconds
1154
- # The maximum amount of time to gather records before invoking the
1155
- # function, in seconds.
1151
+ # (Streams) The maximum amount of time to gather records before
1152
+ # invoking the function, in seconds.
1156
1153
  # @return [Integer]
1157
1154
  #
1158
1155
  # @!attribute [rw] parallelization_factor
@@ -1320,8 +1317,8 @@ module Aws::Lambda
1320
1317
  # @return [String]
1321
1318
  #
1322
1319
  # @!attribute [rw] timeout
1323
- # The amount of time that Lambda allows a function to run before
1324
- # stopping it.
1320
+ # The amount of time in seconds that Lambda allows a function to run
1321
+ # before stopping it.
1325
1322
  # @return [Integer]
1326
1323
  #
1327
1324
  # @!attribute [rw] memory_size
@@ -2786,7 +2783,7 @@ module Aws::Lambda
2786
2783
  # data as a hash:
2787
2784
  #
2788
2785
  # {
2789
- # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
2786
+ # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
2790
2787
  # layer_name: "LayerName", # required
2791
2788
  # marker: "String",
2792
2789
  # max_items: 1,
@@ -2839,7 +2836,7 @@ module Aws::Lambda
2839
2836
  # data as a hash:
2840
2837
  #
2841
2838
  # {
2842
- # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
2839
+ # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
2843
2840
  # marker: "String",
2844
2841
  # max_items: 1,
2845
2842
  # }
@@ -3187,7 +3184,7 @@ module Aws::Lambda
3187
3184
  # s3_object_version: "S3ObjectVersion",
3188
3185
  # zip_file: "data",
3189
3186
  # },
3190
- # compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
3187
+ # compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
3191
3188
  # license_info: "LicenseInfo",
3192
3189
  # }
3193
3190
  #
@@ -4015,8 +4012,8 @@ module Aws::Lambda
4015
4012
  # @return [Integer]
4016
4013
  #
4017
4014
  # @!attribute [rw] maximum_batching_window_in_seconds
4018
- # The maximum amount of time to gather records before invoking the
4019
- # function, in seconds.
4015
+ # (Streams) The maximum amount of time to gather records before
4016
+ # invoking the function, in seconds.
4020
4017
  # @return [Integer]
4021
4018
  #
4022
4019
  # @!attribute [rw] destination_config
@@ -4159,7 +4156,7 @@ module Aws::Lambda
4159
4156
  # "EnvironmentVariableName" => "EnvironmentVariableValue",
4160
4157
  # },
4161
4158
  # },
4162
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
4159
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
4163
4160
  # dead_letter_config: {
4164
4161
  # target_arn: "ResourceArn",
4165
4162
  # },
@@ -8,6 +8,69 @@
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
10
  module Aws::Lambda
11
+ # Waiters are utility methods that poll for a particular state to occur
12
+ # on a client. Waiters can fail after a number of attempts at a polling
13
+ # interval defined for the service client.
14
+ #
15
+ # For a list of operations that can be waited for and the
16
+ # client methods called for each operation, see the table below or the
17
+ # {Client#wait_until} field documentation for the {Client}.
18
+ #
19
+ # # Invoking a Waiter
20
+ # To invoke a waiter, call #wait_until on a {Client}. The first parameter
21
+ # is the waiter name, which is specific to the service client and indicates
22
+ # which operation is being waited for. The second parameter is a hash of
23
+ # parameters that are passed to the client method called by the waiter,
24
+ # which varies according to the waiter name.
25
+ #
26
+ # # Wait Failures
27
+ # To catch errors in a waiter, use WaiterFailed,
28
+ # as shown in the following example.
29
+ #
30
+ # rescue rescue Aws::Waiters::Errors::WaiterFailed => error
31
+ # puts "failed waiting for instance running: #{error.message}
32
+ # end
33
+ #
34
+ # # Configuring a Waiter
35
+ # Each waiter has a default polling interval and a maximum number of
36
+ # attempts it will make before returning control to your program.
37
+ # To set these values, use the `max_attempts` and `delay` parameters
38
+ # in your `#wait_until` call.
39
+ # The following example waits for up to 25 seconds, polling every five seconds.
40
+ #
41
+ # client.wait_until(...) do |w|
42
+ # w.max_attempts = 5
43
+ # w.delay = 5
44
+ # end
45
+ #
46
+ # To disable wait failures, set the value of either of these parameters
47
+ # to `nil`.
48
+ #
49
+ # # Extending a Waiter
50
+ # To modify the behavior of waiters, you can register callbacks that are
51
+ # triggered before each polling attempt and before waiting.
52
+ #
53
+ # The following example implements an exponential backoff in a waiter
54
+ # by doubling the amount of time to wait on every attempt.
55
+ #
56
+ # client.wait_until(...) do |w|
57
+ # w.interval = 0 # disable normal sleep
58
+ # w.before_wait do |n, resp|
59
+ # sleep(n ** 2)
60
+ # end
61
+ # end
62
+ #
63
+ # # Available Waiters
64
+ #
65
+ # The following table lists the valid waiter names, the operations they call,
66
+ # and the default `:delay` and `:max_attempts` values.
67
+ #
68
+ # | waiter_name | params | :delay | :max_attempts |
69
+ # | ---------------- | ----------------------------------- | -------- | ------------- |
70
+ # | function_active | {Client#get_function_configuration} | 5 | 60 |
71
+ # | function_exists | {Client#get_function} | 1 | 20 |
72
+ # | function_updated | {Client#get_function_configuration} | 5 | 60 |
73
+ #
11
74
  module Waiters
12
75
 
13
76
  # Waits for the function's State to be Active.
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.37.0
4
+ version: 1.42.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-03-09 00:00:00.000000000 Z
11
+ date: 2020-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.5.2.3
85
+ rubygems_version: 2.7.6.2
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: AWS SDK for Ruby - AWS Lambda