aws-sdk-lambdapreview 1.0.0.rc1 → 1.0.0.rc2
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-lambdapreview.rb +2 -2
- data/lib/aws-sdk-lambdapreview/client.rb +797 -686
- data/lib/aws-sdk-lambdapreview/client_api.rb +299 -382
- data/lib/aws-sdk-lambdapreview/errors.rb +4 -13
- data/lib/aws-sdk-lambdapreview/resource.rb +12 -14
- data/lib/aws-sdk-lambdapreview/types.rb +602 -532
- 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: 460535877164905529ed34dfe8623c47701ccc8c
|
4
|
+
data.tar.gz: ff965f5ed4e360b6c5cbca32d11ed2bf88117054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdcdcf5b53c259e6d828003e64b6f9695519c3c13dff47b3a40eb0171a6c9a7998a3f3b0ea0fa6e370b686a93cb68d3277b6d596f481554e2d31c0bffcd0e4ec
|
7
|
+
data.tar.gz: c2ef3ef2391a97c7ffa659dff17d582cf301060ad6b2d564c480a8b75f30f4246126ebae72b2535404773af4c565c4a0b83fd2c57f0ea8b9cf90fbdc421ad6d9
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-lambdapreview/customizations'
|
|
42
42
|
# @service
|
43
43
|
module Aws::LambdaPreview
|
44
44
|
|
45
|
-
GEM_VERSION = '1.0.0.
|
45
|
+
GEM_VERSION = '1.0.0.rc2'
|
46
46
|
|
47
47
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
@@ -18,720 +18,831 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
|
18
18
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
19
19
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
20
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
21
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
21
22
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
22
23
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
23
24
|
|
24
25
|
Aws::Plugins::GlobalConfiguration.add_identifier(:lambdapreview)
|
25
26
|
|
26
|
-
module Aws
|
27
|
-
|
28
|
-
class Client < Seahorse::Client::Base
|
27
|
+
module Aws::LambdaPreview
|
28
|
+
class Client < Seahorse::Client::Base
|
29
29
|
|
30
|
-
|
30
|
+
include Aws::ClientStubs
|
31
31
|
|
32
|
-
|
32
|
+
@identifier = :lambdapreview
|
33
33
|
|
34
|
-
|
34
|
+
set_api(ClientApi::API)
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
36
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
37
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
38
|
+
add_plugin(Aws::Plugins::Logging)
|
39
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
40
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
41
|
+
add_plugin(Aws::Plugins::UserAgent)
|
42
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
43
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
44
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
45
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
46
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
47
|
+
add_plugin(Aws::Plugins::StubResponses)
|
48
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
49
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
50
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
51
|
+
add_plugin(Aws::Plugins::Protocols::RestJson)
|
51
52
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
53
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
54
|
+
# Your AWS credentials. This can be an instance of any one of the
|
55
|
+
# following classes:
|
56
|
+
#
|
57
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
58
|
+
# credentials.
|
59
|
+
#
|
60
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
61
|
+
# from an EC2 IMDS on an EC2 instance.
|
62
|
+
#
|
63
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
64
|
+
# shared file, such as `~/.aws/config`.
|
65
|
+
#
|
66
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
67
|
+
#
|
68
|
+
# When `:credentials` are not configured directly, the following
|
69
|
+
# locations will be searched for credentials:
|
70
|
+
#
|
71
|
+
# * `Aws.config[:credentials]`
|
72
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
73
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
74
|
+
# * `~/.aws/credentials`
|
75
|
+
# * `~/.aws/config`
|
76
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
77
|
+
# very aggressive. Construct and pass an instance of
|
78
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
79
|
+
# timeouts.
|
80
|
+
#
|
81
|
+
# @option options [required, String] :region
|
82
|
+
# The AWS region to connect to. The configured `:region` is
|
83
|
+
# used to determine the service `:endpoint`. When not passed,
|
84
|
+
# a default `:region` is search for in the following locations:
|
85
|
+
#
|
86
|
+
# * `Aws.config[:region]`
|
87
|
+
# * `ENV['AWS_REGION']`
|
88
|
+
# * `ENV['AMAZON_REGION']`
|
89
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
90
|
+
# * `~/.aws/credentials`
|
91
|
+
# * `~/.aws/config`
|
92
|
+
#
|
93
|
+
# @option options [String] :access_key_id
|
94
|
+
#
|
95
|
+
# @option options [Boolean] :convert_params (true)
|
96
|
+
# When `true`, an attempt is made to coerce request parameters into
|
97
|
+
# the required types.
|
98
|
+
#
|
99
|
+
# @option options [String] :endpoint
|
100
|
+
# The client endpoint is normally constructed from the `:region`
|
101
|
+
# option. You should only configure an `:endpoint` when connecting
|
102
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
103
|
+
#
|
104
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
105
|
+
# The log formatter.
|
106
|
+
#
|
107
|
+
# @option options [Symbol] :log_level (:info)
|
108
|
+
# The log level to send messages to the `:logger` at.
|
109
|
+
#
|
110
|
+
# @option options [Logger] :logger
|
111
|
+
# The Logger instance to send log messages to. If this option
|
112
|
+
# is not set, logging will be disabled.
|
113
|
+
#
|
114
|
+
# @option options [String] :profile ("default")
|
115
|
+
# Used when loading credentials from the shared credentials file
|
116
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
117
|
+
#
|
118
|
+
# @option options [Integer] :retry_limit (3)
|
119
|
+
# The maximum number of times to retry failed requests. Only
|
120
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
121
|
+
# are retried. Generally, these are throttling errors, data
|
122
|
+
# checksum errors, networking errors, timeout errors and auth
|
123
|
+
# errors from expired credentials.
|
124
|
+
#
|
125
|
+
# @option options [String] :secret_access_key
|
126
|
+
#
|
127
|
+
# @option options [String] :session_token
|
128
|
+
#
|
129
|
+
# @option options [Boolean] :stub_responses (false)
|
130
|
+
# Causes the client to return stubbed responses. By default
|
131
|
+
# fake responses are generated and returned. You can specify
|
132
|
+
# the response data to return or errors to raise by calling
|
133
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
134
|
+
#
|
135
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
136
|
+
# requests are made, and retries are disabled.
|
137
|
+
#
|
138
|
+
# @option options [Boolean] :validate_params (true)
|
139
|
+
# When `true`, request parameters are validated before
|
140
|
+
# sending the request.
|
141
|
+
#
|
142
|
+
def initialize(*args)
|
143
|
+
super
|
144
|
+
end
|
130
145
|
|
131
|
-
|
146
|
+
# @!group API Operations
|
132
147
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
# function_name: "FunctionName", # required
|
238
|
-
# })
|
239
|
-
# @overload delete_function(params = {})
|
240
|
-
# @param [Hash] params ({})
|
241
|
-
def delete_function(params = {}, options = {})
|
242
|
-
req = build_request(:delete_function, params)
|
243
|
-
req.send_request(options)
|
244
|
-
end
|
148
|
+
# Identifies a stream as an event source for an AWS Lambda function. It
|
149
|
+
# can be either an Amazon Kinesis stream or a Amazon DynamoDB stream.
|
150
|
+
# AWS Lambda invokes the specified function when records are posted to
|
151
|
+
# the stream.
|
152
|
+
#
|
153
|
+
# This is the pull model, where AWS Lambda invokes the function. For
|
154
|
+
# more information, go to [AWS Lambda: How it Works][1] in the AWS
|
155
|
+
# Lambda Developer Guide.
|
156
|
+
#
|
157
|
+
# This association between an Amazon Kinesis stream and an AWS Lambda
|
158
|
+
# function is called the event source mapping. You provide the
|
159
|
+
# configuration information (for example, which stream to read from and
|
160
|
+
# which AWS Lambda function to invoke) for the event source mapping in
|
161
|
+
# the request body.
|
162
|
+
#
|
163
|
+
# Each event source, such as a Kinesis stream, can only be associated
|
164
|
+
# with one AWS Lambda function. If you call AddEventSource for an event
|
165
|
+
# source that is already mapped to another AWS Lambda function, the
|
166
|
+
# existing mapping is updated to call the new function instead of the
|
167
|
+
# old one.
|
168
|
+
#
|
169
|
+
# This operation requires permission for the `iam:PassRole` action for
|
170
|
+
# the IAM role. It also requires permission for the
|
171
|
+
# `lambda:AddEventSource` action.
|
172
|
+
#
|
173
|
+
#
|
174
|
+
#
|
175
|
+
# [1]: http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html
|
176
|
+
#
|
177
|
+
# @option params [required, String] :event_source
|
178
|
+
# The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is
|
179
|
+
# the event source. Any record added to this stream causes AWS Lambda to
|
180
|
+
# invoke your Lambda function. AWS Lambda POSTs the Amazon Kinesis
|
181
|
+
# event, containing records, to your Lambda function as JSON.
|
182
|
+
#
|
183
|
+
# @option params [required, String] :function_name
|
184
|
+
# The Lambda function to invoke when AWS Lambda detects an event on the
|
185
|
+
# stream.
|
186
|
+
#
|
187
|
+
# @option params [required, String] :role
|
188
|
+
# The ARN of the IAM role (invocation role) that AWS Lambda can assume
|
189
|
+
# to read from the stream and invoke the function.
|
190
|
+
#
|
191
|
+
# @option params [Integer] :batch_size
|
192
|
+
# The largest number of records that AWS Lambda will give to your
|
193
|
+
# function in a single event. The default is 100 records.
|
194
|
+
#
|
195
|
+
# @option params [Hash<String,String>] :parameters
|
196
|
+
# A map (key-value pairs) defining the configuration for AWS Lambda to
|
197
|
+
# use when reading the event source. Currently, AWS Lambda supports only
|
198
|
+
# the `InitialPositionInStream` key. The valid values are:
|
199
|
+
# "TRIM\_HORIZON" and "LATEST". The default value is
|
200
|
+
# "TRIM\_HORIZON". For more information, go to [ShardIteratorType][1]
|
201
|
+
# in the Amazon Kinesis Service API Reference.
|
202
|
+
#
|
203
|
+
#
|
204
|
+
#
|
205
|
+
# [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
|
206
|
+
#
|
207
|
+
# @return [Types::EventSourceConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
208
|
+
#
|
209
|
+
# * {Types::EventSourceConfiguration#uuid #uuid} => String
|
210
|
+
# * {Types::EventSourceConfiguration#batch_size #batch_size} => Integer
|
211
|
+
# * {Types::EventSourceConfiguration#event_source #event_source} => String
|
212
|
+
# * {Types::EventSourceConfiguration#function_name #function_name} => String
|
213
|
+
# * {Types::EventSourceConfiguration#parameters #parameters} => Hash<String,String>
|
214
|
+
# * {Types::EventSourceConfiguration#role #role} => String
|
215
|
+
# * {Types::EventSourceConfiguration#last_modified #last_modified} => Time
|
216
|
+
# * {Types::EventSourceConfiguration#is_active #is_active} => Boolean
|
217
|
+
# * {Types::EventSourceConfiguration#status #status} => String
|
218
|
+
#
|
219
|
+
# @example Request syntax with placeholder values
|
220
|
+
#
|
221
|
+
# resp = client.add_event_source({
|
222
|
+
# event_source: "String", # required
|
223
|
+
# function_name: "FunctionName", # required
|
224
|
+
# role: "RoleArn", # required
|
225
|
+
# batch_size: 1,
|
226
|
+
# parameters: {
|
227
|
+
# "String" => "String",
|
228
|
+
# },
|
229
|
+
# })
|
230
|
+
#
|
231
|
+
# @example Response structure
|
232
|
+
#
|
233
|
+
# resp.uuid #=> String
|
234
|
+
# resp.batch_size #=> Integer
|
235
|
+
# resp.event_source #=> String
|
236
|
+
# resp.function_name #=> String
|
237
|
+
# resp.parameters #=> Hash
|
238
|
+
# resp.parameters["String"] #=> String
|
239
|
+
# resp.role #=> String
|
240
|
+
# resp.last_modified #=> Time
|
241
|
+
# resp.is_active #=> Boolean
|
242
|
+
# resp.status #=> String
|
243
|
+
#
|
244
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/AddEventSource AWS API Documentation
|
245
|
+
#
|
246
|
+
# @overload add_event_source(params = {})
|
247
|
+
# @param [Hash] params ({})
|
248
|
+
def add_event_source(params = {}, options = {})
|
249
|
+
req = build_request(:add_event_source, params)
|
250
|
+
req.send_request(options)
|
251
|
+
end
|
245
252
|
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
# @example Response structure
|
271
|
-
# resp.uuid #=> String
|
272
|
-
# resp.batch_size #=> Integer
|
273
|
-
# resp.event_source #=> String
|
274
|
-
# resp.function_name #=> String
|
275
|
-
# resp.parameters #=> Hash
|
276
|
-
# resp.parameters["String"] #=> String
|
277
|
-
# resp.role #=> String
|
278
|
-
# resp.last_modified #=> Time
|
279
|
-
# resp.is_active #=> Boolean
|
280
|
-
# resp.status #=> String
|
281
|
-
# @overload get_event_source(params = {})
|
282
|
-
# @param [Hash] params ({})
|
283
|
-
def get_event_source(params = {}, options = {})
|
284
|
-
req = build_request(:get_event_source, params)
|
285
|
-
req.send_request(options)
|
286
|
-
end
|
253
|
+
# Deletes the specified Lambda function code and configuration.
|
254
|
+
#
|
255
|
+
# This operation requires permission for the `lambda:DeleteFunction`
|
256
|
+
# action.
|
257
|
+
#
|
258
|
+
# @option params [required, String] :function_name
|
259
|
+
# The Lambda function to delete.
|
260
|
+
#
|
261
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
262
|
+
#
|
263
|
+
# @example Request syntax with placeholder values
|
264
|
+
#
|
265
|
+
# resp = client.delete_function({
|
266
|
+
# function_name: "FunctionName", # required
|
267
|
+
# })
|
268
|
+
#
|
269
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/DeleteFunction AWS API Documentation
|
270
|
+
#
|
271
|
+
# @overload delete_function(params = {})
|
272
|
+
# @param [Hash] params ({})
|
273
|
+
def delete_function(params = {}, options = {})
|
274
|
+
req = build_request(:delete_function, params)
|
275
|
+
req.send_request(options)
|
276
|
+
end
|
287
277
|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
278
|
+
# Returns configuration information for the specified event source
|
279
|
+
# mapping (see AddEventSource).
|
280
|
+
#
|
281
|
+
# This operation requires permission for the `lambda:GetEventSource`
|
282
|
+
# action.
|
283
|
+
#
|
284
|
+
# @option params [required, String] :uuid
|
285
|
+
# The AWS Lambda assigned ID of the event source mapping.
|
286
|
+
#
|
287
|
+
# @return [Types::EventSourceConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
288
|
+
#
|
289
|
+
# * {Types::EventSourceConfiguration#uuid #uuid} => String
|
290
|
+
# * {Types::EventSourceConfiguration#batch_size #batch_size} => Integer
|
291
|
+
# * {Types::EventSourceConfiguration#event_source #event_source} => String
|
292
|
+
# * {Types::EventSourceConfiguration#function_name #function_name} => String
|
293
|
+
# * {Types::EventSourceConfiguration#parameters #parameters} => Hash<String,String>
|
294
|
+
# * {Types::EventSourceConfiguration#role #role} => String
|
295
|
+
# * {Types::EventSourceConfiguration#last_modified #last_modified} => Time
|
296
|
+
# * {Types::EventSourceConfiguration#is_active #is_active} => Boolean
|
297
|
+
# * {Types::EventSourceConfiguration#status #status} => String
|
298
|
+
#
|
299
|
+
# @example Request syntax with placeholder values
|
300
|
+
#
|
301
|
+
# resp = client.get_event_source({
|
302
|
+
# uuid: "String", # required
|
303
|
+
# })
|
304
|
+
#
|
305
|
+
# @example Response structure
|
306
|
+
#
|
307
|
+
# resp.uuid #=> String
|
308
|
+
# resp.batch_size #=> Integer
|
309
|
+
# resp.event_source #=> String
|
310
|
+
# resp.function_name #=> String
|
311
|
+
# resp.parameters #=> Hash
|
312
|
+
# resp.parameters["String"] #=> String
|
313
|
+
# resp.role #=> String
|
314
|
+
# resp.last_modified #=> Time
|
315
|
+
# resp.is_active #=> Boolean
|
316
|
+
# resp.status #=> String
|
317
|
+
#
|
318
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/GetEventSource AWS API Documentation
|
319
|
+
#
|
320
|
+
# @overload get_event_source(params = {})
|
321
|
+
# @param [Hash] params ({})
|
322
|
+
def get_event_source(params = {}, options = {})
|
323
|
+
req = build_request(:get_event_source, params)
|
324
|
+
req.send_request(options)
|
325
|
+
end
|
329
326
|
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
327
|
+
# Returns the configuration information of the Lambda function and a
|
328
|
+
# presigned URL link to the .zip file you uploaded with UploadFunction
|
329
|
+
# so you can download the .zip file. Note that the URL is valid for up
|
330
|
+
# to 10 minutes. The configuration information is the same information
|
331
|
+
# you provided as parameters when uploading the function.
|
332
|
+
#
|
333
|
+
# This operation requires permission for the `lambda:GetFunction`
|
334
|
+
# action.
|
335
|
+
#
|
336
|
+
# @option params [required, String] :function_name
|
337
|
+
# The Lambda function name.
|
338
|
+
#
|
339
|
+
# @return [Types::GetFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
340
|
+
#
|
341
|
+
# * {Types::GetFunctionResponse#configuration #configuration} => Types::FunctionConfiguration
|
342
|
+
# * {Types::GetFunctionResponse#code #code} => Types::FunctionCodeLocation
|
343
|
+
#
|
344
|
+
# @example Request syntax with placeholder values
|
345
|
+
#
|
346
|
+
# resp = client.get_function({
|
347
|
+
# function_name: "FunctionName", # required
|
348
|
+
# })
|
349
|
+
#
|
350
|
+
# @example Response structure
|
351
|
+
#
|
352
|
+
# resp.configuration.function_name #=> String
|
353
|
+
# resp.configuration.function_arn #=> String
|
354
|
+
# resp.configuration.configuration_id #=> String
|
355
|
+
# resp.configuration.runtime #=> String, one of "nodejs"
|
356
|
+
# resp.configuration.role #=> String
|
357
|
+
# resp.configuration.handler #=> String
|
358
|
+
# resp.configuration.mode #=> String, one of "event"
|
359
|
+
# resp.configuration.code_size #=> Integer
|
360
|
+
# resp.configuration.description #=> String
|
361
|
+
# resp.configuration.timeout #=> Integer
|
362
|
+
# resp.configuration.memory_size #=> Integer
|
363
|
+
# resp.configuration.last_modified #=> Time
|
364
|
+
# resp.code.repository_type #=> String
|
365
|
+
# resp.code.location #=> String
|
366
|
+
#
|
367
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/GetFunction AWS API Documentation
|
368
|
+
#
|
369
|
+
# @overload get_function(params = {})
|
370
|
+
# @param [Hash] params ({})
|
371
|
+
def get_function(params = {}, options = {})
|
372
|
+
req = build_request(:get_function, params)
|
373
|
+
req.send_request(options)
|
374
|
+
end
|
378
375
|
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
376
|
+
# Returns the configuration information of the Lambda function. This the
|
377
|
+
# same information you provided as parameters when uploading the
|
378
|
+
# function by using UploadFunction.
|
379
|
+
#
|
380
|
+
# This operation requires permission for the
|
381
|
+
# `lambda:GetFunctionConfiguration` operation.
|
382
|
+
#
|
383
|
+
# @option params [required, String] :function_name
|
384
|
+
# The name of the Lambda function for which you want to retrieve the
|
385
|
+
# configuration information.
|
386
|
+
#
|
387
|
+
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
388
|
+
#
|
389
|
+
# * {Types::FunctionConfiguration#function_name #function_name} => String
|
390
|
+
# * {Types::FunctionConfiguration#function_arn #function_arn} => String
|
391
|
+
# * {Types::FunctionConfiguration#configuration_id #configuration_id} => String
|
392
|
+
# * {Types::FunctionConfiguration#runtime #runtime} => String
|
393
|
+
# * {Types::FunctionConfiguration#role #role} => String
|
394
|
+
# * {Types::FunctionConfiguration#handler #handler} => String
|
395
|
+
# * {Types::FunctionConfiguration#mode #mode} => String
|
396
|
+
# * {Types::FunctionConfiguration#code_size #code_size} => Integer
|
397
|
+
# * {Types::FunctionConfiguration#description #description} => String
|
398
|
+
# * {Types::FunctionConfiguration#timeout #timeout} => Integer
|
399
|
+
# * {Types::FunctionConfiguration#memory_size #memory_size} => Integer
|
400
|
+
# * {Types::FunctionConfiguration#last_modified #last_modified} => Time
|
401
|
+
#
|
402
|
+
# @example Request syntax with placeholder values
|
403
|
+
#
|
404
|
+
# resp = client.get_function_configuration({
|
405
|
+
# function_name: "FunctionName", # required
|
406
|
+
# })
|
407
|
+
#
|
408
|
+
# @example Response structure
|
409
|
+
#
|
410
|
+
# resp.function_name #=> String
|
411
|
+
# resp.function_arn #=> String
|
412
|
+
# resp.configuration_id #=> String
|
413
|
+
# resp.runtime #=> String, one of "nodejs"
|
414
|
+
# resp.role #=> String
|
415
|
+
# resp.handler #=> String
|
416
|
+
# resp.mode #=> String, one of "event"
|
417
|
+
# resp.code_size #=> Integer
|
418
|
+
# resp.description #=> String
|
419
|
+
# resp.timeout #=> Integer
|
420
|
+
# resp.memory_size #=> Integer
|
421
|
+
# resp.last_modified #=> Time
|
422
|
+
#
|
423
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/GetFunctionConfiguration AWS API Documentation
|
424
|
+
#
|
425
|
+
# @overload get_function_configuration(params = {})
|
426
|
+
# @param [Hash] params ({})
|
427
|
+
def get_function_configuration(params = {}, options = {})
|
428
|
+
req = build_request(:get_function_configuration, params)
|
429
|
+
req.send_request(options)
|
430
|
+
end
|
408
431
|
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
# resp.event_sources[0].batch_size #=> Integer
|
447
|
-
# resp.event_sources[0].event_source #=> String
|
448
|
-
# resp.event_sources[0].function_name #=> String
|
449
|
-
# resp.event_sources[0].parameters #=> Hash
|
450
|
-
# resp.event_sources[0].parameters["String"] #=> String
|
451
|
-
# resp.event_sources[0].role #=> String
|
452
|
-
# resp.event_sources[0].last_modified #=> Time
|
453
|
-
# resp.event_sources[0].is_active #=> Boolean
|
454
|
-
# resp.event_sources[0].status #=> String
|
455
|
-
# @overload list_event_sources(params = {})
|
456
|
-
# @param [Hash] params ({})
|
457
|
-
def list_event_sources(params = {}, options = {})
|
458
|
-
req = build_request(:list_event_sources, params)
|
459
|
-
req.send_request(options)
|
460
|
-
end
|
432
|
+
# Submits an invocation request to AWS Lambda. Upon receiving the
|
433
|
+
# request, Lambda executes the specified function asynchronously. To see
|
434
|
+
# the logs generated by the Lambda function execution, see the
|
435
|
+
# CloudWatch logs console.
|
436
|
+
#
|
437
|
+
# This operation requires permission for the `lambda:InvokeFunction`
|
438
|
+
# action.
|
439
|
+
#
|
440
|
+
# @option params [required, String] :function_name
|
441
|
+
# The Lambda function name.
|
442
|
+
#
|
443
|
+
# @option params [required, String, IO] :invoke_args
|
444
|
+
# JSON that you want to provide to your Lambda function as input.
|
445
|
+
#
|
446
|
+
# @return [Types::InvokeAsyncResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
447
|
+
#
|
448
|
+
# * {Types::InvokeAsyncResponse#status #status} => Integer
|
449
|
+
#
|
450
|
+
# @example Request syntax with placeholder values
|
451
|
+
#
|
452
|
+
# resp = client.invoke_async({
|
453
|
+
# function_name: "FunctionName", # required
|
454
|
+
# invoke_args: "data", # required
|
455
|
+
# })
|
456
|
+
#
|
457
|
+
# @example Response structure
|
458
|
+
#
|
459
|
+
# resp.status #=> Integer
|
460
|
+
#
|
461
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/InvokeAsync AWS API Documentation
|
462
|
+
#
|
463
|
+
# @overload invoke_async(params = {})
|
464
|
+
# @param [Hash] params ({})
|
465
|
+
def invoke_async(params = {}, options = {})
|
466
|
+
req = build_request(:invoke_async, params)
|
467
|
+
req.send_request(options)
|
468
|
+
end
|
461
469
|
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
470
|
+
# Returns a list of event source mappings you created using the
|
471
|
+
# `AddEventSource` (see AddEventSource), where you identify a stream as
|
472
|
+
# event source. This list does not include Amazon S3 event sources.
|
473
|
+
#
|
474
|
+
# For each mapping, the API returns configuration information. You can
|
475
|
+
# optionally specify filters to retrieve specific event source mappings.
|
476
|
+
#
|
477
|
+
# This operation requires permission for the `lambda:ListEventSources`
|
478
|
+
# action.
|
479
|
+
#
|
480
|
+
# @option params [String] :event_source_arn
|
481
|
+
# The Amazon Resource Name (ARN) of the Amazon Kinesis stream.
|
482
|
+
#
|
483
|
+
# @option params [String] :function_name
|
484
|
+
# The name of the AWS Lambda function.
|
485
|
+
#
|
486
|
+
# @option params [String] :marker
|
487
|
+
# Optional string. An opaque pagination token returned from a previous
|
488
|
+
# `ListEventSources` operation. If present, specifies to continue the
|
489
|
+
# list from where the returning call left off.
|
490
|
+
#
|
491
|
+
# @option params [Integer] :max_items
|
492
|
+
# Optional integer. Specifies the maximum number of event sources to
|
493
|
+
# return in response. This value must be greater than 0.
|
494
|
+
#
|
495
|
+
# @return [Types::ListEventSourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
496
|
+
#
|
497
|
+
# * {Types::ListEventSourcesResponse#next_marker #next_marker} => String
|
498
|
+
# * {Types::ListEventSourcesResponse#event_sources #event_sources} => Array<Types::EventSourceConfiguration>
|
499
|
+
#
|
500
|
+
# @example Request syntax with placeholder values
|
501
|
+
#
|
502
|
+
# resp = client.list_event_sources({
|
503
|
+
# event_source_arn: "String",
|
504
|
+
# function_name: "FunctionName",
|
505
|
+
# marker: "String",
|
506
|
+
# max_items: 1,
|
507
|
+
# })
|
508
|
+
#
|
509
|
+
# @example Response structure
|
510
|
+
#
|
511
|
+
# resp.next_marker #=> String
|
512
|
+
# resp.event_sources #=> Array
|
513
|
+
# resp.event_sources[0].uuid #=> String
|
514
|
+
# resp.event_sources[0].batch_size #=> Integer
|
515
|
+
# resp.event_sources[0].event_source #=> String
|
516
|
+
# resp.event_sources[0].function_name #=> String
|
517
|
+
# resp.event_sources[0].parameters #=> Hash
|
518
|
+
# resp.event_sources[0].parameters["String"] #=> String
|
519
|
+
# resp.event_sources[0].role #=> String
|
520
|
+
# resp.event_sources[0].last_modified #=> Time
|
521
|
+
# resp.event_sources[0].is_active #=> Boolean
|
522
|
+
# resp.event_sources[0].status #=> String
|
523
|
+
#
|
524
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/ListEventSources AWS API Documentation
|
525
|
+
#
|
526
|
+
# @overload list_event_sources(params = {})
|
527
|
+
# @param [Hash] params ({})
|
528
|
+
def list_event_sources(params = {}, options = {})
|
529
|
+
req = build_request(:list_event_sources, params)
|
530
|
+
req.send_request(options)
|
531
|
+
end
|
507
532
|
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
533
|
+
# Returns a list of your Lambda functions. For each function, the
|
534
|
+
# response includes the function configuration information. You must use
|
535
|
+
# GetFunction to retrieve the code for your function.
|
536
|
+
#
|
537
|
+
# This operation requires permission for the `lambda:ListFunctions`
|
538
|
+
# action.
|
539
|
+
#
|
540
|
+
# @option params [String] :marker
|
541
|
+
# Optional string. An opaque pagination token returned from a previous
|
542
|
+
# `ListFunctions` operation. If present, indicates where to continue the
|
543
|
+
# listing.
|
544
|
+
#
|
545
|
+
# @option params [Integer] :max_items
|
546
|
+
# Optional integer. Specifies the maximum number of AWS Lambda functions
|
547
|
+
# to return in response. This parameter value must be greater than 0.
|
548
|
+
#
|
549
|
+
# @return [Types::ListFunctionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
550
|
+
#
|
551
|
+
# * {Types::ListFunctionsResponse#next_marker #next_marker} => String
|
552
|
+
# * {Types::ListFunctionsResponse#functions #functions} => Array<Types::FunctionConfiguration>
|
553
|
+
#
|
554
|
+
# @example Request syntax with placeholder values
|
555
|
+
#
|
556
|
+
# resp = client.list_functions({
|
557
|
+
# marker: "String",
|
558
|
+
# max_items: 1,
|
559
|
+
# })
|
560
|
+
#
|
561
|
+
# @example Response structure
|
562
|
+
#
|
563
|
+
# resp.next_marker #=> String
|
564
|
+
# resp.functions #=> Array
|
565
|
+
# resp.functions[0].function_name #=> String
|
566
|
+
# resp.functions[0].function_arn #=> String
|
567
|
+
# resp.functions[0].configuration_id #=> String
|
568
|
+
# resp.functions[0].runtime #=> String, one of "nodejs"
|
569
|
+
# resp.functions[0].role #=> String
|
570
|
+
# resp.functions[0].handler #=> String
|
571
|
+
# resp.functions[0].mode #=> String, one of "event"
|
572
|
+
# resp.functions[0].code_size #=> Integer
|
573
|
+
# resp.functions[0].description #=> String
|
574
|
+
# resp.functions[0].timeout #=> Integer
|
575
|
+
# resp.functions[0].memory_size #=> Integer
|
576
|
+
# resp.functions[0].last_modified #=> Time
|
577
|
+
#
|
578
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/ListFunctions AWS API Documentation
|
579
|
+
#
|
580
|
+
# @overload list_functions(params = {})
|
581
|
+
# @param [Hash] params ({})
|
582
|
+
def list_functions(params = {}, options = {})
|
583
|
+
req = build_request(:list_functions, params)
|
584
|
+
req.send_request(options)
|
585
|
+
end
|
527
586
|
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
# The amount of memory, in MB, your Lambda function is given. Lambda
|
554
|
-
# uses this memory size to infer the amount of CPU allocated to your
|
555
|
-
# function. Your function use-case determines your CPU and memory
|
556
|
-
# requirements. For example, a database operation might need less memory
|
557
|
-
# compared to an image processing function. The default value is 128 MB.
|
558
|
-
# The value must be a multiple of 64 MB.
|
559
|
-
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
560
|
-
#
|
561
|
-
# * {Types::FunctionConfiguration#function_name #FunctionName} => String
|
562
|
-
# * {Types::FunctionConfiguration#function_arn #FunctionARN} => String
|
563
|
-
# * {Types::FunctionConfiguration#configuration_id #ConfigurationId} => String
|
564
|
-
# * {Types::FunctionConfiguration#runtime #Runtime} => String
|
565
|
-
# * {Types::FunctionConfiguration#role #Role} => String
|
566
|
-
# * {Types::FunctionConfiguration#handler #Handler} => String
|
567
|
-
# * {Types::FunctionConfiguration#mode #Mode} => String
|
568
|
-
# * {Types::FunctionConfiguration#code_size #CodeSize} => Integer
|
569
|
-
# * {Types::FunctionConfiguration#description #Description} => String
|
570
|
-
# * {Types::FunctionConfiguration#timeout #Timeout} => Integer
|
571
|
-
# * {Types::FunctionConfiguration#memory_size #MemorySize} => Integer
|
572
|
-
# * {Types::FunctionConfiguration#last_modified #LastModified} => Time
|
573
|
-
#
|
574
|
-
# @example Request syntax with placeholder values
|
575
|
-
# resp = client.update_function_configuration({
|
576
|
-
# function_name: "FunctionName", # required
|
577
|
-
# role: "RoleArn",
|
578
|
-
# handler: "Handler",
|
579
|
-
# description: "Description",
|
580
|
-
# timeout: 1,
|
581
|
-
# memory_size: 1,
|
582
|
-
# })
|
583
|
-
#
|
584
|
-
# @example Response structure
|
585
|
-
# resp.function_name #=> String
|
586
|
-
# resp.function_arn #=> String
|
587
|
-
# resp.configuration_id #=> String
|
588
|
-
# resp.runtime #=> String, one of "nodejs"
|
589
|
-
# resp.role #=> String
|
590
|
-
# resp.handler #=> String
|
591
|
-
# resp.mode #=> String, one of "event"
|
592
|
-
# resp.code_size #=> Integer
|
593
|
-
# resp.description #=> String
|
594
|
-
# resp.timeout #=> Integer
|
595
|
-
# resp.memory_size #=> Integer
|
596
|
-
# resp.last_modified #=> Time
|
597
|
-
# @overload update_function_configuration(params = {})
|
598
|
-
# @param [Hash] params ({})
|
599
|
-
def update_function_configuration(params = {}, options = {})
|
600
|
-
req = build_request(:update_function_configuration, params)
|
601
|
-
req.send_request(options)
|
602
|
-
end
|
587
|
+
# Removes an event source mapping. This means AWS Lambda will no longer
|
588
|
+
# invoke the function for events in the associated source.
|
589
|
+
#
|
590
|
+
# This operation requires permission for the `lambda:RemoveEventSource`
|
591
|
+
# action.
|
592
|
+
#
|
593
|
+
# @option params [required, String] :uuid
|
594
|
+
# The event source mapping ID.
|
595
|
+
#
|
596
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
597
|
+
#
|
598
|
+
# @example Request syntax with placeholder values
|
599
|
+
#
|
600
|
+
# resp = client.remove_event_source({
|
601
|
+
# uuid: "String", # required
|
602
|
+
# })
|
603
|
+
#
|
604
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/RemoveEventSource AWS API Documentation
|
605
|
+
#
|
606
|
+
# @overload remove_event_source(params = {})
|
607
|
+
# @param [Hash] params ({})
|
608
|
+
def remove_event_source(params = {}, options = {})
|
609
|
+
req = build_request(:remove_event_source, params)
|
610
|
+
req.send_request(options)
|
611
|
+
end
|
603
612
|
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
# resp.timeout #=> Integer
|
692
|
-
# resp.memory_size #=> Integer
|
693
|
-
# resp.last_modified #=> Time
|
694
|
-
# @overload upload_function(params = {})
|
695
|
-
# @param [Hash] params ({})
|
696
|
-
def upload_function(params = {}, options = {})
|
697
|
-
req = build_request(:upload_function, params)
|
698
|
-
req.send_request(options)
|
699
|
-
end
|
613
|
+
# Updates the configuration parameters for the specified Lambda function
|
614
|
+
# by using the values provided in the request. You provide only the
|
615
|
+
# parameters you want to change. This operation must only be used on an
|
616
|
+
# existing Lambda function and cannot be used to update the function's
|
617
|
+
# code.
|
618
|
+
#
|
619
|
+
# This operation requires permission for the
|
620
|
+
# `lambda:UpdateFunctionConfiguration` action.
|
621
|
+
#
|
622
|
+
# @option params [required, String] :function_name
|
623
|
+
# The name of the Lambda function.
|
624
|
+
#
|
625
|
+
# @option params [String] :role
|
626
|
+
# The Amazon Resource Name (ARN) of the IAM role that Lambda will assume
|
627
|
+
# when it executes your function.
|
628
|
+
#
|
629
|
+
# @option params [String] :handler
|
630
|
+
# The function that Lambda calls to begin executing your function. For
|
631
|
+
# Node.js, it is the *module-name.export* value in your function.
|
632
|
+
#
|
633
|
+
# @option params [String] :description
|
634
|
+
# A short user-defined function description. Lambda does not use this
|
635
|
+
# value. Assign a meaningful description as you see fit.
|
636
|
+
#
|
637
|
+
# @option params [Integer] :timeout
|
638
|
+
# The function execution time at which Lambda should terminate the
|
639
|
+
# function. Because the execution time has cost implications, we
|
640
|
+
# recommend you set this value based on your expected execution time.
|
641
|
+
# The default is 3 seconds.
|
642
|
+
#
|
643
|
+
# @option params [Integer] :memory_size
|
644
|
+
# The amount of memory, in MB, your Lambda function is given. Lambda
|
645
|
+
# uses this memory size to infer the amount of CPU allocated to your
|
646
|
+
# function. Your function use-case determines your CPU and memory
|
647
|
+
# requirements. For example, a database operation might need less memory
|
648
|
+
# compared to an image processing function. The default value is 128 MB.
|
649
|
+
# The value must be a multiple of 64 MB.
|
650
|
+
#
|
651
|
+
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
652
|
+
#
|
653
|
+
# * {Types::FunctionConfiguration#function_name #function_name} => String
|
654
|
+
# * {Types::FunctionConfiguration#function_arn #function_arn} => String
|
655
|
+
# * {Types::FunctionConfiguration#configuration_id #configuration_id} => String
|
656
|
+
# * {Types::FunctionConfiguration#runtime #runtime} => String
|
657
|
+
# * {Types::FunctionConfiguration#role #role} => String
|
658
|
+
# * {Types::FunctionConfiguration#handler #handler} => String
|
659
|
+
# * {Types::FunctionConfiguration#mode #mode} => String
|
660
|
+
# * {Types::FunctionConfiguration#code_size #code_size} => Integer
|
661
|
+
# * {Types::FunctionConfiguration#description #description} => String
|
662
|
+
# * {Types::FunctionConfiguration#timeout #timeout} => Integer
|
663
|
+
# * {Types::FunctionConfiguration#memory_size #memory_size} => Integer
|
664
|
+
# * {Types::FunctionConfiguration#last_modified #last_modified} => Time
|
665
|
+
#
|
666
|
+
# @example Request syntax with placeholder values
|
667
|
+
#
|
668
|
+
# resp = client.update_function_configuration({
|
669
|
+
# function_name: "FunctionName", # required
|
670
|
+
# role: "RoleArn",
|
671
|
+
# handler: "Handler",
|
672
|
+
# description: "Description",
|
673
|
+
# timeout: 1,
|
674
|
+
# memory_size: 1,
|
675
|
+
# })
|
676
|
+
#
|
677
|
+
# @example Response structure
|
678
|
+
#
|
679
|
+
# resp.function_name #=> String
|
680
|
+
# resp.function_arn #=> String
|
681
|
+
# resp.configuration_id #=> String
|
682
|
+
# resp.runtime #=> String, one of "nodejs"
|
683
|
+
# resp.role #=> String
|
684
|
+
# resp.handler #=> String
|
685
|
+
# resp.mode #=> String, one of "event"
|
686
|
+
# resp.code_size #=> Integer
|
687
|
+
# resp.description #=> String
|
688
|
+
# resp.timeout #=> Integer
|
689
|
+
# resp.memory_size #=> Integer
|
690
|
+
# resp.last_modified #=> Time
|
691
|
+
#
|
692
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/UpdateFunctionConfiguration AWS API Documentation
|
693
|
+
#
|
694
|
+
# @overload update_function_configuration(params = {})
|
695
|
+
# @param [Hash] params ({})
|
696
|
+
def update_function_configuration(params = {}, options = {})
|
697
|
+
req = build_request(:update_function_configuration, params)
|
698
|
+
req.send_request(options)
|
699
|
+
end
|
700
700
|
|
701
|
-
|
701
|
+
# Creates a new Lambda function or updates an existing function. The
|
702
|
+
# function metadata is created from the request parameters, and the code
|
703
|
+
# for the function is provided by a .zip file in the request body. If
|
704
|
+
# the function name already exists, the existing Lambda function is
|
705
|
+
# updated with the new code and metadata.
|
706
|
+
#
|
707
|
+
# This operation requires permission for the `lambda:UploadFunction`
|
708
|
+
# action.
|
709
|
+
#
|
710
|
+
# @option params [required, String] :function_name
|
711
|
+
# The name you want to assign to the function you are uploading. The
|
712
|
+
# function names appear in the console and are returned in the
|
713
|
+
# ListFunctions API. Function names are used to specify functions to
|
714
|
+
# other AWS Lambda APIs, such as InvokeAsync.
|
715
|
+
#
|
716
|
+
# @option params [required, String, IO] :function_zip
|
717
|
+
# A .zip file containing your packaged source code. For more information
|
718
|
+
# about creating a .zip file, go to [AWS LambdaL How it Works][1] in the
|
719
|
+
# AWS Lambda Developer Guide.
|
720
|
+
#
|
721
|
+
#
|
722
|
+
#
|
723
|
+
# [1]: http://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events.html
|
724
|
+
#
|
725
|
+
# @option params [required, String] :runtime
|
726
|
+
# The runtime environment for the Lambda function you are uploading.
|
727
|
+
# Currently, Lambda supports only "nodejs" as the runtime.
|
728
|
+
#
|
729
|
+
# @option params [required, String] :role
|
730
|
+
# The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
|
731
|
+
# when it executes your function to access any other Amazon Web Services
|
732
|
+
# (AWS) resources.
|
733
|
+
#
|
734
|
+
# @option params [required, String] :handler
|
735
|
+
# The function that Lambda calls to begin execution. For Node.js, it is
|
736
|
+
# the *module-name*.*export* value in your function.
|
737
|
+
#
|
738
|
+
# @option params [required, String] :mode
|
739
|
+
# How the Lambda function will be invoked. Lambda supports only the
|
740
|
+
# "event" mode.
|
741
|
+
#
|
742
|
+
# @option params [String] :description
|
743
|
+
# A short, user-defined function description. Lambda does not use this
|
744
|
+
# value. Assign a meaningful description as you see fit.
|
745
|
+
#
|
746
|
+
# @option params [Integer] :timeout
|
747
|
+
# The function execution time at which Lambda should terminate the
|
748
|
+
# function. Because the execution time has cost implications, we
|
749
|
+
# recommend you set this value based on your expected execution time.
|
750
|
+
# The default is 3 seconds.
|
751
|
+
#
|
752
|
+
# @option params [Integer] :memory_size
|
753
|
+
# The amount of memory, in MB, your Lambda function is given. Lambda
|
754
|
+
# uses this memory size to infer the amount of CPU allocated to your
|
755
|
+
# function. Your function use-case determines your CPU and memory
|
756
|
+
# requirements. For example, database operation might need less memory
|
757
|
+
# compared to image processing function. The default value is 128 MB.
|
758
|
+
# The value must be a multiple of 64 MB.
|
759
|
+
#
|
760
|
+
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
761
|
+
#
|
762
|
+
# * {Types::FunctionConfiguration#function_name #function_name} => String
|
763
|
+
# * {Types::FunctionConfiguration#function_arn #function_arn} => String
|
764
|
+
# * {Types::FunctionConfiguration#configuration_id #configuration_id} => String
|
765
|
+
# * {Types::FunctionConfiguration#runtime #runtime} => String
|
766
|
+
# * {Types::FunctionConfiguration#role #role} => String
|
767
|
+
# * {Types::FunctionConfiguration#handler #handler} => String
|
768
|
+
# * {Types::FunctionConfiguration#mode #mode} => String
|
769
|
+
# * {Types::FunctionConfiguration#code_size #code_size} => Integer
|
770
|
+
# * {Types::FunctionConfiguration#description #description} => String
|
771
|
+
# * {Types::FunctionConfiguration#timeout #timeout} => Integer
|
772
|
+
# * {Types::FunctionConfiguration#memory_size #memory_size} => Integer
|
773
|
+
# * {Types::FunctionConfiguration#last_modified #last_modified} => Time
|
774
|
+
#
|
775
|
+
# @example Request syntax with placeholder values
|
776
|
+
#
|
777
|
+
# resp = client.upload_function({
|
778
|
+
# function_name: "FunctionName", # required
|
779
|
+
# function_zip: "data", # required
|
780
|
+
# runtime: "nodejs", # required, accepts nodejs
|
781
|
+
# role: "RoleArn", # required
|
782
|
+
# handler: "Handler", # required
|
783
|
+
# mode: "event", # required, accepts event
|
784
|
+
# description: "Description",
|
785
|
+
# timeout: 1,
|
786
|
+
# memory_size: 1,
|
787
|
+
# })
|
788
|
+
#
|
789
|
+
# @example Response structure
|
790
|
+
#
|
791
|
+
# resp.function_name #=> String
|
792
|
+
# resp.function_arn #=> String
|
793
|
+
# resp.configuration_id #=> String
|
794
|
+
# resp.runtime #=> String, one of "nodejs"
|
795
|
+
# resp.role #=> String
|
796
|
+
# resp.handler #=> String
|
797
|
+
# resp.mode #=> String, one of "event"
|
798
|
+
# resp.code_size #=> Integer
|
799
|
+
# resp.description #=> String
|
800
|
+
# resp.timeout #=> Integer
|
801
|
+
# resp.memory_size #=> Integer
|
802
|
+
# resp.last_modified #=> Time
|
803
|
+
#
|
804
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/UploadFunction AWS API Documentation
|
805
|
+
#
|
806
|
+
# @overload upload_function(params = {})
|
807
|
+
# @param [Hash] params ({})
|
808
|
+
def upload_function(params = {}, options = {})
|
809
|
+
req = build_request(:upload_function, params)
|
810
|
+
req.send_request(options)
|
811
|
+
end
|
702
812
|
|
703
|
-
|
704
|
-
# @api private
|
705
|
-
def build_request(operation_name, params = {})
|
706
|
-
handlers = @handlers.for(operation_name)
|
707
|
-
context = Seahorse::Client::RequestContext.new(
|
708
|
-
operation_name: operation_name,
|
709
|
-
operation: config.api.operation(operation_name),
|
710
|
-
client: self,
|
711
|
-
params: params,
|
712
|
-
config: config)
|
713
|
-
context[:gem_name] = 'aws-sdk-lambdapreview'
|
714
|
-
context[:gem_version] = '1.0.0.rc1'
|
715
|
-
Seahorse::Client::Request.new(handlers, context)
|
716
|
-
end
|
813
|
+
# @!endgroup
|
717
814
|
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
815
|
+
# @param params ({})
|
816
|
+
# @api private
|
817
|
+
def build_request(operation_name, params = {})
|
818
|
+
handlers = @handlers.for(operation_name)
|
819
|
+
context = Seahorse::Client::RequestContext.new(
|
820
|
+
operation_name: operation_name,
|
821
|
+
operation: config.api.operation(operation_name),
|
822
|
+
client: self,
|
823
|
+
params: params,
|
824
|
+
config: config)
|
825
|
+
context[:gem_name] = 'aws-sdk-lambdapreview'
|
826
|
+
context[:gem_version] = '1.0.0.rc2'
|
827
|
+
Seahorse::Client::Request.new(handlers, context)
|
828
|
+
end
|
723
829
|
|
724
|
-
|
830
|
+
# @api private
|
831
|
+
# @deprecated
|
832
|
+
def waiter_names
|
833
|
+
[]
|
834
|
+
end
|
725
835
|
|
726
|
-
|
727
|
-
attr_reader :identifier
|
836
|
+
class << self
|
728
837
|
|
729
|
-
|
730
|
-
|
731
|
-
Errors
|
732
|
-
end
|
838
|
+
# @api private
|
839
|
+
attr_reader :identifier
|
733
840
|
|
841
|
+
# @api private
|
842
|
+
def errors_module
|
843
|
+
Errors
|
734
844
|
end
|
845
|
+
|
735
846
|
end
|
736
847
|
end
|
737
848
|
end
|