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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47b3af99ccfa021ccac47b5c7c0aca6e17110a55
4
- data.tar.gz: a6ddff9e9e56b29bc49b4034adb3ef2c126f6328
3
+ metadata.gz: 460535877164905529ed34dfe8623c47701ccc8c
4
+ data.tar.gz: ff965f5ed4e360b6c5cbca32d11ed2bf88117054
5
5
  SHA512:
6
- metadata.gz: 9b6f64c7b339575f766e8e9975f004adbbe1357219929c8ec381519199d4fb12f237e96a1b0b2fe9238eb9b11fb67c61cfae679d3a066cce587fc0f5e1497607
7
- data.tar.gz: 9054bf085afa1282f3cd20d5acbba3f0118e40e080024273d237997c1d7339e2556d0808fe0e1cdf2d2a06a63f3c0a5eb44a7a08d8036e511bb61bea38bd90b2
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 info on making contributions:
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.rc1'
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 info on making contributions:
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
- module LambdaPreview
28
- class Client < Seahorse::Client::Base
27
+ module Aws::LambdaPreview
28
+ class Client < Seahorse::Client::Base
29
29
 
30
- include Aws::ClientStubs
30
+ include Aws::ClientStubs
31
31
 
32
- @identifier = :lambdapreview
32
+ @identifier = :lambdapreview
33
33
 
34
- set_api(ClientApi::API)
34
+ set_api(ClientApi::API)
35
35
 
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::SignatureV4)
50
- add_plugin(Aws::Plugins::Protocols::RestJson)
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
- # @option options [required, Aws::CredentialProvider] :credentials
53
- # Your AWS credentials. This can be an instance of any one of the
54
- # following classes:
55
- #
56
- # * `Aws::Credentials` - Used for configuring static, non-refreshing
57
- # credentials.
58
- #
59
- # * `Aws::InstanceProfileCredentials` - Used for loading credentials
60
- # from an EC2 IMDS on an EC2 instance.
61
- #
62
- # * `Aws::SharedCredentials` - Used for loading credentials from a
63
- # shared file, such as `~/.aws/config`.
64
- #
65
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
66
- #
67
- # When `:credentials` are not configured directly, the following
68
- # locations will be searched for credentials:
69
- #
70
- # * `Aws.config[:credentials]`
71
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
72
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
73
- # * `~/.aws/credentials`
74
- # * `~/.aws/config`
75
- # * EC2 IMDS instance profile - When used by default, the timeouts are
76
- # very aggressive. Construct and pass an instance of
77
- # `Aws::InstanceProfileCredentails` to enable retries and extended
78
- # timeouts.
79
- # @option options [required, String] :region
80
- # The AWS region to connect to. The configured `:region` is
81
- # used to determine the service `:endpoint`. When not passed,
82
- # a default `:region` is search for in the following locations:
83
- #
84
- # * `Aws.config[:region]`
85
- # * `ENV['AWS_REGION']`
86
- # * `ENV['AMAZON_REGION']`
87
- # * `ENV['AWS_DEFAULT_REGION']`
88
- # * `~/.aws/credentials`
89
- # * `~/.aws/config`
90
- # @option options [String] :access_key_id
91
- # @option options [Boolean] :convert_params (true)
92
- # When `true`, an attempt is made to coerce request parameters into
93
- # the required types.
94
- # @option options [String] :endpoint
95
- # The client endpoint is normally constructed from the `:region`
96
- # option. You should only configure an `:endpoint` when connecting
97
- # to test endpoints. This should be avalid HTTP(S) URI.
98
- # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
99
- # The log formatter.
100
- # @option options [Symbol] :log_level (:info)
101
- # The log level to send messages to the `:logger` at.
102
- # @option options [Logger] :logger
103
- # The Logger instance to send log messages to. If this option
104
- # is not set, logging will be disabled.
105
- # @option options [String] :profile ("default")
106
- # Used when loading credentials from the shared credentials file
107
- # at HOME/.aws/credentials. When not specified, 'default' is used.
108
- # @option options [Integer] :retry_limit (3)
109
- # The maximum number of times to retry failed requests. Only
110
- # ~ 500 level server errors and certain ~ 400 level client errors
111
- # are retried. Generally, these are throttling errors, data
112
- # checksum errors, networking errors, timeout errors and auth
113
- # errors from expired credentials.
114
- # @option options [String] :secret_access_key
115
- # @option options [String] :session_token
116
- # @option options [Boolean] :stub_responses (false)
117
- # Causes the client to return stubbed responses. By default
118
- # fake responses are generated and returned. You can specify
119
- # the response data to return or errors to raise by calling
120
- # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
121
- #
122
- # ** Please note ** When response stubbing is enabled, no HTTP
123
- # requests are made, and retries are disabled.
124
- # @option options [Boolean] :validate_params (true)
125
- # When `true`, request parameters are validated before
126
- # sending the request.
127
- def initialize(*args)
128
- super
129
- end
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
- # @!group API Operations
146
+ # @!group API Operations
132
147
 
133
- # Identifies a stream as an event source for an AWS Lambda function. It
134
- # can be either an Amazon Kinesis stream or a Amazon DynamoDB stream.
135
- # AWS Lambda invokes the specified function when records are posted to
136
- # the stream.
137
- #
138
- # This is the pull model, where AWS Lambda invokes the function. For
139
- # more information, go to [AWS Lambda: How it Works][1] in the AWS
140
- # Lambda Developer Guide.
141
- #
142
- # This association between an Amazon Kinesis stream and an AWS Lambda
143
- # function is called the event source mapping. You provide the
144
- # configuration information (for example, which stream to read from and
145
- # which AWS Lambda function to invoke) for the event source mapping in
146
- # the request body.
147
- #
148
- # Each event source, such as a Kinesis stream, can only be associated
149
- # with one AWS Lambda function. If you call AddEventSource for an event
150
- # source that is already mapped to another AWS Lambda function, the
151
- # existing mapping is updated to call the new function instead of the
152
- # old one.
153
- #
154
- # This operation requires permission for the `iam:PassRole` action for
155
- # the IAM role. It also requires permission for the
156
- # `lambda:AddEventSource` action.
157
- #
158
- #
159
- #
160
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html
161
- # @option params [required, String] :event_source
162
- # The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is
163
- # the event source. Any record added to this stream causes AWS Lambda to
164
- # invoke your Lambda function. AWS Lambda POSTs the Amazon Kinesis
165
- # event, containing records, to your Lambda function as JSON.
166
- # @option params [required, String] :function_name
167
- # The Lambda function to invoke when AWS Lambda detects an event on the
168
- # stream.
169
- # @option params [required, String] :role
170
- # The ARN of the IAM role (invocation role) that AWS Lambda can assume
171
- # to read from the stream and invoke the function.
172
- # @option params [Integer] :batch_size
173
- # The largest number of records that AWS Lambda will give to your
174
- # function in a single event. The default is 100 records.
175
- # @option params [Hash<String,String>] :parameters
176
- # A map (key-value pairs) defining the configuration for AWS Lambda to
177
- # use when reading the event source. Currently, AWS Lambda supports only
178
- # the `InitialPositionInStream` key. The valid values are:
179
- # "TRIM\_HORIZON" and "LATEST". The default value is
180
- # "TRIM\_HORIZON". For more information, go to [ShardIteratorType][1]
181
- # in the Amazon Kinesis Service API Reference.
182
- #
183
- #
184
- #
185
- # [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
186
- # @return [Types::EventSourceConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
187
- #
188
- # * {Types::EventSourceConfiguration#uuid #UUID} => String
189
- # * {Types::EventSourceConfiguration#batch_size #BatchSize} => Integer
190
- # * {Types::EventSourceConfiguration#event_source #EventSource} => String
191
- # * {Types::EventSourceConfiguration#function_name #FunctionName} => String
192
- # * {Types::EventSourceConfiguration#parameters #Parameters} => Hash&lt;String,String&gt;
193
- # * {Types::EventSourceConfiguration#role #Role} => String
194
- # * {Types::EventSourceConfiguration#last_modified #LastModified} => Time
195
- # * {Types::EventSourceConfiguration#is_active #IsActive} => Boolean
196
- # * {Types::EventSourceConfiguration#status #Status} => String
197
- #
198
- # @example Request syntax with placeholder values
199
- # resp = client.add_event_source({
200
- # event_source: "String", # required
201
- # function_name: "FunctionName", # required
202
- # role: "RoleArn", # required
203
- # batch_size: 1,
204
- # parameters: {
205
- # "String" => "String",
206
- # },
207
- # })
208
- #
209
- # @example Response structure
210
- # resp.uuid #=> String
211
- # resp.batch_size #=> Integer
212
- # resp.event_source #=> String
213
- # resp.function_name #=> String
214
- # resp.parameters #=> Hash
215
- # resp.parameters["String"] #=> String
216
- # resp.role #=> String
217
- # resp.last_modified #=> Time
218
- # resp.is_active #=> Boolean
219
- # resp.status #=> String
220
- # @overload add_event_source(params = {})
221
- # @param [Hash] params ({})
222
- def add_event_source(params = {}, options = {})
223
- req = build_request(:add_event_source, params)
224
- req.send_request(options)
225
- end
226
-
227
- # Deletes the specified Lambda function code and configuration.
228
- #
229
- # This operation requires permission for the `lambda:DeleteFunction`
230
- # action.
231
- # @option params [required, String] :function_name
232
- # The Lambda function to delete.
233
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
234
- #
235
- # @example Request syntax with placeholder values
236
- # resp = client.delete_function({
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&lt;String,String&gt;
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
- # Returns configuration information for the specified event source
247
- # mapping (see AddEventSource).
248
- #
249
- # This operation requires permission for the `lambda:GetEventSource`
250
- # action.
251
- # @option params [required, String] :uuid
252
- # The AWS Lambda assigned ID of the event source mapping.
253
- # @return [Types::EventSourceConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
254
- #
255
- # * {Types::EventSourceConfiguration#uuid #UUID} => String
256
- # * {Types::EventSourceConfiguration#batch_size #BatchSize} => Integer
257
- # * {Types::EventSourceConfiguration#event_source #EventSource} => String
258
- # * {Types::EventSourceConfiguration#function_name #FunctionName} => String
259
- # * {Types::EventSourceConfiguration#parameters #Parameters} => Hash&lt;String,String&gt;
260
- # * {Types::EventSourceConfiguration#role #Role} => String
261
- # * {Types::EventSourceConfiguration#last_modified #LastModified} => Time
262
- # * {Types::EventSourceConfiguration#is_active #IsActive} => Boolean
263
- # * {Types::EventSourceConfiguration#status #Status} => String
264
- #
265
- # @example Request syntax with placeholder values
266
- # resp = client.get_event_source({
267
- # uuid: "String", # required
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
- # Returns the configuration information of the Lambda function and a
289
- # presigned URL link to the .zip file you uploaded with UploadFunction
290
- # so you can download the .zip file. Note that the URL is valid for up
291
- # to 10 minutes. The configuration information is the same information
292
- # you provided as parameters when uploading the function.
293
- #
294
- # This operation requires permission for the `lambda:GetFunction`
295
- # action.
296
- # @option params [required, String] :function_name
297
- # The Lambda function name.
298
- # @return [Types::GetFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
299
- #
300
- # * {Types::GetFunctionResponse#configuration #Configuration} => Types::FunctionConfiguration
301
- # * {Types::GetFunctionResponse#code #Code} => Types::FunctionCodeLocation
302
- #
303
- # @example Request syntax with placeholder values
304
- # resp = client.get_function({
305
- # function_name: "FunctionName", # required
306
- # })
307
- #
308
- # @example Response structure
309
- # resp.configuration.function_name #=> String
310
- # resp.configuration.function_arn #=> String
311
- # resp.configuration.configuration_id #=> String
312
- # resp.configuration.runtime #=> String, one of "nodejs"
313
- # resp.configuration.role #=> String
314
- # resp.configuration.handler #=> String
315
- # resp.configuration.mode #=> String, one of "event"
316
- # resp.configuration.code_size #=> Integer
317
- # resp.configuration.description #=> String
318
- # resp.configuration.timeout #=> Integer
319
- # resp.configuration.memory_size #=> Integer
320
- # resp.configuration.last_modified #=> Time
321
- # resp.code.repository_type #=> String
322
- # resp.code.location #=> String
323
- # @overload get_function(params = {})
324
- # @param [Hash] params ({})
325
- def get_function(params = {}, options = {})
326
- req = build_request(:get_function, params)
327
- req.send_request(options)
328
- end
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&lt;String,String&gt;
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
- # Returns the configuration information of the Lambda function. This the
331
- # same information you provided as parameters when uploading the
332
- # function by using UploadFunction.
333
- #
334
- # This operation requires permission for the
335
- # `lambda:GetFunctionConfiguration` operation.
336
- # @option params [required, String] :function_name
337
- # The name of the Lambda function for which you want to retrieve the
338
- # configuration information.
339
- # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
340
- #
341
- # * {Types::FunctionConfiguration#function_name #FunctionName} => String
342
- # * {Types::FunctionConfiguration#function_arn #FunctionARN} => String
343
- # * {Types::FunctionConfiguration#configuration_id #ConfigurationId} => String
344
- # * {Types::FunctionConfiguration#runtime #Runtime} => String
345
- # * {Types::FunctionConfiguration#role #Role} => String
346
- # * {Types::FunctionConfiguration#handler #Handler} => String
347
- # * {Types::FunctionConfiguration#mode #Mode} => String
348
- # * {Types::FunctionConfiguration#code_size #CodeSize} => Integer
349
- # * {Types::FunctionConfiguration#description #Description} => String
350
- # * {Types::FunctionConfiguration#timeout #Timeout} => Integer
351
- # * {Types::FunctionConfiguration#memory_size #MemorySize} => Integer
352
- # * {Types::FunctionConfiguration#last_modified #LastModified} => Time
353
- #
354
- # @example Request syntax with placeholder values
355
- # resp = client.get_function_configuration({
356
- # function_name: "FunctionName", # required
357
- # })
358
- #
359
- # @example Response structure
360
- # resp.function_name #=> String
361
- # resp.function_arn #=> String
362
- # resp.configuration_id #=> String
363
- # resp.runtime #=> String, one of "nodejs"
364
- # resp.role #=> String
365
- # resp.handler #=> String
366
- # resp.mode #=> String, one of "event"
367
- # resp.code_size #=> Integer
368
- # resp.description #=> String
369
- # resp.timeout #=> Integer
370
- # resp.memory_size #=> Integer
371
- # resp.last_modified #=> Time
372
- # @overload get_function_configuration(params = {})
373
- # @param [Hash] params ({})
374
- def get_function_configuration(params = {}, options = {})
375
- req = build_request(:get_function_configuration, params)
376
- req.send_request(options)
377
- end
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
- # Submits an invocation request to AWS Lambda. Upon receiving the
380
- # request, Lambda executes the specified function asynchronously. To see
381
- # the logs generated by the Lambda function execution, see the
382
- # CloudWatch logs console.
383
- #
384
- # This operation requires permission for the `lambda:InvokeFunction`
385
- # action.
386
- # @option params [required, String] :function_name
387
- # The Lambda function name.
388
- # @option params [required, String, IO] :invoke_args
389
- # JSON that you want to provide to your Lambda function as input.
390
- # @return [Types::InvokeAsyncResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
391
- #
392
- # * {Types::InvokeAsyncResponse#status #Status} => Integer
393
- #
394
- # @example Request syntax with placeholder values
395
- # resp = client.invoke_async({
396
- # function_name: "FunctionName", # required
397
- # invoke_args: "data", # required
398
- # })
399
- #
400
- # @example Response structure
401
- # resp.status #=> Integer
402
- # @overload invoke_async(params = {})
403
- # @param [Hash] params ({})
404
- def invoke_async(params = {}, options = {})
405
- req = build_request(:invoke_async, params)
406
- req.send_request(options)
407
- end
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
- # Returns a list of event source mappings you created using the
410
- # `AddEventSource` (see AddEventSource), where you identify a stream as
411
- # event source. This list does not include Amazon S3 event sources.
412
- #
413
- # For each mapping, the API returns configuration information. You can
414
- # optionally specify filters to retrieve specific event source mappings.
415
- #
416
- # This operation requires permission for the `lambda:ListEventSources`
417
- # action.
418
- # @option params [String] :event_source_arn
419
- # The Amazon Resource Name (ARN) of the Amazon Kinesis stream.
420
- # @option params [String] :function_name
421
- # The name of the AWS Lambda function.
422
- # @option params [String] :marker
423
- # Optional string. An opaque pagination token returned from a previous
424
- # `ListEventSources` operation. If present, specifies to continue the
425
- # list from where the returning call left off.
426
- # @option params [Integer] :max_items
427
- # Optional integer. Specifies the maximum number of event sources to
428
- # return in response. This value must be greater than 0.
429
- # @return [Types::ListEventSourcesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
430
- #
431
- # * {Types::ListEventSourcesResponse#next_marker #NextMarker} => String
432
- # * {Types::ListEventSourcesResponse#event_sources #EventSources} => Array&lt;Types::EventSourceConfiguration&gt;
433
- #
434
- # @example Request syntax with placeholder values
435
- # resp = client.list_event_sources({
436
- # event_source_arn: "String",
437
- # function_name: "FunctionName",
438
- # marker: "String",
439
- # max_items: 1,
440
- # })
441
- #
442
- # @example Response structure
443
- # resp.next_marker #=> String
444
- # resp.event_sources #=> Array
445
- # resp.event_sources[0].uuid #=> String
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
- # Returns a list of your Lambda functions. For each function, the
463
- # response includes the function configuration information. You must use
464
- # GetFunction to retrieve the code for your function.
465
- #
466
- # This operation requires permission for the `lambda:ListFunctions`
467
- # action.
468
- # @option params [String] :marker
469
- # Optional string. An opaque pagination token returned from a previous
470
- # `ListFunctions` operation. If present, indicates where to continue the
471
- # listing.
472
- # @option params [Integer] :max_items
473
- # Optional integer. Specifies the maximum number of AWS Lambda functions
474
- # to return in response. This parameter value must be greater than 0.
475
- # @return [Types::ListFunctionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
476
- #
477
- # * {Types::ListFunctionsResponse#next_marker #NextMarker} => String
478
- # * {Types::ListFunctionsResponse#functions #Functions} => Array&lt;Types::FunctionConfiguration&gt;
479
- #
480
- # @example Request syntax with placeholder values
481
- # resp = client.list_functions({
482
- # marker: "String",
483
- # max_items: 1,
484
- # })
485
- #
486
- # @example Response structure
487
- # resp.next_marker #=> String
488
- # resp.functions #=> Array
489
- # resp.functions[0].function_name #=> String
490
- # resp.functions[0].function_arn #=> String
491
- # resp.functions[0].configuration_id #=> String
492
- # resp.functions[0].runtime #=> String, one of "nodejs"
493
- # resp.functions[0].role #=> String
494
- # resp.functions[0].handler #=> String
495
- # resp.functions[0].mode #=> String, one of "event"
496
- # resp.functions[0].code_size #=> Integer
497
- # resp.functions[0].description #=> String
498
- # resp.functions[0].timeout #=> Integer
499
- # resp.functions[0].memory_size #=> Integer
500
- # resp.functions[0].last_modified #=> Time
501
- # @overload list_functions(params = {})
502
- # @param [Hash] params ({})
503
- def list_functions(params = {}, options = {})
504
- req = build_request(:list_functions, params)
505
- req.send_request(options)
506
- end
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&lt;Types::EventSourceConfiguration&gt;
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
- # Removes an event source mapping. This means AWS Lambda will no longer
509
- # invoke the function for events in the associated source.
510
- #
511
- # This operation requires permission for the `lambda:RemoveEventSource`
512
- # action.
513
- # @option params [required, String] :uuid
514
- # The event source mapping ID.
515
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
516
- #
517
- # @example Request syntax with placeholder values
518
- # resp = client.remove_event_source({
519
- # uuid: "String", # required
520
- # })
521
- # @overload remove_event_source(params = {})
522
- # @param [Hash] params ({})
523
- def remove_event_source(params = {}, options = {})
524
- req = build_request(:remove_event_source, params)
525
- req.send_request(options)
526
- end
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&lt;Types::FunctionConfiguration&gt;
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
- # Updates the configuration parameters for the specified Lambda function
529
- # by using the values provided in the request. You provide only the
530
- # parameters you want to change. This operation must only be used on an
531
- # existing Lambda function and cannot be used to update the function's
532
- # code.
533
- #
534
- # This operation requires permission for the
535
- # `lambda:UpdateFunctionConfiguration` action.
536
- # @option params [required, String] :function_name
537
- # The name of the Lambda function.
538
- # @option params [String] :role
539
- # The Amazon Resource Name (ARN) of the IAM role that Lambda will assume
540
- # when it executes your function.
541
- # @option params [String] :handler
542
- # The function that Lambda calls to begin executing your function. For
543
- # Node.js, it is the *module-name.export* value in your function.
544
- # @option params [String] :description
545
- # A short user-defined function description. Lambda does not use this
546
- # value. Assign a meaningful description as you see fit.
547
- # @option params [Integer] :timeout
548
- # The function execution time at which Lambda should terminate the
549
- # function. Because the execution time has cost implications, we
550
- # recommend you set this value based on your expected execution time.
551
- # The default is 3 seconds.
552
- # @option params [Integer] :memory_size
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
- # Creates a new Lambda function or updates an existing function. The
605
- # function metadata is created from the request parameters, and the code
606
- # for the function is provided by a .zip file in the request body. If
607
- # the function name already exists, the existing Lambda function is
608
- # updated with the new code and metadata.
609
- #
610
- # This operation requires permission for the `lambda:UploadFunction`
611
- # action.
612
- # @option params [required, String] :function_name
613
- # The name you want to assign to the function you are uploading. The
614
- # function names appear in the console and are returned in the
615
- # ListFunctions API. Function names are used to specify functions to
616
- # other AWS Lambda APIs, such as InvokeAsync.
617
- # @option params [required, String, IO] :function_zip
618
- # A .zip file containing your packaged source code. For more information
619
- # about creating a .zip file, go to [AWS LambdaL How it Works][1] in the
620
- # AWS Lambda Developer Guide.
621
- #
622
- #
623
- #
624
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events.html
625
- # @option params [required, String] :runtime
626
- # The runtime environment for the Lambda function you are uploading.
627
- # Currently, Lambda supports only "nodejs" as the runtime.
628
- # @option params [required, String] :role
629
- # The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
630
- # when it executes your function to access any other Amazon Web Services
631
- # (AWS) resources.
632
- # @option params [required, String] :handler
633
- # The function that Lambda calls to begin execution. For Node.js, it is
634
- # the *module-name*.*export* value in your function.
635
- # @option params [required, String] :mode
636
- # How the Lambda function will be invoked. Lambda supports only the
637
- # "event" mode.
638
- # @option params [String] :description
639
- # A short, user-defined function description. Lambda does not use this
640
- # value. Assign a meaningful description as you see fit.
641
- # @option params [Integer] :timeout
642
- # The function execution time at which Lambda should terminate the
643
- # function. Because the execution time has cost implications, we
644
- # recommend you set this value based on your expected execution time.
645
- # The default is 3 seconds.
646
- # @option params [Integer] :memory_size
647
- # The amount of memory, in MB, your Lambda function is given. Lambda
648
- # uses this memory size to infer the amount of CPU allocated to your
649
- # function. Your function use-case determines your CPU and memory
650
- # requirements. For example, database operation might need less memory
651
- # compared to image processing function. The default value is 128 MB.
652
- # The value must be a multiple of 64 MB.
653
- # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
654
- #
655
- # * {Types::FunctionConfiguration#function_name #FunctionName} => String
656
- # * {Types::FunctionConfiguration#function_arn #FunctionARN} => String
657
- # * {Types::FunctionConfiguration#configuration_id #ConfigurationId} => String
658
- # * {Types::FunctionConfiguration#runtime #Runtime} => String
659
- # * {Types::FunctionConfiguration#role #Role} => String
660
- # * {Types::FunctionConfiguration#handler #Handler} => String
661
- # * {Types::FunctionConfiguration#mode #Mode} => String
662
- # * {Types::FunctionConfiguration#code_size #CodeSize} => Integer
663
- # * {Types::FunctionConfiguration#description #Description} => String
664
- # * {Types::FunctionConfiguration#timeout #Timeout} => Integer
665
- # * {Types::FunctionConfiguration#memory_size #MemorySize} => Integer
666
- # * {Types::FunctionConfiguration#last_modified #LastModified} => Time
667
- #
668
- # @example Request syntax with placeholder values
669
- # resp = client.upload_function({
670
- # function_name: "FunctionName", # required
671
- # function_zip: "data", # required
672
- # runtime: "nodejs", # required, accepts nodejs
673
- # role: "RoleArn", # required
674
- # handler: "Handler", # required
675
- # mode: "event", # required, accepts event
676
- # description: "Description",
677
- # timeout: 1,
678
- # memory_size: 1,
679
- # })
680
- #
681
- # @example Response structure
682
- # resp.function_name #=> String
683
- # resp.function_arn #=> String
684
- # resp.configuration_id #=> String
685
- # resp.runtime #=> String, one of "nodejs"
686
- # resp.role #=> String
687
- # resp.handler #=> String
688
- # resp.mode #=> String, one of "event"
689
- # resp.code_size #=> Integer
690
- # resp.description #=> String
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
- # @!endgroup
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
- # @param params ({})
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
- # @api private
719
- # @deprecated
720
- def waiter_names
721
- []
722
- end
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
- class << self
830
+ # @api private
831
+ # @deprecated
832
+ def waiter_names
833
+ []
834
+ end
725
835
 
726
- # @api private
727
- attr_reader :identifier
836
+ class << self
728
837
 
729
- # @api private
730
- def errors_module
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