aws-sdk-lambda 1.0.0.rc9 → 1.0.0.rc10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lambda.rb +1 -1
- data/lib/aws-sdk-lambda/client.rb +487 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3ed6f62301237aa533aec113390eac1a8b42a09
|
4
|
+
data.tar.gz: 7c14a913ea1dc88f798b29faf9fe64b1f8dfcbf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0420790441aa78ea8bdc8eafdee42b2addf75ef6979907e2f65ee8c86ee7015303e05b4881bbe796c9fb6c5af79a07fe320390545f5f5a5793aa594a0ce1da8
|
7
|
+
data.tar.gz: dc70d57a9f63745eef26d754574d4938187ee880bd3fe2e4769d8f08b92050d8344497958968427459f3a73916c19c810ba470dedbafec536d5084d44b6cd196
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -246,6 +246,25 @@ module Aws::Lambda
|
|
246
246
|
#
|
247
247
|
# * {Types::AddPermissionResponse#statement #statement} => String
|
248
248
|
#
|
249
|
+
#
|
250
|
+
# @example Example: add-permission
|
251
|
+
#
|
252
|
+
# # This example adds a permission for an S3 bucket to invoke a Lambda function.
|
253
|
+
#
|
254
|
+
# resp = client.add_permission({
|
255
|
+
# action: "lambda:InvokeFunction",
|
256
|
+
# function_name: "MyFunction",
|
257
|
+
# principal: "s3.amazonaws.com",
|
258
|
+
# source_account: "123456789012",
|
259
|
+
# source_arn: "arn:aws:s3:::examplebucket/*",
|
260
|
+
# statement_id: "ID-1",
|
261
|
+
# })
|
262
|
+
#
|
263
|
+
# resp.to_h outputs the following:
|
264
|
+
# {
|
265
|
+
# statement: "ID-1",
|
266
|
+
# }
|
267
|
+
#
|
249
268
|
# @example Request syntax with placeholder values
|
250
269
|
#
|
251
270
|
# resp = client.add_permission({
|
@@ -601,6 +620,44 @@ module Aws::Lambda
|
|
601
620
|
# * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
|
602
621
|
# * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
|
603
622
|
#
|
623
|
+
#
|
624
|
+
# @example Example: create-function
|
625
|
+
#
|
626
|
+
# # This example creates a Lambda function.
|
627
|
+
#
|
628
|
+
# resp = client.create_function({
|
629
|
+
# code: {
|
630
|
+
# },
|
631
|
+
# description: "",
|
632
|
+
# function_name: "MyFunction",
|
633
|
+
# handler: "souce_file.handler_name", # is of the form of the name of your source file and then name of your function handler
|
634
|
+
# memory_size: 128,
|
635
|
+
# publish: true,
|
636
|
+
# role: "arn:aws:iam::123456789012:role/service-role/role-name", # replace with the actual arn of the execution role you created
|
637
|
+
# runtime: "nodejs4.3",
|
638
|
+
# timeout: 15,
|
639
|
+
# vpc_config: {
|
640
|
+
# },
|
641
|
+
# })
|
642
|
+
#
|
643
|
+
# resp.to_h outputs the following:
|
644
|
+
# {
|
645
|
+
# code_sha_256: "",
|
646
|
+
# code_size: 123,
|
647
|
+
# description: "",
|
648
|
+
# function_arn: "arn:aws:lambda:us-west-2:123456789012:function:MyFunction",
|
649
|
+
# function_name: "MyFunction",
|
650
|
+
# handler: "source_file.handler_name",
|
651
|
+
# last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
|
652
|
+
# memory_size: 128,
|
653
|
+
# role: "arn:aws:iam::123456789012:role/service-role/role-name",
|
654
|
+
# runtime: "nodejs4.3",
|
655
|
+
# timeout: 123,
|
656
|
+
# version: "1",
|
657
|
+
# vpc_config: {
|
658
|
+
# },
|
659
|
+
# }
|
660
|
+
#
|
604
661
|
# @example Request syntax with placeholder values
|
605
662
|
#
|
606
663
|
# resp = client.create_function({
|
@@ -696,6 +753,16 @@ module Aws::Lambda
|
|
696
753
|
#
|
697
754
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
698
755
|
#
|
756
|
+
#
|
757
|
+
# @example Example: To delete a Lambda function alias
|
758
|
+
#
|
759
|
+
# # This operation deletes a Lambda function alias
|
760
|
+
#
|
761
|
+
# resp = client.delete_alias({
|
762
|
+
# function_name: "myFunction",
|
763
|
+
# name: "alias",
|
764
|
+
# })
|
765
|
+
#
|
699
766
|
# @example Request syntax with placeholder values
|
700
767
|
#
|
701
768
|
# resp = client.delete_alias({
|
@@ -732,6 +799,27 @@ module Aws::Lambda
|
|
732
799
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
733
800
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
734
801
|
#
|
802
|
+
#
|
803
|
+
# @example Example: To delete a Lambda function event source mapping
|
804
|
+
#
|
805
|
+
# # This operation deletes a Lambda function event source mapping
|
806
|
+
#
|
807
|
+
# resp = client.delete_event_source_mapping({
|
808
|
+
# uuid: "12345kxodurf3443",
|
809
|
+
# })
|
810
|
+
#
|
811
|
+
# resp.to_h outputs the following:
|
812
|
+
# {
|
813
|
+
# batch_size: 123,
|
814
|
+
# event_source_arn: "arn:aws:s3:::examplebucket/*",
|
815
|
+
# function_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
|
816
|
+
# last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
|
817
|
+
# last_processing_result: "",
|
818
|
+
# state: "",
|
819
|
+
# state_transition_reason: "",
|
820
|
+
# uuid: "12345kxodurf3443",
|
821
|
+
# }
|
822
|
+
#
|
735
823
|
# @example Request syntax with placeholder values
|
736
824
|
#
|
737
825
|
# resp = client.delete_event_source_mapping({
|
@@ -809,6 +897,16 @@ module Aws::Lambda
|
|
809
897
|
#
|
810
898
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
811
899
|
#
|
900
|
+
#
|
901
|
+
# @example Example: To delete a Lambda function
|
902
|
+
#
|
903
|
+
# # This operation deletes a Lambda function
|
904
|
+
#
|
905
|
+
# resp = client.delete_function({
|
906
|
+
# function_name: "myFunction",
|
907
|
+
# qualifier: "1",
|
908
|
+
# })
|
909
|
+
#
|
812
910
|
# @example Request syntax with placeholder values
|
813
911
|
#
|
814
912
|
# resp = client.delete_function({
|
@@ -841,6 +939,22 @@ module Aws::Lambda
|
|
841
939
|
# * {Types::GetAccountSettingsResponse#account_limit #account_limit} => Types::AccountLimit
|
842
940
|
# * {Types::GetAccountSettingsResponse#account_usage #account_usage} => Types::AccountUsage
|
843
941
|
#
|
942
|
+
#
|
943
|
+
# @example Example: To retrieves a Lambda customer's account settings
|
944
|
+
#
|
945
|
+
# # This operation retrieves a Lambda customer's account settings
|
946
|
+
#
|
947
|
+
# resp = client.get_account_settings({
|
948
|
+
# })
|
949
|
+
#
|
950
|
+
# resp.to_h outputs the following:
|
951
|
+
# {
|
952
|
+
# account_limit: {
|
953
|
+
# },
|
954
|
+
# account_usage: {
|
955
|
+
# },
|
956
|
+
# }
|
957
|
+
#
|
844
958
|
# @example Response structure
|
845
959
|
#
|
846
960
|
# resp.account_limit.total_code_size #=> Integer
|
@@ -886,6 +1000,24 @@ module Aws::Lambda
|
|
886
1000
|
# * {Types::AliasConfiguration#function_version #function_version} => String
|
887
1001
|
# * {Types::AliasConfiguration#description #description} => String
|
888
1002
|
#
|
1003
|
+
#
|
1004
|
+
# @example Example: To retrieve a Lambda function alias
|
1005
|
+
#
|
1006
|
+
# # This operation retrieves a Lambda function alias
|
1007
|
+
#
|
1008
|
+
# resp = client.get_alias({
|
1009
|
+
# function_name: "myFunction",
|
1010
|
+
# name: "myFunctionAlias",
|
1011
|
+
# })
|
1012
|
+
#
|
1013
|
+
# resp.to_h outputs the following:
|
1014
|
+
# {
|
1015
|
+
# alias_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunctionAlias",
|
1016
|
+
# description: "",
|
1017
|
+
# function_version: "1",
|
1018
|
+
# name: "myFunctionAlias",
|
1019
|
+
# }
|
1020
|
+
#
|
889
1021
|
# @example Request syntax with placeholder values
|
890
1022
|
#
|
891
1023
|
# resp = client.get_alias({
|
@@ -929,6 +1061,27 @@ module Aws::Lambda
|
|
929
1061
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
930
1062
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
931
1063
|
#
|
1064
|
+
#
|
1065
|
+
# @example Example: To retrieve a Lambda function's event source mapping
|
1066
|
+
#
|
1067
|
+
# # This operation retrieves a Lambda function's event source mapping
|
1068
|
+
#
|
1069
|
+
# resp = client.get_event_source_mapping({
|
1070
|
+
# uuid: "123489-xxxxx-kdla8d89d7",
|
1071
|
+
# })
|
1072
|
+
#
|
1073
|
+
# resp.to_h outputs the following:
|
1074
|
+
# {
|
1075
|
+
# batch_size: 123,
|
1076
|
+
# event_source_arn: "arn:aws:iam::123456789012:eventsource",
|
1077
|
+
# function_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
|
1078
|
+
# last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
|
1079
|
+
# last_processing_result: "",
|
1080
|
+
# state: "",
|
1081
|
+
# state_transition_reason: "",
|
1082
|
+
# uuid: "123489-xxxxx-kdla8d89d7",
|
1083
|
+
# }
|
1084
|
+
#
|
932
1085
|
# @example Request syntax with placeholder values
|
933
1086
|
#
|
934
1087
|
# resp = client.get_event_source_mapping({
|
@@ -1002,6 +1155,49 @@ module Aws::Lambda
|
|
1002
1155
|
# * {Types::GetFunctionResponse#code #code} => Types::FunctionCodeLocation
|
1003
1156
|
# * {Types::GetFunctionResponse#tags #tags} => Hash<String,String>
|
1004
1157
|
#
|
1158
|
+
#
|
1159
|
+
# @example Example: To retrieve a Lambda function's event source mapping
|
1160
|
+
#
|
1161
|
+
# # This operation retrieves a Lambda function's event source mapping
|
1162
|
+
#
|
1163
|
+
# resp = client.get_function({
|
1164
|
+
# function_name: "myFunction",
|
1165
|
+
# qualifier: "1",
|
1166
|
+
# })
|
1167
|
+
#
|
1168
|
+
# resp.to_h outputs the following:
|
1169
|
+
# {
|
1170
|
+
# code: {
|
1171
|
+
# location: "somelocation",
|
1172
|
+
# repository_type: "S3",
|
1173
|
+
# },
|
1174
|
+
# configuration: {
|
1175
|
+
# code_sha_256: "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=",
|
1176
|
+
# code_size: 262,
|
1177
|
+
# description: "A starter AWS Lambda function.",
|
1178
|
+
# environment: {
|
1179
|
+
# variables: {
|
1180
|
+
# "S3_BUCKET" => "test",
|
1181
|
+
# },
|
1182
|
+
# },
|
1183
|
+
# function_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
|
1184
|
+
# function_name: "myFunction",
|
1185
|
+
# handler: "index.handler",
|
1186
|
+
# last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
|
1187
|
+
# memory_size: 128,
|
1188
|
+
# role: "arn:aws:iam::123456789012:role/lambda_basic_execution",
|
1189
|
+
# runtime: "nodejs4.3",
|
1190
|
+
# timeout: 3,
|
1191
|
+
# version: "$LATEST",
|
1192
|
+
# vpc_config: {
|
1193
|
+
# security_group_ids: [
|
1194
|
+
# ],
|
1195
|
+
# subnet_ids: [
|
1196
|
+
# ],
|
1197
|
+
# },
|
1198
|
+
# },
|
1199
|
+
# }
|
1200
|
+
#
|
1005
1201
|
# @example Request syntax with placeholder values
|
1006
1202
|
#
|
1007
1203
|
# resp = client.get_function({
|
@@ -1112,6 +1308,39 @@ module Aws::Lambda
|
|
1112
1308
|
# * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
|
1113
1309
|
# * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
|
1114
1310
|
#
|
1311
|
+
#
|
1312
|
+
# @example Example: To retrieve a Lambda function's event source mapping
|
1313
|
+
#
|
1314
|
+
# # This operation retrieves a Lambda function's event source mapping
|
1315
|
+
#
|
1316
|
+
# resp = client.get_function_configuration({
|
1317
|
+
# function_name: "myFunction",
|
1318
|
+
# qualifier: "1",
|
1319
|
+
# })
|
1320
|
+
#
|
1321
|
+
# resp.to_h outputs the following:
|
1322
|
+
# {
|
1323
|
+
# code_sha_256: "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=",
|
1324
|
+
# code_size: 123,
|
1325
|
+
# dead_letter_config: {
|
1326
|
+
# },
|
1327
|
+
# description: "",
|
1328
|
+
# environment: {
|
1329
|
+
# },
|
1330
|
+
# function_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
|
1331
|
+
# function_name: "myFunction",
|
1332
|
+
# handler: "index.handler",
|
1333
|
+
# kms_key_arn: "",
|
1334
|
+
# last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
|
1335
|
+
# memory_size: 128,
|
1336
|
+
# role: "arn:aws:iam::123456789012:role/lambda_basic_execution",
|
1337
|
+
# runtime: "python2.7",
|
1338
|
+
# timeout: 123,
|
1339
|
+
# version: "1",
|
1340
|
+
# vpc_config: {
|
1341
|
+
# },
|
1342
|
+
# }
|
1343
|
+
#
|
1115
1344
|
# @example Request syntax with placeholder values
|
1116
1345
|
#
|
1117
1346
|
# resp = client.get_function_configuration({
|
@@ -1194,6 +1423,21 @@ module Aws::Lambda
|
|
1194
1423
|
#
|
1195
1424
|
# * {Types::GetPolicyResponse#policy #policy} => String
|
1196
1425
|
#
|
1426
|
+
#
|
1427
|
+
# @example Example: To retrieve a Lambda function policy
|
1428
|
+
#
|
1429
|
+
# # This operation retrieves a Lambda function policy
|
1430
|
+
#
|
1431
|
+
# resp = client.get_policy({
|
1432
|
+
# function_name: "myFunction",
|
1433
|
+
# qualifier: "1",
|
1434
|
+
# })
|
1435
|
+
#
|
1436
|
+
# resp.to_h outputs the following:
|
1437
|
+
# {
|
1438
|
+
# policy: "",
|
1439
|
+
# }
|
1440
|
+
#
|
1197
1441
|
# @example Request syntax with placeholder values
|
1198
1442
|
#
|
1199
1443
|
# resp = client.get_policy({
|
@@ -1296,6 +1540,28 @@ module Aws::Lambda
|
|
1296
1540
|
# * {Types::InvocationResponse#log_result #log_result} => String
|
1297
1541
|
# * {Types::InvocationResponse#payload #payload} => String
|
1298
1542
|
#
|
1543
|
+
#
|
1544
|
+
# @example Example: To invoke a Lambda function
|
1545
|
+
#
|
1546
|
+
# # This operation invokes a Lambda function
|
1547
|
+
#
|
1548
|
+
# resp = client.invoke({
|
1549
|
+
# client_context: "MyApp",
|
1550
|
+
# function_name: "MyFunction",
|
1551
|
+
# invocation_type: "Event",
|
1552
|
+
# log_type: "Tail",
|
1553
|
+
# payload: "fileb://file-path/input.json",
|
1554
|
+
# qualifier: "1",
|
1555
|
+
# })
|
1556
|
+
#
|
1557
|
+
# resp.to_h outputs the following:
|
1558
|
+
# {
|
1559
|
+
# function_error: "",
|
1560
|
+
# log_result: "",
|
1561
|
+
# payload: "?",
|
1562
|
+
# status_code: 123,
|
1563
|
+
# }
|
1564
|
+
#
|
1299
1565
|
# @example Request syntax with placeholder values
|
1300
1566
|
#
|
1301
1567
|
# resp = client.invoke({
|
@@ -1346,6 +1612,21 @@ module Aws::Lambda
|
|
1346
1612
|
#
|
1347
1613
|
# * {Types::InvokeAsyncResponse#status #status} => Integer
|
1348
1614
|
#
|
1615
|
+
#
|
1616
|
+
# @example Example: To invoke a Lambda function asynchronously
|
1617
|
+
#
|
1618
|
+
# # This operation invokes a Lambda function asynchronously
|
1619
|
+
#
|
1620
|
+
# resp = client.invoke_async({
|
1621
|
+
# function_name: "myFunction",
|
1622
|
+
# invoke_args: "fileb://file-path/input.json",
|
1623
|
+
# })
|
1624
|
+
#
|
1625
|
+
# resp.to_h outputs the following:
|
1626
|
+
# {
|
1627
|
+
# status: 123,
|
1628
|
+
# }
|
1629
|
+
#
|
1349
1630
|
# @example Request syntax with placeholder values
|
1350
1631
|
#
|
1351
1632
|
# resp = client.invoke_async({
|
@@ -1402,6 +1683,25 @@ module Aws::Lambda
|
|
1402
1683
|
# * {Types::ListAliasesResponse#next_marker #next_marker} => String
|
1403
1684
|
# * {Types::ListAliasesResponse#aliases #aliases} => Array<Types::AliasConfiguration>
|
1404
1685
|
#
|
1686
|
+
#
|
1687
|
+
# @example Example: To retrieve a Lambda function aliases
|
1688
|
+
#
|
1689
|
+
# # This operation retrieves a Lambda function's aliases
|
1690
|
+
#
|
1691
|
+
# resp = client.list_aliases({
|
1692
|
+
# function_name: "myFunction",
|
1693
|
+
# function_version: "1",
|
1694
|
+
# marker: "",
|
1695
|
+
# max_items: 123,
|
1696
|
+
# })
|
1697
|
+
#
|
1698
|
+
# resp.to_h outputs the following:
|
1699
|
+
# {
|
1700
|
+
# aliases: [
|
1701
|
+
# ],
|
1702
|
+
# next_marker: "",
|
1703
|
+
# }
|
1704
|
+
#
|
1405
1705
|
# @example Request syntax with placeholder values
|
1406
1706
|
#
|
1407
1707
|
# resp = client.list_aliases({
|
@@ -1540,6 +1840,23 @@ module Aws::Lambda
|
|
1540
1840
|
# * {Types::ListFunctionsResponse#next_marker #next_marker} => String
|
1541
1841
|
# * {Types::ListFunctionsResponse#functions #functions} => Array<Types::FunctionConfiguration>
|
1542
1842
|
#
|
1843
|
+
#
|
1844
|
+
# @example Example: To retrieve a list of Lambda functions
|
1845
|
+
#
|
1846
|
+
# # This operation retrieves a Lambda functions
|
1847
|
+
#
|
1848
|
+
# resp = client.list_functions({
|
1849
|
+
# marker: "",
|
1850
|
+
# max_items: 123,
|
1851
|
+
# })
|
1852
|
+
#
|
1853
|
+
# resp.to_h outputs the following:
|
1854
|
+
# {
|
1855
|
+
# functions: [
|
1856
|
+
# ],
|
1857
|
+
# next_marker: "",
|
1858
|
+
# }
|
1859
|
+
#
|
1543
1860
|
# @example Request syntax with placeholder values
|
1544
1861
|
#
|
1545
1862
|
# resp = client.list_functions({
|
@@ -1647,6 +1964,24 @@ module Aws::Lambda
|
|
1647
1964
|
# * {Types::ListVersionsByFunctionResponse#next_marker #next_marker} => String
|
1648
1965
|
# * {Types::ListVersionsByFunctionResponse#versions #versions} => Array<Types::FunctionConfiguration>
|
1649
1966
|
#
|
1967
|
+
#
|
1968
|
+
# @example Example: To retrieve a list of Lambda function versions
|
1969
|
+
#
|
1970
|
+
# # This operation retrieves a Lambda function versions
|
1971
|
+
#
|
1972
|
+
# resp = client.list_versions_by_function({
|
1973
|
+
# function_name: "myFunction",
|
1974
|
+
# marker: "",
|
1975
|
+
# max_items: 123,
|
1976
|
+
# })
|
1977
|
+
#
|
1978
|
+
# resp.to_h outputs the following:
|
1979
|
+
# {
|
1980
|
+
# next_marker: "",
|
1981
|
+
# versions: [
|
1982
|
+
# ],
|
1983
|
+
# }
|
1984
|
+
#
|
1650
1985
|
# @example Request syntax with placeholder values
|
1651
1986
|
#
|
1652
1987
|
# resp = client.list_versions_by_function({
|
@@ -1744,6 +2079,35 @@ module Aws::Lambda
|
|
1744
2079
|
# * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
|
1745
2080
|
# * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
|
1746
2081
|
#
|
2082
|
+
#
|
2083
|
+
# @example Example: To publish a version of a Lambda function
|
2084
|
+
#
|
2085
|
+
# # This operation publishes a version of a Lambda function
|
2086
|
+
#
|
2087
|
+
# resp = client.publish_version({
|
2088
|
+
# code_sha_256: "",
|
2089
|
+
# description: "",
|
2090
|
+
# function_name: "myFunction",
|
2091
|
+
# })
|
2092
|
+
#
|
2093
|
+
# resp.to_h outputs the following:
|
2094
|
+
# {
|
2095
|
+
# code_sha_256: "",
|
2096
|
+
# code_size: 123,
|
2097
|
+
# description: "",
|
2098
|
+
# function_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
|
2099
|
+
# function_name: "myFunction",
|
2100
|
+
# handler: "index.handler",
|
2101
|
+
# last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
|
2102
|
+
# memory_size: 128,
|
2103
|
+
# role: "arn:aws:iam::123456789012:role/lambda_basic_execution",
|
2104
|
+
# runtime: "python2.7",
|
2105
|
+
# timeout: 123,
|
2106
|
+
# version: "1",
|
2107
|
+
# vpc_config: {
|
2108
|
+
# },
|
2109
|
+
# }
|
2110
|
+
#
|
1747
2111
|
# @example Request syntax with placeholder values
|
1748
2112
|
#
|
1749
2113
|
# resp = client.publish_version({
|
@@ -1830,6 +2194,17 @@ module Aws::Lambda
|
|
1830
2194
|
#
|
1831
2195
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1832
2196
|
#
|
2197
|
+
#
|
2198
|
+
# @example Example: To remove a Lambda function's permissions
|
2199
|
+
#
|
2200
|
+
# # This operation removes a Lambda function's permissions
|
2201
|
+
#
|
2202
|
+
# resp = client.remove_permission({
|
2203
|
+
# function_name: "myFunction",
|
2204
|
+
# qualifier: "1",
|
2205
|
+
# statement_id: "role-statement-id",
|
2206
|
+
# })
|
2207
|
+
#
|
1833
2208
|
# @example Request syntax with placeholder values
|
1834
2209
|
#
|
1835
2210
|
# resp = client.remove_permission({
|
@@ -1938,6 +2313,26 @@ module Aws::Lambda
|
|
1938
2313
|
# * {Types::AliasConfiguration#function_version #function_version} => String
|
1939
2314
|
# * {Types::AliasConfiguration#description #description} => String
|
1940
2315
|
#
|
2316
|
+
#
|
2317
|
+
# @example Example: To update a Lambda function alias
|
2318
|
+
#
|
2319
|
+
# # This operation updates a Lambda function alias
|
2320
|
+
#
|
2321
|
+
# resp = client.update_alias({
|
2322
|
+
# description: "",
|
2323
|
+
# function_name: "myFunction",
|
2324
|
+
# function_version: "1",
|
2325
|
+
# name: "functionAlias",
|
2326
|
+
# })
|
2327
|
+
#
|
2328
|
+
# resp.to_h outputs the following:
|
2329
|
+
# {
|
2330
|
+
# alias_arn: "arn:aws:lambda:us-west-2:123456789012:function:functionAlias",
|
2331
|
+
# description: "",
|
2332
|
+
# function_version: "1",
|
2333
|
+
# name: "functionAlias",
|
2334
|
+
# }
|
2335
|
+
#
|
1941
2336
|
# @example Request syntax with placeholder values
|
1942
2337
|
#
|
1943
2338
|
# resp = client.update_alias({
|
@@ -2033,6 +2428,30 @@ module Aws::Lambda
|
|
2033
2428
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
2034
2429
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
2035
2430
|
#
|
2431
|
+
#
|
2432
|
+
# @example Example: To update a Lambda function event source mapping
|
2433
|
+
#
|
2434
|
+
# # This operation updates a Lambda function event source mapping
|
2435
|
+
#
|
2436
|
+
# resp = client.update_event_source_mapping({
|
2437
|
+
# batch_size: 123,
|
2438
|
+
# enabled: true,
|
2439
|
+
# function_name: "myFunction",
|
2440
|
+
# uuid: "1234xCy789012",
|
2441
|
+
# })
|
2442
|
+
#
|
2443
|
+
# resp.to_h outputs the following:
|
2444
|
+
# {
|
2445
|
+
# batch_size: 123,
|
2446
|
+
# event_source_arn: "arn:aws:s3:::examplebucket/*",
|
2447
|
+
# function_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
|
2448
|
+
# last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
|
2449
|
+
# last_processing_result: "",
|
2450
|
+
# state: "",
|
2451
|
+
# state_transition_reason: "",
|
2452
|
+
# uuid: "1234xCy789012",
|
2453
|
+
# }
|
2454
|
+
#
|
2036
2455
|
# @example Request syntax with placeholder values
|
2037
2456
|
#
|
2038
2457
|
# resp = client.update_event_source_mapping({
|
@@ -2146,6 +2565,38 @@ module Aws::Lambda
|
|
2146
2565
|
# * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
|
2147
2566
|
# * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
|
2148
2567
|
#
|
2568
|
+
#
|
2569
|
+
# @example Example: To update a Lambda function's code
|
2570
|
+
#
|
2571
|
+
# # This operation updates a Lambda function's code
|
2572
|
+
#
|
2573
|
+
# resp = client.update_function_code({
|
2574
|
+
# function_name: "myFunction",
|
2575
|
+
# publish: true,
|
2576
|
+
# s3_bucket: "myBucket",
|
2577
|
+
# s3_key: "myKey",
|
2578
|
+
# s3_object_version: "1",
|
2579
|
+
# zip_file: "fileb://file-path/file.zip",
|
2580
|
+
# })
|
2581
|
+
#
|
2582
|
+
# resp.to_h outputs the following:
|
2583
|
+
# {
|
2584
|
+
# code_sha_256: "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=",
|
2585
|
+
# code_size: 123,
|
2586
|
+
# description: "",
|
2587
|
+
# function_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
|
2588
|
+
# function_name: "myFunction",
|
2589
|
+
# handler: "index.handler",
|
2590
|
+
# last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
|
2591
|
+
# memory_size: 128,
|
2592
|
+
# role: "arn:aws:iam::123456789012:role/lambda_basic_execution",
|
2593
|
+
# runtime: "python2.7",
|
2594
|
+
# timeout: 123,
|
2595
|
+
# version: "1",
|
2596
|
+
# vpc_config: {
|
2597
|
+
# },
|
2598
|
+
# }
|
2599
|
+
#
|
2149
2600
|
# @example Request syntax with placeholder values
|
2150
2601
|
#
|
2151
2602
|
# resp = client.update_function_code({
|
@@ -2313,6 +2764,41 @@ module Aws::Lambda
|
|
2313
2764
|
# * {Types::FunctionConfiguration#kms_key_arn #kms_key_arn} => String
|
2314
2765
|
# * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
|
2315
2766
|
#
|
2767
|
+
#
|
2768
|
+
# @example Example: To update a Lambda function's configuration
|
2769
|
+
#
|
2770
|
+
# # This operation updates a Lambda function's configuration
|
2771
|
+
#
|
2772
|
+
# resp = client.update_function_configuration({
|
2773
|
+
# description: "",
|
2774
|
+
# function_name: "myFunction",
|
2775
|
+
# handler: "index.handler",
|
2776
|
+
# memory_size: 128,
|
2777
|
+
# role: "arn:aws:iam::123456789012:role/lambda_basic_execution",
|
2778
|
+
# runtime: "python2.7",
|
2779
|
+
# timeout: 123,
|
2780
|
+
# vpc_config: {
|
2781
|
+
# },
|
2782
|
+
# })
|
2783
|
+
#
|
2784
|
+
# resp.to_h outputs the following:
|
2785
|
+
# {
|
2786
|
+
# code_sha_256: "LQT+0DHxxxxcfwLyQjzoEFKZtdqQjHXanlSdfXBlEW0VA=",
|
2787
|
+
# code_size: 123,
|
2788
|
+
# description: "",
|
2789
|
+
# function_arn: "arn:aws:lambda:us-west-2:123456789012:function:myFunction",
|
2790
|
+
# function_name: "myFunction",
|
2791
|
+
# handler: "index.handler",
|
2792
|
+
# last_modified: Time.parse("2016-11-21T19:49:20.006+0000"),
|
2793
|
+
# memory_size: 128,
|
2794
|
+
# role: "arn:aws:iam::123456789012:role/lambda_basic_execution",
|
2795
|
+
# runtime: "python2.7",
|
2796
|
+
# timeout: 123,
|
2797
|
+
# version: "1",
|
2798
|
+
# vpc_config: {
|
2799
|
+
# },
|
2800
|
+
# }
|
2801
|
+
#
|
2316
2802
|
# @example Request syntax with placeholder values
|
2317
2803
|
#
|
2318
2804
|
# resp = client.update_function_configuration({
|
@@ -2390,7 +2876,7 @@ module Aws::Lambda
|
|
2390
2876
|
params: params,
|
2391
2877
|
config: config)
|
2392
2878
|
context[:gem_name] = 'aws-sdk-lambda'
|
2393
|
-
context[:gem_version] = '1.0.0.
|
2879
|
+
context[:gem_version] = '1.0.0.rc10'
|
2394
2880
|
Seahorse::Client::Request.new(handlers, context)
|
2395
2881
|
end
|
2396
2882
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0.
|
19
|
+
version: 3.0.0.rc14
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0.
|
26
|
+
version: 3.0.0.rc14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|