aws-sdk-lambdapreview 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +1,14 @@
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
7
7
 
8
- module Aws
9
- module LambdaPreview
10
- module Errors
8
+ module Aws::LambdaPreview
9
+ module Errors
11
10
 
12
- extend Aws::Errors::DynamicErrors
11
+ extend Aws::Errors::DynamicErrors
13
12
 
14
- # Raised when calling #load or #data on a resource class that can not be
15
- # loaded. This can happen when:
16
- #
17
- # * A resource class has identifiers, but no data attributes.
18
- # * Resource data is only available when making an API call that
19
- # enumerates all resources of that type.
20
- class ResourceNotLoadable < RuntimeError; end
21
- end
22
13
  end
23
14
  end
@@ -1,25 +1,23 @@
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
7
7
 
8
- module Aws
9
- module LambdaPreview
10
- class Resource
8
+ module Aws::LambdaPreview
9
+ class Resource
11
10
 
12
- # @param options ({})
13
- # @option options [Client] :client
14
- def initialize(options = {})
15
- @client = options[:client] || Client.new(options)
16
- end
17
-
18
- # @return [Client]
19
- def client
20
- @client
21
- end
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
22
16
 
17
+ # @return [Client]
18
+ def client
19
+ @client
23
20
  end
21
+
24
22
  end
25
23
  end
@@ -1,559 +1,629 @@
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
7
7
 
8
- module Aws
9
- module LambdaPreview
10
- module Types
8
+ module Aws::LambdaPreview
9
+ module Types
11
10
 
12
- # @note When making an API call, pass AddEventSourceRequest
13
- # data as a hash:
14
- #
15
- # {
16
- # event_source: "String", # required
17
- # function_name: "FunctionName", # required
18
- # role: "RoleArn", # required
19
- # batch_size: 1,
20
- # parameters: {
21
- # "String" => "String",
22
- # },
23
- # }
24
- # @!attribute [rw] event_source
25
- # The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is
26
- # the event source. Any record added to this stream causes AWS Lambda
27
- # to invoke your Lambda function. AWS Lambda POSTs the Amazon Kinesis
28
- # event, containing records, to your Lambda function as JSON.
29
- # @return [String]
30
- #
31
- # @!attribute [rw] function_name
32
- # The Lambda function to invoke when AWS Lambda detects an event on
33
- # the stream.
34
- # @return [String]
35
- #
36
- # @!attribute [rw] role
37
- # The ARN of the IAM role (invocation role) that AWS Lambda can assume
38
- # to read from the stream and invoke the function.
39
- # @return [String]
40
- #
41
- # @!attribute [rw] batch_size
42
- # The largest number of records that AWS Lambda will give to your
43
- # function in a single event. The default is 100 records.
44
- # @return [Integer]
45
- #
46
- # @!attribute [rw] parameters
47
- # A map (key-value pairs) defining the configuration for AWS Lambda to
48
- # use when reading the event source. Currently, AWS Lambda supports
49
- # only the `InitialPositionInStream` key. The valid values are:
50
- # "TRIM\_HORIZON" and "LATEST". The default value is
51
- # "TRIM\_HORIZON". For more information, go to
52
- # [ShardIteratorType][1] in the Amazon Kinesis Service API Reference.
53
- #
54
- #
55
- #
56
- # [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
57
- # @return [Hash<String,String>]
58
- class AddEventSourceRequest < Struct.new(
59
- :event_source,
60
- :function_name,
61
- :role,
62
- :batch_size,
63
- :parameters)
64
- include Aws::Structure
65
- end
66
-
67
- # @note When making an API call, pass DeleteFunctionRequest
68
- # data as a hash:
69
- #
70
- # {
71
- # function_name: "FunctionName", # required
72
- # }
73
- # @!attribute [rw] function_name
74
- # The Lambda function to delete.
75
- # @return [String]
76
- class DeleteFunctionRequest < Struct.new(
77
- :function_name)
78
- include Aws::Structure
79
- end
11
+ # @note When making an API call, you may pass AddEventSourceRequest
12
+ # data as a hash:
13
+ #
14
+ # {
15
+ # event_source: "String", # required
16
+ # function_name: "FunctionName", # required
17
+ # role: "RoleArn", # required
18
+ # batch_size: 1,
19
+ # parameters: {
20
+ # "String" => "String",
21
+ # },
22
+ # }
23
+ #
24
+ # @!attribute [rw] event_source
25
+ # The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is
26
+ # the event source. Any record added to this stream causes AWS Lambda
27
+ # to invoke your Lambda function. AWS Lambda POSTs the Amazon Kinesis
28
+ # event, containing records, to your Lambda function as JSON.
29
+ # @return [String]
30
+ #
31
+ # @!attribute [rw] function_name
32
+ # The Lambda function to invoke when AWS Lambda detects an event on
33
+ # the stream.
34
+ # @return [String]
35
+ #
36
+ # @!attribute [rw] role
37
+ # The ARN of the IAM role (invocation role) that AWS Lambda can assume
38
+ # to read from the stream and invoke the function.
39
+ # @return [String]
40
+ #
41
+ # @!attribute [rw] batch_size
42
+ # The largest number of records that AWS Lambda will give to your
43
+ # function in a single event. The default is 100 records.
44
+ # @return [Integer]
45
+ #
46
+ # @!attribute [rw] parameters
47
+ # A map (key-value pairs) defining the configuration for AWS Lambda to
48
+ # use when reading the event source. Currently, AWS Lambda supports
49
+ # only the `InitialPositionInStream` key. The valid values are:
50
+ # "TRIM\_HORIZON" and "LATEST". The default value is
51
+ # "TRIM\_HORIZON". For more information, go to
52
+ # [ShardIteratorType][1] in the Amazon Kinesis Service API Reference.
53
+ #
54
+ #
55
+ #
56
+ # [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
57
+ # @return [Hash<String,String>]
58
+ #
59
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/AddEventSourceRequest AWS API Documentation
60
+ #
61
+ class AddEventSourceRequest < Struct.new(
62
+ :event_source,
63
+ :function_name,
64
+ :role,
65
+ :batch_size,
66
+ :parameters)
67
+ include Aws::Structure
68
+ end
80
69
 
81
- # Describes mapping between an Amazon Kinesis stream and a Lambda
82
- # function.
83
- # @!attribute [rw] uuid
84
- # The AWS Lambda assigned opaque identifier for the mapping.
85
- # @return [String]
86
- #
87
- # @!attribute [rw] batch_size
88
- # The largest number of records that AWS Lambda will POST in the
89
- # invocation request to your function.
90
- # @return [Integer]
91
- #
92
- # @!attribute [rw] event_source
93
- # The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is
94
- # the source of events.
95
- # @return [String]
96
- #
97
- # @!attribute [rw] function_name
98
- # The Lambda function to invoke when AWS Lambda detects an event on
99
- # the stream.
100
- # @return [String]
101
- #
102
- # @!attribute [rw] parameters
103
- # The map (key-value pairs) defining the configuration for AWS Lambda
104
- # to use when reading the event source.
105
- # @return [Hash<String,String>]
106
- #
107
- # @!attribute [rw] role
108
- # The ARN of the IAM role (invocation role) that AWS Lambda can assume
109
- # to read from the stream and invoke the function.
110
- # @return [String]
111
- #
112
- # @!attribute [rw] last_modified
113
- # The UTC time string indicating the last time the event mapping was
114
- # updated.
115
- # @return [Time]
116
- #
117
- # @!attribute [rw] is_active
118
- # Indicates whether the event source mapping is currently honored.
119
- # Events are only processes if IsActive is true.
120
- # @return [Boolean]
121
- #
122
- # @!attribute [rw] status
123
- # The description of the health of the event source mapping. Valid
124
- # values are: "PENDING", "OK", and "PROBLEM:*message*".
125
- # Initially this staus is "PENDING". When AWS Lambda begins
126
- # processing events, it changes the status to "OK".
127
- # @return [String]
128
- class EventSourceConfiguration < Struct.new(
129
- :uuid,
130
- :batch_size,
131
- :event_source,
132
- :function_name,
133
- :parameters,
134
- :role,
135
- :last_modified,
136
- :is_active,
137
- :status)
138
- include Aws::Structure
139
- end
70
+ # @note When making an API call, you may pass DeleteFunctionRequest
71
+ # data as a hash:
72
+ #
73
+ # {
74
+ # function_name: "FunctionName", # required
75
+ # }
76
+ #
77
+ # @!attribute [rw] function_name
78
+ # The Lambda function to delete.
79
+ # @return [String]
80
+ #
81
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/DeleteFunctionRequest AWS API Documentation
82
+ #
83
+ class DeleteFunctionRequest < Struct.new(
84
+ :function_name)
85
+ include Aws::Structure
86
+ end
140
87
 
141
- # The object for the Lambda function location.
142
- # @!attribute [rw] repository_type
143
- # The repository from which you can download the function.
144
- # @return [String]
145
- #
146
- # @!attribute [rw] location
147
- # The presigned URL you can use to download the function's .zip file
148
- # that you previously uploaded. The URL is valid for up to 10 minutes.
149
- # @return [String]
150
- class FunctionCodeLocation < Struct.new(
151
- :repository_type,
152
- :location)
153
- include Aws::Structure
154
- end
88
+ # Describes mapping between an Amazon Kinesis stream and a Lambda
89
+ # function.
90
+ #
91
+ # @!attribute [rw] uuid
92
+ # The AWS Lambda assigned opaque identifier for the mapping.
93
+ # @return [String]
94
+ #
95
+ # @!attribute [rw] batch_size
96
+ # The largest number of records that AWS Lambda will POST in the
97
+ # invocation request to your function.
98
+ # @return [Integer]
99
+ #
100
+ # @!attribute [rw] event_source
101
+ # The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is
102
+ # the source of events.
103
+ # @return [String]
104
+ #
105
+ # @!attribute [rw] function_name
106
+ # The Lambda function to invoke when AWS Lambda detects an event on
107
+ # the stream.
108
+ # @return [String]
109
+ #
110
+ # @!attribute [rw] parameters
111
+ # The map (key-value pairs) defining the configuration for AWS Lambda
112
+ # to use when reading the event source.
113
+ # @return [Hash<String,String>]
114
+ #
115
+ # @!attribute [rw] role
116
+ # The ARN of the IAM role (invocation role) that AWS Lambda can assume
117
+ # to read from the stream and invoke the function.
118
+ # @return [String]
119
+ #
120
+ # @!attribute [rw] last_modified
121
+ # The UTC time string indicating the last time the event mapping was
122
+ # updated.
123
+ # @return [Time]
124
+ #
125
+ # @!attribute [rw] is_active
126
+ # Indicates whether the event source mapping is currently honored.
127
+ # Events are only processes if IsActive is true.
128
+ # @return [Boolean]
129
+ #
130
+ # @!attribute [rw] status
131
+ # The description of the health of the event source mapping. Valid
132
+ # values are: "PENDING", "OK", and "PROBLEM:*message*".
133
+ # Initially this staus is "PENDING". When AWS Lambda begins
134
+ # processing events, it changes the status to "OK".
135
+ # @return [String]
136
+ #
137
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/EventSourceConfiguration AWS API Documentation
138
+ #
139
+ class EventSourceConfiguration < Struct.new(
140
+ :uuid,
141
+ :batch_size,
142
+ :event_source,
143
+ :function_name,
144
+ :parameters,
145
+ :role,
146
+ :last_modified,
147
+ :is_active,
148
+ :status)
149
+ include Aws::Structure
150
+ end
155
151
 
156
- # A complex type that describes function metadata.
157
- # @!attribute [rw] function_name
158
- # The name of the function.
159
- # @return [String]
160
- #
161
- # @!attribute [rw] function_arn
162
- # The Amazon Resource Name (ARN) assigned to the function.
163
- # @return [String]
164
- #
165
- # @!attribute [rw] configuration_id
166
- # A Lambda-assigned unique identifier for the current function code
167
- # and related configuration.
168
- # @return [String]
169
- #
170
- # @!attribute [rw] runtime
171
- # The runtime environment for the Lambda function.
172
- # @return [String]
173
- #
174
- # @!attribute [rw] role
175
- # The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
176
- # when it executes your function to access any other Amazon Web
177
- # Services (AWS) resources.
178
- # @return [String]
179
- #
180
- # @!attribute [rw] handler
181
- # The function Lambda calls to begin executing your function.
182
- # @return [String]
183
- #
184
- # @!attribute [rw] mode
185
- # The type of the Lambda function you uploaded.
186
- # @return [String]
187
- #
188
- # @!attribute [rw] code_size
189
- # The size, in bytes, of the function .zip file you uploaded.
190
- # @return [Integer]
191
- #
192
- # @!attribute [rw] description
193
- # The user-provided description.
194
- # @return [String]
195
- #
196
- # @!attribute [rw] timeout
197
- # The function execution time at which Lambda should terminate the
198
- # function. Because the execution time has cost implications, we
199
- # recommend you set this value based on your expected execution time.
200
- # The default is 3 seconds.
201
- # @return [Integer]
202
- #
203
- # @!attribute [rw] memory_size
204
- # The memory size, in MB, you configured for the function. Must be a
205
- # multiple of 64 MB.
206
- # @return [Integer]
207
- #
208
- # @!attribute [rw] last_modified
209
- # The timestamp of the last time you updated the function.
210
- # @return [Time]
211
- class FunctionConfiguration < Struct.new(
212
- :function_name,
213
- :function_arn,
214
- :configuration_id,
215
- :runtime,
216
- :role,
217
- :handler,
218
- :mode,
219
- :code_size,
220
- :description,
221
- :timeout,
222
- :memory_size,
223
- :last_modified)
224
- include Aws::Structure
225
- end
152
+ # The object for the Lambda function location.
153
+ #
154
+ # @!attribute [rw] repository_type
155
+ # The repository from which you can download the function.
156
+ # @return [String]
157
+ #
158
+ # @!attribute [rw] location
159
+ # The presigned URL you can use to download the function's .zip file
160
+ # that you previously uploaded. The URL is valid for up to 10 minutes.
161
+ # @return [String]
162
+ #
163
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/FunctionCodeLocation AWS API Documentation
164
+ #
165
+ class FunctionCodeLocation < Struct.new(
166
+ :repository_type,
167
+ :location)
168
+ include Aws::Structure
169
+ end
226
170
 
227
- # @note When making an API call, pass GetEventSourceRequest
228
- # data as a hash:
229
- #
230
- # {
231
- # uuid: "String", # required
232
- # }
233
- # @!attribute [rw] uuid
234
- # The AWS Lambda assigned ID of the event source mapping.
235
- # @return [String]
236
- class GetEventSourceRequest < Struct.new(
237
- :uuid)
238
- include Aws::Structure
239
- end
171
+ # A complex type that describes function metadata.
172
+ #
173
+ # @!attribute [rw] function_name
174
+ # The name of the function.
175
+ # @return [String]
176
+ #
177
+ # @!attribute [rw] function_arn
178
+ # The Amazon Resource Name (ARN) assigned to the function.
179
+ # @return [String]
180
+ #
181
+ # @!attribute [rw] configuration_id
182
+ # A Lambda-assigned unique identifier for the current function code
183
+ # and related configuration.
184
+ # @return [String]
185
+ #
186
+ # @!attribute [rw] runtime
187
+ # The runtime environment for the Lambda function.
188
+ # @return [String]
189
+ #
190
+ # @!attribute [rw] role
191
+ # The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
192
+ # when it executes your function to access any other Amazon Web
193
+ # Services (AWS) resources.
194
+ # @return [String]
195
+ #
196
+ # @!attribute [rw] handler
197
+ # The function Lambda calls to begin executing your function.
198
+ # @return [String]
199
+ #
200
+ # @!attribute [rw] mode
201
+ # The type of the Lambda function you uploaded.
202
+ # @return [String]
203
+ #
204
+ # @!attribute [rw] code_size
205
+ # The size, in bytes, of the function .zip file you uploaded.
206
+ # @return [Integer]
207
+ #
208
+ # @!attribute [rw] description
209
+ # The user-provided description.
210
+ # @return [String]
211
+ #
212
+ # @!attribute [rw] timeout
213
+ # The function execution time at which Lambda should terminate the
214
+ # function. Because the execution time has cost implications, we
215
+ # recommend you set this value based on your expected execution time.
216
+ # The default is 3 seconds.
217
+ # @return [Integer]
218
+ #
219
+ # @!attribute [rw] memory_size
220
+ # The memory size, in MB, you configured for the function. Must be a
221
+ # multiple of 64 MB.
222
+ # @return [Integer]
223
+ #
224
+ # @!attribute [rw] last_modified
225
+ # The timestamp of the last time you updated the function.
226
+ # @return [Time]
227
+ #
228
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/FunctionConfiguration AWS API Documentation
229
+ #
230
+ class FunctionConfiguration < Struct.new(
231
+ :function_name,
232
+ :function_arn,
233
+ :configuration_id,
234
+ :runtime,
235
+ :role,
236
+ :handler,
237
+ :mode,
238
+ :code_size,
239
+ :description,
240
+ :timeout,
241
+ :memory_size,
242
+ :last_modified)
243
+ include Aws::Structure
244
+ end
240
245
 
241
- # @note When making an API call, pass GetFunctionConfigurationRequest
242
- # data as a hash:
243
- #
244
- # {
245
- # function_name: "FunctionName", # required
246
- # }
247
- # @!attribute [rw] function_name
248
- # The name of the Lambda function for which you want to retrieve the
249
- # configuration information.
250
- # @return [String]
251
- class GetFunctionConfigurationRequest < Struct.new(
252
- :function_name)
253
- include Aws::Structure
254
- end
246
+ # @note When making an API call, you may pass GetEventSourceRequest
247
+ # data as a hash:
248
+ #
249
+ # {
250
+ # uuid: "String", # required
251
+ # }
252
+ #
253
+ # @!attribute [rw] uuid
254
+ # The AWS Lambda assigned ID of the event source mapping.
255
+ # @return [String]
256
+ #
257
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/GetEventSourceRequest AWS API Documentation
258
+ #
259
+ class GetEventSourceRequest < Struct.new(
260
+ :uuid)
261
+ include Aws::Structure
262
+ end
255
263
 
256
- # @note When making an API call, pass GetFunctionRequest
257
- # data as a hash:
258
- #
259
- # {
260
- # function_name: "FunctionName", # required
261
- # }
262
- # @!attribute [rw] function_name
263
- # The Lambda function name.
264
- # @return [String]
265
- class GetFunctionRequest < Struct.new(
266
- :function_name)
267
- include Aws::Structure
268
- end
264
+ # @note When making an API call, you may pass GetFunctionConfigurationRequest
265
+ # data as a hash:
266
+ #
267
+ # {
268
+ # function_name: "FunctionName", # required
269
+ # }
270
+ #
271
+ # @!attribute [rw] function_name
272
+ # The name of the Lambda function for which you want to retrieve the
273
+ # configuration information.
274
+ # @return [String]
275
+ #
276
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/GetFunctionConfigurationRequest AWS API Documentation
277
+ #
278
+ class GetFunctionConfigurationRequest < Struct.new(
279
+ :function_name)
280
+ include Aws::Structure
281
+ end
269
282
 
270
- # This response contains the object for AWS Lambda function location
271
- # (see API\_FunctionCodeLocation
272
- # @!attribute [rw] configuration
273
- # A complex type that describes function metadata.
274
- # @return [Types::FunctionConfiguration]
275
- #
276
- # @!attribute [rw] code
277
- # The object for the Lambda function location.
278
- # @return [Types::FunctionCodeLocation]
279
- class GetFunctionResponse < Struct.new(
280
- :configuration,
281
- :code)
282
- include Aws::Structure
283
- end
283
+ # @note When making an API call, you may pass GetFunctionRequest
284
+ # data as a hash:
285
+ #
286
+ # {
287
+ # function_name: "FunctionName", # required
288
+ # }
289
+ #
290
+ # @!attribute [rw] function_name
291
+ # The Lambda function name.
292
+ # @return [String]
293
+ #
294
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/GetFunctionRequest AWS API Documentation
295
+ #
296
+ class GetFunctionRequest < Struct.new(
297
+ :function_name)
298
+ include Aws::Structure
299
+ end
284
300
 
285
- # @note When making an API call, pass InvokeAsyncRequest
286
- # data as a hash:
287
- #
288
- # {
289
- # function_name: "FunctionName", # required
290
- # invoke_args: "data", # required
291
- # }
292
- # @!attribute [rw] function_name
293
- # The Lambda function name.
294
- # @return [String]
295
- #
296
- # @!attribute [rw] invoke_args
297
- # JSON that you want to provide to your Lambda function as input.
298
- # @return [IO]
299
- class InvokeAsyncRequest < Struct.new(
300
- :function_name,
301
- :invoke_args)
302
- include Aws::Structure
303
- end
301
+ # This response contains the object for AWS Lambda function location
302
+ # (see API\_FunctionCodeLocation
303
+ #
304
+ # @!attribute [rw] configuration
305
+ # A complex type that describes function metadata.
306
+ # @return [Types::FunctionConfiguration]
307
+ #
308
+ # @!attribute [rw] code
309
+ # The object for the Lambda function location.
310
+ # @return [Types::FunctionCodeLocation]
311
+ #
312
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/GetFunctionResponse AWS API Documentation
313
+ #
314
+ class GetFunctionResponse < Struct.new(
315
+ :configuration,
316
+ :code)
317
+ include Aws::Structure
318
+ end
304
319
 
305
- # Upon success, it returns empty response. Otherwise, throws an
306
- # exception.
307
- # @!attribute [rw] status
308
- # It will be 202 upon success.
309
- # @return [Integer]
310
- class InvokeAsyncResponse < Struct.new(
311
- :status)
312
- include Aws::Structure
313
- end
320
+ # @note When making an API call, you may pass InvokeAsyncRequest
321
+ # data as a hash:
322
+ #
323
+ # {
324
+ # function_name: "FunctionName", # required
325
+ # invoke_args: "data", # required
326
+ # }
327
+ #
328
+ # @!attribute [rw] function_name
329
+ # The Lambda function name.
330
+ # @return [String]
331
+ #
332
+ # @!attribute [rw] invoke_args
333
+ # JSON that you want to provide to your Lambda function as input.
334
+ # @return [IO]
335
+ #
336
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/InvokeAsyncRequest AWS API Documentation
337
+ #
338
+ class InvokeAsyncRequest < Struct.new(
339
+ :function_name,
340
+ :invoke_args)
341
+ include Aws::Structure
342
+ end
314
343
 
315
- # @note When making an API call, pass ListEventSourcesRequest
316
- # data as a hash:
317
- #
318
- # {
319
- # event_source_arn: "String",
320
- # function_name: "FunctionName",
321
- # marker: "String",
322
- # max_items: 1,
323
- # }
324
- # @!attribute [rw] event_source_arn
325
- # The Amazon Resource Name (ARN) of the Amazon Kinesis stream.
326
- # @return [String]
327
- #
328
- # @!attribute [rw] function_name
329
- # The name of the AWS Lambda function.
330
- # @return [String]
331
- #
332
- # @!attribute [rw] marker
333
- # Optional string. An opaque pagination token returned from a previous
334
- # `ListEventSources` operation. If present, specifies to continue the
335
- # list from where the returning call left off.
336
- # @return [String]
337
- #
338
- # @!attribute [rw] max_items
339
- # Optional integer. Specifies the maximum number of event sources to
340
- # return in response. This value must be greater than 0.
341
- # @return [Integer]
342
- class ListEventSourcesRequest < Struct.new(
343
- :event_source_arn,
344
- :function_name,
345
- :marker,
346
- :max_items)
347
- include Aws::Structure
348
- end
344
+ # Upon success, it returns empty response. Otherwise, throws an
345
+ # exception.
346
+ #
347
+ # @!attribute [rw] status
348
+ # It will be 202 upon success.
349
+ # @return [Integer]
350
+ #
351
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/InvokeAsyncResponse AWS API Documentation
352
+ #
353
+ class InvokeAsyncResponse < Struct.new(
354
+ :status)
355
+ include Aws::Structure
356
+ end
349
357
 
350
- # Contains a list of event sources (see API\_EventSourceConfiguration)
351
- # @!attribute [rw] next_marker
352
- # A string, present if there are more event source mappings.
353
- # @return [String]
354
- #
355
- # @!attribute [rw] event_sources
356
- # An arrary of `EventSourceConfiguration` objects.
357
- # @return [Array<Types::EventSourceConfiguration>]
358
- class ListEventSourcesResponse < Struct.new(
359
- :next_marker,
360
- :event_sources)
361
- include Aws::Structure
362
- end
358
+ # @note When making an API call, you may pass ListEventSourcesRequest
359
+ # data as a hash:
360
+ #
361
+ # {
362
+ # event_source_arn: "String",
363
+ # function_name: "FunctionName",
364
+ # marker: "String",
365
+ # max_items: 1,
366
+ # }
367
+ #
368
+ # @!attribute [rw] event_source_arn
369
+ # The Amazon Resource Name (ARN) of the Amazon Kinesis stream.
370
+ # @return [String]
371
+ #
372
+ # @!attribute [rw] function_name
373
+ # The name of the AWS Lambda function.
374
+ # @return [String]
375
+ #
376
+ # @!attribute [rw] marker
377
+ # Optional string. An opaque pagination token returned from a previous
378
+ # `ListEventSources` operation. If present, specifies to continue the
379
+ # list from where the returning call left off.
380
+ # @return [String]
381
+ #
382
+ # @!attribute [rw] max_items
383
+ # Optional integer. Specifies the maximum number of event sources to
384
+ # return in response. This value must be greater than 0.
385
+ # @return [Integer]
386
+ #
387
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/ListEventSourcesRequest AWS API Documentation
388
+ #
389
+ class ListEventSourcesRequest < Struct.new(
390
+ :event_source_arn,
391
+ :function_name,
392
+ :marker,
393
+ :max_items)
394
+ include Aws::Structure
395
+ end
363
396
 
364
- # @note When making an API call, pass ListFunctionsRequest
365
- # data as a hash:
366
- #
367
- # {
368
- # marker: "String",
369
- # max_items: 1,
370
- # }
371
- # @!attribute [rw] marker
372
- # Optional string. An opaque pagination token returned from a previous
373
- # `ListFunctions` operation. If present, indicates where to continue
374
- # the listing.
375
- # @return [String]
376
- #
377
- # @!attribute [rw] max_items
378
- # Optional integer. Specifies the maximum number of AWS Lambda
379
- # functions to return in response. This parameter value must be
380
- # greater than 0.
381
- # @return [Integer]
382
- class ListFunctionsRequest < Struct.new(
383
- :marker,
384
- :max_items)
385
- include Aws::Structure
386
- end
397
+ # Contains a list of event sources (see API\_EventSourceConfiguration)
398
+ #
399
+ # @!attribute [rw] next_marker
400
+ # A string, present if there are more event source mappings.
401
+ # @return [String]
402
+ #
403
+ # @!attribute [rw] event_sources
404
+ # An arrary of `EventSourceConfiguration` objects.
405
+ # @return [Array<Types::EventSourceConfiguration>]
406
+ #
407
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/ListEventSourcesResponse AWS API Documentation
408
+ #
409
+ class ListEventSourcesResponse < Struct.new(
410
+ :next_marker,
411
+ :event_sources)
412
+ include Aws::Structure
413
+ end
387
414
 
388
- # Contains a list of AWS Lambda function configurations (see
389
- # API\_FunctionConfiguration.
390
- # @!attribute [rw] next_marker
391
- # A string, present if there are more functions.
392
- # @return [String]
393
- #
394
- # @!attribute [rw] functions
395
- # A list of Lambda functions.
396
- # @return [Array<Types::FunctionConfiguration>]
397
- class ListFunctionsResponse < Struct.new(
398
- :next_marker,
399
- :functions)
400
- include Aws::Structure
401
- end
415
+ # @note When making an API call, you may pass ListFunctionsRequest
416
+ # data as a hash:
417
+ #
418
+ # {
419
+ # marker: "String",
420
+ # max_items: 1,
421
+ # }
422
+ #
423
+ # @!attribute [rw] marker
424
+ # Optional string. An opaque pagination token returned from a previous
425
+ # `ListFunctions` operation. If present, indicates where to continue
426
+ # the listing.
427
+ # @return [String]
428
+ #
429
+ # @!attribute [rw] max_items
430
+ # Optional integer. Specifies the maximum number of AWS Lambda
431
+ # functions to return in response. This parameter value must be
432
+ # greater than 0.
433
+ # @return [Integer]
434
+ #
435
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/ListFunctionsRequest AWS API Documentation
436
+ #
437
+ class ListFunctionsRequest < Struct.new(
438
+ :marker,
439
+ :max_items)
440
+ include Aws::Structure
441
+ end
402
442
 
403
- # @note When making an API call, pass RemoveEventSourceRequest
404
- # data as a hash:
405
- #
406
- # {
407
- # uuid: "String", # required
408
- # }
409
- # @!attribute [rw] uuid
410
- # The event source mapping ID.
411
- # @return [String]
412
- class RemoveEventSourceRequest < Struct.new(
413
- :uuid)
414
- include Aws::Structure
415
- end
443
+ # Contains a list of AWS Lambda function configurations (see
444
+ # API\_FunctionConfiguration.
445
+ #
446
+ # @!attribute [rw] next_marker
447
+ # A string, present if there are more functions.
448
+ # @return [String]
449
+ #
450
+ # @!attribute [rw] functions
451
+ # A list of Lambda functions.
452
+ # @return [Array<Types::FunctionConfiguration>]
453
+ #
454
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/ListFunctionsResponse AWS API Documentation
455
+ #
456
+ class ListFunctionsResponse < Struct.new(
457
+ :next_marker,
458
+ :functions)
459
+ include Aws::Structure
460
+ end
416
461
 
417
- # @note When making an API call, pass UpdateFunctionConfigurationRequest
418
- # data as a hash:
419
- #
420
- # {
421
- # function_name: "FunctionName", # required
422
- # role: "RoleArn",
423
- # handler: "Handler",
424
- # description: "Description",
425
- # timeout: 1,
426
- # memory_size: 1,
427
- # }
428
- # @!attribute [rw] function_name
429
- # The name of the Lambda function.
430
- # @return [String]
431
- #
432
- # @!attribute [rw] role
433
- # The Amazon Resource Name (ARN) of the IAM role that Lambda will
434
- # assume when it executes your function.
435
- # @return [String]
436
- #
437
- # @!attribute [rw] handler
438
- # The function that Lambda calls to begin executing your function. For
439
- # Node.js, it is the *module-name.export* value in your function.
440
- # @return [String]
441
- #
442
- # @!attribute [rw] description
443
- # A short user-defined function description. Lambda does not use this
444
- # value. Assign a meaningful description as you see fit.
445
- # @return [String]
446
- #
447
- # @!attribute [rw] timeout
448
- # The function execution time at which Lambda should terminate the
449
- # function. Because the execution time has cost implications, we
450
- # recommend you set this value based on your expected execution time.
451
- # The default is 3 seconds.
452
- # @return [Integer]
453
- #
454
- # @!attribute [rw] memory_size
455
- # The amount of memory, in MB, your Lambda function is given. Lambda
456
- # uses this memory size to infer the amount of CPU allocated to your
457
- # function. Your function use-case determines your CPU and memory
458
- # requirements. For example, a database operation might need less
459
- # memory compared to an image processing function. The default value
460
- # is 128 MB. The value must be a multiple of 64 MB.
461
- # @return [Integer]
462
- class UpdateFunctionConfigurationRequest < Struct.new(
463
- :function_name,
464
- :role,
465
- :handler,
466
- :description,
467
- :timeout,
468
- :memory_size)
469
- include Aws::Structure
470
- end
462
+ # @note When making an API call, you may pass RemoveEventSourceRequest
463
+ # data as a hash:
464
+ #
465
+ # {
466
+ # uuid: "String", # required
467
+ # }
468
+ #
469
+ # @!attribute [rw] uuid
470
+ # The event source mapping ID.
471
+ # @return [String]
472
+ #
473
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/RemoveEventSourceRequest AWS API Documentation
474
+ #
475
+ class RemoveEventSourceRequest < Struct.new(
476
+ :uuid)
477
+ include Aws::Structure
478
+ end
471
479
 
472
- # @note When making an API call, pass UploadFunctionRequest
473
- # data as a hash:
474
- #
475
- # {
476
- # function_name: "FunctionName", # required
477
- # function_zip: "data", # required
478
- # runtime: "nodejs", # required, accepts nodejs
479
- # role: "RoleArn", # required
480
- # handler: "Handler", # required
481
- # mode: "event", # required, accepts event
482
- # description: "Description",
483
- # timeout: 1,
484
- # memory_size: 1,
485
- # }
486
- # @!attribute [rw] function_name
487
- # The name you want to assign to the function you are uploading. The
488
- # function names appear in the console and are returned in the
489
- # ListFunctions API. Function names are used to specify functions to
490
- # other AWS Lambda APIs, such as InvokeAsync.
491
- # @return [String]
492
- #
493
- # @!attribute [rw] function_zip
494
- # A .zip file containing your packaged source code. For more
495
- # information about creating a .zip file, go to [AWS LambdaL How it
496
- # Works][1] in the AWS Lambda Developer Guide.
497
- #
498
- #
499
- #
500
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events.html
501
- # @return [IO]
502
- #
503
- # @!attribute [rw] runtime
504
- # The runtime environment for the Lambda function you are uploading.
505
- # Currently, Lambda supports only "nodejs" as the runtime.
506
- # @return [String]
507
- #
508
- # @!attribute [rw] role
509
- # The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
510
- # when it executes your function to access any other Amazon Web
511
- # Services (AWS) resources.
512
- # @return [String]
513
- #
514
- # @!attribute [rw] handler
515
- # The function that Lambda calls to begin execution. For Node.js, it
516
- # is the *module-name*.*export* value in your function.
517
- # @return [String]
518
- #
519
- # @!attribute [rw] mode
520
- # How the Lambda function will be invoked. Lambda supports only the
521
- # "event" mode.
522
- # @return [String]
523
- #
524
- # @!attribute [rw] description
525
- # A short, user-defined function description. Lambda does not use this
526
- # value. Assign a meaningful description as you see fit.
527
- # @return [String]
528
- #
529
- # @!attribute [rw] timeout
530
- # The function execution time at which Lambda should terminate the
531
- # function. Because the execution time has cost implications, we
532
- # recommend you set this value based on your expected execution time.
533
- # The default is 3 seconds.
534
- # @return [Integer]
535
- #
536
- # @!attribute [rw] memory_size
537
- # The amount of memory, in MB, your Lambda function is given. Lambda
538
- # uses this memory size to infer the amount of CPU allocated to your
539
- # function. Your function use-case determines your CPU and memory
540
- # requirements. For example, database operation might need less memory
541
- # compared to image processing function. The default value is 128 MB.
542
- # The value must be a multiple of 64 MB.
543
- # @return [Integer]
544
- class UploadFunctionRequest < Struct.new(
545
- :function_name,
546
- :function_zip,
547
- :runtime,
548
- :role,
549
- :handler,
550
- :mode,
551
- :description,
552
- :timeout,
553
- :memory_size)
554
- include Aws::Structure
555
- end
480
+ # @note When making an API call, you may pass UpdateFunctionConfigurationRequest
481
+ # data as a hash:
482
+ #
483
+ # {
484
+ # function_name: "FunctionName", # required
485
+ # role: "RoleArn",
486
+ # handler: "Handler",
487
+ # description: "Description",
488
+ # timeout: 1,
489
+ # memory_size: 1,
490
+ # }
491
+ #
492
+ # @!attribute [rw] function_name
493
+ # The name of the Lambda function.
494
+ # @return [String]
495
+ #
496
+ # @!attribute [rw] role
497
+ # The Amazon Resource Name (ARN) of the IAM role that Lambda will
498
+ # assume when it executes your function.
499
+ # @return [String]
500
+ #
501
+ # @!attribute [rw] handler
502
+ # The function that Lambda calls to begin executing your function. For
503
+ # Node.js, it is the *module-name.export* value in your function.
504
+ # @return [String]
505
+ #
506
+ # @!attribute [rw] description
507
+ # A short user-defined function description. Lambda does not use this
508
+ # value. Assign a meaningful description as you see fit.
509
+ # @return [String]
510
+ #
511
+ # @!attribute [rw] timeout
512
+ # The function execution time at which Lambda should terminate the
513
+ # function. Because the execution time has cost implications, we
514
+ # recommend you set this value based on your expected execution time.
515
+ # The default is 3 seconds.
516
+ # @return [Integer]
517
+ #
518
+ # @!attribute [rw] memory_size
519
+ # The amount of memory, in MB, your Lambda function is given. Lambda
520
+ # uses this memory size to infer the amount of CPU allocated to your
521
+ # function. Your function use-case determines your CPU and memory
522
+ # requirements. For example, a database operation might need less
523
+ # memory compared to an image processing function. The default value
524
+ # is 128 MB. The value must be a multiple of 64 MB.
525
+ # @return [Integer]
526
+ #
527
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/UpdateFunctionConfigurationRequest AWS API Documentation
528
+ #
529
+ class UpdateFunctionConfigurationRequest < Struct.new(
530
+ :function_name,
531
+ :role,
532
+ :handler,
533
+ :description,
534
+ :timeout,
535
+ :memory_size)
536
+ include Aws::Structure
537
+ end
556
538
 
539
+ # @note When making an API call, you may pass UploadFunctionRequest
540
+ # data as a hash:
541
+ #
542
+ # {
543
+ # function_name: "FunctionName", # required
544
+ # function_zip: "data", # required
545
+ # runtime: "nodejs", # required, accepts nodejs
546
+ # role: "RoleArn", # required
547
+ # handler: "Handler", # required
548
+ # mode: "event", # required, accepts event
549
+ # description: "Description",
550
+ # timeout: 1,
551
+ # memory_size: 1,
552
+ # }
553
+ #
554
+ # @!attribute [rw] function_name
555
+ # The name you want to assign to the function you are uploading. The
556
+ # function names appear in the console and are returned in the
557
+ # ListFunctions API. Function names are used to specify functions to
558
+ # other AWS Lambda APIs, such as InvokeAsync.
559
+ # @return [String]
560
+ #
561
+ # @!attribute [rw] function_zip
562
+ # A .zip file containing your packaged source code. For more
563
+ # information about creating a .zip file, go to [AWS LambdaL How it
564
+ # Works][1] in the AWS Lambda Developer Guide.
565
+ #
566
+ #
567
+ #
568
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events.html
569
+ # @return [IO]
570
+ #
571
+ # @!attribute [rw] runtime
572
+ # The runtime environment for the Lambda function you are uploading.
573
+ # Currently, Lambda supports only "nodejs" as the runtime.
574
+ # @return [String]
575
+ #
576
+ # @!attribute [rw] role
577
+ # The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
578
+ # when it executes your function to access any other Amazon Web
579
+ # Services (AWS) resources.
580
+ # @return [String]
581
+ #
582
+ # @!attribute [rw] handler
583
+ # The function that Lambda calls to begin execution. For Node.js, it
584
+ # is the *module-name*.*export* value in your function.
585
+ # @return [String]
586
+ #
587
+ # @!attribute [rw] mode
588
+ # How the Lambda function will be invoked. Lambda supports only the
589
+ # "event" mode.
590
+ # @return [String]
591
+ #
592
+ # @!attribute [rw] description
593
+ # A short, user-defined function description. Lambda does not use this
594
+ # value. Assign a meaningful description as you see fit.
595
+ # @return [String]
596
+ #
597
+ # @!attribute [rw] timeout
598
+ # The function execution time at which Lambda should terminate the
599
+ # function. Because the execution time has cost implications, we
600
+ # recommend you set this value based on your expected execution time.
601
+ # The default is 3 seconds.
602
+ # @return [Integer]
603
+ #
604
+ # @!attribute [rw] memory_size
605
+ # The amount of memory, in MB, your Lambda function is given. Lambda
606
+ # uses this memory size to infer the amount of CPU allocated to your
607
+ # function. Your function use-case determines your CPU and memory
608
+ # requirements. For example, database operation might need less memory
609
+ # compared to image processing function. The default value is 128 MB.
610
+ # The value must be a multiple of 64 MB.
611
+ # @return [Integer]
612
+ #
613
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2014-11-11/UploadFunctionRequest AWS API Documentation
614
+ #
615
+ class UploadFunctionRequest < Struct.new(
616
+ :function_name,
617
+ :function_zip,
618
+ :runtime,
619
+ :role,
620
+ :handler,
621
+ :mode,
622
+ :description,
623
+ :timeout,
624
+ :memory_size)
625
+ include Aws::Structure
557
626
  end
627
+
558
628
  end
559
629
  end