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

Sign up to get free protection for your applications and to get access to all the features.
@@ -88,6 +88,8 @@ module Aws::Lambda
88
88
  ListEventSourceMappingsResponse = Shapes::StructureShape.new(name: 'ListEventSourceMappingsResponse')
89
89
  ListFunctionsRequest = Shapes::StructureShape.new(name: 'ListFunctionsRequest')
90
90
  ListFunctionsResponse = Shapes::StructureShape.new(name: 'ListFunctionsResponse')
91
+ ListTagsRequest = Shapes::StructureShape.new(name: 'ListTagsRequest')
92
+ ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse')
91
93
  ListVersionsByFunctionRequest = Shapes::StructureShape.new(name: 'ListVersionsByFunctionRequest')
92
94
  ListVersionsByFunctionResponse = Shapes::StructureShape.new(name: 'ListVersionsByFunctionResponse')
93
95
  LogType = Shapes::StringShape.new(name: 'LogType')
@@ -118,11 +120,20 @@ module Aws::Lambda
118
120
  SubnetIPAddressLimitReachedException = Shapes::StructureShape.new(name: 'SubnetIPAddressLimitReachedException')
119
121
  SubnetId = Shapes::StringShape.new(name: 'SubnetId')
120
122
  SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
123
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
124
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
125
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
126
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
127
+ Tags = Shapes::MapShape.new(name: 'Tags')
121
128
  ThrottleReason = Shapes::StringShape.new(name: 'ThrottleReason')
122
129
  Timeout = Shapes::IntegerShape.new(name: 'Timeout')
123
130
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
124
131
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
132
+ TracingConfig = Shapes::StructureShape.new(name: 'TracingConfig')
133
+ TracingConfigResponse = Shapes::StructureShape.new(name: 'TracingConfigResponse')
134
+ TracingMode = Shapes::StringShape.new(name: 'TracingMode')
125
135
  UnsupportedMediaTypeException = Shapes::StructureShape.new(name: 'UnsupportedMediaTypeException')
136
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
126
137
  UpdateAliasRequest = Shapes::StructureShape.new(name: 'UpdateAliasRequest')
127
138
  UpdateEventSourceMappingRequest = Shapes::StructureShape.new(name: 'UpdateEventSourceMappingRequest')
128
139
  UpdateFunctionCodeRequest = Shapes::StructureShape.new(name: 'UpdateFunctionCodeRequest')
@@ -190,6 +201,8 @@ module Aws::Lambda
190
201
  CreateFunctionRequest.add_member(:dead_letter_config, Shapes::ShapeRef.new(shape: DeadLetterConfig, location_name: "DeadLetterConfig"))
191
202
  CreateFunctionRequest.add_member(:environment, Shapes::ShapeRef.new(shape: Environment, location_name: "Environment"))
192
203
  CreateFunctionRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
204
+ CreateFunctionRequest.add_member(:tracing_config, Shapes::ShapeRef.new(shape: TracingConfig, location_name: "TracingConfig"))
205
+ CreateFunctionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
193
206
  CreateFunctionRequest.struct_class = Types::CreateFunctionRequest
194
207
 
195
208
  DeadLetterConfig.add_member(:target_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "TargetArn"))
@@ -258,6 +271,7 @@ module Aws::Lambda
258
271
  FunctionConfiguration.add_member(:dead_letter_config, Shapes::ShapeRef.new(shape: DeadLetterConfig, location_name: "DeadLetterConfig"))
259
272
  FunctionConfiguration.add_member(:environment, Shapes::ShapeRef.new(shape: EnvironmentResponse, location_name: "Environment"))
260
273
  FunctionConfiguration.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
274
+ FunctionConfiguration.add_member(:tracing_config, Shapes::ShapeRef.new(shape: TracingConfigResponse, location_name: "TracingConfig"))
261
275
  FunctionConfiguration.struct_class = Types::FunctionConfiguration
262
276
 
263
277
  FunctionList.member = Shapes::ShapeRef.new(shape: FunctionConfiguration)
@@ -285,6 +299,7 @@ module Aws::Lambda
285
299
 
286
300
  GetFunctionResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: FunctionConfiguration, location_name: "Configuration"))
287
301
  GetFunctionResponse.add_member(:code, Shapes::ShapeRef.new(shape: FunctionCodeLocation, location_name: "Code"))
302
+ GetFunctionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
288
303
  GetFunctionResponse.struct_class = Types::GetFunctionResponse
289
304
 
290
305
  GetPolicyRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
@@ -349,6 +364,12 @@ module Aws::Lambda
349
364
  ListFunctionsResponse.add_member(:functions, Shapes::ShapeRef.new(shape: FunctionList, location_name: "Functions"))
350
365
  ListFunctionsResponse.struct_class = Types::ListFunctionsResponse
351
366
 
367
+ ListTagsRequest.add_member(:resource, Shapes::ShapeRef.new(shape: FunctionArn, required: true, location: "uri", location_name: "ARN"))
368
+ ListTagsRequest.struct_class = Types::ListTagsRequest
369
+
370
+ ListTagsResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
371
+ ListTagsResponse.struct_class = Types::ListTagsResponse
372
+
352
373
  ListVersionsByFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
353
374
  ListVersionsByFunctionRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
354
375
  ListVersionsByFunctionRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxListItems, location: "querystring", location_name: "MaxItems"))
@@ -372,6 +393,25 @@ module Aws::Lambda
372
393
 
373
394
  SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
374
395
 
396
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
397
+
398
+ TagResourceRequest.add_member(:resource, Shapes::ShapeRef.new(shape: FunctionArn, required: true, location: "uri", location_name: "ARN"))
399
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
400
+ TagResourceRequest.struct_class = Types::TagResourceRequest
401
+
402
+ Tags.key = Shapes::ShapeRef.new(shape: TagKey)
403
+ Tags.value = Shapes::ShapeRef.new(shape: TagValue)
404
+
405
+ TracingConfig.add_member(:mode, Shapes::ShapeRef.new(shape: TracingMode, location_name: "Mode"))
406
+ TracingConfig.struct_class = Types::TracingConfig
407
+
408
+ TracingConfigResponse.add_member(:mode, Shapes::ShapeRef.new(shape: TracingMode, location_name: "Mode"))
409
+ TracingConfigResponse.struct_class = Types::TracingConfigResponse
410
+
411
+ UntagResourceRequest.add_member(:resource, Shapes::ShapeRef.new(shape: FunctionArn, required: true, location: "uri", location_name: "ARN"))
412
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
413
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
414
+
375
415
  UpdateAliasRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
376
416
  UpdateAliasRequest.add_member(:name, Shapes::ShapeRef.new(shape: Alias, required: true, location: "uri", location_name: "Name"))
377
417
  UpdateAliasRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, location_name: "FunctionVersion"))
@@ -403,6 +443,7 @@ module Aws::Lambda
403
443
  UpdateFunctionConfigurationRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: Runtime, location_name: "Runtime"))
404
444
  UpdateFunctionConfigurationRequest.add_member(:dead_letter_config, Shapes::ShapeRef.new(shape: DeadLetterConfig, location_name: "DeadLetterConfig"))
405
445
  UpdateFunctionConfigurationRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
446
+ UpdateFunctionConfigurationRequest.add_member(:tracing_config, Shapes::ShapeRef.new(shape: TracingConfig, location_name: "TracingConfig"))
406
447
  UpdateFunctionConfigurationRequest.struct_class = Types::UpdateFunctionConfigurationRequest
407
448
 
408
449
  VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
@@ -672,6 +713,18 @@ module Aws::Lambda
672
713
  )
673
714
  end)
674
715
 
716
+ api.add_operation(:list_tags, Seahorse::Model::Operation.new.tap do |o|
717
+ o.name = "ListTags"
718
+ o.http_method = "GET"
719
+ o.http_request_uri = "/2017-03-31/tags/{ARN}"
720
+ o.input = Shapes::ShapeRef.new(shape: ListTagsRequest)
721
+ o.output = Shapes::ShapeRef.new(shape: ListTagsResponse)
722
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
723
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
724
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
725
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
726
+ end)
727
+
675
728
  api.add_operation(:list_versions_by_function, Seahorse::Model::Operation.new.tap do |o|
676
729
  o.name = "ListVersionsByFunction"
677
730
  o.http_method = "GET"
@@ -709,6 +762,30 @@ module Aws::Lambda
709
762
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
710
763
  end)
711
764
 
765
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
766
+ o.name = "TagResource"
767
+ o.http_method = "POST"
768
+ o.http_request_uri = "/2017-03-31/tags/{ARN}"
769
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
770
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
771
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
772
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
773
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
774
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
775
+ end)
776
+
777
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
778
+ o.name = "UntagResource"
779
+ o.http_method = "DELETE"
780
+ o.http_request_uri = "/2017-03-31/tags/{ARN}"
781
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
782
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
783
+ o.errors << Shapes::ShapeRef.new(shape: ServiceException)
784
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
785
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
786
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
787
+ end)
788
+
712
789
  api.add_operation(:update_alias, Seahorse::Model::Operation.new.tap do |o|
713
790
  o.name = "UpdateAlias"
714
791
  o.http_method = "PUT"
@@ -12,8 +12,8 @@ module Aws::Lambda
12
12
  # current account and region.
13
13
  #
14
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.
15
+ # Maximum size, in bytes, of a code package you can upload per region.
16
+ # The default size is 75 GB.
17
17
  # @return [Integer]
18
18
  #
19
19
  # @!attribute [rw] code_size_unzipped
@@ -39,6 +39,8 @@ module Aws::Lambda
39
39
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html
40
40
  # @return [Integer]
41
41
  #
42
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AccountLimit AWS API Documentation
43
+ #
42
44
  class AccountLimit < Struct.new(
43
45
  :total_code_size,
44
46
  :code_size_unzipped,
@@ -59,6 +61,8 @@ module Aws::Lambda
59
61
  # The number of your account's existing functions per region.
60
62
  # @return [Integer]
61
63
  #
64
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AccountUsage AWS API Documentation
65
+ #
62
66
  class AccountUsage < Struct.new(
63
67
  :total_code_size,
64
68
  :function_count)
@@ -89,7 +93,7 @@ module Aws::Lambda
89
93
  # Lambda also allows you to specify partial ARN (for example,
90
94
  # `account-id:Thumbnail`). Note that the length constraint applies
91
95
  # only to the ARN. If you specify only the function name, it is
92
- # limited to 64 character in length.
96
+ # limited to 64 characters in length.
93
97
  # @return [String]
94
98
  #
95
99
  # @!attribute [rw] statement_id
@@ -115,27 +119,26 @@ module Aws::Lambda
115
119
  # @return [String]
116
120
  #
117
121
  # @!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
+ # This is optional; however, when granting permission to invoke your
123
+ # function, you should specify this field with the Amazon Resource
124
+ # Name (ARN) as its value. This ensures that only events generated
125
+ # from the specified source can invoke the function.
122
126
  #
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
+ # If you add a permission without providing the source ARN, any AWS
128
+ # account that creates a mapping to your function ARN can send events
129
+ # to invoke your Lambda function.
127
130
  # @return [String]
128
131
  #
129
132
  # @!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.
133
+ # This parameter is used for S3 and SES. The AWS account ID (without a
134
+ # hyphen) of the source owner. For example, if the `SourceArn`
135
+ # identifies a bucket, then this is the bucket owner's account ID.
136
+ # You can use this additional condition to ensure the bucket you
137
+ # specify is owned by a specific account (it is possible the bucket
138
+ # owner deleted the bucket and some other AWS account created the
139
+ # bucket). You can also use this condition to specify all sources
140
+ # (that is, you don't specify the `SourceArn`) owned by a specific
141
+ # account.
139
142
  # @return [String]
140
143
  #
141
144
  # @!attribute [rw] event_source_token
@@ -164,6 +167,8 @@ module Aws::Lambda
164
167
  # `arn:aws:lambda:aws-region:acct-id:function:function-name`
165
168
  # @return [String]
166
169
  #
170
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionRequest AWS API Documentation
171
+ #
167
172
  class AddPermissionRequest < Struct.new(
168
173
  :function_name,
169
174
  :statement_id,
@@ -182,6 +187,8 @@ module Aws::Lambda
182
187
  # character in the JSON.
183
188
  # @return [String]
184
189
  #
190
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionResponse AWS API Documentation
191
+ #
185
192
  class AddPermissionResponse < Struct.new(
186
193
  :statement)
187
194
  include Aws::Structure
@@ -209,6 +216,8 @@ module Aws::Lambda
209
216
  # Alias description.
210
217
  # @return [String]
211
218
  #
219
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasConfiguration AWS API Documentation
220
+ #
212
221
  class AliasConfiguration < Struct.new(
213
222
  :alias_arn,
214
223
  :name,
@@ -229,6 +238,9 @@ module Aws::Lambda
229
238
  #
230
239
  # @!attribute [rw] function_name
231
240
  # Name of the Lambda function for which you want to create an alias.
241
+ # Note that the length constraint applies only to the ARN. If you
242
+ # specify only the function name, it is limited to 64 characters in
243
+ # length.
232
244
  # @return [String]
233
245
  #
234
246
  # @!attribute [rw] name
@@ -243,6 +255,8 @@ module Aws::Lambda
243
255
  # Description of the alias.
244
256
  # @return [String]
245
257
  #
258
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAliasRequest AWS API Documentation
259
+ #
246
260
  class CreateAliasRequest < Struct.new(
247
261
  :function_name,
248
262
  :name,
@@ -288,7 +302,7 @@ module Aws::Lambda
288
302
  # the account ID qualifier (for example, `account-id:Thumbnail`).
289
303
  #
290
304
  # 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
305
+ # specify only the function name, it is limited to 64 characters in
292
306
  # length.
293
307
  #
294
308
  #
@@ -331,6 +345,8 @@ module Aws::Lambda
331
345
  # [1]: http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType
332
346
  # @return [Time]
333
347
  #
348
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
349
+ #
334
350
  class CreateEventSourceMappingRequest < Struct.new(
335
351
  :event_source_arn,
336
352
  :function_name,
@@ -346,7 +362,7 @@ module Aws::Lambda
346
362
  #
347
363
  # {
348
364
  # function_name: "FunctionName", # required
349
- # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, java8, python2.7, dotnetcore1.0, nodejs4.3-edge
365
+ # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, java8, python2.7, python3.6, dotnetcore1.0, nodejs4.3-edge
350
366
  # role: "RoleArn", # required
351
367
  # handler: "Handler", # required
352
368
  # code: { # required
@@ -372,25 +388,35 @@ module Aws::Lambda
372
388
  # },
373
389
  # },
374
390
  # kms_key_arn: "KMSKeyArn",
391
+ # tracing_config: {
392
+ # mode: "Active", # accepts Active, PassThrough
393
+ # },
394
+ # tags: {
395
+ # "TagKey" => "TagValue",
396
+ # },
375
397
  # }
376
398
  #
377
399
  # @!attribute [rw] function_name
378
400
  # The name you want to assign to the function you are uploading. The
379
401
  # function names appear in the console and are returned in the
380
402
  # ListFunctions API. Function names are used to specify functions to
381
- # other AWS Lambda API operations, such as Invoke.
403
+ # other AWS Lambda API operations, such as Invoke. Note that the
404
+ # length constraint applies only to the ARN. If you specify only the
405
+ # function name, it is limited to 64 characters in length.
382
406
  # @return [String]
383
407
  #
384
408
  # @!attribute [rw] runtime
385
409
  # The runtime environment for the Lambda function you are uploading.
386
410
  #
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".
411
+ # To use the Python runtime v3.6, set the value to "python3.6". To
412
+ # use the Python runtime v2.7, set the value to "python2.7". To use
413
+ # the Node.js runtime v6.10, set the value to "nodejs6.10". To use
414
+ # the Node.js runtime v4.3, set the value to "nodejs4.3".
389
415
  #
390
416
  # <note markdown="1"> You can no longer create functions using the v0.10.42 runtime
391
417
  # 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.
418
+ # until early 2017, but we recommend you migrate them to either
419
+ # nodejs6.10 or nodejs4.3 runtime version as soon as possible.
394
420
  #
395
421
  # </note>
396
422
  # @return [String]
@@ -456,8 +482,8 @@ module Aws::Lambda
456
482
  # @return [Types::VpcConfig]
457
483
  #
458
484
  # @!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.
485
+ # The parent object that contains the target ARN (Amazon Resource
486
+ # Name) of an Amazon SQS queue or Amazon SNS topic.
461
487
  # @return [Types::DeadLetterConfig]
462
488
  #
463
489
  # @!attribute [rw] environment
@@ -471,6 +497,16 @@ module Aws::Lambda
471
497
  # use a default service key.
472
498
  # @return [String]
473
499
  #
500
+ # @!attribute [rw] tracing_config
501
+ # The parent object that contains your function's tracing settings.
502
+ # @return [Types::TracingConfig]
503
+ #
504
+ # @!attribute [rw] tags
505
+ # The list of tags (key-value pairs) assigned to the new function.
506
+ # @return [Hash<String,String>]
507
+ #
508
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
509
+ #
474
510
  class CreateFunctionRequest < Struct.new(
475
511
  :function_name,
476
512
  :runtime,
@@ -484,11 +520,13 @@ module Aws::Lambda
484
520
  :vpc_config,
485
521
  :dead_letter_config,
486
522
  :environment,
487
- :kms_key_arn)
523
+ :kms_key_arn,
524
+ :tracing_config,
525
+ :tags)
488
526
  include Aws::Structure
489
527
  end
490
528
 
491
- # The parent object that contains the target Amazon Resource Name (ARN)
529
+ # The parent object that contains the target ARN (Amazon Resource Name)
492
530
  # of an Amazon SQS queue or Amazon SNS topic.
493
531
  #
494
532
  # @note When making an API call, you may pass DeadLetterConfig
@@ -503,6 +541,8 @@ module Aws::Lambda
503
541
  # topic you specify as your Dead Letter Queue (DLQ).
504
542
  # @return [String]
505
543
  #
544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeadLetterConfig AWS API Documentation
545
+ #
506
546
  class DeadLetterConfig < Struct.new(
507
547
  :target_arn)
508
548
  include Aws::Structure
@@ -519,12 +559,17 @@ module Aws::Lambda
519
559
  # @!attribute [rw] function_name
520
560
  # The Lambda function name for which the alias is created. Deleting an
521
561
  # alias does not delete the function version to which it is pointing.
562
+ # Note that the length constraint applies only to the ARN. If you
563
+ # specify only the function name, it is limited to 64 characters in
564
+ # length.
522
565
  # @return [String]
523
566
  #
524
567
  # @!attribute [rw] name
525
568
  # Name of the alias to delete.
526
569
  # @return [String]
527
570
  #
571
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAliasRequest AWS API Documentation
572
+ #
528
573
  class DeleteAliasRequest < Struct.new(
529
574
  :function_name,
530
575
  :name)
@@ -542,6 +587,8 @@ module Aws::Lambda
542
587
  # The event source mapping ID.
543
588
  # @return [String]
544
589
  #
590
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMappingRequest AWS API Documentation
591
+ #
545
592
  class DeleteEventSourceMappingRequest < Struct.new(
546
593
  :uuid)
547
594
  include Aws::Structure
@@ -567,7 +614,7 @@ module Aws::Lambda
567
614
  # name with the account ID qualifier (for example,
568
615
  # `account-id:Thumbnail`). Note that the length constraint applies
569
616
  # only to the ARN. If you specify only the function name, it is
570
- # limited to 64 character in length.
617
+ # limited to 64 characters in length.
571
618
  # @return [String]
572
619
  #
573
620
  # @!attribute [rw] qualifier
@@ -588,6 +635,8 @@ module Aws::Lambda
588
635
  # function, including all of its versions and aliases.
589
636
  # @return [String]
590
637
  #
638
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionRequest AWS API Documentation
639
+ #
591
640
  class DeleteFunctionRequest < Struct.new(
592
641
  :function_name,
593
642
  :qualifier)
@@ -611,6 +660,8 @@ module Aws::Lambda
611
660
  # settings. The value you specify cannot contain a ",".
612
661
  # @return [Hash<String,String>]
613
662
  #
663
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Environment AWS API Documentation
664
+ #
614
665
  class Environment < Struct.new(
615
666
  :variables)
616
667
  include Aws::Structure
@@ -627,6 +678,8 @@ module Aws::Lambda
627
678
  # The message returned by the environment error object.
628
679
  # @return [String]
629
680
  #
681
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EnvironmentError AWS API Documentation
682
+ #
630
683
  class EnvironmentError < Struct.new(
631
684
  :error_code,
632
685
  :message)
@@ -647,6 +700,8 @@ module Aws::Lambda
647
700
  # your configuration settings.
648
701
  # @return [Types::EnvironmentError]
649
702
  #
703
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EnvironmentResponse AWS API Documentation
704
+ #
650
705
  class EnvironmentResponse < Struct.new(
651
706
  :variables,
652
707
  :error)
@@ -697,6 +752,8 @@ module Aws::Lambda
697
752
  # either user-requested or an AWS Lambda-initiated state transition.
698
753
  # @return [String]
699
754
  #
755
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
756
+ #
700
757
  class EventSourceMappingConfiguration < Struct.new(
701
758
  :uuid,
702
759
  :batch_size,
@@ -750,6 +807,8 @@ module Aws::Lambda
750
807
  # upload.
751
808
  # @return [String]
752
809
  #
810
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCode AWS API Documentation
811
+ #
753
812
  class FunctionCode < Struct.new(
754
813
  :zip_file,
755
814
  :s3_bucket,
@@ -769,6 +828,8 @@ module Aws::Lambda
769
828
  # that you previously uploaded. The URL is valid for up to 10 minutes.
770
829
  # @return [String]
771
830
  #
831
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCodeLocation AWS API Documentation
832
+ #
772
833
  class FunctionCodeLocation < Struct.new(
773
834
  :repository_type,
774
835
  :location)
@@ -778,7 +839,9 @@ module Aws::Lambda
778
839
  # A complex type that describes function metadata.
779
840
  #
780
841
  # @!attribute [rw] function_name
781
- # The name of the function.
842
+ # The name of the function. Note that the length constraint applies
843
+ # only to the ARN. If you specify only the function name, it is
844
+ # limited to 64 characters in length.
782
845
  # @return [String]
783
846
  #
784
847
  # @!attribute [rw] function_arn
@@ -787,9 +850,6 @@ module Aws::Lambda
787
850
  #
788
851
  # @!attribute [rw] runtime
789
852
  # 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
853
  # @return [String]
794
854
  #
795
855
  # @!attribute [rw] role
@@ -839,8 +899,8 @@ module Aws::Lambda
839
899
  # @return [Types::VpcConfigResponse]
840
900
  #
841
901
  # @!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.
902
+ # The parent object that contains the target ARN (Amazon Resource
903
+ # Name) of an Amazon SQS queue or Amazon SNS topic.
844
904
  # @return [Types::DeadLetterConfig]
845
905
  #
846
906
  # @!attribute [rw] environment
@@ -854,6 +914,12 @@ module Aws::Lambda
854
914
  # the AWS Lambda default service key.
855
915
  # @return [String]
856
916
  #
917
+ # @!attribute [rw] tracing_config
918
+ # The parent object that contains your function's tracing settings.
919
+ # @return [Types::TracingConfigResponse]
920
+ #
921
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
922
+ #
857
923
  class FunctionConfiguration < Struct.new(
858
924
  :function_name,
859
925
  :function_arn,
@@ -870,12 +936,15 @@ module Aws::Lambda
870
936
  :vpc_config,
871
937
  :dead_letter_config,
872
938
  :environment,
873
- :kms_key_arn)
939
+ :kms_key_arn,
940
+ :tracing_config)
874
941
  include Aws::Structure
875
942
  end
876
943
 
877
944
  # @api private
878
945
  #
946
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettingsRequest AWS API Documentation
947
+ #
879
948
  class GetAccountSettingsRequest < Aws::EmptyStructure; end
880
949
 
881
950
  # @!attribute [rw] account_limit
@@ -888,6 +957,8 @@ module Aws::Lambda
888
957
  # current account and region.
889
958
  # @return [Types::AccountUsage]
890
959
  #
960
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettingsResponse AWS API Documentation
961
+ #
891
962
  class GetAccountSettingsResponse < Struct.new(
892
963
  :account_limit,
893
964
  :account_usage)
@@ -905,13 +976,17 @@ module Aws::Lambda
905
976
  # @!attribute [rw] function_name
906
977
  # Function name for which the alias is created. An alias is a
907
978
  # subresource that exists only in the context of an existing Lambda
908
- # function so you must specify the function name.
979
+ # function so you must specify the function name. Note that the length
980
+ # constraint applies only to the ARN. If you specify only the function
981
+ # name, it is limited to 64 characters in length.
909
982
  # @return [String]
910
983
  #
911
984
  # @!attribute [rw] name
912
985
  # Name of the alias for which you want to retrieve information.
913
986
  # @return [String]
914
987
  #
988
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAliasRequest AWS API Documentation
989
+ #
915
990
  class GetAliasRequest < Struct.new(
916
991
  :function_name,
917
992
  :name)
@@ -929,6 +1004,8 @@ module Aws::Lambda
929
1004
  # The AWS Lambda assigned ID of the event source mapping.
930
1005
  # @return [String]
931
1006
  #
1007
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMappingRequest AWS API Documentation
1008
+ #
932
1009
  class GetEventSourceMappingRequest < Struct.new(
933
1010
  :uuid)
934
1011
  include Aws::Structure
@@ -952,7 +1029,7 @@ module Aws::Lambda
952
1029
  # Lambda also allows you to specify a partial ARN (for example,
953
1030
  # `account-id:Thumbnail`). Note that the length constraint applies
954
1031
  # only to the ARN. If you specify only the function name, it is
955
- # limited to 64 character in length.
1032
+ # limited to 64 characters in length.
956
1033
  # @return [String]
957
1034
  #
958
1035
  # @!attribute [rw] qualifier
@@ -968,6 +1045,8 @@ module Aws::Lambda
968
1045
  # version.
969
1046
  # @return [String]
970
1047
  #
1048
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfigurationRequest AWS API Documentation
1049
+ #
971
1050
  class GetFunctionConfigurationRequest < Struct.new(
972
1051
  :function_name,
973
1052
  :qualifier)
@@ -991,7 +1070,7 @@ module Aws::Lambda
991
1070
  # Lambda also allows you to specify a partial ARN (for example,
992
1071
  # `account-id:Thumbnail`). Note that the length constraint applies
993
1072
  # only to the ARN. If you specify only the function name, it is
994
- # limited to 64 character in length.
1073
+ # limited to 64 characters in length.
995
1074
  # @return [String]
996
1075
  #
997
1076
  # @!attribute [rw] qualifier
@@ -1005,6 +1084,8 @@ module Aws::Lambda
1005
1084
  # information about the `$LATEST` version of the Lambda function.
1006
1085
  # @return [String]
1007
1086
  #
1087
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionRequest AWS API Documentation
1088
+ #
1008
1089
  class GetFunctionRequest < Struct.new(
1009
1090
  :function_name,
1010
1091
  :qualifier)
@@ -1022,9 +1103,16 @@ module Aws::Lambda
1022
1103
  # The object for the Lambda function location.
1023
1104
  # @return [Types::FunctionCodeLocation]
1024
1105
  #
1106
+ # @!attribute [rw] tags
1107
+ # Returns the list of tags associated with the function.
1108
+ # @return [Hash<String,String>]
1109
+ #
1110
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionResponse AWS API Documentation
1111
+ #
1025
1112
  class GetFunctionResponse < Struct.new(
1026
1113
  :configuration,
1027
- :code)
1114
+ :code,
1115
+ :tags)
1028
1116
  include Aws::Structure
1029
1117
  end
1030
1118
 
@@ -1048,7 +1136,7 @@ module Aws::Lambda
1048
1136
  # name with the account ID qualifier (for example,
1049
1137
  # `account-id:Thumbnail`). Note that the length constraint applies
1050
1138
  # only to the ARN. If you specify only the function name, it is
1051
- # limited to 64 character in length.
1139
+ # limited to 64 characters in length.
1052
1140
  # @return [String]
1053
1141
  #
1054
1142
  # @!attribute [rw] qualifier
@@ -1059,6 +1147,8 @@ module Aws::Lambda
1059
1147
  # apply to the unqualified function ARN.
1060
1148
  # @return [String]
1061
1149
  #
1150
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicyRequest AWS API Documentation
1151
+ #
1062
1152
  class GetPolicyRequest < Struct.new(
1063
1153
  :function_name,
1064
1154
  :qualifier)
@@ -1071,6 +1161,8 @@ module Aws::Lambda
1071
1161
  # an escape character in the JSON.
1072
1162
  # @return [String]
1073
1163
  #
1164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicyResponse AWS API Documentation
1165
+ #
1074
1166
  class GetPolicyResponse < Struct.new(
1075
1167
  :policy)
1076
1168
  include Aws::Structure
@@ -1097,7 +1189,7 @@ module Aws::Lambda
1097
1189
  # Lambda also allows you to specify a partial ARN (for example,
1098
1190
  # `account-id:Thumbnail`). Note that the length constraint applies
1099
1191
  # only to the ARN. If you specify only the function name, it is
1100
- # limited to 64 character in length.
1192
+ # limited to 64 characters in length.
1101
1193
  # @return [String]
1102
1194
  #
1103
1195
  # @!attribute [rw] invocation_type
@@ -1150,6 +1242,8 @@ module Aws::Lambda
1150
1242
  # function ARN which results in invocation of the `$LATEST` version.
1151
1243
  # @return [String]
1152
1244
  #
1245
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvocationRequest AWS API Documentation
1246
+ #
1153
1247
  class InvocationRequest < Struct.new(
1154
1248
  :function_name,
1155
1249
  :invocation_type,
@@ -1202,6 +1296,8 @@ module Aws::Lambda
1202
1296
  # the message.
1203
1297
  # @return [String]
1204
1298
  #
1299
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvocationResponse AWS API Documentation
1300
+ #
1205
1301
  class InvocationResponse < Struct.new(
1206
1302
  :status_code,
1207
1303
  :function_error,
@@ -1219,13 +1315,17 @@ module Aws::Lambda
1219
1315
  # }
1220
1316
  #
1221
1317
  # @!attribute [rw] function_name
1222
- # The Lambda function name.
1318
+ # The Lambda function name. Note that the length constraint applies
1319
+ # only to the ARN. If you specify only the function name, it is
1320
+ # limited to 64 characters in length.
1223
1321
  # @return [String]
1224
1322
  #
1225
1323
  # @!attribute [rw] invoke_args
1226
1324
  # JSON that you want to provide to your Lambda function as input.
1227
1325
  # @return [IO]
1228
1326
  #
1327
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsyncRequest AWS API Documentation
1328
+ #
1229
1329
  class InvokeAsyncRequest < Struct.new(
1230
1330
  :function_name,
1231
1331
  :invoke_args)
@@ -1239,6 +1339,8 @@ module Aws::Lambda
1239
1339
  # It will be 202 upon success.
1240
1340
  # @return [Integer]
1241
1341
  #
1342
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsyncResponse AWS API Documentation
1343
+ #
1242
1344
  class InvokeAsyncResponse < Struct.new(
1243
1345
  :status)
1244
1346
  include Aws::Structure
@@ -1255,7 +1357,9 @@ module Aws::Lambda
1255
1357
  # }
1256
1358
  #
1257
1359
  # @!attribute [rw] function_name
1258
- # Lambda function name for which the alias is created.
1360
+ # Lambda function name for which the alias is created. Note that the
1361
+ # length constraint applies only to the ARN. If you specify only the
1362
+ # function name, it is limited to 64 characters in length.
1259
1363
  # @return [String]
1260
1364
  #
1261
1365
  # @!attribute [rw] function_version
@@ -1276,6 +1380,8 @@ module Aws::Lambda
1276
1380
  # in response. This parameter value must be greater than 0.
1277
1381
  # @return [Integer]
1278
1382
  #
1383
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliasesRequest AWS API Documentation
1384
+ #
1279
1385
  class ListAliasesRequest < Struct.new(
1280
1386
  :function_name,
1281
1387
  :function_version,
@@ -1292,6 +1398,8 @@ module Aws::Lambda
1292
1398
  # A list of aliases.
1293
1399
  # @return [Array<Types::AliasConfiguration>]
1294
1400
  #
1401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliasesResponse AWS API Documentation
1402
+ #
1295
1403
  class ListAliasesResponse < Struct.new(
1296
1404
  :next_marker,
1297
1405
  :aliases)
@@ -1325,7 +1433,7 @@ module Aws::Lambda
1325
1433
  # name with the account ID qualifier (for example,
1326
1434
  # `account-id:Thumbnail`). Note that the length constraint applies
1327
1435
  # only to the ARN. If you specify only the function name, it is
1328
- # limited to 64 character in length.
1436
+ # limited to 64 characters in length.
1329
1437
  # @return [String]
1330
1438
  #
1331
1439
  # @!attribute [rw] marker
@@ -1339,6 +1447,8 @@ module Aws::Lambda
1339
1447
  # return in response. This value must be greater than 0.
1340
1448
  # @return [Integer]
1341
1449
  #
1450
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappingsRequest AWS API Documentation
1451
+ #
1342
1452
  class ListEventSourceMappingsRequest < Struct.new(
1343
1453
  :event_source_arn,
1344
1454
  :function_name,
@@ -1357,6 +1467,8 @@ module Aws::Lambda
1357
1467
  # An array of `EventSourceMappingConfiguration` objects.
1358
1468
  # @return [Array<Types::EventSourceMappingConfiguration>]
1359
1469
  #
1470
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappingsResponse AWS API Documentation
1471
+ #
1360
1472
  class ListEventSourceMappingsResponse < Struct.new(
1361
1473
  :next_marker,
1362
1474
  :event_source_mappings)
@@ -1383,6 +1495,8 @@ module Aws::Lambda
1383
1495
  # greater than 0.
1384
1496
  # @return [Integer]
1385
1497
  #
1498
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsRequest AWS API Documentation
1499
+ #
1386
1500
  class ListFunctionsRequest < Struct.new(
1387
1501
  :marker,
1388
1502
  :max_items)
@@ -1400,12 +1514,43 @@ module Aws::Lambda
1400
1514
  # A list of Lambda functions.
1401
1515
  # @return [Array<Types::FunctionConfiguration>]
1402
1516
  #
1517
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsResponse AWS API Documentation
1518
+ #
1403
1519
  class ListFunctionsResponse < Struct.new(
1404
1520
  :next_marker,
1405
1521
  :functions)
1406
1522
  include Aws::Structure
1407
1523
  end
1408
1524
 
1525
+ # @note When making an API call, you may pass ListTagsRequest
1526
+ # data as a hash:
1527
+ #
1528
+ # {
1529
+ # resource: "FunctionArn", # required
1530
+ # }
1531
+ #
1532
+ # @!attribute [rw] resource
1533
+ # The ARN (Amazon Resource Name) of the function.
1534
+ # @return [String]
1535
+ #
1536
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTagsRequest AWS API Documentation
1537
+ #
1538
+ class ListTagsRequest < Struct.new(
1539
+ :resource)
1540
+ include Aws::Structure
1541
+ end
1542
+
1543
+ # @!attribute [rw] tags
1544
+ # The list of tags assigned to the function.
1545
+ # @return [Hash<String,String>]
1546
+ #
1547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTagsResponse AWS API Documentation
1548
+ #
1549
+ class ListTagsResponse < Struct.new(
1550
+ :tags)
1551
+ include Aws::Structure
1552
+ end
1553
+
1409
1554
  # @note When making an API call, you may pass ListVersionsByFunctionRequest
1410
1555
  # data as a hash:
1411
1556
  #
@@ -1423,7 +1568,7 @@ module Aws::Lambda
1423
1568
  # Lambda also allows you to specify a partial ARN (for example,
1424
1569
  # `account-id:Thumbnail`). Note that the length constraint applies
1425
1570
  # only to the ARN. If you specify only the function name, it is
1426
- # limited to 64 character in length.
1571
+ # limited to 64 characters in length.
1427
1572
  # @return [String]
1428
1573
  #
1429
1574
  # @!attribute [rw] marker
@@ -1438,6 +1583,8 @@ module Aws::Lambda
1438
1583
  # be greater than 0.
1439
1584
  # @return [Integer]
1440
1585
  #
1586
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunctionRequest AWS API Documentation
1587
+ #
1441
1588
  class ListVersionsByFunctionRequest < Struct.new(
1442
1589
  :function_name,
1443
1590
  :marker,
@@ -1453,6 +1600,8 @@ module Aws::Lambda
1453
1600
  # A list of Lambda function versions.
1454
1601
  # @return [Array<Types::FunctionConfiguration>]
1455
1602
  #
1603
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunctionResponse AWS API Documentation
1604
+ #
1456
1605
  class ListVersionsByFunctionResponse < Struct.new(
1457
1606
  :next_marker,
1458
1607
  :versions)
@@ -1476,7 +1625,7 @@ module Aws::Lambda
1476
1625
  # Lambda also allows you to specify a partial ARN (for example,
1477
1626
  # `account-id:Thumbnail`). Note that the length constraint applies
1478
1627
  # only to the ARN. If you specify only the function name, it is
1479
- # limited to 64 character in length.
1628
+ # limited to 64 characters in length.
1480
1629
  # @return [String]
1481
1630
  #
1482
1631
  # @!attribute [rw] code_sha_256
@@ -1491,6 +1640,8 @@ module Aws::Lambda
1491
1640
  # AWS Lambda copies the description from the $LATEST version.
1492
1641
  # @return [String]
1493
1642
  #
1643
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersionRequest AWS API Documentation
1644
+ #
1494
1645
  class PublishVersionRequest < Struct.new(
1495
1646
  :function_name,
1496
1647
  :code_sha_256,
@@ -1517,7 +1668,7 @@ module Aws::Lambda
1517
1668
  # Lambda also allows you to specify a partial ARN (for example,
1518
1669
  # `account-id:Thumbnail`). Note that the length constraint applies
1519
1670
  # only to the ARN. If you specify only the function name, it is
1520
- # limited to 64 character in length.
1671
+ # limited to 64 characters in length.
1521
1672
  # @return [String]
1522
1673
  #
1523
1674
  # @!attribute [rw] statement_id
@@ -1531,6 +1682,8 @@ module Aws::Lambda
1531
1682
  # associated with the unqualified function ARN.
1532
1683
  # @return [String]
1533
1684
  #
1685
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermissionRequest AWS API Documentation
1686
+ #
1534
1687
  class RemovePermissionRequest < Struct.new(
1535
1688
  :function_name,
1536
1689
  :statement_id,
@@ -1538,6 +1691,96 @@ module Aws::Lambda
1538
1691
  include Aws::Structure
1539
1692
  end
1540
1693
 
1694
+ # @note When making an API call, you may pass TagResourceRequest
1695
+ # data as a hash:
1696
+ #
1697
+ # {
1698
+ # resource: "FunctionArn", # required
1699
+ # tags: { # required
1700
+ # "TagKey" => "TagValue",
1701
+ # },
1702
+ # }
1703
+ #
1704
+ # @!attribute [rw] resource
1705
+ # The ARN (Amazon Resource Name) of the Lambda function.
1706
+ # @return [String]
1707
+ #
1708
+ # @!attribute [rw] tags
1709
+ # The list of tags (key-value pairs) you are assigning to the Lambda
1710
+ # function.
1711
+ # @return [Hash<String,String>]
1712
+ #
1713
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResourceRequest AWS API Documentation
1714
+ #
1715
+ class TagResourceRequest < Struct.new(
1716
+ :resource,
1717
+ :tags)
1718
+ include Aws::Structure
1719
+ end
1720
+
1721
+ # The parent object that contains your function's tracing settings.
1722
+ #
1723
+ # @note When making an API call, you may pass TracingConfig
1724
+ # data as a hash:
1725
+ #
1726
+ # {
1727
+ # mode: "Active", # accepts Active, PassThrough
1728
+ # }
1729
+ #
1730
+ # @!attribute [rw] mode
1731
+ # Can be either PassThrough or Active. If PassThrough, Lambda will
1732
+ # only trace the request from an upstream service if it contains a
1733
+ # tracing header with "sampled=1". If Active, Lambda will respect
1734
+ # any tracing header it receives from an upstream service. If no
1735
+ # tracing header is received, Lambda will call X-Ray for a tracing
1736
+ # decision.
1737
+ # @return [String]
1738
+ #
1739
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TracingConfig AWS API Documentation
1740
+ #
1741
+ class TracingConfig < Struct.new(
1742
+ :mode)
1743
+ include Aws::Structure
1744
+ end
1745
+
1746
+ # Parent object of the tracing information associated with your Lambda
1747
+ # function.
1748
+ #
1749
+ # @!attribute [rw] mode
1750
+ # The tracing mode associated with your Lambda function.
1751
+ # @return [String]
1752
+ #
1753
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TracingConfigResponse AWS API Documentation
1754
+ #
1755
+ class TracingConfigResponse < Struct.new(
1756
+ :mode)
1757
+ include Aws::Structure
1758
+ end
1759
+
1760
+ # @note When making an API call, you may pass UntagResourceRequest
1761
+ # data as a hash:
1762
+ #
1763
+ # {
1764
+ # resource: "FunctionArn", # required
1765
+ # tag_keys: ["TagKey"], # required
1766
+ # }
1767
+ #
1768
+ # @!attribute [rw] resource
1769
+ # The ARN (Amazon Resource Name) of the function.
1770
+ # @return [String]
1771
+ #
1772
+ # @!attribute [rw] tag_keys
1773
+ # The list of tag keys to be deleted from the function.
1774
+ # @return [Array<String>]
1775
+ #
1776
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResourceRequest AWS API Documentation
1777
+ #
1778
+ class UntagResourceRequest < Struct.new(
1779
+ :resource,
1780
+ :tag_keys)
1781
+ include Aws::Structure
1782
+ end
1783
+
1541
1784
  # @note When making an API call, you may pass UpdateAliasRequest
1542
1785
  # data as a hash:
1543
1786
  #
@@ -1549,7 +1792,9 @@ module Aws::Lambda
1549
1792
  # }
1550
1793
  #
1551
1794
  # @!attribute [rw] function_name
1552
- # The function name for which the alias is created.
1795
+ # The function name for which the alias is created. Note that the
1796
+ # length constraint applies only to the ARN. If you specify only the
1797
+ # function name, it is limited to 64 characters in length.
1553
1798
  # @return [String]
1554
1799
  #
1555
1800
  # @!attribute [rw] name
@@ -1565,6 +1810,8 @@ module Aws::Lambda
1565
1810
  # You can change the description of the alias using this parameter.
1566
1811
  # @return [String]
1567
1812
  #
1813
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAliasRequest AWS API Documentation
1814
+ #
1568
1815
  class UpdateAliasRequest < Struct.new(
1569
1816
  :function_name,
1570
1817
  :name,
@@ -1594,7 +1841,9 @@ module Aws::Lambda
1594
1841
  # can specify Amazon Resource Name (ARN) of the function (for example,
1595
1842
  # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS
1596
1843
  # Lambda also allows you to specify a partial ARN (for example,
1597
- # `account-id:Thumbnail`).
1844
+ # `account-id:Thumbnail`). Note that the length constraint applies
1845
+ # only to the ARN. If you specify only the function name, it is
1846
+ # limited to 64 characters in length.
1598
1847
  #
1599
1848
  # If you are using versioning, you can also provide a qualified
1600
1849
  # function ARN (ARN that is qualified with function version or alias
@@ -1620,6 +1869,8 @@ module Aws::Lambda
1620
1869
  # function for a single invocation.
1621
1870
  # @return [Integer]
1622
1871
  #
1872
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest AWS API Documentation
1873
+ #
1623
1874
  class UpdateEventSourceMappingRequest < Struct.new(
1624
1875
  :uuid,
1625
1876
  :function_name,
@@ -1649,7 +1900,7 @@ module Aws::Lambda
1649
1900
  # Lambda also allows you to specify a partial ARN (for example,
1650
1901
  # `account-id:Thumbnail`). Note that the length constraint applies
1651
1902
  # only to the ARN. If you specify only the function name, it is
1652
- # limited to 64 character in length.
1903
+ # limited to 64 characters in length.
1653
1904
  # @return [String]
1654
1905
  #
1655
1906
  # @!attribute [rw] zip_file
@@ -1686,6 +1937,8 @@ module Aws::Lambda
1686
1937
  # the Lambda function and publish a version as an atomic operation.
1687
1938
  # @return [Boolean]
1688
1939
  #
1940
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCodeRequest AWS API Documentation
1941
+ #
1689
1942
  class UpdateFunctionCodeRequest < Struct.new(
1690
1943
  :function_name,
1691
1944
  :zip_file,
@@ -1715,11 +1968,14 @@ module Aws::Lambda
1715
1968
  # "EnvironmentVariableName" => "EnvironmentVariableValue",
1716
1969
  # },
1717
1970
  # },
1718
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, java8, python2.7, dotnetcore1.0, nodejs4.3-edge
1971
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, java8, python2.7, python3.6, dotnetcore1.0, nodejs4.3-edge
1719
1972
  # dead_letter_config: {
1720
1973
  # target_arn: "ResourceArn",
1721
1974
  # },
1722
1975
  # kms_key_arn: "KMSKeyArn",
1976
+ # tracing_config: {
1977
+ # mode: "Active", # accepts Active, PassThrough
1978
+ # },
1723
1979
  # }
1724
1980
  #
1725
1981
  # @!attribute [rw] function_name
@@ -1780,8 +2036,12 @@ module Aws::Lambda
1780
2036
  # @!attribute [rw] runtime
1781
2037
  # The runtime environment for the Lambda function.
1782
2038
  #
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".
2039
+ # To use the Python runtime v3.6, set the value to "python3.6". To
2040
+ # use the Python runtime v2.7, set the value to "python2.7". To use
2041
+ # the Node.js runtime v6.10, set the value to "nodejs6.10". To use
2042
+ # the Node.js runtime v4.3, set the value to "nodejs4.3". To use the
2043
+ # Python runtime v3.6, set the value to "python3.6". To use the
2044
+ # Python runtime v2.7, set the value to "python2.7".
1785
2045
  #
1786
2046
  # <note markdown="1"> You can no longer downgrade to the v0.10.42 runtime version. This
1787
2047
  # version will no longer be supported as of early 2017.
@@ -1790,8 +2050,8 @@ module Aws::Lambda
1790
2050
  # @return [String]
1791
2051
  #
1792
2052
  # @!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.
2053
+ # The parent object that contains the target ARN (Amazon Resource
2054
+ # Name) of an Amazon SQS queue or Amazon SNS topic.
1795
2055
  # @return [Types::DeadLetterConfig]
1796
2056
  #
1797
2057
  # @!attribute [rw] kms_key_arn
@@ -1801,6 +2061,12 @@ module Aws::Lambda
1801
2061
  # parameter.
1802
2062
  # @return [String]
1803
2063
  #
2064
+ # @!attribute [rw] tracing_config
2065
+ # The parent object that contains your function's tracing settings.
2066
+ # @return [Types::TracingConfig]
2067
+ #
2068
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
2069
+ #
1804
2070
  class UpdateFunctionConfigurationRequest < Struct.new(
1805
2071
  :function_name,
1806
2072
  :role,
@@ -1812,7 +2078,8 @@ module Aws::Lambda
1812
2078
  :environment,
1813
2079
  :runtime,
1814
2080
  :dead_letter_config,
1815
- :kms_key_arn)
2081
+ :kms_key_arn,
2082
+ :tracing_config)
1816
2083
  include Aws::Structure
1817
2084
  end
1818
2085
 
@@ -1837,6 +2104,8 @@ module Aws::Lambda
1837
2104
  # A list of one or more security groups IDs in your VPC.
1838
2105
  # @return [Array<String>]
1839
2106
  #
2107
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/VpcConfig AWS API Documentation
2108
+ #
1840
2109
  class VpcConfig < Struct.new(
1841
2110
  :subnet_ids,
1842
2111
  :security_group_ids)
@@ -1857,6 +2126,8 @@ module Aws::Lambda
1857
2126
  # The VPC ID associated with you Lambda function.
1858
2127
  # @return [String]
1859
2128
  #
2129
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/VpcConfigResponse AWS API Documentation
2130
+ #
1860
2131
  class VpcConfigResponse < Struct.new(
1861
2132
  :subnet_ids,
1862
2133
  :security_group_ids,