aws-sdk-lambda 1.0.0.rc2 → 1.0.0.rc3

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 Lambda
10
- module Errors
8
+ module Aws::Lambda
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 Lambda
10
- class Resource
8
+ module Aws::Lambda
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,1776 +1,1868 @@
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 Lambda
10
- module Types
8
+ module Aws::Lambda
9
+ module Types
11
10
 
12
- # Provides limits of code size and concurrency associated with the
13
- # current account and region.
14
- # @!attribute [rw] total_code_size
15
- # Maximum size, in megabytes, of a code package you can upload per
16
- # region. The default size is 75 GB.
17
- # @return [Integer]
18
- #
19
- # @!attribute [rw] code_size_unzipped
20
- # Size, in bytes, of code/dependencies that you can zip into a
21
- # deployment package (uncompressed zip/jar size) for uploading. The
22
- # default limit is 250 MB.
23
- # @return [Integer]
24
- #
25
- # @!attribute [rw] code_size_zipped
26
- # Size, in bytes, of a single zipped code/dependencies package you can
27
- # upload for your Lambda function(.zip/.jar file). Try using AWS S3
28
- # for uploading larger files. Default limit is 50 MB.
29
- # @return [Integer]
30
- #
31
- # @!attribute [rw] concurrent_executions
32
- # Number of simultaneous executions of your function per region. For
33
- # more information or to request a limit increase for concurrent
34
- # executions, see [Lambda Function Concurrent Executions][1]. The
35
- # default limit is 100.
36
- #
37
- #
38
- #
39
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html
40
- # @return [Integer]
41
- class AccountLimit < Struct.new(
42
- :total_code_size,
43
- :code_size_unzipped,
44
- :code_size_zipped,
45
- :concurrent_executions)
46
- include Aws::Structure
47
- end
48
-
49
- # Provides code size usage and function count associated with the
50
- # current account and region.
51
- # @!attribute [rw] total_code_size
52
- # Total size, in megabytes, of the account's deployment packages per
53
- # region.
54
- # @return [Integer]
55
- #
56
- # @!attribute [rw] function_count
57
- # The number of your account's existing functions per region.
58
- # @return [Integer]
59
- class AccountUsage < Struct.new(
60
- :total_code_size,
61
- :function_count)
62
- include Aws::Structure
63
- end
11
+ # Provides limits of code size and concurrency associated with the
12
+ # current account and region.
13
+ #
14
+ # @!attribute [rw] total_code_size
15
+ # Maximum size, in megabytes, of a code package you can upload per
16
+ # region. The default size is 75 GB.
17
+ # @return [Integer]
18
+ #
19
+ # @!attribute [rw] code_size_unzipped
20
+ # Size, in bytes, of code/dependencies that you can zip into a
21
+ # deployment package (uncompressed zip/jar size) for uploading. The
22
+ # default limit is 250 MB.
23
+ # @return [Integer]
24
+ #
25
+ # @!attribute [rw] code_size_zipped
26
+ # Size, in bytes, of a single zipped code/dependencies package you can
27
+ # upload for your Lambda function(.zip/.jar file). Try using Amazon S3
28
+ # for uploading larger files. Default limit is 50 MB.
29
+ # @return [Integer]
30
+ #
31
+ # @!attribute [rw] concurrent_executions
32
+ # Number of simultaneous executions of your function per region. For
33
+ # more information or to request a limit increase for concurrent
34
+ # executions, see [Lambda Function Concurrent Executions][1]. The
35
+ # default limit is 100.
36
+ #
37
+ #
38
+ #
39
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html
40
+ # @return [Integer]
41
+ #
42
+ class AccountLimit < Struct.new(
43
+ :total_code_size,
44
+ :code_size_unzipped,
45
+ :code_size_zipped,
46
+ :concurrent_executions)
47
+ include Aws::Structure
48
+ end
64
49
 
65
- # @note When making an API call, pass AddPermissionRequest
66
- # data as a hash:
67
- #
68
- # {
69
- # function_name: "FunctionName", # required
70
- # statement_id: "StatementId", # required
71
- # action: "Action", # required
72
- # principal: "Principal", # required
73
- # source_arn: "Arn",
74
- # source_account: "SourceOwner",
75
- # event_source_token: "EventSourceToken",
76
- # qualifier: "Qualifier",
77
- # }
78
- # @!attribute [rw] function_name
79
- # Name of the Lambda function whose resource policy you are updating
80
- # by adding a new permission.
81
- #
82
- # You can specify a function name (for example, `Thumbnail`) or you
83
- # can specify Amazon Resource Name (ARN) of the function (for example,
84
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
85
- # Lambda also allows you to specify partial ARN (for example,
86
- # `account-id:Thumbnail`). Note that the length constraint applies
87
- # only to the ARN. If you specify only the function name, it is
88
- # limited to 64 character in length.
89
- # @return [String]
90
- #
91
- # @!attribute [rw] statement_id
92
- # A unique statement identifier.
93
- # @return [String]
94
- #
95
- # @!attribute [rw] action
96
- # The AWS Lambda action you want to allow in this statement. Each
97
- # Lambda action is a string starting with `lambda:` followed by the
98
- # API name . For example, `lambda:CreateFunction`. You can use
99
- # wildcard (`lambda:*`) to grant permission for all AWS Lambda
100
- # actions.
101
- # @return [String]
102
- #
103
- # @!attribute [rw] principal
104
- # The principal who is getting this permission. It can be Amazon S3
105
- # service Principal (`s3.amazonaws.com`) if you want Amazon S3 to
106
- # invoke the function, an AWS account ID if you are granting
107
- # cross-account permission, or any valid AWS service principal such as
108
- # `sns.amazonaws.com`. For example, you might want to allow a custom
109
- # application in another AWS account to push events to AWS Lambda by
110
- # invoking your function.
111
- # @return [String]
112
- #
113
- # @!attribute [rw] source_arn
114
- # This is optional; however, when granting Amazon S3 permission to
115
- # invoke your function, you should specify this field with the Amazon
116
- # Resource Name (ARN) as its value. This ensures that only events
117
- # generated from the specified source can invoke the function.
118
- #
119
- # If you add a permission for the Amazon S3 principal without
120
- # providing the source ARN, any AWS account that creates a mapping to
121
- # your function ARN can send events to invoke your Lambda function
122
- # from Amazon S3.
123
- # @return [String]
124
- #
125
- # @!attribute [rw] source_account
126
- # This parameter is used for S3, SES, CloudWatch Logs and CloudWatch
127
- # Rules only. The AWS account ID (without a hyphen) of the source
128
- # owner. For example, if the `SourceArn` identifies a bucket, then
129
- # this is the bucket owner's account ID. You can use this additional
130
- # condition to ensure the bucket you specify is owned by a specific
131
- # account (it is possible the bucket owner deleted the bucket and some
132
- # other AWS account created the bucket). You can also use this
133
- # condition to specify all sources (that is, you don't specify the
134
- # `SourceArn`) owned by a specific account.
135
- # @return [String]
136
- #
137
- # @!attribute [rw] event_source_token
138
- # A unique token that must be supplied by the principal invoking the
139
- # function. This is currently only used for Alexa Smart Home
140
- # functions.
141
- # @return [String]
142
- #
143
- # @!attribute [rw] qualifier
144
- # You can use this optional query parameter to describe a qualified
145
- # ARN using a function version or an alias name. The permission will
146
- # then apply to the specific qualified ARN. For example, if you
147
- # specify function version 2 as the qualifier, then permission applies
148
- # only when request is made using qualified function ARN:
149
- #
150
- # `arn:aws:lambda:aws-region:acct-id:function:function-name:2`
151
- #
152
- # If you specify an alias name, for example `PROD`, then the
153
- # permission is valid only for requests made using the alias ARN:
154
- #
155
- # `arn:aws:lambda:aws-region:acct-id:function:function-name:PROD`
156
- #
157
- # If the qualifier is not specified, the permission is valid only when
158
- # requests is made using unqualified function ARN.
159
- #
160
- # `arn:aws:lambda:aws-region:acct-id:function:function-name`
161
- # @return [String]
162
- class AddPermissionRequest < Struct.new(
163
- :function_name,
164
- :statement_id,
165
- :action,
166
- :principal,
167
- :source_arn,
168
- :source_account,
169
- :event_source_token,
170
- :qualifier)
171
- include Aws::Structure
172
- end
50
+ # Provides code size usage and function count associated with the
51
+ # current account and region.
52
+ #
53
+ # @!attribute [rw] total_code_size
54
+ # Total size, in bytes, of the account's deployment packages per
55
+ # region.
56
+ # @return [Integer]
57
+ #
58
+ # @!attribute [rw] function_count
59
+ # The number of your account's existing functions per region.
60
+ # @return [Integer]
61
+ #
62
+ class AccountUsage < Struct.new(
63
+ :total_code_size,
64
+ :function_count)
65
+ include Aws::Structure
66
+ end
173
67
 
174
- # @!attribute [rw] statement
175
- # The permission statement you specified in the request. The response
176
- # returns the same as a string using a backslash ("\\") as an escape
177
- # character in the JSON.
178
- # @return [String]
179
- class AddPermissionResponse < Struct.new(
180
- :statement)
181
- include Aws::Structure
182
- end
68
+ # @note When making an API call, you may pass AddPermissionRequest
69
+ # data as a hash:
70
+ #
71
+ # {
72
+ # function_name: "FunctionName", # required
73
+ # statement_id: "StatementId", # required
74
+ # action: "Action", # required
75
+ # principal: "Principal", # required
76
+ # source_arn: "Arn",
77
+ # source_account: "SourceOwner",
78
+ # event_source_token: "EventSourceToken",
79
+ # qualifier: "Qualifier",
80
+ # }
81
+ #
82
+ # @!attribute [rw] function_name
83
+ # Name of the Lambda function whose resource policy you are updating
84
+ # by adding a new permission.
85
+ #
86
+ # You can specify a function name (for example, `Thumbnail`) or you
87
+ # can specify Amazon Resource Name (ARN) of the function (for example,
88
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
89
+ # Lambda also allows you to specify partial ARN (for example,
90
+ # `account-id:Thumbnail`). Note that the length constraint applies
91
+ # only to the ARN. If you specify only the function name, it is
92
+ # limited to 64 character in length.
93
+ # @return [String]
94
+ #
95
+ # @!attribute [rw] statement_id
96
+ # A unique statement identifier.
97
+ # @return [String]
98
+ #
99
+ # @!attribute [rw] action
100
+ # The AWS Lambda action you want to allow in this statement. Each
101
+ # Lambda action is a string starting with `lambda:` followed by the
102
+ # API name . For example, `lambda:CreateFunction`. You can use
103
+ # wildcard (`lambda:*`) to grant permission for all AWS Lambda
104
+ # actions.
105
+ # @return [String]
106
+ #
107
+ # @!attribute [rw] principal
108
+ # The principal who is getting this permission. It can be Amazon S3
109
+ # service Principal (`s3.amazonaws.com`) if you want Amazon S3 to
110
+ # invoke the function, an AWS account ID if you are granting
111
+ # cross-account permission, or any valid AWS service principal such as
112
+ # `sns.amazonaws.com`. For example, you might want to allow a custom
113
+ # application in another AWS account to push events to AWS Lambda by
114
+ # invoking your function.
115
+ # @return [String]
116
+ #
117
+ # @!attribute [rw] source_arn
118
+ # This is optional; however, when granting Amazon S3 permission to
119
+ # invoke your function, you should specify this field with the Amazon
120
+ # Resource Name (ARN) as its value. This ensures that only events
121
+ # generated from the specified source can invoke the function.
122
+ #
123
+ # If you add a permission for the Amazon S3 principal without
124
+ # providing the source ARN, any AWS account that creates a mapping to
125
+ # your function ARN can send events to invoke your Lambda function
126
+ # from Amazon S3.
127
+ # @return [String]
128
+ #
129
+ # @!attribute [rw] source_account
130
+ # This parameter is used for S3, SES, CloudWatch Logs and CloudWatch
131
+ # Rules only. The AWS account ID (without a hyphen) of the source
132
+ # owner. For example, if the `SourceArn` identifies a bucket, then
133
+ # this is the bucket owner's account ID. You can use this additional
134
+ # condition to ensure the bucket you specify is owned by a specific
135
+ # account (it is possible the bucket owner deleted the bucket and some
136
+ # other AWS account created the bucket). You can also use this
137
+ # condition to specify all sources (that is, you don't specify the
138
+ # `SourceArn`) owned by a specific account.
139
+ # @return [String]
140
+ #
141
+ # @!attribute [rw] event_source_token
142
+ # A unique token that must be supplied by the principal invoking the
143
+ # function. This is currently only used for Alexa Smart Home
144
+ # functions.
145
+ # @return [String]
146
+ #
147
+ # @!attribute [rw] qualifier
148
+ # You can use this optional query parameter to describe a qualified
149
+ # ARN using a function version or an alias name. The permission will
150
+ # then apply to the specific qualified ARN. For example, if you
151
+ # specify function version 2 as the qualifier, then permission applies
152
+ # only when request is made using qualified function ARN:
153
+ #
154
+ # `arn:aws:lambda:aws-region:acct-id:function:function-name:2`
155
+ #
156
+ # If you specify an alias name, for example `PROD`, then the
157
+ # permission is valid only for requests made using the alias ARN:
158
+ #
159
+ # `arn:aws:lambda:aws-region:acct-id:function:function-name:PROD`
160
+ #
161
+ # If the qualifier is not specified, the permission is valid only when
162
+ # requests is made using unqualified function ARN.
163
+ #
164
+ # `arn:aws:lambda:aws-region:acct-id:function:function-name`
165
+ # @return [String]
166
+ #
167
+ class AddPermissionRequest < Struct.new(
168
+ :function_name,
169
+ :statement_id,
170
+ :action,
171
+ :principal,
172
+ :source_arn,
173
+ :source_account,
174
+ :event_source_token,
175
+ :qualifier)
176
+ include Aws::Structure
177
+ end
183
178
 
184
- # Provides configuration information about a Lambda function version
185
- # alias.
186
- # @!attribute [rw] alias_arn
187
- # Lambda function ARN that is qualified using the alias name as the
188
- # suffix. For example, if you create an alias called `BETA` that
189
- # points to a helloworld function version, the ARN is
190
- # `arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA`.
191
- # @return [String]
192
- #
193
- # @!attribute [rw] name
194
- # Alias name.
195
- # @return [String]
196
- #
197
- # @!attribute [rw] function_version
198
- # Function version to which the alias points.
199
- # @return [String]
200
- #
201
- # @!attribute [rw] description
202
- # Alias description.
203
- # @return [String]
204
- class AliasConfiguration < Struct.new(
205
- :alias_arn,
206
- :name,
207
- :function_version,
208
- :description)
209
- include Aws::Structure
210
- end
179
+ # @!attribute [rw] statement
180
+ # The permission statement you specified in the request. The response
181
+ # returns the same as a string using a backslash ("\\") as an escape
182
+ # character in the JSON.
183
+ # @return [String]
184
+ #
185
+ class AddPermissionResponse < Struct.new(
186
+ :statement)
187
+ include Aws::Structure
188
+ end
211
189
 
212
- # @note When making an API call, pass CreateAliasRequest
213
- # data as a hash:
214
- #
215
- # {
216
- # function_name: "FunctionName", # required
217
- # name: "Alias", # required
218
- # function_version: "Version", # required
219
- # description: "Description",
220
- # }
221
- # @!attribute [rw] function_name
222
- # Name of the Lambda function for which you want to create an alias.
223
- # @return [String]
224
- #
225
- # @!attribute [rw] name
226
- # Name for the alias you are creating.
227
- # @return [String]
228
- #
229
- # @!attribute [rw] function_version
230
- # Lambda function version for which you are creating the alias.
231
- # @return [String]
232
- #
233
- # @!attribute [rw] description
234
- # Description of the alias.
235
- # @return [String]
236
- class CreateAliasRequest < Struct.new(
237
- :function_name,
238
- :name,
239
- :function_version,
240
- :description)
241
- include Aws::Structure
242
- end
190
+ # Provides configuration information about a Lambda function version
191
+ # alias.
192
+ #
193
+ # @!attribute [rw] alias_arn
194
+ # Lambda function ARN that is qualified using the alias name as the
195
+ # suffix. For example, if you create an alias called `BETA` that
196
+ # points to a helloworld function version, the ARN is
197
+ # `arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA`.
198
+ # @return [String]
199
+ #
200
+ # @!attribute [rw] name
201
+ # Alias name.
202
+ # @return [String]
203
+ #
204
+ # @!attribute [rw] function_version
205
+ # Function version to which the alias points.
206
+ # @return [String]
207
+ #
208
+ # @!attribute [rw] description
209
+ # Alias description.
210
+ # @return [String]
211
+ #
212
+ class AliasConfiguration < Struct.new(
213
+ :alias_arn,
214
+ :name,
215
+ :function_version,
216
+ :description)
217
+ include Aws::Structure
218
+ end
243
219
 
244
- # @note When making an API call, pass CreateEventSourceMappingRequest
245
- # data as a hash:
246
- #
247
- # {
248
- # event_source_arn: "Arn", # required
249
- # function_name: "FunctionName", # required
250
- # enabled: false,
251
- # batch_size: 1,
252
- # starting_position: "TRIM_HORIZON", # required, accepts TRIM_HORIZON, LATEST, AT_TIMESTAMP
253
- # starting_position_timestamp: Time.now,
254
- # }
255
- # @!attribute [rw] event_source_arn
256
- # The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon
257
- # DynamoDB stream that is the event source. Any record added to this
258
- # stream could cause AWS Lambda to invoke your Lambda function, it
259
- # depends on the `BatchSize`. AWS Lambda POSTs the Amazon Kinesis
260
- # event, containing records, to your Lambda function as JSON.
261
- # @return [String]
262
- #
263
- # @!attribute [rw] function_name
264
- # The Lambda function to invoke when AWS Lambda detects an event on
265
- # the stream.
266
- #
267
- # You can specify the function name (for example, `Thumbnail`) or you
268
- # can specify Amazon Resource Name (ARN) of the function (for example,
269
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`).
270
- #
271
- # If you are using versioning, you can also provide a qualified
272
- # function ARN (ARN that is qualified with function version or alias
273
- # name as suffix). For more information about versioning, see [AWS
274
- # Lambda Function Versioning and Aliases][1]
275
- #
276
- # AWS Lambda also allows you to specify only the function name with
277
- # the account ID qualifier (for example, `account-id:Thumbnail`).
278
- #
279
- # Note that the length constraint applies only to the ARN. If you
280
- # specify only the function name, it is limited to 64 character in
281
- # length.
282
- #
283
- #
284
- #
285
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
286
- # @return [String]
287
- #
288
- # @!attribute [rw] enabled
289
- # Indicates whether AWS Lambda should begin polling the event source.
290
- # By default, `Enabled` is true.
291
- # @return [Boolean]
292
- #
293
- # @!attribute [rw] batch_size
294
- # The largest number of records that AWS Lambda will retrieve from
295
- # your event source at the time of invoking your function. Your
296
- # function receives an event with all the retrieved records. The
297
- # default is 100 records.
298
- # @return [Integer]
299
- #
300
- # @!attribute [rw] starting_position
301
- # The position in the stream where AWS Lambda should start reading.
302
- # Valid only for Kinesis streams. For more information, go to
303
- # [ShardIteratorType][1] in the *Amazon Kinesis API Reference*.
304
- #
305
- #
306
- #
307
- # [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
308
- # @return [String]
309
- #
310
- # @!attribute [rw] starting_position_timestamp
311
- # The timestamp of the data record from which to start reading. Used
312
- # with [shard iterator type][1] AT\_TIMESTAMP. If a record with this
313
- # exact timestamp does not exist, the iterator returned is for the
314
- # next (later) record. If the timestamp is older than the current trim
315
- # horizon, the iterator returned is for the oldest untrimmed data
316
- # record (TRIM\_HORIZON). Valid only for Kinesis streams.
317
- #
318
- #
319
- #
320
- # [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
321
- # @return [Time]
322
- class CreateEventSourceMappingRequest < Struct.new(
323
- :event_source_arn,
324
- :function_name,
325
- :enabled,
326
- :batch_size,
327
- :starting_position,
328
- :starting_position_timestamp)
329
- include Aws::Structure
330
- end
220
+ # @note When making an API call, you may pass CreateAliasRequest
221
+ # data as a hash:
222
+ #
223
+ # {
224
+ # function_name: "FunctionName", # required
225
+ # name: "Alias", # required
226
+ # function_version: "Version", # required
227
+ # description: "Description",
228
+ # }
229
+ #
230
+ # @!attribute [rw] function_name
231
+ # Name of the Lambda function for which you want to create an alias.
232
+ # @return [String]
233
+ #
234
+ # @!attribute [rw] name
235
+ # Name for the alias you are creating.
236
+ # @return [String]
237
+ #
238
+ # @!attribute [rw] function_version
239
+ # Lambda function version for which you are creating the alias.
240
+ # @return [String]
241
+ #
242
+ # @!attribute [rw] description
243
+ # Description of the alias.
244
+ # @return [String]
245
+ #
246
+ class CreateAliasRequest < Struct.new(
247
+ :function_name,
248
+ :name,
249
+ :function_version,
250
+ :description)
251
+ include Aws::Structure
252
+ end
331
253
 
332
- # @note When making an API call, pass CreateFunctionRequest
333
- # data as a hash:
334
- #
335
- # {
336
- # function_name: "FunctionName", # required
337
- # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, java8, python2.7, dotnetcore1.0, nodejs4.3-edge
338
- # role: "RoleArn", # required
339
- # handler: "Handler", # required
340
- # code: { # required
341
- # zip_file: "data",
342
- # s3_bucket: "S3Bucket",
343
- # s3_key: "S3Key",
344
- # s3_object_version: "S3ObjectVersion",
345
- # },
346
- # description: "Description",
347
- # timeout: 1,
348
- # memory_size: 1,
349
- # publish: false,
350
- # vpc_config: {
351
- # subnet_ids: ["SubnetId"],
352
- # security_group_ids: ["SecurityGroupId"],
353
- # },
354
- # dead_letter_config: {
355
- # target_arn: "ResourceArn",
356
- # },
357
- # environment: {
358
- # variables: {
359
- # "EnvironmentVariableName" => "EnvironmentVariableValue",
360
- # },
361
- # },
362
- # kms_key_arn: "KMSKeyArn",
363
- # }
364
- # @!attribute [rw] function_name
365
- # The name you want to assign to the function you are uploading. The
366
- # function names appear in the console and are returned in the
367
- # ListFunctions API. Function names are used to specify functions to
368
- # other AWS Lambda APIs, such as Invoke.
369
- # @return [String]
370
- #
371
- # @!attribute [rw] runtime
372
- # The runtime environment for the Lambda function you are uploading.
373
- #
374
- # To use the Node.js runtime v4.3, set the value to "nodejs4.3". To
375
- # use earlier runtime (v0.10.42), set the value to "nodejs".
376
- #
377
- # <note markdown="1"> You can no longer create functions using the v0.10.42 runtime
378
- # version as of November, 2016. Existing functions will be supported
379
- # until early 2017 but we recommend you migrate them to nodejs4.3
380
- # runtime version as soon as possible.
381
- #
382
- # </note>
383
- # @return [String]
384
- #
385
- # @!attribute [rw] role
386
- # The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
387
- # when it executes your function to access any other Amazon Web
388
- # Services (AWS) resources. For more information, see [AWS Lambda: How
389
- # it Works][1].
390
- #
391
- #
392
- #
393
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html
394
- # @return [String]
395
- #
396
- # @!attribute [rw] handler
397
- # The function within your code that Lambda calls to begin execution.
398
- # For Node.js, it is the *module-name*.*export* value in your
399
- # function. For Java, it can be `package.class-name::handler` or
400
- # `package.class-name`. For more information, see [Lambda Function
401
- # Handler (Java)][1].
402
- #
403
- #
404
- #
405
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-handler-types.html
406
- # @return [String]
407
- #
408
- # @!attribute [rw] code
409
- # The code for the Lambda function.
410
- # @return [Types::FunctionCode]
411
- #
412
- # @!attribute [rw] description
413
- # A short, user-defined function description. Lambda does not use this
414
- # value. Assign a meaningful description as you see fit.
415
- # @return [String]
416
- #
417
- # @!attribute [rw] timeout
418
- # The function execution time at which Lambda should terminate the
419
- # function. Because the execution time has cost implications, we
420
- # recommend you set this value based on your expected execution time.
421
- # The default is 3 seconds.
422
- # @return [Integer]
423
- #
424
- # @!attribute [rw] memory_size
425
- # The amount of memory, in MB, your Lambda function is given. Lambda
426
- # uses this memory size to infer the amount of CPU and memory
427
- # allocated to your function. Your function use-case determines your
428
- # CPU and memory requirements. For example, a database operation might
429
- # need less memory compared to an image processing function. The
430
- # default value is 128 MB. The value must be a multiple of 64 MB.
431
- # @return [Integer]
432
- #
433
- # @!attribute [rw] publish
434
- # This boolean parameter can be used to request AWS Lambda to create
435
- # the Lambda function and publish a version as an atomic operation.
436
- # @return [Boolean]
437
- #
438
- # @!attribute [rw] vpc_config
439
- # If your Lambda function accesses resources in a VPC, you provide
440
- # this parameter identifying the list of security group IDs and subnet
441
- # IDs. These must belong to the same VPC. You must provide at least
442
- # one security group and one subnet ID.
443
- # @return [Types::VpcConfig]
444
- #
445
- # @!attribute [rw] dead_letter_config
446
- # The parent object that contains the target ARN (Amazon Resource
447
- # Name) of an Amazon SQS queue or Amazon SNS topic.
448
- # @return [Types::DeadLetterConfig]
449
- #
450
- # @!attribute [rw] environment
451
- # The parent object that contains your environment's configuration
452
- # settings.
453
- # @return [Types::Environment]
454
- #
455
- # @!attribute [rw] kms_key_arn
456
- # The Amazon Resource Name (ARN) of the KMS key used to encrypt your
457
- # function's environment variables. If not provided, AWS Lambda will
458
- # use a default service key.
459
- # @return [String]
460
- class CreateFunctionRequest < Struct.new(
461
- :function_name,
462
- :runtime,
463
- :role,
464
- :handler,
465
- :code,
466
- :description,
467
- :timeout,
468
- :memory_size,
469
- :publish,
470
- :vpc_config,
471
- :dead_letter_config,
472
- :environment,
473
- :kms_key_arn)
474
- include Aws::Structure
475
- end
254
+ # @note When making an API call, you may pass CreateEventSourceMappingRequest
255
+ # data as a hash:
256
+ #
257
+ # {
258
+ # event_source_arn: "Arn", # required
259
+ # function_name: "FunctionName", # required
260
+ # enabled: false,
261
+ # batch_size: 1,
262
+ # starting_position: "TRIM_HORIZON", # required, accepts TRIM_HORIZON, LATEST, AT_TIMESTAMP
263
+ # starting_position_timestamp: Time.now,
264
+ # }
265
+ #
266
+ # @!attribute [rw] event_source_arn
267
+ # The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon
268
+ # DynamoDB stream that is the event source. Any record added to this
269
+ # stream could cause AWS Lambda to invoke your Lambda function, it
270
+ # depends on the `BatchSize`. AWS Lambda POSTs the Amazon Kinesis
271
+ # event, containing records, to your Lambda function as JSON.
272
+ # @return [String]
273
+ #
274
+ # @!attribute [rw] function_name
275
+ # The Lambda function to invoke when AWS Lambda detects an event on
276
+ # the stream.
277
+ #
278
+ # You can specify the function name (for example, `Thumbnail`) or you
279
+ # can specify Amazon Resource Name (ARN) of the function (for example,
280
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`).
281
+ #
282
+ # If you are using versioning, you can also provide a qualified
283
+ # function ARN (ARN that is qualified with function version or alias
284
+ # name as suffix). For more information about versioning, see [AWS
285
+ # Lambda Function Versioning and Aliases][1]
286
+ #
287
+ # AWS Lambda also allows you to specify only the function name with
288
+ # the account ID qualifier (for example, `account-id:Thumbnail`).
289
+ #
290
+ # Note that the length constraint applies only to the ARN. If you
291
+ # specify only the function name, it is limited to 64 character in
292
+ # length.
293
+ #
294
+ #
295
+ #
296
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
297
+ # @return [String]
298
+ #
299
+ # @!attribute [rw] enabled
300
+ # Indicates whether AWS Lambda should begin polling the event source.
301
+ # By default, `Enabled` is true.
302
+ # @return [Boolean]
303
+ #
304
+ # @!attribute [rw] batch_size
305
+ # The largest number of records that AWS Lambda will retrieve from
306
+ # your event source at the time of invoking your function. Your
307
+ # function receives an event with all the retrieved records. The
308
+ # default is 100 records.
309
+ # @return [Integer]
310
+ #
311
+ # @!attribute [rw] starting_position
312
+ # The position in the stream where AWS Lambda should start reading.
313
+ # Valid only for Kinesis streams. For more information, see
314
+ # [ShardIteratorType][1] in the *Amazon Kinesis API Reference*.
315
+ #
316
+ #
317
+ #
318
+ # [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
319
+ # @return [String]
320
+ #
321
+ # @!attribute [rw] starting_position_timestamp
322
+ # The timestamp of the data record from which to start reading. Used
323
+ # with [shard iterator type][1] AT\_TIMESTAMP. If a record with this
324
+ # exact timestamp does not exist, the iterator returned is for the
325
+ # next (later) record. If the timestamp is older than the current trim
326
+ # horizon, the iterator returned is for the oldest untrimmed data
327
+ # record (TRIM\_HORIZON). Valid only for Kinesis streams.
328
+ #
329
+ #
330
+ #
331
+ # [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
332
+ # @return [Time]
333
+ #
334
+ class CreateEventSourceMappingRequest < Struct.new(
335
+ :event_source_arn,
336
+ :function_name,
337
+ :enabled,
338
+ :batch_size,
339
+ :starting_position,
340
+ :starting_position_timestamp)
341
+ include Aws::Structure
342
+ end
476
343
 
477
- # The parent object that contains the target ARN (Amazon Resource Name)
478
- # of an Amazon SQS queue or Amazon SNS topic.
479
- # @note When making an API call, pass DeadLetterConfig
480
- # data as a hash:
481
- #
482
- # {
483
- # target_arn: "ResourceArn",
484
- # }
485
- # @!attribute [rw] target_arn
486
- # The ARN (Amazon Resource Value) of an Amazon SQS queue or Amazon SNS
487
- # topic you specify as your Dead Letter Queue (DLQ).
488
- # @return [String]
489
- class DeadLetterConfig < Struct.new(
490
- :target_arn)
491
- include Aws::Structure
492
- end
344
+ # @note When making an API call, you may pass CreateFunctionRequest
345
+ # data as a hash:
346
+ #
347
+ # {
348
+ # function_name: "FunctionName", # required
349
+ # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, java8, python2.7, dotnetcore1.0, nodejs4.3-edge
350
+ # role: "RoleArn", # required
351
+ # handler: "Handler", # required
352
+ # code: { # required
353
+ # zip_file: "data",
354
+ # s3_bucket: "S3Bucket",
355
+ # s3_key: "S3Key",
356
+ # s3_object_version: "S3ObjectVersion",
357
+ # },
358
+ # description: "Description",
359
+ # timeout: 1,
360
+ # memory_size: 1,
361
+ # publish: false,
362
+ # vpc_config: {
363
+ # subnet_ids: ["SubnetId"],
364
+ # security_group_ids: ["SecurityGroupId"],
365
+ # },
366
+ # dead_letter_config: {
367
+ # target_arn: "ResourceArn",
368
+ # },
369
+ # environment: {
370
+ # variables: {
371
+ # "EnvironmentVariableName" => "EnvironmentVariableValue",
372
+ # },
373
+ # },
374
+ # kms_key_arn: "KMSKeyArn",
375
+ # }
376
+ #
377
+ # @!attribute [rw] function_name
378
+ # The name you want to assign to the function you are uploading. The
379
+ # function names appear in the console and are returned in the
380
+ # ListFunctions API. Function names are used to specify functions to
381
+ # other AWS Lambda API operations, such as Invoke.
382
+ # @return [String]
383
+ #
384
+ # @!attribute [rw] runtime
385
+ # The runtime environment for the Lambda function you are uploading.
386
+ #
387
+ # To use the Node.js runtime v4.3, set the value to "nodejs4.3". To
388
+ # use earlier runtime (v0.10.42), set the value to "nodejs".
389
+ #
390
+ # <note markdown="1"> You can no longer create functions using the v0.10.42 runtime
391
+ # version as of November, 2016. Existing functions will be supported
392
+ # until early 2017, but we recommend you migrate them to nodejs4.3
393
+ # runtime version as soon as possible.
394
+ #
395
+ # </note>
396
+ # @return [String]
397
+ #
398
+ # @!attribute [rw] role
399
+ # The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
400
+ # when it executes your function to access any other Amazon Web
401
+ # Services (AWS) resources. For more information, see [AWS Lambda: How
402
+ # it Works][1].
403
+ #
404
+ #
405
+ #
406
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html
407
+ # @return [String]
408
+ #
409
+ # @!attribute [rw] handler
410
+ # The function within your code that Lambda calls to begin execution.
411
+ # For Node.js, it is the *module-name*.*export* value in your
412
+ # function. For Java, it can be `package.class-name::handler` or
413
+ # `package.class-name`. For more information, see [Lambda Function
414
+ # Handler (Java)][1].
415
+ #
416
+ #
417
+ #
418
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-handler-types.html
419
+ # @return [String]
420
+ #
421
+ # @!attribute [rw] code
422
+ # The code for the Lambda function.
423
+ # @return [Types::FunctionCode]
424
+ #
425
+ # @!attribute [rw] description
426
+ # A short, user-defined function description. Lambda does not use this
427
+ # value. Assign a meaningful description as you see fit.
428
+ # @return [String]
429
+ #
430
+ # @!attribute [rw] timeout
431
+ # The function execution time at which Lambda should terminate the
432
+ # function. Because the execution time has cost implications, we
433
+ # recommend you set this value based on your expected execution time.
434
+ # The default is 3 seconds.
435
+ # @return [Integer]
436
+ #
437
+ # @!attribute [rw] memory_size
438
+ # The amount of memory, in MB, your Lambda function is given. Lambda
439
+ # uses this memory size to infer the amount of CPU and memory
440
+ # allocated to your function. Your function use-case determines your
441
+ # CPU and memory requirements. For example, a database operation might
442
+ # need less memory compared to an image processing function. The
443
+ # default value is 128 MB. The value must be a multiple of 64 MB.
444
+ # @return [Integer]
445
+ #
446
+ # @!attribute [rw] publish
447
+ # This boolean parameter can be used to request AWS Lambda to create
448
+ # the Lambda function and publish a version as an atomic operation.
449
+ # @return [Boolean]
450
+ #
451
+ # @!attribute [rw] vpc_config
452
+ # If your Lambda function accesses resources in a VPC, you provide
453
+ # this parameter identifying the list of security group IDs and subnet
454
+ # IDs. These must belong to the same VPC. You must provide at least
455
+ # one security group and one subnet ID.
456
+ # @return [Types::VpcConfig]
457
+ #
458
+ # @!attribute [rw] dead_letter_config
459
+ # The parent object that contains the target Amazon Resource Name
460
+ # (ARN) of an Amazon SQS queue or Amazon SNS topic.
461
+ # @return [Types::DeadLetterConfig]
462
+ #
463
+ # @!attribute [rw] environment
464
+ # The parent object that contains your environment's configuration
465
+ # settings.
466
+ # @return [Types::Environment]
467
+ #
468
+ # @!attribute [rw] kms_key_arn
469
+ # The Amazon Resource Name (ARN) of the KMS key used to encrypt your
470
+ # function's environment variables. If not provided, AWS Lambda will
471
+ # use a default service key.
472
+ # @return [String]
473
+ #
474
+ class CreateFunctionRequest < Struct.new(
475
+ :function_name,
476
+ :runtime,
477
+ :role,
478
+ :handler,
479
+ :code,
480
+ :description,
481
+ :timeout,
482
+ :memory_size,
483
+ :publish,
484
+ :vpc_config,
485
+ :dead_letter_config,
486
+ :environment,
487
+ :kms_key_arn)
488
+ include Aws::Structure
489
+ end
493
490
 
494
- # @note When making an API call, pass DeleteAliasRequest
495
- # data as a hash:
496
- #
497
- # {
498
- # function_name: "FunctionName", # required
499
- # name: "Alias", # required
500
- # }
501
- # @!attribute [rw] function_name
502
- # The Lambda function name for which the alias is created. Deleting an
503
- # alias does not delete the function version to which it is pointing.
504
- # @return [String]
505
- #
506
- # @!attribute [rw] name
507
- # Name of the alias to delete.
508
- # @return [String]
509
- class DeleteAliasRequest < Struct.new(
510
- :function_name,
511
- :name)
512
- include Aws::Structure
513
- end
491
+ # The parent object that contains the target Amazon Resource Name (ARN)
492
+ # of an Amazon SQS queue or Amazon SNS topic.
493
+ #
494
+ # @note When making an API call, you may pass DeadLetterConfig
495
+ # data as a hash:
496
+ #
497
+ # {
498
+ # target_arn: "ResourceArn",
499
+ # }
500
+ #
501
+ # @!attribute [rw] target_arn
502
+ # The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS
503
+ # topic you specify as your Dead Letter Queue (DLQ).
504
+ # @return [String]
505
+ #
506
+ class DeadLetterConfig < Struct.new(
507
+ :target_arn)
508
+ include Aws::Structure
509
+ end
514
510
 
515
- # @note When making an API call, pass DeleteEventSourceMappingRequest
516
- # data as a hash:
517
- #
518
- # {
519
- # uuid: "String", # required
520
- # }
521
- # @!attribute [rw] uuid
522
- # The event source mapping ID.
523
- # @return [String]
524
- class DeleteEventSourceMappingRequest < Struct.new(
525
- :uuid)
526
- include Aws::Structure
527
- end
511
+ # @note When making an API call, you may pass DeleteAliasRequest
512
+ # data as a hash:
513
+ #
514
+ # {
515
+ # function_name: "FunctionName", # required
516
+ # name: "Alias", # required
517
+ # }
518
+ #
519
+ # @!attribute [rw] function_name
520
+ # The Lambda function name for which the alias is created. Deleting an
521
+ # alias does not delete the function version to which it is pointing.
522
+ # @return [String]
523
+ #
524
+ # @!attribute [rw] name
525
+ # Name of the alias to delete.
526
+ # @return [String]
527
+ #
528
+ class DeleteAliasRequest < Struct.new(
529
+ :function_name,
530
+ :name)
531
+ include Aws::Structure
532
+ end
528
533
 
529
- # @note When making an API call, pass DeleteFunctionRequest
530
- # data as a hash:
531
- #
532
- # {
533
- # function_name: "FunctionName", # required
534
- # qualifier: "Qualifier",
535
- # }
536
- # @!attribute [rw] function_name
537
- # The Lambda function to delete.
538
- #
539
- # You can specify the function name (for example, `Thumbnail`) or you
540
- # can specify Amazon Resource Name (ARN) of the function (for example,
541
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). If you
542
- # are using versioning, you can also provide a qualified function ARN
543
- # (ARN that is qualified with function version or alias name as
544
- # suffix). AWS Lambda also allows you to specify only the function
545
- # name with the account ID qualifier (for example,
546
- # `account-id:Thumbnail`). Note that the length constraint applies
547
- # only to the ARN. If you specify only the function name, it is
548
- # limited to 64 character in length.
549
- # @return [String]
550
- #
551
- # @!attribute [rw] qualifier
552
- # Using this optional parameter you can specify a function version
553
- # (but not the `$LATEST` version) to direct AWS Lambda to delete a
554
- # specific function version. If the function version has one or more
555
- # aliases pointing to it, you will get an error because you cannot
556
- # have aliases pointing to it. You can delete any function version but
557
- # not the `$LATEST`, that is, you cannot specify `$LATEST` as the
558
- # value of this parameter. The `$LATEST` version can be deleted only
559
- # when you want to delete all the function versions and aliases.
560
- #
561
- # You can only specify a function version, not an alias name, using
562
- # this parameter. You cannot delete a function version using its
563
- # alias.
564
- #
565
- # If you don't specify this parameter, AWS Lambda will delete the
566
- # function, including all of its versions and aliases.
567
- # @return [String]
568
- class DeleteFunctionRequest < Struct.new(
569
- :function_name,
570
- :qualifier)
571
- include Aws::Structure
572
- end
534
+ # @note When making an API call, you may pass DeleteEventSourceMappingRequest
535
+ # data as a hash:
536
+ #
537
+ # {
538
+ # uuid: "String", # required
539
+ # }
540
+ #
541
+ # @!attribute [rw] uuid
542
+ # The event source mapping ID.
543
+ # @return [String]
544
+ #
545
+ class DeleteEventSourceMappingRequest < Struct.new(
546
+ :uuid)
547
+ include Aws::Structure
548
+ end
573
549
 
574
- # The parent object that contains your environment's configuration
575
- # settings.
576
- # @note When making an API call, pass Environment
577
- # data as a hash:
578
- #
579
- # {
580
- # variables: {
581
- # "EnvironmentVariableName" => "EnvironmentVariableValue",
582
- # },
583
- # }
584
- # @!attribute [rw] variables
585
- # The key-value pairs that represent your environment's configuration
586
- # settings. The value you specify cannot contain a ",".
587
- # @return [Hash<String,String>]
588
- class Environment < Struct.new(
589
- :variables)
590
- include Aws::Structure
591
- end
550
+ # @note When making an API call, you may pass DeleteFunctionRequest
551
+ # data as a hash:
552
+ #
553
+ # {
554
+ # function_name: "FunctionName", # required
555
+ # qualifier: "Qualifier",
556
+ # }
557
+ #
558
+ # @!attribute [rw] function_name
559
+ # The Lambda function to delete.
560
+ #
561
+ # You can specify the function name (for example, `Thumbnail`) or you
562
+ # can specify Amazon Resource Name (ARN) of the function (for example,
563
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). If you
564
+ # are using versioning, you can also provide a qualified function ARN
565
+ # (ARN that is qualified with function version or alias name as
566
+ # suffix). AWS Lambda also allows you to specify only the function
567
+ # name with the account ID qualifier (for example,
568
+ # `account-id:Thumbnail`). Note that the length constraint applies
569
+ # only to the ARN. If you specify only the function name, it is
570
+ # limited to 64 character in length.
571
+ # @return [String]
572
+ #
573
+ # @!attribute [rw] qualifier
574
+ # Using this optional parameter you can specify a function version
575
+ # (but not the `$LATEST` version) to direct AWS Lambda to delete a
576
+ # specific function version. If the function version has one or more
577
+ # aliases pointing to it, you will get an error because you cannot
578
+ # have aliases pointing to it. You can delete any function version but
579
+ # not the `$LATEST`, that is, you cannot specify `$LATEST` as the
580
+ # value of this parameter. The `$LATEST` version can be deleted only
581
+ # when you want to delete all the function versions and aliases.
582
+ #
583
+ # You can only specify a function version, not an alias name, using
584
+ # this parameter. You cannot delete a function version using its
585
+ # alias.
586
+ #
587
+ # If you don't specify this parameter, AWS Lambda will delete the
588
+ # function, including all of its versions and aliases.
589
+ # @return [String]
590
+ #
591
+ class DeleteFunctionRequest < Struct.new(
592
+ :function_name,
593
+ :qualifier)
594
+ include Aws::Structure
595
+ end
592
596
 
593
- # The parent object that contains error information associated with your
594
- # configuration settings.
595
- # @!attribute [rw] error_code
596
- # The error code returned by the environment error object.
597
- # @return [String]
598
- #
599
- # @!attribute [rw] message
600
- # The message returned by the environment error object.
601
- # @return [String]
602
- class EnvironmentError < Struct.new(
603
- :error_code,
604
- :message)
605
- include Aws::Structure
606
- end
597
+ # The parent object that contains your environment's configuration
598
+ # settings.
599
+ #
600
+ # @note When making an API call, you may pass Environment
601
+ # data as a hash:
602
+ #
603
+ # {
604
+ # variables: {
605
+ # "EnvironmentVariableName" => "EnvironmentVariableValue",
606
+ # },
607
+ # }
608
+ #
609
+ # @!attribute [rw] variables
610
+ # The key-value pairs that represent your environment's configuration
611
+ # settings. The value you specify cannot contain a ",".
612
+ # @return [Hash<String,String>]
613
+ #
614
+ class Environment < Struct.new(
615
+ :variables)
616
+ include Aws::Structure
617
+ end
607
618
 
608
- # The parent object returned that contains your environment's
609
- # configuration settings or any error information associated with your
610
- # configuration settings.
611
- # @!attribute [rw] variables
612
- # The key-value pairs returned that represent your environment's
613
- # configuration settings or error information.
614
- # @return [Hash<String,String>]
615
- #
616
- # @!attribute [rw] error
617
- # The parent object that contains error information associated with
618
- # your configuration settings.
619
- # @return [Types::EnvironmentError]
620
- class EnvironmentResponse < Struct.new(
621
- :variables,
622
- :error)
623
- include Aws::Structure
624
- end
619
+ # The parent object that contains error information associated with your
620
+ # configuration settings.
621
+ #
622
+ # @!attribute [rw] error_code
623
+ # The error code returned by the environment error object.
624
+ # @return [String]
625
+ #
626
+ # @!attribute [rw] message
627
+ # The message returned by the environment error object.
628
+ # @return [String]
629
+ #
630
+ class EnvironmentError < Struct.new(
631
+ :error_code,
632
+ :message)
633
+ include Aws::Structure
634
+ end
625
635
 
626
- # Describes mapping between an Amazon Kinesis stream and a Lambda
627
- # function.
628
- # @!attribute [rw] uuid
629
- # The AWS Lambda assigned opaque identifier for the mapping.
630
- # @return [String]
631
- #
632
- # @!attribute [rw] batch_size
633
- # The largest number of records that AWS Lambda will retrieve from
634
- # your event source at the time of invoking your function. Your
635
- # function receives an event with all the retrieved records.
636
- # @return [Integer]
637
- #
638
- # @!attribute [rw] event_source_arn
639
- # The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is
640
- # the source of events.
641
- # @return [String]
642
- #
643
- # @!attribute [rw] function_arn
644
- # The Lambda function to invoke when AWS Lambda detects an event on
645
- # the stream.
646
- # @return [String]
647
- #
648
- # @!attribute [rw] last_modified
649
- # The UTC time string indicating the last time the event mapping was
650
- # updated.
651
- # @return [Time]
652
- #
653
- # @!attribute [rw] last_processing_result
654
- # The result of the last AWS Lambda invocation of your Lambda
655
- # function.
656
- # @return [String]
657
- #
658
- # @!attribute [rw] state
659
- # The state of the event source mapping. It can be `Creating`,
660
- # `Enabled`, `Disabled`, `Enabling`, `Disabling`, `Updating`, or
661
- # `Deleting`.
662
- # @return [String]
663
- #
664
- # @!attribute [rw] state_transition_reason
665
- # The reason the event source mapping is in its current state. It is
666
- # either user-requested or an AWS Lambda-initiated state transition.
667
- # @return [String]
668
- class EventSourceMappingConfiguration < Struct.new(
669
- :uuid,
670
- :batch_size,
671
- :event_source_arn,
672
- :function_arn,
673
- :last_modified,
674
- :last_processing_result,
675
- :state,
676
- :state_transition_reason)
677
- include Aws::Structure
678
- end
636
+ # The parent object returned that contains your environment's
637
+ # configuration settings or any error information associated with your
638
+ # configuration settings.
639
+ #
640
+ # @!attribute [rw] variables
641
+ # The key-value pairs returned that represent your environment's
642
+ # configuration settings or error information.
643
+ # @return [Hash<String,String>]
644
+ #
645
+ # @!attribute [rw] error
646
+ # The parent object that contains error information associated with
647
+ # your configuration settings.
648
+ # @return [Types::EnvironmentError]
649
+ #
650
+ class EnvironmentResponse < Struct.new(
651
+ :variables,
652
+ :error)
653
+ include Aws::Structure
654
+ end
679
655
 
680
- # The code for the Lambda function.
681
- # @note When making an API call, pass FunctionCode
682
- # data as a hash:
683
- #
684
- # {
685
- # zip_file: "data",
686
- # s3_bucket: "S3Bucket",
687
- # s3_key: "S3Key",
688
- # s3_object_version: "S3ObjectVersion",
689
- # }
690
- # @!attribute [rw] zip_file
691
- # The contents of your zip file containing your deployment package. If
692
- # you are using the web API directly, the contents of the zip file
693
- # must be base64-encoded. If you are using the AWS SDKs or the AWS
694
- # CLI, the SDKs or CLI will do the encoding for you. For more
695
- # information about creating a .zip file, go to [Execution
696
- # Permissions][1] in the *AWS Lambda Developer Guide*.
697
- #
698
- #
699
- #
700
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html
701
- # @return [String]
702
- #
703
- # @!attribute [rw] s3_bucket
704
- # Amazon S3 bucket name where the .zip file containing your deployment
705
- # package is stored. This bucket must reside in the same AWS region
706
- # where you are creating the Lambda function.
707
- # @return [String]
708
- #
709
- # @!attribute [rw] s3_key
710
- # The Amazon S3 object (the deployment package) key name you want to
711
- # upload.
712
- # @return [String]
713
- #
714
- # @!attribute [rw] s3_object_version
715
- # The Amazon S3 object (the deployment package) version you want to
716
- # upload.
717
- # @return [String]
718
- class FunctionCode < Struct.new(
719
- :zip_file,
720
- :s3_bucket,
721
- :s3_key,
722
- :s3_object_version)
723
- include Aws::Structure
724
- end
656
+ # Describes mapping between an Amazon Kinesis stream and a Lambda
657
+ # function.
658
+ #
659
+ # @!attribute [rw] uuid
660
+ # The AWS Lambda assigned opaque identifier for the mapping.
661
+ # @return [String]
662
+ #
663
+ # @!attribute [rw] batch_size
664
+ # The largest number of records that AWS Lambda will retrieve from
665
+ # your event source at the time of invoking your function. Your
666
+ # function receives an event with all the retrieved records.
667
+ # @return [Integer]
668
+ #
669
+ # @!attribute [rw] event_source_arn
670
+ # The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is
671
+ # the source of events.
672
+ # @return [String]
673
+ #
674
+ # @!attribute [rw] function_arn
675
+ # The Lambda function to invoke when AWS Lambda detects an event on
676
+ # the stream.
677
+ # @return [String]
678
+ #
679
+ # @!attribute [rw] last_modified
680
+ # The UTC time string indicating the last time the event mapping was
681
+ # updated.
682
+ # @return [Time]
683
+ #
684
+ # @!attribute [rw] last_processing_result
685
+ # The result of the last AWS Lambda invocation of your Lambda
686
+ # function.
687
+ # @return [String]
688
+ #
689
+ # @!attribute [rw] state
690
+ # The state of the event source mapping. It can be `Creating`,
691
+ # `Enabled`, `Disabled`, `Enabling`, `Disabling`, `Updating`, or
692
+ # `Deleting`.
693
+ # @return [String]
694
+ #
695
+ # @!attribute [rw] state_transition_reason
696
+ # The reason the event source mapping is in its current state. It is
697
+ # either user-requested or an AWS Lambda-initiated state transition.
698
+ # @return [String]
699
+ #
700
+ class EventSourceMappingConfiguration < Struct.new(
701
+ :uuid,
702
+ :batch_size,
703
+ :event_source_arn,
704
+ :function_arn,
705
+ :last_modified,
706
+ :last_processing_result,
707
+ :state,
708
+ :state_transition_reason)
709
+ include Aws::Structure
710
+ end
725
711
 
726
- # The object for the Lambda function location.
727
- # @!attribute [rw] repository_type
728
- # The repository from which you can download the function.
729
- # @return [String]
730
- #
731
- # @!attribute [rw] location
732
- # The presigned URL you can use to download the function's .zip file
733
- # that you previously uploaded. The URL is valid for up to 10 minutes.
734
- # @return [String]
735
- class FunctionCodeLocation < Struct.new(
736
- :repository_type,
737
- :location)
738
- include Aws::Structure
739
- end
712
+ # The code for the Lambda function.
713
+ #
714
+ # @note When making an API call, you may pass FunctionCode
715
+ # data as a hash:
716
+ #
717
+ # {
718
+ # zip_file: "data",
719
+ # s3_bucket: "S3Bucket",
720
+ # s3_key: "S3Key",
721
+ # s3_object_version: "S3ObjectVersion",
722
+ # }
723
+ #
724
+ # @!attribute [rw] zip_file
725
+ # The contents of your zip file containing your deployment package. If
726
+ # you are using the web API directly, the contents of the zip file
727
+ # must be base64-encoded. If you are using the AWS SDKs or the AWS
728
+ # CLI, the SDKs or CLI will do the encoding for you. For more
729
+ # information about creating a .zip file, see [Execution
730
+ # Permissions][1] in the *AWS Lambda Developer Guide*.
731
+ #
732
+ #
733
+ #
734
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html
735
+ # @return [String]
736
+ #
737
+ # @!attribute [rw] s3_bucket
738
+ # Amazon S3 bucket name where the .zip file containing your deployment
739
+ # package is stored. This bucket must reside in the same AWS region
740
+ # where you are creating the Lambda function.
741
+ # @return [String]
742
+ #
743
+ # @!attribute [rw] s3_key
744
+ # The Amazon S3 object (the deployment package) key name you want to
745
+ # upload.
746
+ # @return [String]
747
+ #
748
+ # @!attribute [rw] s3_object_version
749
+ # The Amazon S3 object (the deployment package) version you want to
750
+ # upload.
751
+ # @return [String]
752
+ #
753
+ class FunctionCode < Struct.new(
754
+ :zip_file,
755
+ :s3_bucket,
756
+ :s3_key,
757
+ :s3_object_version)
758
+ include Aws::Structure
759
+ end
740
760
 
741
- # A complex type that describes function metadata.
742
- # @!attribute [rw] function_name
743
- # The name of the function.
744
- # @return [String]
745
- #
746
- # @!attribute [rw] function_arn
747
- # The Amazon Resource Name (ARN) assigned to the function.
748
- # @return [String]
749
- #
750
- # @!attribute [rw] runtime
751
- # The runtime environment for the Lambda function.
752
- #
753
- # To use the Node.js runtime v4.3, set the value to "nodejs4.3". To
754
- # use earlier runtime (v0.10.42), set the value to "nodejs".
755
- # @return [String]
756
- #
757
- # @!attribute [rw] role
758
- # The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
759
- # when it executes your function to access any other Amazon Web
760
- # Services (AWS) resources.
761
- # @return [String]
762
- #
763
- # @!attribute [rw] handler
764
- # The function Lambda calls to begin executing your function.
765
- # @return [String]
766
- #
767
- # @!attribute [rw] code_size
768
- # The size, in bytes, of the function .zip file you uploaded.
769
- # @return [Integer]
770
- #
771
- # @!attribute [rw] description
772
- # The user-provided description.
773
- # @return [String]
774
- #
775
- # @!attribute [rw] timeout
776
- # The function execution time at which Lambda should terminate the
777
- # function. Because the execution time has cost implications, we
778
- # recommend you set this value based on your expected execution time.
779
- # The default is 3 seconds.
780
- # @return [Integer]
781
- #
782
- # @!attribute [rw] memory_size
783
- # The memory size, in MB, you configured for the function. Must be a
784
- # multiple of 64 MB.
785
- # @return [Integer]
786
- #
787
- # @!attribute [rw] last_modified
788
- # The time stamp of the last time you updated the function.
789
- # @return [Time]
790
- #
791
- # @!attribute [rw] code_sha_256
792
- # It is the SHA256 hash of your function deployment package.
793
- # @return [String]
794
- #
795
- # @!attribute [rw] version
796
- # The version of the Lambda function.
797
- # @return [String]
798
- #
799
- # @!attribute [rw] vpc_config
800
- # VPC configuration associated with your Lambda function.
801
- # @return [Types::VpcConfigResponse]
802
- #
803
- # @!attribute [rw] dead_letter_config
804
- # The parent object that contains the target ARN (Amazon Resource
805
- # Name) of an Amazon SQS queue or Amazon SNS topic.
806
- # @return [Types::DeadLetterConfig]
807
- #
808
- # @!attribute [rw] environment
809
- # The parent object that contains your environment's configuration
810
- # settings.
811
- # @return [Types::EnvironmentResponse]
812
- #
813
- # @!attribute [rw] kms_key_arn
814
- # The Amazon Resource Name (ARN) of the KMS key used to encrypt your
815
- # function's environment variables. If empty, it means you are using
816
- # the AWS Lambda default service key.
817
- # @return [String]
818
- class FunctionConfiguration < Struct.new(
819
- :function_name,
820
- :function_arn,
821
- :runtime,
822
- :role,
823
- :handler,
824
- :code_size,
825
- :description,
826
- :timeout,
827
- :memory_size,
828
- :last_modified,
829
- :code_sha_256,
830
- :version,
831
- :vpc_config,
832
- :dead_letter_config,
833
- :environment,
834
- :kms_key_arn)
835
- include Aws::Structure
836
- end
761
+ # The object for the Lambda function location.
762
+ #
763
+ # @!attribute [rw] repository_type
764
+ # The repository from which you can download the function.
765
+ # @return [String]
766
+ #
767
+ # @!attribute [rw] location
768
+ # The presigned URL you can use to download the function's .zip file
769
+ # that you previously uploaded. The URL is valid for up to 10 minutes.
770
+ # @return [String]
771
+ #
772
+ class FunctionCodeLocation < Struct.new(
773
+ :repository_type,
774
+ :location)
775
+ include Aws::Structure
776
+ end
837
777
 
838
- # @api private
839
- class GetAccountSettingsRequest < Aws::EmptyStructure; end
778
+ # A complex type that describes function metadata.
779
+ #
780
+ # @!attribute [rw] function_name
781
+ # The name of the function.
782
+ # @return [String]
783
+ #
784
+ # @!attribute [rw] function_arn
785
+ # The Amazon Resource Name (ARN) assigned to the function.
786
+ # @return [String]
787
+ #
788
+ # @!attribute [rw] runtime
789
+ # The runtime environment for the Lambda function.
790
+ #
791
+ # To use the Node.js runtime v4.3, set the value to "nodejs4.3". To
792
+ # use earlier runtime (v0.10.42), set the value to "nodejs".
793
+ # @return [String]
794
+ #
795
+ # @!attribute [rw] role
796
+ # The Amazon Resource Name (ARN) of the IAM role that Lambda assumes
797
+ # when it executes your function to access any other Amazon Web
798
+ # Services (AWS) resources.
799
+ # @return [String]
800
+ #
801
+ # @!attribute [rw] handler
802
+ # The function Lambda calls to begin executing your function.
803
+ # @return [String]
804
+ #
805
+ # @!attribute [rw] code_size
806
+ # The size, in bytes, of the function .zip file you uploaded.
807
+ # @return [Integer]
808
+ #
809
+ # @!attribute [rw] description
810
+ # The user-provided description.
811
+ # @return [String]
812
+ #
813
+ # @!attribute [rw] timeout
814
+ # The function execution time at which Lambda should terminate the
815
+ # function. Because the execution time has cost implications, we
816
+ # recommend you set this value based on your expected execution time.
817
+ # The default is 3 seconds.
818
+ # @return [Integer]
819
+ #
820
+ # @!attribute [rw] memory_size
821
+ # The memory size, in MB, you configured for the function. Must be a
822
+ # multiple of 64 MB.
823
+ # @return [Integer]
824
+ #
825
+ # @!attribute [rw] last_modified
826
+ # The time stamp of the last time you updated the function.
827
+ # @return [Time]
828
+ #
829
+ # @!attribute [rw] code_sha_256
830
+ # It is the SHA256 hash of your function deployment package.
831
+ # @return [String]
832
+ #
833
+ # @!attribute [rw] version
834
+ # The version of the Lambda function.
835
+ # @return [String]
836
+ #
837
+ # @!attribute [rw] vpc_config
838
+ # VPC configuration associated with your Lambda function.
839
+ # @return [Types::VpcConfigResponse]
840
+ #
841
+ # @!attribute [rw] dead_letter_config
842
+ # The parent object that contains the target Amazon Resource Name
843
+ # (ARN) of an Amazon SQS queue or Amazon SNS topic.
844
+ # @return [Types::DeadLetterConfig]
845
+ #
846
+ # @!attribute [rw] environment
847
+ # The parent object that contains your environment's configuration
848
+ # settings.
849
+ # @return [Types::EnvironmentResponse]
850
+ #
851
+ # @!attribute [rw] kms_key_arn
852
+ # The Amazon Resource Name (ARN) of the KMS key used to encrypt your
853
+ # function's environment variables. If empty, it means you are using
854
+ # the AWS Lambda default service key.
855
+ # @return [String]
856
+ #
857
+ class FunctionConfiguration < Struct.new(
858
+ :function_name,
859
+ :function_arn,
860
+ :runtime,
861
+ :role,
862
+ :handler,
863
+ :code_size,
864
+ :description,
865
+ :timeout,
866
+ :memory_size,
867
+ :last_modified,
868
+ :code_sha_256,
869
+ :version,
870
+ :vpc_config,
871
+ :dead_letter_config,
872
+ :environment,
873
+ :kms_key_arn)
874
+ include Aws::Structure
875
+ end
840
876
 
841
- # @!attribute [rw] account_limit
842
- # Provides limits of code size and concurrency associated with the
843
- # current account and region.
844
- # @return [Types::AccountLimit]
845
- #
846
- # @!attribute [rw] account_usage
847
- # Provides code size usage and function count associated with the
848
- # current account and region.
849
- # @return [Types::AccountUsage]
850
- class GetAccountSettingsResponse < Struct.new(
851
- :account_limit,
852
- :account_usage)
853
- include Aws::Structure
854
- end
877
+ # @api private
878
+ #
879
+ class GetAccountSettingsRequest < Aws::EmptyStructure; end
855
880
 
856
- # @note When making an API call, pass GetAliasRequest
857
- # data as a hash:
858
- #
859
- # {
860
- # function_name: "FunctionName", # required
861
- # name: "Alias", # required
862
- # }
863
- # @!attribute [rw] function_name
864
- # Function name for which the alias is created. An alias is a
865
- # subresource that exists only in the context of an existing Lambda
866
- # function so you must specify the function name.
867
- # @return [String]
868
- #
869
- # @!attribute [rw] name
870
- # Name of the alias for which you want to retrieve information.
871
- # @return [String]
872
- class GetAliasRequest < Struct.new(
873
- :function_name,
874
- :name)
875
- include Aws::Structure
876
- end
881
+ # @!attribute [rw] account_limit
882
+ # Provides limits of code size and concurrency associated with the
883
+ # current account and region.
884
+ # @return [Types::AccountLimit]
885
+ #
886
+ # @!attribute [rw] account_usage
887
+ # Provides code size usage and function count associated with the
888
+ # current account and region.
889
+ # @return [Types::AccountUsage]
890
+ #
891
+ class GetAccountSettingsResponse < Struct.new(
892
+ :account_limit,
893
+ :account_usage)
894
+ include Aws::Structure
895
+ end
877
896
 
878
- # @note When making an API call, pass GetEventSourceMappingRequest
879
- # data as a hash:
880
- #
881
- # {
882
- # uuid: "String", # required
883
- # }
884
- # @!attribute [rw] uuid
885
- # The AWS Lambda assigned ID of the event source mapping.
886
- # @return [String]
887
- class GetEventSourceMappingRequest < Struct.new(
888
- :uuid)
889
- include Aws::Structure
890
- end
897
+ # @note When making an API call, you may pass GetAliasRequest
898
+ # data as a hash:
899
+ #
900
+ # {
901
+ # function_name: "FunctionName", # required
902
+ # name: "Alias", # required
903
+ # }
904
+ #
905
+ # @!attribute [rw] function_name
906
+ # Function name for which the alias is created. An alias is a
907
+ # subresource that exists only in the context of an existing Lambda
908
+ # function so you must specify the function name.
909
+ # @return [String]
910
+ #
911
+ # @!attribute [rw] name
912
+ # Name of the alias for which you want to retrieve information.
913
+ # @return [String]
914
+ #
915
+ class GetAliasRequest < Struct.new(
916
+ :function_name,
917
+ :name)
918
+ include Aws::Structure
919
+ end
891
920
 
892
- # @note When making an API call, pass GetFunctionConfigurationRequest
893
- # data as a hash:
894
- #
895
- # {
896
- # function_name: "FunctionName", # required
897
- # qualifier: "Qualifier",
898
- # }
899
- # @!attribute [rw] function_name
900
- # The name of the Lambda function for which you want to retrieve the
901
- # configuration information.
902
- #
903
- # You can specify a function name (for example, `Thumbnail`) or you
904
- # can specify Amazon Resource Name (ARN) of the function (for example,
905
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
906
- # Lambda also allows you to specify a partial ARN (for example,
907
- # `account-id:Thumbnail`). Note that the length constraint applies
908
- # only to the ARN. If you specify only the function name, it is
909
- # limited to 64 character in length.
910
- # @return [String]
911
- #
912
- # @!attribute [rw] qualifier
913
- # Using this optional parameter you can specify a function version or
914
- # an alias name. If you specify function version, the API uses
915
- # qualified function ARN and returns information about the specific
916
- # function version. If you specify an alias name, the API uses the
917
- # alias ARN and returns information about the function version to
918
- # which the alias points.
919
- #
920
- # If you don't specify this parameter, the API uses unqualified
921
- # function ARN, and returns information about the `$LATEST` function
922
- # version.
923
- # @return [String]
924
- class GetFunctionConfigurationRequest < Struct.new(
925
- :function_name,
926
- :qualifier)
927
- include Aws::Structure
928
- end
921
+ # @note When making an API call, you may pass GetEventSourceMappingRequest
922
+ # data as a hash:
923
+ #
924
+ # {
925
+ # uuid: "String", # required
926
+ # }
927
+ #
928
+ # @!attribute [rw] uuid
929
+ # The AWS Lambda assigned ID of the event source mapping.
930
+ # @return [String]
931
+ #
932
+ class GetEventSourceMappingRequest < Struct.new(
933
+ :uuid)
934
+ include Aws::Structure
935
+ end
929
936
 
930
- # @note When making an API call, pass GetFunctionRequest
931
- # data as a hash:
932
- #
933
- # {
934
- # function_name: "FunctionName", # required
935
- # qualifier: "Qualifier",
936
- # }
937
- # @!attribute [rw] function_name
938
- # The Lambda function name.
939
- #
940
- # You can specify a function name (for example, `Thumbnail`) or you
941
- # can specify Amazon Resource Name (ARN) of the function (for example,
942
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
943
- # Lambda also allows you to specify a partial ARN (for example,
944
- # `account-id:Thumbnail`). Note that the length constraint applies
945
- # only to the ARN. If you specify only the function name, it is
946
- # limited to 64 character in length.
947
- # @return [String]
948
- #
949
- # @!attribute [rw] qualifier
950
- # Using this optional parameter to specify a function version or an
951
- # alias name. If you specify function version, the API uses qualified
952
- # function ARN for the request and returns information about the
953
- # specific Lambda function version. If you specify an alias name, the
954
- # API uses the alias ARN and returns information about the function
955
- # version to which the alias points. If you don't provide this
956
- # parameter, the API uses unqualified function ARN and returns
957
- # information about the `$LATEST` version of the Lambda function.
958
- # @return [String]
959
- class GetFunctionRequest < Struct.new(
960
- :function_name,
961
- :qualifier)
962
- include Aws::Structure
963
- end
937
+ # @note When making an API call, you may pass GetFunctionConfigurationRequest
938
+ # data as a hash:
939
+ #
940
+ # {
941
+ # function_name: "FunctionName", # required
942
+ # qualifier: "Qualifier",
943
+ # }
944
+ #
945
+ # @!attribute [rw] function_name
946
+ # The name of the Lambda function for which you want to retrieve the
947
+ # configuration information.
948
+ #
949
+ # You can specify a function name (for example, `Thumbnail`) or you
950
+ # can specify Amazon Resource Name (ARN) of the function (for example,
951
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
952
+ # Lambda also allows you to specify a partial ARN (for example,
953
+ # `account-id:Thumbnail`). Note that the length constraint applies
954
+ # only to the ARN. If you specify only the function name, it is
955
+ # limited to 64 character in length.
956
+ # @return [String]
957
+ #
958
+ # @!attribute [rw] qualifier
959
+ # Using this optional parameter you can specify a function version or
960
+ # an alias name. If you specify function version, the API uses
961
+ # qualified function ARN and returns information about the specific
962
+ # function version. If you specify an alias name, the API uses the
963
+ # alias ARN and returns information about the function version to
964
+ # which the alias points.
965
+ #
966
+ # If you don't specify this parameter, the API uses unqualified
967
+ # function ARN, and returns information about the `$LATEST` function
968
+ # version.
969
+ # @return [String]
970
+ #
971
+ class GetFunctionConfigurationRequest < Struct.new(
972
+ :function_name,
973
+ :qualifier)
974
+ include Aws::Structure
975
+ end
964
976
 
965
- # This response contains the object for the Lambda function location
966
- # (see FunctionCodeLocation.
967
- # @!attribute [rw] configuration
968
- # A complex type that describes function metadata.
969
- # @return [Types::FunctionConfiguration]
970
- #
971
- # @!attribute [rw] code
972
- # The object for the Lambda function location.
973
- # @return [Types::FunctionCodeLocation]
974
- class GetFunctionResponse < Struct.new(
975
- :configuration,
976
- :code)
977
- include Aws::Structure
978
- end
977
+ # @note When making an API call, you may pass GetFunctionRequest
978
+ # data as a hash:
979
+ #
980
+ # {
981
+ # function_name: "FunctionName", # required
982
+ # qualifier: "Qualifier",
983
+ # }
984
+ #
985
+ # @!attribute [rw] function_name
986
+ # The Lambda function name.
987
+ #
988
+ # You can specify a function name (for example, `Thumbnail`) or you
989
+ # can specify Amazon Resource Name (ARN) of the function (for example,
990
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
991
+ # Lambda also allows you to specify a partial ARN (for example,
992
+ # `account-id:Thumbnail`). Note that the length constraint applies
993
+ # only to the ARN. If you specify only the function name, it is
994
+ # limited to 64 character in length.
995
+ # @return [String]
996
+ #
997
+ # @!attribute [rw] qualifier
998
+ # Using this optional parameter to specify a function version or an
999
+ # alias name. If you specify function version, the API uses qualified
1000
+ # function ARN for the request and returns information about the
1001
+ # specific Lambda function version. If you specify an alias name, the
1002
+ # API uses the alias ARN and returns information about the function
1003
+ # version to which the alias points. If you don't provide this
1004
+ # parameter, the API uses unqualified function ARN and returns
1005
+ # information about the `$LATEST` version of the Lambda function.
1006
+ # @return [String]
1007
+ #
1008
+ class GetFunctionRequest < Struct.new(
1009
+ :function_name,
1010
+ :qualifier)
1011
+ include Aws::Structure
1012
+ end
979
1013
 
980
- # @note When making an API call, pass GetPolicyRequest
981
- # data as a hash:
982
- #
983
- # {
984
- # function_name: "FunctionName", # required
985
- # qualifier: "Qualifier",
986
- # }
987
- # @!attribute [rw] function_name
988
- # Function name whose resource policy you want to retrieve.
989
- #
990
- # You can specify the function name (for example, `Thumbnail`) or you
991
- # can specify Amazon Resource Name (ARN) of the function (for example,
992
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). If you
993
- # are using versioning, you can also provide a qualified function ARN
994
- # (ARN that is qualified with function version or alias name as
995
- # suffix). AWS Lambda also allows you to specify only the function
996
- # name with the account ID qualifier (for example,
997
- # `account-id:Thumbnail`). Note that the length constraint applies
998
- # only to the ARN. If you specify only the function name, it is
999
- # limited to 64 character in length.
1000
- # @return [String]
1001
- #
1002
- # @!attribute [rw] qualifier
1003
- # You can specify this optional query parameter to specify a function
1004
- # version or an alias name in which case this API will return all
1005
- # permissions associated with the specific qualified ARN. If you
1006
- # don't provide this parameter, the API will return permissions that
1007
- # apply to the unqualified function ARN.
1008
- # @return [String]
1009
- class GetPolicyRequest < Struct.new(
1010
- :function_name,
1011
- :qualifier)
1012
- include Aws::Structure
1013
- end
1014
+ # This response contains the object for the Lambda function location
1015
+ # (see FunctionCodeLocation.
1016
+ #
1017
+ # @!attribute [rw] configuration
1018
+ # A complex type that describes function metadata.
1019
+ # @return [Types::FunctionConfiguration]
1020
+ #
1021
+ # @!attribute [rw] code
1022
+ # The object for the Lambda function location.
1023
+ # @return [Types::FunctionCodeLocation]
1024
+ #
1025
+ class GetFunctionResponse < Struct.new(
1026
+ :configuration,
1027
+ :code)
1028
+ include Aws::Structure
1029
+ end
1014
1030
 
1015
- # @!attribute [rw] policy
1016
- # The resource policy associated with the specified function. The
1017
- # response returns the same as a string using a backslash ("\\") as
1018
- # an escape character in the JSON.
1019
- # @return [String]
1020
- class GetPolicyResponse < Struct.new(
1021
- :policy)
1022
- include Aws::Structure
1023
- end
1031
+ # @note When making an API call, you may pass GetPolicyRequest
1032
+ # data as a hash:
1033
+ #
1034
+ # {
1035
+ # function_name: "FunctionName", # required
1036
+ # qualifier: "Qualifier",
1037
+ # }
1038
+ #
1039
+ # @!attribute [rw] function_name
1040
+ # Function name whose resource policy you want to retrieve.
1041
+ #
1042
+ # You can specify the function name (for example, `Thumbnail`) or you
1043
+ # can specify Amazon Resource Name (ARN) of the function (for example,
1044
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). If you
1045
+ # are using versioning, you can also provide a qualified function ARN
1046
+ # (ARN that is qualified with function version or alias name as
1047
+ # suffix). AWS Lambda also allows you to specify only the function
1048
+ # name with the account ID qualifier (for example,
1049
+ # `account-id:Thumbnail`). Note that the length constraint applies
1050
+ # only to the ARN. If you specify only the function name, it is
1051
+ # limited to 64 character in length.
1052
+ # @return [String]
1053
+ #
1054
+ # @!attribute [rw] qualifier
1055
+ # You can specify this optional query parameter to specify a function
1056
+ # version or an alias name in which case this API will return all
1057
+ # permissions associated with the specific qualified ARN. If you
1058
+ # don't provide this parameter, the API will return permissions that
1059
+ # apply to the unqualified function ARN.
1060
+ # @return [String]
1061
+ #
1062
+ class GetPolicyRequest < Struct.new(
1063
+ :function_name,
1064
+ :qualifier)
1065
+ include Aws::Structure
1066
+ end
1024
1067
 
1025
- # @note When making an API call, pass InvocationRequest
1026
- # data as a hash:
1027
- #
1028
- # {
1029
- # function_name: "FunctionName", # required
1030
- # invocation_type: "Event", # accepts Event, RequestResponse, DryRun
1031
- # log_type: "None", # accepts None, Tail
1032
- # client_context: "String",
1033
- # payload: "data",
1034
- # qualifier: "Qualifier",
1035
- # }
1036
- # @!attribute [rw] function_name
1037
- # The Lambda function name.
1038
- #
1039
- # You can specify a function name (for example, `Thumbnail`) or you
1040
- # can specify Amazon Resource Name (ARN) of the function (for example,
1041
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1042
- # Lambda also allows you to specify a partial ARN (for example,
1043
- # `account-id:Thumbnail`). Note that the length constraint applies
1044
- # only to the ARN. If you specify only the function name, it is
1045
- # limited to 64 character in length.
1046
- # @return [String]
1047
- #
1048
- # @!attribute [rw] invocation_type
1049
- # By default, the `Invoke` API assumes `RequestResponse` invocation
1050
- # type. You can optionally request asynchronous execution by
1051
- # specifying `Event` as the `InvocationType`. You can also use this
1052
- # parameter to request AWS Lambda to not execute the function but do
1053
- # some verification, such as if the caller is authorized to invoke the
1054
- # function and if the inputs are valid. You request this by specifying
1055
- # `DryRun` as the `InvocationType`. This is useful in a cross-account
1056
- # scenario when you want to verify access to a function without
1057
- # running it.
1058
- # @return [String]
1059
- #
1060
- # @!attribute [rw] log_type
1061
- # You can set this optional parameter to `Tail` in the request only if
1062
- # you specify the `InvocationType` parameter with value
1063
- # `RequestResponse`. In this case, AWS Lambda returns the
1064
- # base64-encoded last 4 KB of log data produced by your Lambda
1065
- # function in the `x-amz-log-result` header.
1066
- # @return [String]
1067
- #
1068
- # @!attribute [rw] client_context
1069
- # Using the `ClientContext` you can pass client-specific information
1070
- # to the Lambda function you are invoking. You can then process the
1071
- # client information in your Lambda function as you choose through the
1072
- # context variable. For an example of a `ClientContext` JSON, see
1073
- # [PutEvents][1] in the *Amazon Mobile Analytics API Reference and
1074
- # User Guide*.
1075
- #
1076
- # The ClientContext JSON must be base64-encoded.
1077
- #
1078
- #
1079
- #
1080
- # [1]: http://docs.aws.amazon.com/mobileanalytics/latest/ug/PutEvents.html
1081
- # @return [String]
1082
- #
1083
- # @!attribute [rw] payload
1084
- # JSON that you want to provide to your Lambda function as input.
1085
- # @return [String]
1086
- #
1087
- # @!attribute [rw] qualifier
1088
- # You can use this optional parameter to specify a Lambda function
1089
- # version or alias name. If you specify a function version, the API
1090
- # uses the qualified function ARN to invoke a specific Lambda
1091
- # function. If you specify an alias name, the API uses the alias ARN
1092
- # to invoke the Lambda function version to which the alias points.
1093
- #
1094
- # If you don't provide this parameter, then the API uses unqualified
1095
- # function ARN which results in invocation of the `$LATEST` version.
1096
- # @return [String]
1097
- class InvocationRequest < Struct.new(
1098
- :function_name,
1099
- :invocation_type,
1100
- :log_type,
1101
- :client_context,
1102
- :payload,
1103
- :qualifier)
1104
- include Aws::Structure
1105
- end
1068
+ # @!attribute [rw] policy
1069
+ # The resource policy associated with the specified function. The
1070
+ # response returns the same as a string using a backslash ("\\") as
1071
+ # an escape character in the JSON.
1072
+ # @return [String]
1073
+ #
1074
+ class GetPolicyResponse < Struct.new(
1075
+ :policy)
1076
+ include Aws::Structure
1077
+ end
1106
1078
 
1107
- # Upon success, returns an empty response. Otherwise, throws an
1108
- # exception.
1109
- # @!attribute [rw] status_code
1110
- # The HTTP status code will be in the 200 range for successful
1111
- # request. For the `RequestResonse` invocation type this status code
1112
- # will be 200. For the `Event` invocation type this status code will
1113
- # be 202. For the `DryRun` invocation type the status code will be
1114
- # 204.
1115
- # @return [Integer]
1116
- #
1117
- # @!attribute [rw] function_error
1118
- # Indicates whether an error occurred while executing the Lambda
1119
- # function. If an error occurred this field will have one of two
1120
- # values; `Handled` or `Unhandled`. `Handled` errors are errors that
1121
- # are reported by the function while the `Unhandled` errors are those
1122
- # detected and reported by AWS Lambda. Unhandled errors include out of
1123
- # memory errors and function timeouts. For information about how to
1124
- # report an `Handled` error, see [Programming Model][1].
1125
- #
1126
- #
1127
- #
1128
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html
1129
- # @return [String]
1130
- #
1131
- # @!attribute [rw] log_result
1132
- # It is the base64-encoded logs for the Lambda function invocation.
1133
- # This is present only if the invocation type is `RequestResponse` and
1134
- # the logs were requested.
1135
- # @return [String]
1136
- #
1137
- # @!attribute [rw] payload
1138
- # It is the JSON representation of the object returned by the Lambda
1139
- # function. This is present only if the invocation type is
1140
- # `RequestResponse`.
1141
- #
1142
- # In the event of a function error this field contains a message
1143
- # describing the error. For the `Handled` errors the Lambda function
1144
- # will report this message. For `Unhandled` errors AWS Lambda reports
1145
- # the message.
1146
- # @return [String]
1147
- class InvocationResponse < Struct.new(
1148
- :status_code,
1149
- :function_error,
1150
- :log_result,
1151
- :payload)
1152
- include Aws::Structure
1153
- end
1079
+ # @note When making an API call, you may pass InvocationRequest
1080
+ # data as a hash:
1081
+ #
1082
+ # {
1083
+ # function_name: "FunctionName", # required
1084
+ # invocation_type: "Event", # accepts Event, RequestResponse, DryRun
1085
+ # log_type: "None", # accepts None, Tail
1086
+ # client_context: "String",
1087
+ # payload: "data",
1088
+ # qualifier: "Qualifier",
1089
+ # }
1090
+ #
1091
+ # @!attribute [rw] function_name
1092
+ # The Lambda function name.
1093
+ #
1094
+ # You can specify a function name (for example, `Thumbnail`) or you
1095
+ # can specify Amazon Resource Name (ARN) of the function (for example,
1096
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1097
+ # Lambda also allows you to specify a partial ARN (for example,
1098
+ # `account-id:Thumbnail`). Note that the length constraint applies
1099
+ # only to the ARN. If you specify only the function name, it is
1100
+ # limited to 64 character in length.
1101
+ # @return [String]
1102
+ #
1103
+ # @!attribute [rw] invocation_type
1104
+ # By default, the `Invoke` API assumes `RequestResponse` invocation
1105
+ # type. You can optionally request asynchronous execution by
1106
+ # specifying `Event` as the `InvocationType`. You can also use this
1107
+ # parameter to request AWS Lambda to not execute the function but do
1108
+ # some verification, such as if the caller is authorized to invoke the
1109
+ # function and if the inputs are valid. You request this by specifying
1110
+ # `DryRun` as the `InvocationType`. This is useful in a cross-account
1111
+ # scenario when you want to verify access to a function without
1112
+ # running it.
1113
+ # @return [String]
1114
+ #
1115
+ # @!attribute [rw] log_type
1116
+ # You can set this optional parameter to `Tail` in the request only if
1117
+ # you specify the `InvocationType` parameter with value
1118
+ # `RequestResponse`. In this case, AWS Lambda returns the
1119
+ # base64-encoded last 4 KB of log data produced by your Lambda
1120
+ # function in the `x-amz-log-result` header.
1121
+ # @return [String]
1122
+ #
1123
+ # @!attribute [rw] client_context
1124
+ # Using the `ClientContext` you can pass client-specific information
1125
+ # to the Lambda function you are invoking. You can then process the
1126
+ # client information in your Lambda function as you choose through the
1127
+ # context variable. For an example of a `ClientContext` JSON, see
1128
+ # [PutEvents][1] in the *Amazon Mobile Analytics API Reference and
1129
+ # User Guide*.
1130
+ #
1131
+ # The ClientContext JSON must be base64-encoded.
1132
+ #
1133
+ #
1134
+ #
1135
+ # [1]: http://docs.aws.amazon.com/mobileanalytics/latest/ug/PutEvents.html
1136
+ # @return [String]
1137
+ #
1138
+ # @!attribute [rw] payload
1139
+ # JSON that you want to provide to your Lambda function as input.
1140
+ # @return [String]
1141
+ #
1142
+ # @!attribute [rw] qualifier
1143
+ # You can use this optional parameter to specify a Lambda function
1144
+ # version or alias name. If you specify a function version, the API
1145
+ # uses the qualified function ARN to invoke a specific Lambda
1146
+ # function. If you specify an alias name, the API uses the alias ARN
1147
+ # to invoke the Lambda function version to which the alias points.
1148
+ #
1149
+ # If you don't provide this parameter, then the API uses unqualified
1150
+ # function ARN which results in invocation of the `$LATEST` version.
1151
+ # @return [String]
1152
+ #
1153
+ class InvocationRequest < Struct.new(
1154
+ :function_name,
1155
+ :invocation_type,
1156
+ :log_type,
1157
+ :client_context,
1158
+ :payload,
1159
+ :qualifier)
1160
+ include Aws::Structure
1161
+ end
1154
1162
 
1155
- # @note When making an API call, pass InvokeAsyncRequest
1156
- # data as a hash:
1157
- #
1158
- # {
1159
- # function_name: "FunctionName", # required
1160
- # invoke_args: "data", # required
1161
- # }
1162
- # @!attribute [rw] function_name
1163
- # The Lambda function name.
1164
- # @return [String]
1165
- #
1166
- # @!attribute [rw] invoke_args
1167
- # JSON that you want to provide to your Lambda function as input.
1168
- # @return [IO]
1169
- class InvokeAsyncRequest < Struct.new(
1170
- :function_name,
1171
- :invoke_args)
1172
- include Aws::Structure
1173
- end
1163
+ # Upon success, returns an empty response. Otherwise, throws an
1164
+ # exception.
1165
+ #
1166
+ # @!attribute [rw] status_code
1167
+ # The HTTP status code will be in the 200 range for successful
1168
+ # request. For the `RequestResonse` invocation type this status code
1169
+ # will be 200. For the `Event` invocation type this status code will
1170
+ # be 202. For the `DryRun` invocation type the status code will be
1171
+ # 204.
1172
+ # @return [Integer]
1173
+ #
1174
+ # @!attribute [rw] function_error
1175
+ # Indicates whether an error occurred while executing the Lambda
1176
+ # function. If an error occurred this field will have one of two
1177
+ # values; `Handled` or `Unhandled`. `Handled` errors are errors that
1178
+ # are reported by the function while the `Unhandled` errors are those
1179
+ # detected and reported by AWS Lambda. Unhandled errors include out of
1180
+ # memory errors and function timeouts. For information about how to
1181
+ # report an `Handled` error, see [Programming Model][1].
1182
+ #
1183
+ #
1184
+ #
1185
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html
1186
+ # @return [String]
1187
+ #
1188
+ # @!attribute [rw] log_result
1189
+ # It is the base64-encoded logs for the Lambda function invocation.
1190
+ # This is present only if the invocation type is `RequestResponse` and
1191
+ # the logs were requested.
1192
+ # @return [String]
1193
+ #
1194
+ # @!attribute [rw] payload
1195
+ # It is the JSON representation of the object returned by the Lambda
1196
+ # function. This is present only if the invocation type is
1197
+ # `RequestResponse`.
1198
+ #
1199
+ # In the event of a function error this field contains a message
1200
+ # describing the error. For the `Handled` errors the Lambda function
1201
+ # will report this message. For `Unhandled` errors AWS Lambda reports
1202
+ # the message.
1203
+ # @return [String]
1204
+ #
1205
+ class InvocationResponse < Struct.new(
1206
+ :status_code,
1207
+ :function_error,
1208
+ :log_result,
1209
+ :payload)
1210
+ include Aws::Structure
1211
+ end
1174
1212
 
1175
- # Upon success, it returns empty response. Otherwise, throws an
1176
- # exception.
1177
- # @!attribute [rw] status
1178
- # It will be 202 upon success.
1179
- # @return [Integer]
1180
- class InvokeAsyncResponse < Struct.new(
1181
- :status)
1182
- include Aws::Structure
1183
- end
1213
+ # @note When making an API call, you may pass InvokeAsyncRequest
1214
+ # data as a hash:
1215
+ #
1216
+ # {
1217
+ # function_name: "FunctionName", # required
1218
+ # invoke_args: "data", # required
1219
+ # }
1220
+ #
1221
+ # @!attribute [rw] function_name
1222
+ # The Lambda function name.
1223
+ # @return [String]
1224
+ #
1225
+ # @!attribute [rw] invoke_args
1226
+ # JSON that you want to provide to your Lambda function as input.
1227
+ # @return [IO]
1228
+ #
1229
+ class InvokeAsyncRequest < Struct.new(
1230
+ :function_name,
1231
+ :invoke_args)
1232
+ include Aws::Structure
1233
+ end
1184
1234
 
1185
- # @note When making an API call, pass ListAliasesRequest
1186
- # data as a hash:
1187
- #
1188
- # {
1189
- # function_name: "FunctionName", # required
1190
- # function_version: "Version",
1191
- # marker: "String",
1192
- # max_items: 1,
1193
- # }
1194
- # @!attribute [rw] function_name
1195
- # Lambda function name for which the alias is created.
1196
- # @return [String]
1197
- #
1198
- # @!attribute [rw] function_version
1199
- # If you specify this optional parameter, the API returns only the
1200
- # aliases that are pointing to the specific Lambda function version,
1201
- # otherwise the API returns all of the aliases created for the Lambda
1202
- # function.
1203
- # @return [String]
1204
- #
1205
- # @!attribute [rw] marker
1206
- # Optional string. An opaque pagination token returned from a previous
1207
- # `ListAliases` operation. If present, indicates where to continue the
1208
- # listing.
1209
- # @return [String]
1210
- #
1211
- # @!attribute [rw] max_items
1212
- # Optional integer. Specifies the maximum number of aliases to return
1213
- # in response. This parameter value must be greater than 0.
1214
- # @return [Integer]
1215
- class ListAliasesRequest < Struct.new(
1216
- :function_name,
1217
- :function_version,
1218
- :marker,
1219
- :max_items)
1220
- include Aws::Structure
1221
- end
1235
+ # Upon success, it returns empty response. Otherwise, throws an
1236
+ # exception.
1237
+ #
1238
+ # @!attribute [rw] status
1239
+ # It will be 202 upon success.
1240
+ # @return [Integer]
1241
+ #
1242
+ class InvokeAsyncResponse < Struct.new(
1243
+ :status)
1244
+ include Aws::Structure
1245
+ end
1222
1246
 
1223
- # @!attribute [rw] next_marker
1224
- # A string, present if there are more aliases.
1225
- # @return [String]
1226
- #
1227
- # @!attribute [rw] aliases
1228
- # A list of aliases.
1229
- # @return [Array<Types::AliasConfiguration>]
1230
- class ListAliasesResponse < Struct.new(
1231
- :next_marker,
1232
- :aliases)
1233
- include Aws::Structure
1234
- end
1247
+ # @note When making an API call, you may pass ListAliasesRequest
1248
+ # data as a hash:
1249
+ #
1250
+ # {
1251
+ # function_name: "FunctionName", # required
1252
+ # function_version: "Version",
1253
+ # marker: "String",
1254
+ # max_items: 1,
1255
+ # }
1256
+ #
1257
+ # @!attribute [rw] function_name
1258
+ # Lambda function name for which the alias is created.
1259
+ # @return [String]
1260
+ #
1261
+ # @!attribute [rw] function_version
1262
+ # If you specify this optional parameter, the API returns only the
1263
+ # aliases that are pointing to the specific Lambda function version,
1264
+ # otherwise the API returns all of the aliases created for the Lambda
1265
+ # function.
1266
+ # @return [String]
1267
+ #
1268
+ # @!attribute [rw] marker
1269
+ # Optional string. An opaque pagination token returned from a previous
1270
+ # `ListAliases` operation. If present, indicates where to continue the
1271
+ # listing.
1272
+ # @return [String]
1273
+ #
1274
+ # @!attribute [rw] max_items
1275
+ # Optional integer. Specifies the maximum number of aliases to return
1276
+ # in response. This parameter value must be greater than 0.
1277
+ # @return [Integer]
1278
+ #
1279
+ class ListAliasesRequest < Struct.new(
1280
+ :function_name,
1281
+ :function_version,
1282
+ :marker,
1283
+ :max_items)
1284
+ include Aws::Structure
1285
+ end
1235
1286
 
1236
- # @note When making an API call, pass ListEventSourceMappingsRequest
1237
- # data as a hash:
1238
- #
1239
- # {
1240
- # event_source_arn: "Arn",
1241
- # function_name: "FunctionName",
1242
- # marker: "String",
1243
- # max_items: 1,
1244
- # }
1245
- # @!attribute [rw] event_source_arn
1246
- # The Amazon Resource Name (ARN) of the Amazon Kinesis stream. (This
1247
- # parameter is optional.)
1248
- # @return [String]
1249
- #
1250
- # @!attribute [rw] function_name
1251
- # The name of the Lambda function.
1252
- #
1253
- # You can specify the function name (for example, `Thumbnail`) or you
1254
- # can specify Amazon Resource Name (ARN) of the function (for example,
1255
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). If you
1256
- # are using versioning, you can also provide a qualified function ARN
1257
- # (ARN that is qualified with function version or alias name as
1258
- # suffix). AWS Lambda also allows you to specify only the function
1259
- # name with the account ID qualifier (for example,
1260
- # `account-id:Thumbnail`). Note that the length constraint applies
1261
- # only to the ARN. If you specify only the function name, it is
1262
- # limited to 64 character in length.
1263
- # @return [String]
1264
- #
1265
- # @!attribute [rw] marker
1266
- # Optional string. An opaque pagination token returned from a previous
1267
- # `ListEventSourceMappings` operation. If present, specifies to
1268
- # continue the list from where the returning call left off.
1269
- # @return [String]
1270
- #
1271
- # @!attribute [rw] max_items
1272
- # Optional integer. Specifies the maximum number of event sources to
1273
- # return in response. This value must be greater than 0.
1274
- # @return [Integer]
1275
- class ListEventSourceMappingsRequest < Struct.new(
1276
- :event_source_arn,
1277
- :function_name,
1278
- :marker,
1279
- :max_items)
1280
- include Aws::Structure
1281
- end
1287
+ # @!attribute [rw] next_marker
1288
+ # A string, present if there are more aliases.
1289
+ # @return [String]
1290
+ #
1291
+ # @!attribute [rw] aliases
1292
+ # A list of aliases.
1293
+ # @return [Array<Types::AliasConfiguration>]
1294
+ #
1295
+ class ListAliasesResponse < Struct.new(
1296
+ :next_marker,
1297
+ :aliases)
1298
+ include Aws::Structure
1299
+ end
1282
1300
 
1283
- # Contains a list of event sources (see EventSourceMappingConfiguration)
1284
- # @!attribute [rw] next_marker
1285
- # A string, present if there are more event source mappings.
1286
- # @return [String]
1287
- #
1288
- # @!attribute [rw] event_source_mappings
1289
- # An array of `EventSourceMappingConfiguration` objects.
1290
- # @return [Array<Types::EventSourceMappingConfiguration>]
1291
- class ListEventSourceMappingsResponse < Struct.new(
1292
- :next_marker,
1293
- :event_source_mappings)
1294
- include Aws::Structure
1295
- end
1301
+ # @note When making an API call, you may pass ListEventSourceMappingsRequest
1302
+ # data as a hash:
1303
+ #
1304
+ # {
1305
+ # event_source_arn: "Arn",
1306
+ # function_name: "FunctionName",
1307
+ # marker: "String",
1308
+ # max_items: 1,
1309
+ # }
1310
+ #
1311
+ # @!attribute [rw] event_source_arn
1312
+ # The Amazon Resource Name (ARN) of the Amazon Kinesis stream. (This
1313
+ # parameter is optional.)
1314
+ # @return [String]
1315
+ #
1316
+ # @!attribute [rw] function_name
1317
+ # The name of the Lambda function.
1318
+ #
1319
+ # You can specify the function name (for example, `Thumbnail`) or you
1320
+ # can specify Amazon Resource Name (ARN) of the function (for example,
1321
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). If you
1322
+ # are using versioning, you can also provide a qualified function ARN
1323
+ # (ARN that is qualified with function version or alias name as
1324
+ # suffix). AWS Lambda also allows you to specify only the function
1325
+ # name with the account ID qualifier (for example,
1326
+ # `account-id:Thumbnail`). Note that the length constraint applies
1327
+ # only to the ARN. If you specify only the function name, it is
1328
+ # limited to 64 character in length.
1329
+ # @return [String]
1330
+ #
1331
+ # @!attribute [rw] marker
1332
+ # Optional string. An opaque pagination token returned from a previous
1333
+ # `ListEventSourceMappings` operation. If present, specifies to
1334
+ # continue the list from where the returning call left off.
1335
+ # @return [String]
1336
+ #
1337
+ # @!attribute [rw] max_items
1338
+ # Optional integer. Specifies the maximum number of event sources to
1339
+ # return in response. This value must be greater than 0.
1340
+ # @return [Integer]
1341
+ #
1342
+ class ListEventSourceMappingsRequest < Struct.new(
1343
+ :event_source_arn,
1344
+ :function_name,
1345
+ :marker,
1346
+ :max_items)
1347
+ include Aws::Structure
1348
+ end
1296
1349
 
1297
- # @note When making an API call, pass ListFunctionsRequest
1298
- # data as a hash:
1299
- #
1300
- # {
1301
- # marker: "String",
1302
- # max_items: 1,
1303
- # }
1304
- # @!attribute [rw] marker
1305
- # Optional string. An opaque pagination token returned from a previous
1306
- # `ListFunctions` operation. If present, indicates where to continue
1307
- # the listing.
1308
- # @return [String]
1309
- #
1310
- # @!attribute [rw] max_items
1311
- # Optional integer. Specifies the maximum number of AWS Lambda
1312
- # functions to return in response. This parameter value must be
1313
- # greater than 0.
1314
- # @return [Integer]
1315
- class ListFunctionsRequest < Struct.new(
1316
- :marker,
1317
- :max_items)
1318
- include Aws::Structure
1319
- end
1350
+ # Contains a list of event sources (see EventSourceMappingConfiguration)
1351
+ #
1352
+ # @!attribute [rw] next_marker
1353
+ # A string, present if there are more event source mappings.
1354
+ # @return [String]
1355
+ #
1356
+ # @!attribute [rw] event_source_mappings
1357
+ # An array of `EventSourceMappingConfiguration` objects.
1358
+ # @return [Array<Types::EventSourceMappingConfiguration>]
1359
+ #
1360
+ class ListEventSourceMappingsResponse < Struct.new(
1361
+ :next_marker,
1362
+ :event_source_mappings)
1363
+ include Aws::Structure
1364
+ end
1320
1365
 
1321
- # Contains a list of AWS Lambda function configurations (see
1322
- # FunctionConfiguration.
1323
- # @!attribute [rw] next_marker
1324
- # A string, present if there are more functions.
1325
- # @return [String]
1326
- #
1327
- # @!attribute [rw] functions
1328
- # A list of Lambda functions.
1329
- # @return [Array<Types::FunctionConfiguration>]
1330
- class ListFunctionsResponse < Struct.new(
1331
- :next_marker,
1332
- :functions)
1333
- include Aws::Structure
1334
- end
1366
+ # @note When making an API call, you may pass ListFunctionsRequest
1367
+ # data as a hash:
1368
+ #
1369
+ # {
1370
+ # marker: "String",
1371
+ # max_items: 1,
1372
+ # }
1373
+ #
1374
+ # @!attribute [rw] marker
1375
+ # Optional string. An opaque pagination token returned from a previous
1376
+ # `ListFunctions` operation. If present, indicates where to continue
1377
+ # the listing.
1378
+ # @return [String]
1379
+ #
1380
+ # @!attribute [rw] max_items
1381
+ # Optional integer. Specifies the maximum number of AWS Lambda
1382
+ # functions to return in response. This parameter value must be
1383
+ # greater than 0.
1384
+ # @return [Integer]
1385
+ #
1386
+ class ListFunctionsRequest < Struct.new(
1387
+ :marker,
1388
+ :max_items)
1389
+ include Aws::Structure
1390
+ end
1335
1391
 
1336
- # @note When making an API call, pass ListVersionsByFunctionRequest
1337
- # data as a hash:
1338
- #
1339
- # {
1340
- # function_name: "FunctionName", # required
1341
- # marker: "String",
1342
- # max_items: 1,
1343
- # }
1344
- # @!attribute [rw] function_name
1345
- # Function name whose versions to list. You can specify a function
1346
- # name (for example, `Thumbnail`) or you can specify Amazon Resource
1347
- # Name (ARN) of the function (for example,
1348
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1349
- # Lambda also allows you to specify a partial ARN (for example,
1350
- # `account-id:Thumbnail`). Note that the length constraint applies
1351
- # only to the ARN. If you specify only the function name, it is
1352
- # limited to 64 character in length.
1353
- # @return [String]
1354
- #
1355
- # @!attribute [rw] marker
1356
- # Optional string. An opaque pagination token returned from a previous
1357
- # `ListVersionsByFunction` operation. If present, indicates where to
1358
- # continue the listing.
1359
- # @return [String]
1360
- #
1361
- # @!attribute [rw] max_items
1362
- # Optional integer. Specifies the maximum number of AWS Lambda
1363
- # function versions to return in response. This parameter value must
1364
- # be greater than 0.
1365
- # @return [Integer]
1366
- class ListVersionsByFunctionRequest < Struct.new(
1367
- :function_name,
1368
- :marker,
1369
- :max_items)
1370
- include Aws::Structure
1371
- end
1392
+ # Contains a list of AWS Lambda function configurations (see
1393
+ # FunctionConfiguration.
1394
+ #
1395
+ # @!attribute [rw] next_marker
1396
+ # A string, present if there are more functions.
1397
+ # @return [String]
1398
+ #
1399
+ # @!attribute [rw] functions
1400
+ # A list of Lambda functions.
1401
+ # @return [Array<Types::FunctionConfiguration>]
1402
+ #
1403
+ class ListFunctionsResponse < Struct.new(
1404
+ :next_marker,
1405
+ :functions)
1406
+ include Aws::Structure
1407
+ end
1372
1408
 
1373
- # @!attribute [rw] next_marker
1374
- # A string, present if there are more function versions.
1375
- # @return [String]
1376
- #
1377
- # @!attribute [rw] versions
1378
- # A list of Lambda function versions.
1379
- # @return [Array<Types::FunctionConfiguration>]
1380
- class ListVersionsByFunctionResponse < Struct.new(
1381
- :next_marker,
1382
- :versions)
1383
- include Aws::Structure
1384
- end
1409
+ # @note When making an API call, you may pass ListVersionsByFunctionRequest
1410
+ # data as a hash:
1411
+ #
1412
+ # {
1413
+ # function_name: "FunctionName", # required
1414
+ # marker: "String",
1415
+ # max_items: 1,
1416
+ # }
1417
+ #
1418
+ # @!attribute [rw] function_name
1419
+ # Function name whose versions to list. You can specify a function
1420
+ # name (for example, `Thumbnail`) or you can specify Amazon Resource
1421
+ # Name (ARN) of the function (for example,
1422
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1423
+ # Lambda also allows you to specify a partial ARN (for example,
1424
+ # `account-id:Thumbnail`). Note that the length constraint applies
1425
+ # only to the ARN. If you specify only the function name, it is
1426
+ # limited to 64 character in length.
1427
+ # @return [String]
1428
+ #
1429
+ # @!attribute [rw] marker
1430
+ # Optional string. An opaque pagination token returned from a previous
1431
+ # `ListVersionsByFunction` operation. If present, indicates where to
1432
+ # continue the listing.
1433
+ # @return [String]
1434
+ #
1435
+ # @!attribute [rw] max_items
1436
+ # Optional integer. Specifies the maximum number of AWS Lambda
1437
+ # function versions to return in response. This parameter value must
1438
+ # be greater than 0.
1439
+ # @return [Integer]
1440
+ #
1441
+ class ListVersionsByFunctionRequest < Struct.new(
1442
+ :function_name,
1443
+ :marker,
1444
+ :max_items)
1445
+ include Aws::Structure
1446
+ end
1385
1447
 
1386
- # @note When making an API call, pass PublishVersionRequest
1387
- # data as a hash:
1388
- #
1389
- # {
1390
- # function_name: "FunctionName", # required
1391
- # code_sha_256: "String",
1392
- # description: "Description",
1393
- # }
1394
- # @!attribute [rw] function_name
1395
- # The Lambda function name. You can specify a function name (for
1396
- # example, `Thumbnail`) or you can specify Amazon Resource Name (ARN)
1397
- # of the function (for example,
1398
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1399
- # Lambda also allows you to specify a partial ARN (for example,
1400
- # `account-id:Thumbnail`). Note that the length constraint applies
1401
- # only to the ARN. If you specify only the function name, it is
1402
- # limited to 64 character in length.
1403
- # @return [String]
1404
- #
1405
- # @!attribute [rw] code_sha_256
1406
- # The SHA256 hash of the deployment package you want to publish. This
1407
- # provides validation on the code you are publishing. If you provide
1408
- # this parameter value must match the SHA256 of the $LATEST version
1409
- # for the publication to succeed.
1410
- # @return [String]
1411
- #
1412
- # @!attribute [rw] description
1413
- # The description for the version you are publishing. If not provided,
1414
- # AWS Lambda copies the description from the $LATEST version.
1415
- # @return [String]
1416
- class PublishVersionRequest < Struct.new(
1417
- :function_name,
1418
- :code_sha_256,
1419
- :description)
1420
- include Aws::Structure
1421
- end
1448
+ # @!attribute [rw] next_marker
1449
+ # A string, present if there are more function versions.
1450
+ # @return [String]
1451
+ #
1452
+ # @!attribute [rw] versions
1453
+ # A list of Lambda function versions.
1454
+ # @return [Array<Types::FunctionConfiguration>]
1455
+ #
1456
+ class ListVersionsByFunctionResponse < Struct.new(
1457
+ :next_marker,
1458
+ :versions)
1459
+ include Aws::Structure
1460
+ end
1422
1461
 
1423
- # @note When making an API call, pass RemovePermissionRequest
1424
- # data as a hash:
1425
- #
1426
- # {
1427
- # function_name: "FunctionName", # required
1428
- # statement_id: "StatementId", # required
1429
- # qualifier: "Qualifier",
1430
- # }
1431
- # @!attribute [rw] function_name
1432
- # Lambda function whose resource policy you want to remove a
1433
- # permission from.
1434
- #
1435
- # You can specify a function name (for example, `Thumbnail`) or you
1436
- # can specify Amazon Resource Name (ARN) of the function (for example,
1437
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1438
- # Lambda also allows you to specify a partial ARN (for example,
1439
- # `account-id:Thumbnail`). Note that the length constraint applies
1440
- # only to the ARN. If you specify only the function name, it is
1441
- # limited to 64 character in length.
1442
- # @return [String]
1443
- #
1444
- # @!attribute [rw] statement_id
1445
- # Statement ID of the permission to remove.
1446
- # @return [String]
1447
- #
1448
- # @!attribute [rw] qualifier
1449
- # You can specify this optional parameter to remove permission
1450
- # associated with a specific function version or function alias. If
1451
- # you don't specify this parameter, the API removes permission
1452
- # associated with the unqualified function ARN.
1453
- # @return [String]
1454
- class RemovePermissionRequest < Struct.new(
1455
- :function_name,
1456
- :statement_id,
1457
- :qualifier)
1458
- include Aws::Structure
1459
- end
1462
+ # @note When making an API call, you may pass PublishVersionRequest
1463
+ # data as a hash:
1464
+ #
1465
+ # {
1466
+ # function_name: "FunctionName", # required
1467
+ # code_sha_256: "String",
1468
+ # description: "Description",
1469
+ # }
1470
+ #
1471
+ # @!attribute [rw] function_name
1472
+ # The Lambda function name. You can specify a function name (for
1473
+ # example, `Thumbnail`) or you can specify Amazon Resource Name (ARN)
1474
+ # of the function (for example,
1475
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1476
+ # Lambda also allows you to specify a partial ARN (for example,
1477
+ # `account-id:Thumbnail`). Note that the length constraint applies
1478
+ # only to the ARN. If you specify only the function name, it is
1479
+ # limited to 64 character in length.
1480
+ # @return [String]
1481
+ #
1482
+ # @!attribute [rw] code_sha_256
1483
+ # The SHA256 hash of the deployment package you want to publish. This
1484
+ # provides validation on the code you are publishing. If you provide
1485
+ # this parameter value must match the SHA256 of the $LATEST version
1486
+ # for the publication to succeed.
1487
+ # @return [String]
1488
+ #
1489
+ # @!attribute [rw] description
1490
+ # The description for the version you are publishing. If not provided,
1491
+ # AWS Lambda copies the description from the $LATEST version.
1492
+ # @return [String]
1493
+ #
1494
+ class PublishVersionRequest < Struct.new(
1495
+ :function_name,
1496
+ :code_sha_256,
1497
+ :description)
1498
+ include Aws::Structure
1499
+ end
1460
1500
 
1461
- # @note When making an API call, pass UpdateAliasRequest
1462
- # data as a hash:
1463
- #
1464
- # {
1465
- # function_name: "FunctionName", # required
1466
- # name: "Alias", # required
1467
- # function_version: "Version",
1468
- # description: "Description",
1469
- # }
1470
- # @!attribute [rw] function_name
1471
- # The function name for which the alias is created.
1472
- # @return [String]
1473
- #
1474
- # @!attribute [rw] name
1475
- # The alias name.
1476
- # @return [String]
1477
- #
1478
- # @!attribute [rw] function_version
1479
- # Using this parameter you can change the Lambda function version to
1480
- # which the alias points.
1481
- # @return [String]
1482
- #
1483
- # @!attribute [rw] description
1484
- # You can change the description of the alias using this parameter.
1485
- # @return [String]
1486
- class UpdateAliasRequest < Struct.new(
1487
- :function_name,
1488
- :name,
1489
- :function_version,
1490
- :description)
1491
- include Aws::Structure
1492
- end
1501
+ # @note When making an API call, you may pass RemovePermissionRequest
1502
+ # data as a hash:
1503
+ #
1504
+ # {
1505
+ # function_name: "FunctionName", # required
1506
+ # statement_id: "StatementId", # required
1507
+ # qualifier: "Qualifier",
1508
+ # }
1509
+ #
1510
+ # @!attribute [rw] function_name
1511
+ # Lambda function whose resource policy you want to remove a
1512
+ # permission from.
1513
+ #
1514
+ # You can specify a function name (for example, `Thumbnail`) or you
1515
+ # can specify Amazon Resource Name (ARN) of the function (for example,
1516
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1517
+ # Lambda also allows you to specify a partial ARN (for example,
1518
+ # `account-id:Thumbnail`). Note that the length constraint applies
1519
+ # only to the ARN. If you specify only the function name, it is
1520
+ # limited to 64 character in length.
1521
+ # @return [String]
1522
+ #
1523
+ # @!attribute [rw] statement_id
1524
+ # Statement ID of the permission to remove.
1525
+ # @return [String]
1526
+ #
1527
+ # @!attribute [rw] qualifier
1528
+ # You can specify this optional parameter to remove permission
1529
+ # associated with a specific function version or function alias. If
1530
+ # you don't specify this parameter, the API removes permission
1531
+ # associated with the unqualified function ARN.
1532
+ # @return [String]
1533
+ #
1534
+ class RemovePermissionRequest < Struct.new(
1535
+ :function_name,
1536
+ :statement_id,
1537
+ :qualifier)
1538
+ include Aws::Structure
1539
+ end
1493
1540
 
1494
- # @note When making an API call, pass UpdateEventSourceMappingRequest
1495
- # data as a hash:
1496
- #
1497
- # {
1498
- # uuid: "String", # required
1499
- # function_name: "FunctionName",
1500
- # enabled: false,
1501
- # batch_size: 1,
1502
- # }
1503
- # @!attribute [rw] uuid
1504
- # The event source mapping identifier.
1505
- # @return [String]
1506
- #
1507
- # @!attribute [rw] function_name
1508
- # The Lambda function to which you want the stream records sent.
1509
- #
1510
- # You can specify a function name (for example, `Thumbnail`) or you
1511
- # can specify Amazon Resource Name (ARN) of the function (for example,
1512
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1513
- # Lambda also allows you to specify a partial ARN (for example,
1514
- # `account-id:Thumbnail`).
1515
- #
1516
- # If you are using versioning, you can also provide a qualified
1517
- # function ARN (ARN that is qualified with function version or alias
1518
- # name as suffix). For more information about versioning, see [AWS
1519
- # Lambda Function Versioning and Aliases][1]
1520
- #
1521
- # Note that the length constraint applies only to the ARN. If you
1522
- # specify only the function name, it is limited to 64 character in
1523
- # length.
1524
- #
1525
- #
1526
- #
1527
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
1528
- # @return [String]
1529
- #
1530
- # @!attribute [rw] enabled
1531
- # Specifies whether AWS Lambda should actively poll the stream or not.
1532
- # If disabled, AWS Lambda will not poll the stream.
1533
- # @return [Boolean]
1534
- #
1535
- # @!attribute [rw] batch_size
1536
- # The maximum number of stream records that can be sent to your Lambda
1537
- # function for a single invocation.
1538
- # @return [Integer]
1539
- class UpdateEventSourceMappingRequest < Struct.new(
1540
- :uuid,
1541
- :function_name,
1542
- :enabled,
1543
- :batch_size)
1544
- include Aws::Structure
1545
- end
1541
+ # @note When making an API call, you may pass UpdateAliasRequest
1542
+ # data as a hash:
1543
+ #
1544
+ # {
1545
+ # function_name: "FunctionName", # required
1546
+ # name: "Alias", # required
1547
+ # function_version: "Version",
1548
+ # description: "Description",
1549
+ # }
1550
+ #
1551
+ # @!attribute [rw] function_name
1552
+ # The function name for which the alias is created.
1553
+ # @return [String]
1554
+ #
1555
+ # @!attribute [rw] name
1556
+ # The alias name.
1557
+ # @return [String]
1558
+ #
1559
+ # @!attribute [rw] function_version
1560
+ # Using this parameter you can change the Lambda function version to
1561
+ # which the alias points.
1562
+ # @return [String]
1563
+ #
1564
+ # @!attribute [rw] description
1565
+ # You can change the description of the alias using this parameter.
1566
+ # @return [String]
1567
+ #
1568
+ class UpdateAliasRequest < Struct.new(
1569
+ :function_name,
1570
+ :name,
1571
+ :function_version,
1572
+ :description)
1573
+ include Aws::Structure
1574
+ end
1546
1575
 
1547
- # @note When making an API call, pass UpdateFunctionCodeRequest
1548
- # data as a hash:
1549
- #
1550
- # {
1551
- # function_name: "FunctionName", # required
1552
- # zip_file: "data",
1553
- # s3_bucket: "S3Bucket",
1554
- # s3_key: "S3Key",
1555
- # s3_object_version: "S3ObjectVersion",
1556
- # publish: false,
1557
- # }
1558
- # @!attribute [rw] function_name
1559
- # The existing Lambda function name whose code you want to replace.
1560
- #
1561
- # You can specify a function name (for example, `Thumbnail`) or you
1562
- # can specify Amazon Resource Name (ARN) of the function (for example,
1563
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1564
- # Lambda also allows you to specify a partial ARN (for example,
1565
- # `account-id:Thumbnail`). Note that the length constraint applies
1566
- # only to the ARN. If you specify only the function name, it is
1567
- # limited to 64 character in length.
1568
- # @return [String]
1569
- #
1570
- # @!attribute [rw] zip_file
1571
- # The contents of your zip file containing your deployment package. If
1572
- # you are using the web API directly, the contents of the zip file
1573
- # must be base64-encoded. If you are using the AWS SDKs or the AWS
1574
- # CLI, the SDKs or CLI will do the encoding for you. For more
1575
- # information about creating a .zip file, go to [Execution
1576
- # Permissions][1] in the *AWS Lambda Developer Guide*.
1577
- #
1578
- #
1579
- #
1580
- # [1]: http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html
1581
- # @return [String]
1582
- #
1583
- # @!attribute [rw] s3_bucket
1584
- # Amazon S3 bucket name where the .zip file containing your deployment
1585
- # package is stored. This bucket must reside in the same AWS region
1586
- # where you are creating the Lambda function.
1587
- # @return [String]
1588
- #
1589
- # @!attribute [rw] s3_key
1590
- # The Amazon S3 object (the deployment package) key name you want to
1591
- # upload.
1592
- # @return [String]
1593
- #
1594
- # @!attribute [rw] s3_object_version
1595
- # The Amazon S3 object (the deployment package) version you want to
1596
- # upload.
1597
- # @return [String]
1598
- #
1599
- # @!attribute [rw] publish
1600
- # This boolean parameter can be used to request AWS Lambda to update
1601
- # the Lambda function and publish a version as an atomic operation.
1602
- # @return [Boolean]
1603
- class UpdateFunctionCodeRequest < Struct.new(
1604
- :function_name,
1605
- :zip_file,
1606
- :s3_bucket,
1607
- :s3_key,
1608
- :s3_object_version,
1609
- :publish)
1610
- include Aws::Structure
1611
- end
1576
+ # @note When making an API call, you may pass UpdateEventSourceMappingRequest
1577
+ # data as a hash:
1578
+ #
1579
+ # {
1580
+ # uuid: "String", # required
1581
+ # function_name: "FunctionName",
1582
+ # enabled: false,
1583
+ # batch_size: 1,
1584
+ # }
1585
+ #
1586
+ # @!attribute [rw] uuid
1587
+ # The event source mapping identifier.
1588
+ # @return [String]
1589
+ #
1590
+ # @!attribute [rw] function_name
1591
+ # The Lambda function to which you want the stream records sent.
1592
+ #
1593
+ # You can specify a function name (for example, `Thumbnail`) or you
1594
+ # can specify Amazon Resource Name (ARN) of the function (for example,
1595
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1596
+ # Lambda also allows you to specify a partial ARN (for example,
1597
+ # `account-id:Thumbnail`).
1598
+ #
1599
+ # If you are using versioning, you can also provide a qualified
1600
+ # function ARN (ARN that is qualified with function version or alias
1601
+ # name as suffix). For more information about versioning, see [AWS
1602
+ # Lambda Function Versioning and Aliases][1]
1603
+ #
1604
+ # Note that the length constraint applies only to the ARN. If you
1605
+ # specify only the function name, it is limited to 64 character in
1606
+ # length.
1607
+ #
1608
+ #
1609
+ #
1610
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
1611
+ # @return [String]
1612
+ #
1613
+ # @!attribute [rw] enabled
1614
+ # Specifies whether AWS Lambda should actively poll the stream or not.
1615
+ # If disabled, AWS Lambda will not poll the stream.
1616
+ # @return [Boolean]
1617
+ #
1618
+ # @!attribute [rw] batch_size
1619
+ # The maximum number of stream records that can be sent to your Lambda
1620
+ # function for a single invocation.
1621
+ # @return [Integer]
1622
+ #
1623
+ class UpdateEventSourceMappingRequest < Struct.new(
1624
+ :uuid,
1625
+ :function_name,
1626
+ :enabled,
1627
+ :batch_size)
1628
+ include Aws::Structure
1629
+ end
1612
1630
 
1613
- # @note When making an API call, pass UpdateFunctionConfigurationRequest
1614
- # data as a hash:
1615
- #
1616
- # {
1617
- # function_name: "FunctionName", # required
1618
- # role: "RoleArn",
1619
- # handler: "Handler",
1620
- # description: "Description",
1621
- # timeout: 1,
1622
- # memory_size: 1,
1623
- # vpc_config: {
1624
- # subnet_ids: ["SubnetId"],
1625
- # security_group_ids: ["SecurityGroupId"],
1626
- # },
1627
- # environment: {
1628
- # variables: {
1629
- # "EnvironmentVariableName" => "EnvironmentVariableValue",
1630
- # },
1631
- # },
1632
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, java8, python2.7, dotnetcore1.0, nodejs4.3-edge
1633
- # dead_letter_config: {
1634
- # target_arn: "ResourceArn",
1635
- # },
1636
- # kms_key_arn: "KMSKeyArn",
1637
- # }
1638
- # @!attribute [rw] function_name
1639
- # The name of the Lambda function.
1640
- #
1641
- # You can specify a function name (for example, `Thumbnail`) or you
1642
- # can specify Amazon Resource Name (ARN) of the function (for example,
1643
- # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1644
- # Lambda also allows you to specify a partial ARN (for example,
1645
- # `account-id:Thumbnail`). Note that the length constraint applies
1646
- # only to the ARN. If you specify only the function name, it is
1647
- # limited to 64 character in length.
1648
- # @return [String]
1649
- #
1650
- # @!attribute [rw] role
1651
- # The Amazon Resource Name (ARN) of the IAM role that Lambda will
1652
- # assume when it executes your function.
1653
- # @return [String]
1654
- #
1655
- # @!attribute [rw] handler
1656
- # The function that Lambda calls to begin executing your function. For
1657
- # Node.js, it is the `module-name.export` value in your function.
1658
- # @return [String]
1659
- #
1660
- # @!attribute [rw] description
1661
- # A short user-defined function description. AWS Lambda does not use
1662
- # this value. Assign a meaningful description as you see fit.
1663
- # @return [String]
1664
- #
1665
- # @!attribute [rw] timeout
1666
- # The function execution time at which AWS Lambda should terminate the
1667
- # function. Because the execution time has cost implications, we
1668
- # recommend you set this value based on your expected execution time.
1669
- # The default is 3 seconds.
1670
- # @return [Integer]
1671
- #
1672
- # @!attribute [rw] memory_size
1673
- # The amount of memory, in MB, your Lambda function is given. AWS
1674
- # Lambda uses this memory size to infer the amount of CPU allocated to
1675
- # your function. Your function use-case determines your CPU and memory
1676
- # requirements. For example, a database operation might need less
1677
- # memory compared to an image processing function. The default value
1678
- # is 128 MB. The value must be a multiple of 64 MB.
1679
- # @return [Integer]
1680
- #
1681
- # @!attribute [rw] vpc_config
1682
- # If your Lambda function accesses resources in a VPC, you provide
1683
- # this parameter identifying the list of security group IDs and subnet
1684
- # IDs. These must belong to the same VPC. You must provide at least
1685
- # one security group and one subnet ID.
1686
- # @return [Types::VpcConfig]
1687
- #
1688
- # @!attribute [rw] environment
1689
- # The parent object that contains your environment's configuration
1690
- # settings.
1691
- # @return [Types::Environment]
1692
- #
1693
- # @!attribute [rw] runtime
1694
- # The runtime environment for the Lambda function.
1695
- #
1696
- # To use the Node.js runtime v4.3, set the value to "nodejs4.3". To
1697
- # use earlier runtime (v0.10.42), set the value to "nodejs".
1698
- #
1699
- # <note markdown="1"> You can no longer downgrade to the v0.10.42 runtime version. This
1700
- # version will no longer be supported as of early 2017.
1701
- #
1702
- # </note>
1703
- # @return [String]
1704
- #
1705
- # @!attribute [rw] dead_letter_config
1706
- # The parent object that contains the target ARN (Amazon Resource
1707
- # Name) of an Amazon SQS queue or Amazon SNS topic.
1708
- # @return [Types::DeadLetterConfig]
1709
- #
1710
- # @!attribute [rw] kms_key_arn
1711
- # The Amazon Resource Name (ARN) of the KMS key used to encrypt your
1712
- # function's environment variables. If you elect to use the AWS
1713
- # Lambda default service key, pass in an empty string ("") for this
1714
- # parameter.
1715
- # @return [String]
1716
- class UpdateFunctionConfigurationRequest < Struct.new(
1717
- :function_name,
1718
- :role,
1719
- :handler,
1720
- :description,
1721
- :timeout,
1722
- :memory_size,
1723
- :vpc_config,
1724
- :environment,
1725
- :runtime,
1726
- :dead_letter_config,
1727
- :kms_key_arn)
1728
- include Aws::Structure
1729
- end
1631
+ # @note When making an API call, you may pass UpdateFunctionCodeRequest
1632
+ # data as a hash:
1633
+ #
1634
+ # {
1635
+ # function_name: "FunctionName", # required
1636
+ # zip_file: "data",
1637
+ # s3_bucket: "S3Bucket",
1638
+ # s3_key: "S3Key",
1639
+ # s3_object_version: "S3ObjectVersion",
1640
+ # publish: false,
1641
+ # }
1642
+ #
1643
+ # @!attribute [rw] function_name
1644
+ # The existing Lambda function name whose code you want to replace.
1645
+ #
1646
+ # You can specify a function name (for example, `Thumbnail`) or you
1647
+ # can specify Amazon Resource Name (ARN) of the function (for example,
1648
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1649
+ # Lambda also allows you to specify a partial ARN (for example,
1650
+ # `account-id:Thumbnail`). Note that the length constraint applies
1651
+ # only to the ARN. If you specify only the function name, it is
1652
+ # limited to 64 character in length.
1653
+ # @return [String]
1654
+ #
1655
+ # @!attribute [rw] zip_file
1656
+ # The contents of your zip file containing your deployment package. If
1657
+ # you are using the web API directly, the contents of the zip file
1658
+ # must be base64-encoded. If you are using the AWS SDKs or the AWS
1659
+ # CLI, the SDKs or CLI will do the encoding for you. For more
1660
+ # information about creating a .zip file, see [Execution
1661
+ # Permissions][1] in the *AWS Lambda Developer Guide*.
1662
+ #
1663
+ #
1664
+ #
1665
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html
1666
+ # @return [String]
1667
+ #
1668
+ # @!attribute [rw] s3_bucket
1669
+ # Amazon S3 bucket name where the .zip file containing your deployment
1670
+ # package is stored. This bucket must reside in the same AWS Region
1671
+ # where you are creating the Lambda function.
1672
+ # @return [String]
1673
+ #
1674
+ # @!attribute [rw] s3_key
1675
+ # The Amazon S3 object (the deployment package) key name you want to
1676
+ # upload.
1677
+ # @return [String]
1678
+ #
1679
+ # @!attribute [rw] s3_object_version
1680
+ # The Amazon S3 object (the deployment package) version you want to
1681
+ # upload.
1682
+ # @return [String]
1683
+ #
1684
+ # @!attribute [rw] publish
1685
+ # This boolean parameter can be used to request AWS Lambda to update
1686
+ # the Lambda function and publish a version as an atomic operation.
1687
+ # @return [Boolean]
1688
+ #
1689
+ class UpdateFunctionCodeRequest < Struct.new(
1690
+ :function_name,
1691
+ :zip_file,
1692
+ :s3_bucket,
1693
+ :s3_key,
1694
+ :s3_object_version,
1695
+ :publish)
1696
+ include Aws::Structure
1697
+ end
1730
1698
 
1731
- # If your Lambda function accesses resources in a VPC, you provide this
1732
- # parameter identifying the list of security group IDs and subnet IDs.
1733
- # These must belong to the same VPC. You must provide at least one
1734
- # security group and one subnet ID.
1735
- # @note When making an API call, pass VpcConfig
1736
- # data as a hash:
1737
- #
1738
- # {
1739
- # subnet_ids: ["SubnetId"],
1740
- # security_group_ids: ["SecurityGroupId"],
1741
- # }
1742
- # @!attribute [rw] subnet_ids
1743
- # A list of one or more subnet IDs in your VPC.
1744
- # @return [Array<String>]
1745
- #
1746
- # @!attribute [rw] security_group_ids
1747
- # A list of one or more security groups IDs in your VPC.
1748
- # @return [Array<String>]
1749
- class VpcConfig < Struct.new(
1750
- :subnet_ids,
1751
- :security_group_ids)
1752
- include Aws::Structure
1753
- end
1699
+ # @note When making an API call, you may pass UpdateFunctionConfigurationRequest
1700
+ # data as a hash:
1701
+ #
1702
+ # {
1703
+ # function_name: "FunctionName", # required
1704
+ # role: "RoleArn",
1705
+ # handler: "Handler",
1706
+ # description: "Description",
1707
+ # timeout: 1,
1708
+ # memory_size: 1,
1709
+ # vpc_config: {
1710
+ # subnet_ids: ["SubnetId"],
1711
+ # security_group_ids: ["SecurityGroupId"],
1712
+ # },
1713
+ # environment: {
1714
+ # variables: {
1715
+ # "EnvironmentVariableName" => "EnvironmentVariableValue",
1716
+ # },
1717
+ # },
1718
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, java8, python2.7, dotnetcore1.0, nodejs4.3-edge
1719
+ # dead_letter_config: {
1720
+ # target_arn: "ResourceArn",
1721
+ # },
1722
+ # kms_key_arn: "KMSKeyArn",
1723
+ # }
1724
+ #
1725
+ # @!attribute [rw] function_name
1726
+ # The name of the Lambda function.
1727
+ #
1728
+ # You can specify a function name (for example, `Thumbnail`) or you
1729
+ # can specify Amazon Resource Name (ARN) of the function (for example,
1730
+ # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1731
+ # Lambda also allows you to specify a partial ARN (for example,
1732
+ # `account-id:Thumbnail`). Note that the length constraint applies
1733
+ # only to the ARN. If you specify only the function name, it is
1734
+ # limited to 64 character in length.
1735
+ # @return [String]
1736
+ #
1737
+ # @!attribute [rw] role
1738
+ # The Amazon Resource Name (ARN) of the IAM role that Lambda will
1739
+ # assume when it executes your function.
1740
+ # @return [String]
1741
+ #
1742
+ # @!attribute [rw] handler
1743
+ # The function that Lambda calls to begin executing your function. For
1744
+ # Node.js, it is the `module-name.export` value in your function.
1745
+ # @return [String]
1746
+ #
1747
+ # @!attribute [rw] description
1748
+ # A short user-defined function description. AWS Lambda does not use
1749
+ # this value. Assign a meaningful description as you see fit.
1750
+ # @return [String]
1751
+ #
1752
+ # @!attribute [rw] timeout
1753
+ # The function execution time at which AWS Lambda should terminate the
1754
+ # function. Because the execution time has cost implications, we
1755
+ # recommend you set this value based on your expected execution time.
1756
+ # The default is 3 seconds.
1757
+ # @return [Integer]
1758
+ #
1759
+ # @!attribute [rw] memory_size
1760
+ # The amount of memory, in MB, your Lambda function is given. AWS
1761
+ # Lambda uses this memory size to infer the amount of CPU allocated to
1762
+ # your function. Your function use-case determines your CPU and memory
1763
+ # requirements. For example, a database operation might need less
1764
+ # memory compared to an image processing function. The default value
1765
+ # is 128 MB. The value must be a multiple of 64 MB.
1766
+ # @return [Integer]
1767
+ #
1768
+ # @!attribute [rw] vpc_config
1769
+ # If your Lambda function accesses resources in a VPC, you provide
1770
+ # this parameter identifying the list of security group IDs and subnet
1771
+ # IDs. These must belong to the same VPC. You must provide at least
1772
+ # one security group and one subnet ID.
1773
+ # @return [Types::VpcConfig]
1774
+ #
1775
+ # @!attribute [rw] environment
1776
+ # The parent object that contains your environment's configuration
1777
+ # settings.
1778
+ # @return [Types::Environment]
1779
+ #
1780
+ # @!attribute [rw] runtime
1781
+ # The runtime environment for the Lambda function.
1782
+ #
1783
+ # To use the Node.js runtime v4.3, set the value to "nodejs4.3". To
1784
+ # use earlier runtime (v0.10.42), set the value to "nodejs".
1785
+ #
1786
+ # <note markdown="1"> You can no longer downgrade to the v0.10.42 runtime version. This
1787
+ # version will no longer be supported as of early 2017.
1788
+ #
1789
+ # </note>
1790
+ # @return [String]
1791
+ #
1792
+ # @!attribute [rw] dead_letter_config
1793
+ # The parent object that contains the target Amazon Resource Name
1794
+ # (ARN) of an Amazon SQS queue or Amazon SNS topic.
1795
+ # @return [Types::DeadLetterConfig]
1796
+ #
1797
+ # @!attribute [rw] kms_key_arn
1798
+ # The Amazon Resource Name (ARN) of the KMS key used to encrypt your
1799
+ # function's environment variables. If you elect to use the AWS
1800
+ # Lambda default service key, pass in an empty string ("") for this
1801
+ # parameter.
1802
+ # @return [String]
1803
+ #
1804
+ class UpdateFunctionConfigurationRequest < Struct.new(
1805
+ :function_name,
1806
+ :role,
1807
+ :handler,
1808
+ :description,
1809
+ :timeout,
1810
+ :memory_size,
1811
+ :vpc_config,
1812
+ :environment,
1813
+ :runtime,
1814
+ :dead_letter_config,
1815
+ :kms_key_arn)
1816
+ include Aws::Structure
1817
+ end
1754
1818
 
1755
- # VPC configuration associated with your Lambda function.
1756
- # @!attribute [rw] subnet_ids
1757
- # A list of subnet IDs associated with the Lambda function.
1758
- # @return [Array<String>]
1759
- #
1760
- # @!attribute [rw] security_group_ids
1761
- # A list of security group IDs associated with the Lambda function.
1762
- # @return [Array<String>]
1763
- #
1764
- # @!attribute [rw] vpc_id
1765
- # The VPC ID associated with you Lambda function.
1766
- # @return [String]
1767
- class VpcConfigResponse < Struct.new(
1768
- :subnet_ids,
1769
- :security_group_ids,
1770
- :vpc_id)
1771
- include Aws::Structure
1772
- end
1819
+ # If your Lambda function accesses resources in a VPC, you provide this
1820
+ # parameter identifying the list of security group IDs and subnet IDs.
1821
+ # These must belong to the same VPC. You must provide at least one
1822
+ # security group and one subnet ID.
1823
+ #
1824
+ # @note When making an API call, you may pass VpcConfig
1825
+ # data as a hash:
1826
+ #
1827
+ # {
1828
+ # subnet_ids: ["SubnetId"],
1829
+ # security_group_ids: ["SecurityGroupId"],
1830
+ # }
1831
+ #
1832
+ # @!attribute [rw] subnet_ids
1833
+ # A list of one or more subnet IDs in your VPC.
1834
+ # @return [Array<String>]
1835
+ #
1836
+ # @!attribute [rw] security_group_ids
1837
+ # A list of one or more security groups IDs in your VPC.
1838
+ # @return [Array<String>]
1839
+ #
1840
+ class VpcConfig < Struct.new(
1841
+ :subnet_ids,
1842
+ :security_group_ids)
1843
+ include Aws::Structure
1844
+ end
1773
1845
 
1846
+ # VPC configuration associated with your Lambda function.
1847
+ #
1848
+ # @!attribute [rw] subnet_ids
1849
+ # A list of subnet IDs associated with the Lambda function.
1850
+ # @return [Array<String>]
1851
+ #
1852
+ # @!attribute [rw] security_group_ids
1853
+ # A list of security group IDs associated with the Lambda function.
1854
+ # @return [Array<String>]
1855
+ #
1856
+ # @!attribute [rw] vpc_id
1857
+ # The VPC ID associated with you Lambda function.
1858
+ # @return [String]
1859
+ #
1860
+ class VpcConfigResponse < Struct.new(
1861
+ :subnet_ids,
1862
+ :security_group_ids,
1863
+ :vpc_id)
1864
+ include Aws::Structure
1774
1865
  end
1866
+
1775
1867
  end
1776
1868
  end