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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbbcd845f22d9a856c330b966b1efcc7a7f6f2f7
4
- data.tar.gz: d86622229bbf505862f1496e15908d560265c66b
3
+ metadata.gz: 5eccede1449b718484d4f78dc3081b51dc169800
4
+ data.tar.gz: a73baac4c24d64e2de12a165ffdcb266e4211985
5
5
  SHA512:
6
- metadata.gz: af8401e516960148663cd78294d7c9d91371ec2dbf265af7fa3ce684fddca73138c6dbf7c40c45c28bc727208d31e396bfc14d5435ead0fe19a6d1fc4dee2710
7
- data.tar.gz: 3748e1200cfbab16c26fbef703acb0d77f090a51d125b49067b3210ddac11e9e925000fb0352bc0a29b69be620a57dc9265eb7e7d575eb65c1ed88076a0095d7
6
+ metadata.gz: f7fe8d48517d76d8180d814c8a27b70c94392127aa285800f634656649f1c8276374859c271c9e57db8d6ac76327da83d954e03f85ad2cf2c8aa51229a1fb746
7
+ data.tar.gz: 7d370b03611af3b0af58fd5402ba01dd490b3e94fd8d0676e104ee1b5aa563d1f2d2916412dde3b01c25f2e04488d022667b65dbeb66b8bbbc3bd146c467030b
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-lambda/customizations'
42
42
  # @service
43
43
  module Aws::Lambda
44
44
 
45
- GEM_VERSION = '1.0.0.rc2'
45
+ GEM_VERSION = '1.0.0.rc4'
46
46
 
47
47
  end
@@ -18,6 +18,7 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
18
18
  require 'aws-sdk-core/plugins/response_paging.rb'
19
19
  require 'aws-sdk-core/plugins/stub_responses.rb'
20
20
  require 'aws-sdk-core/plugins/idempotency_token.rb'
21
+ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
21
22
  require 'aws-sdk-core/plugins/signature_v4.rb'
22
23
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
23
24
 
@@ -45,6 +46,7 @@ module Aws::Lambda
45
46
  add_plugin(Aws::Plugins::ResponsePaging)
46
47
  add_plugin(Aws::Plugins::StubResponses)
47
48
  add_plugin(Aws::Plugins::IdempotencyToken)
49
+ add_plugin(Aws::Plugins::JsonvalueConverter)
48
50
  add_plugin(Aws::Plugins::SignatureV4)
49
51
  add_plugin(Aws::Plugins::Protocols::RestJson)
50
52
 
@@ -177,7 +179,7 @@ module Aws::Lambda
177
179
  # also allows you to specify partial ARN (for example,
178
180
  # `account-id:Thumbnail`). Note that the length constraint applies only
179
181
  # to the ARN. If you specify only the function name, it is limited to 64
180
- # character in length.
182
+ # characters in length.
181
183
  #
182
184
  # @option params [required, String] :statement_id
183
185
  # A unique statement identifier.
@@ -198,26 +200,24 @@ module Aws::Lambda
198
200
  # invoking your function.
199
201
  #
200
202
  # @option params [String] :source_arn
201
- # This is optional; however, when granting Amazon S3 permission to
202
- # invoke your function, you should specify this field with the Amazon
203
- # Resource Name (ARN) as its value. This ensures that only events
204
- # generated from the specified source can invoke the function.
203
+ # This is optional; however, when granting permission to invoke your
204
+ # function, you should specify this field with the Amazon Resource Name
205
+ # (ARN) as its value. This ensures that only events generated from the
206
+ # specified source can invoke the function.
205
207
  #
206
- # If you add a permission for the Amazon S3 principal without providing
207
- # the source ARN, any AWS account that creates a mapping to your
208
- # function ARN can send events to invoke your Lambda function from
209
- # Amazon S3.
208
+ # If you add a permission without providing the source ARN, any AWS
209
+ # account that creates a mapping to your function ARN can send events to
210
+ # invoke your Lambda function.
210
211
  #
211
212
  # @option params [String] :source_account
212
- # This parameter is used for S3, SES, CloudWatch Logs and CloudWatch
213
- # Rules only. The AWS account ID (without a hyphen) of the source owner.
214
- # For example, if the `SourceArn` identifies a bucket, then this is the
215
- # bucket owner's account ID. You can use this additional condition to
216
- # ensure the bucket you specify is owned by a specific account (it is
217
- # possible the bucket owner deleted the bucket and some other AWS
218
- # account created the bucket). You can also use this condition to
219
- # specify all sources (that is, you don't specify the `SourceArn`)
220
- # owned by a specific account.
213
+ # This parameter is used for S3 and SES. The AWS account ID (without a
214
+ # hyphen) of the source owner. For example, if the `SourceArn`
215
+ # identifies a bucket, then this is the bucket owner's account ID. You
216
+ # can use this additional condition to ensure the bucket you specify is
217
+ # owned by a specific account (it is possible the bucket owner deleted
218
+ # the bucket and some other AWS account created the bucket). You can
219
+ # also use this condition to specify all sources (that is, you don't
220
+ # specify the `SourceArn`) owned by a specific account.
221
221
  #
222
222
  # @option params [String] :event_source_token
223
223
  # A unique token that must be supplied by the principal invoking the
@@ -263,6 +263,8 @@ module Aws::Lambda
263
263
  #
264
264
  # resp.statement #=> String
265
265
  #
266
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermission AWS API Documentation
267
+ #
266
268
  # @overload add_permission(params = {})
267
269
  # @param [Hash] params ({})
268
270
  def add_permission(params = {}, options = {})
@@ -282,6 +284,9 @@ module Aws::Lambda
282
284
  #
283
285
  # @option params [required, String] :function_name
284
286
  # Name of the Lambda function for which you want to create an alias.
287
+ # Note that the length constraint applies only to the ARN. If you
288
+ # specify only the function name, it is limited to 64 characters in
289
+ # length.
285
290
  #
286
291
  # @option params [required, String] :name
287
292
  # Name for the alias you are creating.
@@ -315,6 +320,8 @@ module Aws::Lambda
315
320
  # resp.function_version #=> String
316
321
  # resp.description #=> String
317
322
  #
323
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias AWS API Documentation
324
+ #
318
325
  # @overload create_alias(params = {})
319
326
  # @param [Hash] params ({})
320
327
  def create_alias(params = {}, options = {})
@@ -378,7 +385,7 @@ module Aws::Lambda
378
385
  # account ID qualifier (for example, `account-id:Thumbnail`).
379
386
  #
380
387
  # Note that the length constraint applies only to the ARN. If you
381
- # specify only the function name, it is limited to 64 character in
388
+ # specify only the function name, it is limited to 64 characters in
382
389
  # length.
383
390
  #
384
391
  #
@@ -449,6 +456,8 @@ module Aws::Lambda
449
456
  # resp.state #=> String
450
457
  # resp.state_transition_reason #=> String
451
458
  #
459
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
460
+ #
452
461
  # @overload create_event_source_mapping(params = {})
453
462
  # @param [Hash] params ({})
454
463
  def create_event_source_mapping(params = {}, options = {})
@@ -478,18 +487,22 @@ module Aws::Lambda
478
487
  # The name you want to assign to the function you are uploading. The
479
488
  # function names appear in the console and are returned in the
480
489
  # ListFunctions API. Function names are used to specify functions to
481
- # other AWS Lambda API operations, such as Invoke.
490
+ # other AWS Lambda API operations, such as Invoke. Note that the length
491
+ # constraint applies only to the ARN. If you specify only the function
492
+ # name, it is limited to 64 characters in length.
482
493
  #
483
494
  # @option params [required, String] :runtime
484
495
  # The runtime environment for the Lambda function you are uploading.
485
496
  #
486
- # To use the Node.js runtime v4.3, set the value to "nodejs4.3". To
487
- # use earlier runtime (v0.10.42), set the value to "nodejs".
497
+ # To use the Python runtime v3.6, set the value to "python3.6". To use
498
+ # the Python runtime v2.7, set the value to "python2.7". To use the
499
+ # Node.js runtime v6.10, set the value to "nodejs6.10". To use the
500
+ # Node.js runtime v4.3, set the value to "nodejs4.3".
488
501
  #
489
502
  # <note markdown="1"> You can no longer create functions using the v0.10.42 runtime version
490
503
  # as of November, 2016. Existing functions will be supported until early
491
- # 2017, but we recommend you migrate them to nodejs4.3 runtime version
492
- # as soon as possible.
504
+ # 2017, but we recommend you migrate them to either nodejs6.10 or
505
+ # nodejs4.3 runtime version as soon as possible.
493
506
  #
494
507
  # </note>
495
508
  #
@@ -546,7 +559,7 @@ module Aws::Lambda
546
559
  # security group and one subnet ID.
547
560
  #
548
561
  # @option params [Types::DeadLetterConfig] :dead_letter_config
549
- # The parent object that contains the target Amazon Resource Name (ARN)
562
+ # The parent object that contains the target ARN (Amazon Resource Name)
550
563
  # of an Amazon SQS queue or Amazon SNS topic.
551
564
  #
552
565
  # @option params [Types::Environment] :environment
@@ -558,6 +571,12 @@ module Aws::Lambda
558
571
  # function's environment variables. If not provided, AWS Lambda will
559
572
  # use a default service key.
560
573
  #
574
+ # @option params [Types::TracingConfig] :tracing_config
575
+ # The parent object that contains your function's tracing settings.
576
+ #
577
+ # @option params [Hash<String,String>] :tags
578
+ # The list of tags (key-value pairs) assigned to the new function.
579
+ #
561
580
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
562
581
  #
563
582
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -576,12 +595,13 @@ module Aws::Lambda
576
595
  # * {Types::FunctionConfiguration#dead_letter_config #dead_letter_config} => Types::DeadLetterConfig
577
596
  # * {Types::FunctionConfiguration#environment #environment} => Types::EnvironmentResponse
578
597
  # * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
598
+ # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
579
599
  #
580
600
  # @example Request syntax with placeholder values
581
601
  #
582
602
  # resp = client.create_function({
583
603
  # function_name: "FunctionName", # required
584
- # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, java8, python2.7, dotnetcore1.0, nodejs4.3-edge
604
+ # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, java8, python2.7, python3.6, dotnetcore1.0, nodejs4.3-edge
585
605
  # role: "RoleArn", # required
586
606
  # handler: "Handler", # required
587
607
  # code: { # required
@@ -607,13 +627,19 @@ module Aws::Lambda
607
627
  # },
608
628
  # },
609
629
  # kms_key_arn: "KMSKeyArn",
630
+ # tracing_config: {
631
+ # mode: "Active", # accepts Active, PassThrough
632
+ # },
633
+ # tags: {
634
+ # "TagKey" => "TagValue",
635
+ # },
610
636
  # })
611
637
  #
612
638
  # @example Response structure
613
639
  #
614
640
  # resp.function_name #=> String
615
641
  # resp.function_arn #=> String
616
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "java8", "python2.7", "dotnetcore1.0", "nodejs4.3-edge"
642
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "nodejs4.3-edge"
617
643
  # resp.role #=> String
618
644
  # resp.handler #=> String
619
645
  # resp.code_size #=> Integer
@@ -634,6 +660,9 @@ module Aws::Lambda
634
660
  # resp.environment.error.error_code #=> String
635
661
  # resp.environment.error.message #=> String
636
662
  # resp.kms_key_arn #=> String
663
+ # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
664
+ #
665
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
637
666
  #
638
667
  # @overload create_function(params = {})
639
668
  # @param [Hash] params ({})
@@ -654,6 +683,9 @@ module Aws::Lambda
654
683
  # @option params [required, String] :function_name
655
684
  # The Lambda function name for which the alias is created. Deleting an
656
685
  # alias does not delete the function version to which it is pointing.
686
+ # Note that the length constraint applies only to the ARN. If you
687
+ # specify only the function name, it is limited to 64 characters in
688
+ # length.
657
689
  #
658
690
  # @option params [required, String] :name
659
691
  # Name of the alias to delete.
@@ -667,6 +699,8 @@ module Aws::Lambda
667
699
  # name: "Alias", # required
668
700
  # })
669
701
  #
702
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias AWS API Documentation
703
+ #
670
704
  # @overload delete_alias(params = {})
671
705
  # @param [Hash] params ({})
672
706
  def delete_alias(params = {}, options = {})
@@ -711,6 +745,8 @@ module Aws::Lambda
711
745
  # resp.state #=> String
712
746
  # resp.state_transition_reason #=> String
713
747
  #
748
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
749
+ #
714
750
  # @overload delete_event_source_mapping(params = {})
715
751
  # @param [Hash] params ({})
716
752
  def delete_event_source_mapping(params = {}, options = {})
@@ -749,7 +785,7 @@ module Aws::Lambda
749
785
  # Lambda also allows you to specify only the function name with the
750
786
  # account ID qualifier (for example, `account-id:Thumbnail`). Note that
751
787
  # the length constraint applies only to the ARN. If you specify only the
752
- # function name, it is limited to 64 character in length.
788
+ # function name, it is limited to 64 characters in length.
753
789
  #
754
790
  # @option params [String] :qualifier
755
791
  # Using this optional parameter you can specify a function version (but
@@ -776,6 +812,8 @@ module Aws::Lambda
776
812
  # qualifier: "Qualifier",
777
813
  # })
778
814
  #
815
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunction AWS API Documentation
816
+ #
779
817
  # @overload delete_function(params = {})
780
818
  # @param [Hash] params ({})
781
819
  def delete_function(params = {}, options = {})
@@ -808,6 +846,8 @@ module Aws::Lambda
808
846
  # resp.account_usage.total_code_size #=> Integer
809
847
  # resp.account_usage.function_count #=> Integer
810
848
  #
849
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettings AWS API Documentation
850
+ #
811
851
  # @overload get_account_settings(params = {})
812
852
  # @param [Hash] params ({})
813
853
  def get_account_settings(params = {}, options = {})
@@ -828,7 +868,9 @@ module Aws::Lambda
828
868
  # @option params [required, String] :function_name
829
869
  # Function name for which the alias is created. An alias is a
830
870
  # subresource that exists only in the context of an existing Lambda
831
- # function so you must specify the function name.
871
+ # function so you must specify the function name. Note that the length
872
+ # constraint applies only to the ARN. If you specify only the function
873
+ # name, it is limited to 64 characters in length.
832
874
  #
833
875
  # @option params [required, String] :name
834
876
  # Name of the alias for which you want to retrieve information.
@@ -854,6 +896,8 @@ module Aws::Lambda
854
896
  # resp.function_version #=> String
855
897
  # resp.description #=> String
856
898
  #
899
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias AWS API Documentation
900
+ #
857
901
  # @overload get_alias(params = {})
858
902
  # @param [Hash] params ({})
859
903
  def get_alias(params = {}, options = {})
@@ -898,6 +942,8 @@ module Aws::Lambda
898
942
  # resp.state #=> String
899
943
  # resp.state_transition_reason #=> String
900
944
  #
945
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
946
+ #
901
947
  # @overload get_event_source_mapping(params = {})
902
948
  # @param [Hash] params ({})
903
949
  def get_event_source_mapping(params = {}, options = {})
@@ -934,7 +980,7 @@ module Aws::Lambda
934
980
  # also allows you to specify a partial ARN (for example,
935
981
  # `account-id:Thumbnail`). Note that the length constraint applies only
936
982
  # to the ARN. If you specify only the function name, it is limited to 64
937
- # character in length.
983
+ # characters in length.
938
984
  #
939
985
  # @option params [String] :qualifier
940
986
  # Using this optional parameter to specify a function version or an
@@ -950,6 +996,7 @@ module Aws::Lambda
950
996
  #
951
997
  # * {Types::GetFunctionResponse#configuration #configuration} => Types::FunctionConfiguration
952
998
  # * {Types::GetFunctionResponse#code #code} => Types::FunctionCodeLocation
999
+ # * {Types::GetFunctionResponse#tags #tags} => Hash&lt;String,String&gt;
953
1000
  #
954
1001
  # @example Request syntax with placeholder values
955
1002
  #
@@ -962,7 +1009,7 @@ module Aws::Lambda
962
1009
  #
963
1010
  # resp.configuration.function_name #=> String
964
1011
  # resp.configuration.function_arn #=> String
965
- # resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "java8", "python2.7", "dotnetcore1.0", "nodejs4.3-edge"
1012
+ # resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "nodejs4.3-edge"
966
1013
  # resp.configuration.role #=> String
967
1014
  # resp.configuration.handler #=> String
968
1015
  # resp.configuration.code_size #=> Integer
@@ -983,8 +1030,13 @@ module Aws::Lambda
983
1030
  # resp.configuration.environment.error.error_code #=> String
984
1031
  # resp.configuration.environment.error.message #=> String
985
1032
  # resp.configuration.kms_key_arn #=> String
1033
+ # resp.configuration.tracing_config.mode #=> String, one of "Active", "PassThrough"
986
1034
  # resp.code.repository_type #=> String
987
1035
  # resp.code.location #=> String
1036
+ # resp.tags #=> Hash
1037
+ # resp.tags["TagKey"] #=> String
1038
+ #
1039
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction AWS API Documentation
988
1040
  #
989
1041
  # @overload get_function(params = {})
990
1042
  # @param [Hash] params ({})
@@ -1022,7 +1074,7 @@ module Aws::Lambda
1022
1074
  # also allows you to specify a partial ARN (for example,
1023
1075
  # `account-id:Thumbnail`). Note that the length constraint applies only
1024
1076
  # to the ARN. If you specify only the function name, it is limited to 64
1025
- # character in length.
1077
+ # characters in length.
1026
1078
  #
1027
1079
  # @option params [String] :qualifier
1028
1080
  # Using this optional parameter you can specify a function version or an
@@ -1054,6 +1106,7 @@ module Aws::Lambda
1054
1106
  # * {Types::FunctionConfiguration#dead_letter_config #dead_letter_config} => Types::DeadLetterConfig
1055
1107
  # * {Types::FunctionConfiguration#environment #environment} => Types::EnvironmentResponse
1056
1108
  # * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
1109
+ # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
1057
1110
  #
1058
1111
  # @example Request syntax with placeholder values
1059
1112
  #
@@ -1066,7 +1119,7 @@ module Aws::Lambda
1066
1119
  #
1067
1120
  # resp.function_name #=> String
1068
1121
  # resp.function_arn #=> String
1069
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "java8", "python2.7", "dotnetcore1.0", "nodejs4.3-edge"
1122
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "nodejs4.3-edge"
1070
1123
  # resp.role #=> String
1071
1124
  # resp.handler #=> String
1072
1125
  # resp.code_size #=> Integer
@@ -1087,6 +1140,9 @@ module Aws::Lambda
1087
1140
  # resp.environment.error.error_code #=> String
1088
1141
  # resp.environment.error.message #=> String
1089
1142
  # resp.kms_key_arn #=> String
1143
+ # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
1144
+ #
1145
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration AWS API Documentation
1090
1146
  #
1091
1147
  # @overload get_function_configuration(params = {})
1092
1148
  # @param [Hash] params ({})
@@ -1104,8 +1160,6 @@ module Aws::Lambda
1104
1160
  # parameter. For more information about versioning, see [AWS Lambda
1105
1161
  # Function Versioning and Aliases][1].
1106
1162
  #
1107
- # For information about adding permissions, see AddPermission.
1108
- #
1109
1163
  # You need permission for the `lambda:GetPolicy action.`
1110
1164
  #
1111
1165
  #
@@ -1123,7 +1177,7 @@ module Aws::Lambda
1123
1177
  # Lambda also allows you to specify only the function name with the
1124
1178
  # account ID qualifier (for example, `account-id:Thumbnail`). Note that
1125
1179
  # the length constraint applies only to the ARN. If you specify only the
1126
- # function name, it is limited to 64 character in length.
1180
+ # function name, it is limited to 64 characters in length.
1127
1181
  #
1128
1182
  # @option params [String] :qualifier
1129
1183
  # You can specify this optional query parameter to specify a function
@@ -1147,6 +1201,8 @@ module Aws::Lambda
1147
1201
  #
1148
1202
  # resp.policy #=> String
1149
1203
  #
1204
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy AWS API Documentation
1205
+ #
1150
1206
  # @overload get_policy(params = {})
1151
1207
  # @param [Hash] params ({})
1152
1208
  def get_policy(params = {}, options = {})
@@ -1183,7 +1239,7 @@ module Aws::Lambda
1183
1239
  # also allows you to specify a partial ARN (for example,
1184
1240
  # `account-id:Thumbnail`). Note that the length constraint applies only
1185
1241
  # to the ARN. If you specify only the function name, it is limited to 64
1186
- # character in length.
1242
+ # characters in length.
1187
1243
  #
1188
1244
  # @option params [String] :invocation_type
1189
1245
  # By default, the `Invoke` API assumes `RequestResponse` invocation
@@ -1254,6 +1310,8 @@ module Aws::Lambda
1254
1310
  # resp.log_result #=> String
1255
1311
  # resp.payload #=> String
1256
1312
  #
1313
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke AWS API Documentation
1314
+ #
1257
1315
  # @overload invoke(params = {})
1258
1316
  # @param [Hash] params ({})
1259
1317
  def invoke(params = {}, options = {})
@@ -1273,7 +1331,9 @@ module Aws::Lambda
1273
1331
  # action.
1274
1332
  #
1275
1333
  # @option params [required, String] :function_name
1276
- # The Lambda function name.
1334
+ # The Lambda function name. Note that the length constraint applies only
1335
+ # to the ARN. If you specify only the function name, it is limited to 64
1336
+ # characters in length.
1277
1337
  #
1278
1338
  # @option params [required, String, IO] :invoke_args
1279
1339
  # JSON that you want to provide to your Lambda function as input.
@@ -1293,6 +1353,8 @@ module Aws::Lambda
1293
1353
  #
1294
1354
  # resp.status #=> Integer
1295
1355
  #
1356
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsync AWS API Documentation
1357
+ #
1296
1358
  # @overload invoke_async(params = {})
1297
1359
  # @param [Hash] params ({})
1298
1360
  def invoke_async(params = {}, options = {})
@@ -1312,7 +1374,9 @@ module Aws::Lambda
1312
1374
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html
1313
1375
  #
1314
1376
  # @option params [required, String] :function_name
1315
- # Lambda function name for which the alias is created.
1377
+ # Lambda function name for which the alias is created. Note that the
1378
+ # length constraint applies only to the ARN. If you specify only the
1379
+ # function name, it is limited to 64 characters in length.
1316
1380
  #
1317
1381
  # @option params [String] :function_version
1318
1382
  # If you specify this optional parameter, the API returns only the
@@ -1352,6 +1416,8 @@ module Aws::Lambda
1352
1416
  # resp.aliases[0].function_version #=> String
1353
1417
  # resp.aliases[0].description #=> String
1354
1418
  #
1419
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases AWS API Documentation
1420
+ #
1355
1421
  # @overload list_aliases(params = {})
1356
1422
  # @param [Hash] params ({})
1357
1423
  def list_aliases(params = {}, options = {})
@@ -1393,7 +1459,7 @@ module Aws::Lambda
1393
1459
  # Lambda also allows you to specify only the function name with the
1394
1460
  # account ID qualifier (for example, `account-id:Thumbnail`). Note that
1395
1461
  # the length constraint applies only to the ARN. If you specify only the
1396
- # function name, it is limited to 64 character in length.
1462
+ # function name, it is limited to 64 characters in length.
1397
1463
  #
1398
1464
  # @option params [String] :marker
1399
1465
  # Optional string. An opaque pagination token returned from a previous
@@ -1431,6 +1497,8 @@ module Aws::Lambda
1431
1497
  # resp.event_source_mappings[0].state #=> String
1432
1498
  # resp.event_source_mappings[0].state_transition_reason #=> String
1433
1499
  #
1500
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
1501
+ #
1434
1502
  # @overload list_event_source_mappings(params = {})
1435
1503
  # @param [Hash] params ({})
1436
1504
  def list_event_source_mappings(params = {}, options = {})
@@ -1481,7 +1549,7 @@ module Aws::Lambda
1481
1549
  # resp.functions #=> Array
1482
1550
  # resp.functions[0].function_name #=> String
1483
1551
  # resp.functions[0].function_arn #=> String
1484
- # resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "java8", "python2.7", "dotnetcore1.0", "nodejs4.3-edge"
1552
+ # resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "nodejs4.3-edge"
1485
1553
  # resp.functions[0].role #=> String
1486
1554
  # resp.functions[0].handler #=> String
1487
1555
  # resp.functions[0].code_size #=> Integer
@@ -1502,6 +1570,9 @@ module Aws::Lambda
1502
1570
  # resp.functions[0].environment.error.error_code #=> String
1503
1571
  # resp.functions[0].environment.error.message #=> String
1504
1572
  # resp.functions[0].kms_key_arn #=> String
1573
+ # resp.functions[0].tracing_config.mode #=> String, one of "Active", "PassThrough"
1574
+ #
1575
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
1505
1576
  #
1506
1577
  # @overload list_functions(params = {})
1507
1578
  # @param [Hash] params ({})
@@ -1510,6 +1581,36 @@ module Aws::Lambda
1510
1581
  req.send_request(options)
1511
1582
  end
1512
1583
 
1584
+ # Returns a list of tags assigned to a function when supplied the
1585
+ # function ARN (Amazon Resource Name).
1586
+ #
1587
+ # @option params [required, String] :resource
1588
+ # The ARN (Amazon Resource Name) of the function.
1589
+ #
1590
+ # @return [Types::ListTagsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1591
+ #
1592
+ # * {Types::ListTagsResponse#tags #tags} => Hash&lt;String,String&gt;
1593
+ #
1594
+ # @example Request syntax with placeholder values
1595
+ #
1596
+ # resp = client.list_tags({
1597
+ # resource: "FunctionArn", # required
1598
+ # })
1599
+ #
1600
+ # @example Response structure
1601
+ #
1602
+ # resp.tags #=> Hash
1603
+ # resp.tags["TagKey"] #=> String
1604
+ #
1605
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags AWS API Documentation
1606
+ #
1607
+ # @overload list_tags(params = {})
1608
+ # @param [Hash] params ({})
1609
+ def list_tags(params = {}, options = {})
1610
+ req = build_request(:list_tags, params)
1611
+ req.send_request(options)
1612
+ end
1613
+
1513
1614
  # List all versions of a function. For information about the versioning
1514
1615
  # feature, see [AWS Lambda Function Versioning and Aliases][1].
1515
1616
  #
@@ -1525,7 +1626,7 @@ module Aws::Lambda
1525
1626
  # also allows you to specify a partial ARN (for example,
1526
1627
  # `account-id:Thumbnail`). Note that the length constraint applies only
1527
1628
  # to the ARN. If you specify only the function name, it is limited to 64
1528
- # character in length.
1629
+ # characters in length.
1529
1630
  #
1530
1631
  # @option params [String] :marker
1531
1632
  # Optional string. An opaque pagination token returned from a previous
@@ -1556,7 +1657,7 @@ module Aws::Lambda
1556
1657
  # resp.versions #=> Array
1557
1658
  # resp.versions[0].function_name #=> String
1558
1659
  # resp.versions[0].function_arn #=> String
1559
- # resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "java8", "python2.7", "dotnetcore1.0", "nodejs4.3-edge"
1660
+ # resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "nodejs4.3-edge"
1560
1661
  # resp.versions[0].role #=> String
1561
1662
  # resp.versions[0].handler #=> String
1562
1663
  # resp.versions[0].code_size #=> Integer
@@ -1577,6 +1678,9 @@ module Aws::Lambda
1577
1678
  # resp.versions[0].environment.error.error_code #=> String
1578
1679
  # resp.versions[0].environment.error.message #=> String
1579
1680
  # resp.versions[0].kms_key_arn #=> String
1681
+ # resp.versions[0].tracing_config.mode #=> String, one of "Active", "PassThrough"
1682
+ #
1683
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
1580
1684
  #
1581
1685
  # @overload list_versions_by_function(params = {})
1582
1686
  # @param [Hash] params ({})
@@ -1604,7 +1708,7 @@ module Aws::Lambda
1604
1708
  # also allows you to specify a partial ARN (for example,
1605
1709
  # `account-id:Thumbnail`). Note that the length constraint applies only
1606
1710
  # to the ARN. If you specify only the function name, it is limited to 64
1607
- # character in length.
1711
+ # characters in length.
1608
1712
  #
1609
1713
  # @option params [String] :code_sha_256
1610
1714
  # The SHA256 hash of the deployment package you want to publish. This
@@ -1634,6 +1738,7 @@ module Aws::Lambda
1634
1738
  # * {Types::FunctionConfiguration#dead_letter_config #dead_letter_config} => Types::DeadLetterConfig
1635
1739
  # * {Types::FunctionConfiguration#environment #environment} => Types::EnvironmentResponse
1636
1740
  # * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
1741
+ # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
1637
1742
  #
1638
1743
  # @example Request syntax with placeholder values
1639
1744
  #
@@ -1647,7 +1752,7 @@ module Aws::Lambda
1647
1752
  #
1648
1753
  # resp.function_name #=> String
1649
1754
  # resp.function_arn #=> String
1650
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "java8", "python2.7", "dotnetcore1.0", "nodejs4.3-edge"
1755
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "nodejs4.3-edge"
1651
1756
  # resp.role #=> String
1652
1757
  # resp.handler #=> String
1653
1758
  # resp.code_size #=> Integer
@@ -1668,6 +1773,9 @@ module Aws::Lambda
1668
1773
  # resp.environment.error.error_code #=> String
1669
1774
  # resp.environment.error.message #=> String
1670
1775
  # resp.kms_key_arn #=> String
1776
+ # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
1777
+ #
1778
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
1671
1779
  #
1672
1780
  # @overload publish_version(params = {})
1673
1781
  # @param [Hash] params ({})
@@ -1705,7 +1813,7 @@ module Aws::Lambda
1705
1813
  # also allows you to specify a partial ARN (for example,
1706
1814
  # `account-id:Thumbnail`). Note that the length constraint applies only
1707
1815
  # to the ARN. If you specify only the function name, it is limited to 64
1708
- # character in length.
1816
+ # characters in length.
1709
1817
  #
1710
1818
  # @option params [required, String] :statement_id
1711
1819
  # Statement ID of the permission to remove.
@@ -1726,6 +1834,8 @@ module Aws::Lambda
1726
1834
  # qualifier: "Qualifier",
1727
1835
  # })
1728
1836
  #
1837
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission AWS API Documentation
1838
+ #
1729
1839
  # @overload remove_permission(params = {})
1730
1840
  # @param [Hash] params ({})
1731
1841
  def remove_permission(params = {}, options = {})
@@ -1733,6 +1843,65 @@ module Aws::Lambda
1733
1843
  req.send_request(options)
1734
1844
  end
1735
1845
 
1846
+ # Creates a list of tags (key-value pairs) on the Lambda function.
1847
+ # Requires the Lambda function ARN (Amazon Resource Name). If a key is
1848
+ # specified without a value, Lambda creates a tag with the specified key
1849
+ # and a value of null.
1850
+ #
1851
+ # @option params [required, String] :resource
1852
+ # The ARN (Amazon Resource Name) of the Lambda function.
1853
+ #
1854
+ # @option params [required, Hash<String,String>] :tags
1855
+ # The list of tags (key-value pairs) you are assigning to the Lambda
1856
+ # function.
1857
+ #
1858
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1859
+ #
1860
+ # @example Request syntax with placeholder values
1861
+ #
1862
+ # resp = client.tag_resource({
1863
+ # resource: "FunctionArn", # required
1864
+ # tags: { # required
1865
+ # "TagKey" => "TagValue",
1866
+ # },
1867
+ # })
1868
+ #
1869
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource AWS API Documentation
1870
+ #
1871
+ # @overload tag_resource(params = {})
1872
+ # @param [Hash] params ({})
1873
+ def tag_resource(params = {}, options = {})
1874
+ req = build_request(:tag_resource, params)
1875
+ req.send_request(options)
1876
+ end
1877
+
1878
+ # Removes tags from a Lambda function. Requires the function ARN (Amazon
1879
+ # Resource Name).
1880
+ #
1881
+ # @option params [required, String] :resource
1882
+ # The ARN (Amazon Resource Name) of the function.
1883
+ #
1884
+ # @option params [required, Array<String>] :tag_keys
1885
+ # The list of tag keys to be deleted from the function.
1886
+ #
1887
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1888
+ #
1889
+ # @example Request syntax with placeholder values
1890
+ #
1891
+ # resp = client.untag_resource({
1892
+ # resource: "FunctionArn", # required
1893
+ # tag_keys: ["TagKey"], # required
1894
+ # })
1895
+ #
1896
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource AWS API Documentation
1897
+ #
1898
+ # @overload untag_resource(params = {})
1899
+ # @param [Hash] params ({})
1900
+ def untag_resource(params = {}, options = {})
1901
+ req = build_request(:untag_resource, params)
1902
+ req.send_request(options)
1903
+ end
1904
+
1736
1905
  # Using this API you can update the function version to which the alias
1737
1906
  # points and the alias description. For more information, see
1738
1907
  # [Introduction to AWS Lambda Aliases][1].
@@ -1744,7 +1913,9 @@ module Aws::Lambda
1744
1913
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html
1745
1914
  #
1746
1915
  # @option params [required, String] :function_name
1747
- # The function name for which the alias is created.
1916
+ # The function name for which the alias is created. Note that the length
1917
+ # constraint applies only to the ARN. If you specify only the function
1918
+ # name, it is limited to 64 characters in length.
1748
1919
  #
1749
1920
  # @option params [required, String] :name
1750
1921
  # The alias name.
@@ -1779,6 +1950,8 @@ module Aws::Lambda
1779
1950
  # resp.function_version #=> String
1780
1951
  # resp.description #=> String
1781
1952
  #
1953
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias AWS API Documentation
1954
+ #
1782
1955
  # @overload update_alias(params = {})
1783
1956
  # @param [Hash] params ({})
1784
1957
  def update_alias(params = {}, options = {})
@@ -1820,7 +1993,9 @@ module Aws::Lambda
1820
1993
  # specify Amazon Resource Name (ARN) of the function (for example,
1821
1994
  # `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`). AWS Lambda
1822
1995
  # also allows you to specify a partial ARN (for example,
1823
- # `account-id:Thumbnail`).
1996
+ # `account-id:Thumbnail`). Note that the length constraint applies only
1997
+ # to the ARN. If you specify only the function name, it is limited to 64
1998
+ # characters in length.
1824
1999
  #
1825
2000
  # If you are using versioning, you can also provide a qualified function
1826
2001
  # ARN (ARN that is qualified with function version or alias name as
@@ -1874,6 +2049,8 @@ module Aws::Lambda
1874
2049
  # resp.state #=> String
1875
2050
  # resp.state_transition_reason #=> String
1876
2051
  #
2052
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
2053
+ #
1877
2054
  # @overload update_event_source_mapping(params = {})
1878
2055
  # @param [Hash] params ({})
1879
2056
  def update_event_source_mapping(params = {}, options = {})
@@ -1906,7 +2083,7 @@ module Aws::Lambda
1906
2083
  # also allows you to specify a partial ARN (for example,
1907
2084
  # `account-id:Thumbnail`). Note that the length constraint applies only
1908
2085
  # to the ARN. If you specify only the function name, it is limited to 64
1909
- # character in length.
2086
+ # characters in length.
1910
2087
  #
1911
2088
  # @option params [String, IO] :zip_file
1912
2089
  # The contents of your zip file containing your deployment package. If
@@ -1955,6 +2132,7 @@ module Aws::Lambda
1955
2132
  # * {Types::FunctionConfiguration#dead_letter_config #dead_letter_config} => Types::DeadLetterConfig
1956
2133
  # * {Types::FunctionConfiguration#environment #environment} => Types::EnvironmentResponse
1957
2134
  # * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
2135
+ # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
1958
2136
  #
1959
2137
  # @example Request syntax with placeholder values
1960
2138
  #
@@ -1971,7 +2149,7 @@ module Aws::Lambda
1971
2149
  #
1972
2150
  # resp.function_name #=> String
1973
2151
  # resp.function_arn #=> String
1974
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "java8", "python2.7", "dotnetcore1.0", "nodejs4.3-edge"
2152
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "nodejs4.3-edge"
1975
2153
  # resp.role #=> String
1976
2154
  # resp.handler #=> String
1977
2155
  # resp.code_size #=> Integer
@@ -1992,6 +2170,9 @@ module Aws::Lambda
1992
2170
  # resp.environment.error.error_code #=> String
1993
2171
  # resp.environment.error.message #=> String
1994
2172
  # resp.kms_key_arn #=> String
2173
+ # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
2174
+ #
2175
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
1995
2176
  #
1996
2177
  # @overload update_function_code(params = {})
1997
2178
  # @param [Hash] params ({})
@@ -2068,8 +2249,12 @@ module Aws::Lambda
2068
2249
  # @option params [String] :runtime
2069
2250
  # The runtime environment for the Lambda function.
2070
2251
  #
2071
- # To use the Node.js runtime v4.3, set the value to "nodejs4.3". To
2072
- # use earlier runtime (v0.10.42), set the value to "nodejs".
2252
+ # To use the Python runtime v3.6, set the value to "python3.6". To use
2253
+ # the Python runtime v2.7, set the value to "python2.7". To use the
2254
+ # Node.js runtime v6.10, set the value to "nodejs6.10". To use the
2255
+ # Node.js runtime v4.3, set the value to "nodejs4.3". To use the
2256
+ # Python runtime v3.6, set the value to "python3.6". To use the Python
2257
+ # runtime v2.7, set the value to "python2.7".
2073
2258
  #
2074
2259
  # <note markdown="1"> You can no longer downgrade to the v0.10.42 runtime version. This
2075
2260
  # version will no longer be supported as of early 2017.
@@ -2077,7 +2262,7 @@ module Aws::Lambda
2077
2262
  # </note>
2078
2263
  #
2079
2264
  # @option params [Types::DeadLetterConfig] :dead_letter_config
2080
- # The parent object that contains the target Amazon Resource Name (ARN)
2265
+ # The parent object that contains the target ARN (Amazon Resource Name)
2081
2266
  # of an Amazon SQS queue or Amazon SNS topic.
2082
2267
  #
2083
2268
  # @option params [String] :kms_key_arn
@@ -2086,6 +2271,9 @@ module Aws::Lambda
2086
2271
  # default service key, pass in an empty string ("") for this
2087
2272
  # parameter.
2088
2273
  #
2274
+ # @option params [Types::TracingConfig] :tracing_config
2275
+ # The parent object that contains your function's tracing settings.
2276
+ #
2089
2277
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2090
2278
  #
2091
2279
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -2104,6 +2292,7 @@ module Aws::Lambda
2104
2292
  # * {Types::FunctionConfiguration#dead_letter_config #dead_letter_config} => Types::DeadLetterConfig
2105
2293
  # * {Types::FunctionConfiguration#environment #environment} => Types::EnvironmentResponse
2106
2294
  # * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
2295
+ # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
2107
2296
  #
2108
2297
  # @example Request syntax with placeholder values
2109
2298
  #
@@ -2123,18 +2312,21 @@ module Aws::Lambda
2123
2312
  # "EnvironmentVariableName" => "EnvironmentVariableValue",
2124
2313
  # },
2125
2314
  # },
2126
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, java8, python2.7, dotnetcore1.0, nodejs4.3-edge
2315
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, java8, python2.7, python3.6, dotnetcore1.0, nodejs4.3-edge
2127
2316
  # dead_letter_config: {
2128
2317
  # target_arn: "ResourceArn",
2129
2318
  # },
2130
2319
  # kms_key_arn: "KMSKeyArn",
2320
+ # tracing_config: {
2321
+ # mode: "Active", # accepts Active, PassThrough
2322
+ # },
2131
2323
  # })
2132
2324
  #
2133
2325
  # @example Response structure
2134
2326
  #
2135
2327
  # resp.function_name #=> String
2136
2328
  # resp.function_arn #=> String
2137
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "java8", "python2.7", "dotnetcore1.0", "nodejs4.3-edge"
2329
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "java8", "python2.7", "python3.6", "dotnetcore1.0", "nodejs4.3-edge"
2138
2330
  # resp.role #=> String
2139
2331
  # resp.handler #=> String
2140
2332
  # resp.code_size #=> Integer
@@ -2155,6 +2347,9 @@ module Aws::Lambda
2155
2347
  # resp.environment.error.error_code #=> String
2156
2348
  # resp.environment.error.message #=> String
2157
2349
  # resp.kms_key_arn #=> String
2350
+ # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
2351
+ #
2352
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
2158
2353
  #
2159
2354
  # @overload update_function_configuration(params = {})
2160
2355
  # @param [Hash] params ({})
@@ -2176,7 +2371,7 @@ module Aws::Lambda
2176
2371
  params: params,
2177
2372
  config: config)
2178
2373
  context[:gem_name] = 'aws-sdk-lambda'
2179
- context[:gem_version] = '1.0.0.rc2'
2374
+ context[:gem_version] = '1.0.0.rc4'
2180
2375
  Seahorse::Client::Request.new(handlers, context)
2181
2376
  end
2182
2377