aws-sdk-lambda 1.0.0.rc2 → 1.0.0.rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lambda.rb +1 -1
- data/lib/aws-sdk-lambda/client.rb +2136 -1934
- data/lib/aws-sdk-lambda/client_api.rb +754 -756
- data/lib/aws-sdk-lambda/errors.rb +4 -13
- data/lib/aws-sdk-lambda/resource.rb +12 -14
- data/lib/aws-sdk-lambda/types.rb +1811 -1719
- metadata +2 -2
@@ -1,23 +1,14 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
module
|
10
|
-
module Errors
|
8
|
+
module Aws::Lambda
|
9
|
+
module Errors
|
11
10
|
|
12
|
-
|
11
|
+
extend Aws::Errors::DynamicErrors
|
13
12
|
|
14
|
-
# Raised when calling #load or #data on a resource class that can not be
|
15
|
-
# loaded. This can happen when:
|
16
|
-
#
|
17
|
-
# * A resource class has identifiers, but no data attributes.
|
18
|
-
# * Resource data is only available when making an API call that
|
19
|
-
# enumerates all resources of that type.
|
20
|
-
class ResourceNotLoadable < RuntimeError; end
|
21
|
-
end
|
22
13
|
end
|
23
14
|
end
|
@@ -1,25 +1,23 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
|
10
|
-
class Resource
|
8
|
+
module Aws::Lambda
|
9
|
+
class Resource
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
# @return [Client]
|
19
|
-
def client
|
20
|
-
@client
|
21
|
-
end
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
22
16
|
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
23
20
|
end
|
21
|
+
|
24
22
|
end
|
25
23
|
end
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -1,1776 +1,1868 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
module
|
10
|
-
module Types
|
8
|
+
module Aws::Lambda
|
9
|
+
module Types
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
# 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
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
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
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
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
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
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
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
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
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
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
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
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
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
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
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
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
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
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
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
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
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
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
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
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
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
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
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
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
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
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
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
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
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
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
|
-
|
839
|
-
|
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
|
-
|
842
|
-
|
843
|
-
|
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
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
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
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
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
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
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
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
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
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
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
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
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
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
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
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
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
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
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
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
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
|
-
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
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
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
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
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
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
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
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
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
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
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
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
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
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
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
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
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
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
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
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
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
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
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
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
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
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
|
-
|
1548
|
-
|
1549
|
-
|
1550
|
-
|
1551
|
-
|
1552
|
-
|
1553
|
-
|
1554
|
-
|
1555
|
-
|
1556
|
-
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
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
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1633
|
-
|
1634
|
-
|
1635
|
-
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1679
|
-
|
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
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
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
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
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
|