aws-sdk-lambdapreview 1.0.0.rc1 → 1.0.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lambdapreview.rb +2 -2
- data/lib/aws-sdk-lambdapreview/client.rb +797 -686
- data/lib/aws-sdk-lambdapreview/client_api.rb +299 -382
- data/lib/aws-sdk-lambdapreview/errors.rb +4 -13
- data/lib/aws-sdk-lambdapreview/resource.rb +12 -14
- data/lib/aws-sdk-lambdapreview/types.rb +602 -532
- metadata +2 -2
@@ -1,23 +1,14 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
module
|
10
|
-
module Errors
|
8
|
+
module Aws::LambdaPreview
|
9
|
+
module Errors
|
11
10
|
|
12
|
-
|
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
|
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
|
-
|
10
|
-
class Resource
|
8
|
+
module Aws::LambdaPreview
|
9
|
+
class Resource
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
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
|
10
|
-
module Types
|
8
|
+
module Aws::LambdaPreview
|
9
|
+
module Types
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
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
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
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
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
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
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
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
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
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
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
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
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
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
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
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
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
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
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
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
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
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
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
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
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
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
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
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
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
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
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
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
|