aws-sdk-lambda 1.15.0 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03d0131762c0e22e514aeba946d674b44e9b6071
4
- data.tar.gz: 33a4cf8495044cf517131765d9bf7be9ed2db918
3
+ metadata.gz: 982bd0a6b613eb89dfc35d44773bd3a83ee35219
4
+ data.tar.gz: 7dfd8c0ea53e73d891660a11d263f2f63e732e87
5
5
  SHA512:
6
- metadata.gz: abfb5f27b42df299ca7af79138e8f0cf61a0ef17db781198b7dac5f52e2b25c4ddcfcea3adac5471e3a78c36e9a3ab1c8bf88befbf3186a8c36e17fd68a03acd
7
- data.tar.gz: ecfdfe237c85029d2e4caf8334b151f5376ca943e41e031fe84f8a65c4f6fb561b56567886a52825544975ed53776da118bb7dd52e95860e163d6a083bb677ee
6
+ metadata.gz: 8c289c5cdc1ea50576e11f7467825be4fda767052fd3e8c78268b66ed6e53cc6094d1d90ed3b1e2556c27a3777bbbb36291e3826e63ac8da6f612285a888dd2d
7
+ data.tar.gz: 3d9ff72e1dd17434d3555c3ddebcf370a0c9600161fed373b8efa158d6cadcc8a5431b9f497413cb8618af77cb847481bb8ceb09bea2c8778d7374591c7334fa
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-lambda/customizations'
42
42
  # @service
43
43
  module Aws::Lambda
44
44
 
45
- GEM_VERSION = '1.15.0'
45
+ GEM_VERSION = '1.16.0'
46
46
 
47
47
  end
@@ -205,6 +205,71 @@ module Aws::Lambda
205
205
 
206
206
  # @!group API Operations
207
207
 
208
+ # Adds permissions to the resource-based policy of a version of a
209
+ # function layer. Use this action to grant layer usage permission to
210
+ # other accounts. You can grant permission to a single account, all AWS
211
+ # accounts, or all accounts in an organization.
212
+ #
213
+ # To revoke permission, call RemoveLayerVersionPermission with the
214
+ # statement ID that you specified when you added it.
215
+ #
216
+ # @option params [required, String] :layer_name
217
+ # The name of the layer.
218
+ #
219
+ # @option params [required, Integer] :version_number
220
+ # The version number.
221
+ #
222
+ # @option params [required, String] :statement_id
223
+ # An identifier that distinguishes the policy from others on the same
224
+ # layer version.
225
+ #
226
+ # @option params [required, String] :action
227
+ # The API action that grants access to the layer. For example,
228
+ # `lambda:GetLayerVersion`.
229
+ #
230
+ # @option params [required, String] :principal
231
+ # An account ID, or `*` to grant permission to all AWS accounts.
232
+ #
233
+ # @option params [String] :organization_id
234
+ # With the principal set to `*`, grant permission to all accounts in the
235
+ # specified organization.
236
+ #
237
+ # @option params [String] :revision_id
238
+ # Only update the policy if the revision ID matches the ID specified.
239
+ # Use this option to avoid modifying a policy that has changed since you
240
+ # last read it.
241
+ #
242
+ # @return [Types::AddLayerVersionPermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
243
+ #
244
+ # * {Types::AddLayerVersionPermissionResponse#statement #statement} => String
245
+ # * {Types::AddLayerVersionPermissionResponse#revision_id #revision_id} => String
246
+ #
247
+ # @example Request syntax with placeholder values
248
+ #
249
+ # resp = client.add_layer_version_permission({
250
+ # layer_name: "LayerName", # required
251
+ # version_number: 1, # required
252
+ # statement_id: "StatementId", # required
253
+ # action: "LayerPermissionAllowedAction", # required
254
+ # principal: "LayerPermissionAllowedPrincipal", # required
255
+ # organization_id: "OrganizationId",
256
+ # revision_id: "String",
257
+ # })
258
+ #
259
+ # @example Response structure
260
+ #
261
+ # resp.statement #=> String
262
+ # resp.revision_id #=> String
263
+ #
264
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermission AWS API Documentation
265
+ #
266
+ # @overload add_layer_version_permission(params = {})
267
+ # @param [Hash] params ({})
268
+ def add_layer_version_permission(params = {}, options = {})
269
+ req = build_request(:add_layer_version_permission, params)
270
+ req.send_request(options)
271
+ end
272
+
208
273
  # Adds a permission to the resource policy associated with the specified
209
274
  # AWS Lambda function. You use resource policies to grant permissions to
210
275
  # event sources that use the *push* model. In a *push* model, event
@@ -227,7 +292,7 @@ module Aws::Lambda
227
292
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
228
293
  #
229
294
  # @option params [required, String] :function_name
230
- # The name of the lambda function.
295
+ # The name of the Lambda function.
231
296
  #
232
297
  # **Name formats**
233
298
  #
@@ -541,7 +606,7 @@ module Aws::Lambda
541
606
  # action.
542
607
  #
543
608
  # @option params [required, String] :function_name
544
- # The name of the lambda function.
609
+ # The name of the Lambda function.
545
610
  #
546
611
  # **Name formats**
547
612
  #
@@ -629,6 +694,14 @@ module Aws::Lambda
629
694
  #
630
695
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/tagging.html
631
696
  #
697
+ # @option params [Array<String>] :layers
698
+ # A list of [function layers][1] to add to the function's execution
699
+ # environment.
700
+ #
701
+ #
702
+ #
703
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
704
+ #
632
705
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
633
706
  #
634
707
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -650,6 +723,7 @@ module Aws::Lambda
650
723
  # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
651
724
  # * {Types::FunctionConfiguration#master_arn #master_arn} => String
652
725
  # * {Types::FunctionConfiguration#revision_id #revision_id} => String
726
+ # * {Types::FunctionConfiguration#layers #layers} => Array&lt;Types::Layer&gt;
653
727
  #
654
728
  #
655
729
  # @example Example: create-function
@@ -693,7 +767,7 @@ module Aws::Lambda
693
767
  #
694
768
  # resp = client.create_function({
695
769
  # function_name: "FunctionName", # required
696
- # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x
770
+ # runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, provided
697
771
  # role: "RoleArn", # required
698
772
  # handler: "Handler", # required
699
773
  # code: { # required
@@ -725,13 +799,14 @@ module Aws::Lambda
725
799
  # tags: {
726
800
  # "TagKey" => "TagValue",
727
801
  # },
802
+ # layers: ["LayerVersionArn"],
728
803
  # })
729
804
  #
730
805
  # @example Response structure
731
806
  #
732
807
  # resp.function_name #=> String
733
808
  # resp.function_arn #=> String
734
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
809
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
735
810
  # resp.role #=> String
736
811
  # resp.handler #=> String
737
812
  # resp.code_size #=> Integer
@@ -755,6 +830,9 @@ module Aws::Lambda
755
830
  # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
756
831
  # resp.master_arn #=> String
757
832
  # resp.revision_id #=> String
833
+ # resp.layers #=> Array
834
+ # resp.layers[0].arn #=> String
835
+ # resp.layers[0].code_size #=> Integer
758
836
  #
759
837
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
760
838
  #
@@ -891,7 +969,7 @@ module Aws::Lambda
891
969
  # action.
892
970
  #
893
971
  # @option params [required, String] :function_name
894
- # The name of the lambda function.
972
+ # The name of the Lambda function.
895
973
  #
896
974
  # **Name formats**
897
975
  #
@@ -945,7 +1023,7 @@ module Aws::Lambda
945
1023
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html
946
1024
  #
947
1025
  # @option params [required, String] :function_name
948
- # The name of the lambda function.
1026
+ # The name of the Lambda function.
949
1027
  #
950
1028
  # **Name formats**
951
1029
  #
@@ -976,6 +1054,34 @@ module Aws::Lambda
976
1054
  req.send_request(options)
977
1055
  end
978
1056
 
1057
+ # Deletes a version of a function layer. Deleted versions can no longer
1058
+ # be viewed or added to functions. However, a copy of the version
1059
+ # remains in Lambda until no functions refer to it.
1060
+ #
1061
+ # @option params [required, String] :layer_name
1062
+ # The name of the layer.
1063
+ #
1064
+ # @option params [required, Integer] :version_number
1065
+ # The version number.
1066
+ #
1067
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1068
+ #
1069
+ # @example Request syntax with placeholder values
1070
+ #
1071
+ # resp = client.delete_layer_version({
1072
+ # layer_name: "LayerName", # required
1073
+ # version_number: 1, # required
1074
+ # })
1075
+ #
1076
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersion AWS API Documentation
1077
+ #
1078
+ # @overload delete_layer_version(params = {})
1079
+ # @param [Hash] params ({})
1080
+ def delete_layer_version(params = {}, options = {})
1081
+ req = build_request(:delete_layer_version, params)
1082
+ req.send_request(options)
1083
+ end
1084
+
979
1085
  # Retrieves details about your account's [limits][1] and usage in a
980
1086
  # region.
981
1087
  #
@@ -1185,7 +1291,7 @@ module Aws::Lambda
1185
1291
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
1186
1292
  #
1187
1293
  # @option params [required, String] :function_name
1188
- # The name of the lambda function.
1294
+ # The name of the Lambda function.
1189
1295
  #
1190
1296
  # **Name formats**
1191
1297
  #
@@ -1264,7 +1370,7 @@ module Aws::Lambda
1264
1370
  #
1265
1371
  # resp.configuration.function_name #=> String
1266
1372
  # resp.configuration.function_arn #=> String
1267
- # resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
1373
+ # resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
1268
1374
  # resp.configuration.role #=> String
1269
1375
  # resp.configuration.handler #=> String
1270
1376
  # resp.configuration.code_size #=> Integer
@@ -1288,6 +1394,9 @@ module Aws::Lambda
1288
1394
  # resp.configuration.tracing_config.mode #=> String, one of "Active", "PassThrough"
1289
1395
  # resp.configuration.master_arn #=> String
1290
1396
  # resp.configuration.revision_id #=> String
1397
+ # resp.configuration.layers #=> Array
1398
+ # resp.configuration.layers[0].arn #=> String
1399
+ # resp.configuration.layers[0].code_size #=> Integer
1291
1400
  # resp.code.repository_type #=> String
1292
1401
  # resp.code.location #=> String
1293
1402
  # resp.tags #=> Hash
@@ -1323,7 +1432,7 @@ module Aws::Lambda
1323
1432
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
1324
1433
  #
1325
1434
  # @option params [required, String] :function_name
1326
- # The name of the lambda function.
1435
+ # The name of the Lambda function.
1327
1436
  #
1328
1437
  # **Name formats**
1329
1438
  #
@@ -1362,6 +1471,7 @@ module Aws::Lambda
1362
1471
  # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
1363
1472
  # * {Types::FunctionConfiguration#master_arn #master_arn} => String
1364
1473
  # * {Types::FunctionConfiguration#revision_id #revision_id} => String
1474
+ # * {Types::FunctionConfiguration#layers #layers} => Array&lt;Types::Layer&gt;
1365
1475
  #
1366
1476
  #
1367
1477
  # @example Example: To retrieve a Lambda function's event source mapping
@@ -1407,7 +1517,7 @@ module Aws::Lambda
1407
1517
  #
1408
1518
  # resp.function_name #=> String
1409
1519
  # resp.function_arn #=> String
1410
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
1520
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
1411
1521
  # resp.role #=> String
1412
1522
  # resp.handler #=> String
1413
1523
  # resp.code_size #=> Integer
@@ -1431,6 +1541,9 @@ module Aws::Lambda
1431
1541
  # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
1432
1542
  # resp.master_arn #=> String
1433
1543
  # resp.revision_id #=> String
1544
+ # resp.layers #=> Array
1545
+ # resp.layers[0].arn #=> String
1546
+ # resp.layers[0].code_size #=> Integer
1434
1547
  #
1435
1548
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration AWS API Documentation
1436
1549
  #
@@ -1441,6 +1554,91 @@ module Aws::Lambda
1441
1554
  req.send_request(options)
1442
1555
  end
1443
1556
 
1557
+ # Returns information about a version of a function layer, with a link
1558
+ # to download the layer archive that's valid for 10 minutes.
1559
+ #
1560
+ # @option params [required, String] :layer_name
1561
+ # The name of the layer.
1562
+ #
1563
+ # @option params [required, Integer] :version_number
1564
+ # The version number.
1565
+ #
1566
+ # @return [Types::GetLayerVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1567
+ #
1568
+ # * {Types::GetLayerVersionResponse#content #content} => Types::LayerVersionContentOutput
1569
+ # * {Types::GetLayerVersionResponse#layer_arn #layer_arn} => String
1570
+ # * {Types::GetLayerVersionResponse#layer_version_arn #layer_version_arn} => String
1571
+ # * {Types::GetLayerVersionResponse#description #description} => String
1572
+ # * {Types::GetLayerVersionResponse#created_date #created_date} => Time
1573
+ # * {Types::GetLayerVersionResponse#version #version} => Integer
1574
+ # * {Types::GetLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
1575
+ # * {Types::GetLayerVersionResponse#license_info #license_info} => String
1576
+ #
1577
+ # @example Request syntax with placeholder values
1578
+ #
1579
+ # resp = client.get_layer_version({
1580
+ # layer_name: "LayerName", # required
1581
+ # version_number: 1, # required
1582
+ # })
1583
+ #
1584
+ # @example Response structure
1585
+ #
1586
+ # resp.content.location #=> String
1587
+ # resp.content.code_sha_256 #=> String
1588
+ # resp.content.code_size #=> Integer
1589
+ # resp.layer_arn #=> String
1590
+ # resp.layer_version_arn #=> String
1591
+ # resp.description #=> String
1592
+ # resp.created_date #=> Time
1593
+ # resp.version #=> Integer
1594
+ # resp.compatible_runtimes #=> Array
1595
+ # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
1596
+ # resp.license_info #=> String
1597
+ #
1598
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion AWS API Documentation
1599
+ #
1600
+ # @overload get_layer_version(params = {})
1601
+ # @param [Hash] params ({})
1602
+ def get_layer_version(params = {}, options = {})
1603
+ req = build_request(:get_layer_version, params)
1604
+ req.send_request(options)
1605
+ end
1606
+
1607
+ # Returns the permission policy for a layer version. For more
1608
+ # information, see AddLayerVersionPermission.
1609
+ #
1610
+ # @option params [required, String] :layer_name
1611
+ # The name of the layer.
1612
+ #
1613
+ # @option params [required, Integer] :version_number
1614
+ # The version number.
1615
+ #
1616
+ # @return [Types::GetLayerVersionPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1617
+ #
1618
+ # * {Types::GetLayerVersionPolicyResponse#policy #policy} => String
1619
+ # * {Types::GetLayerVersionPolicyResponse#revision_id #revision_id} => String
1620
+ #
1621
+ # @example Request syntax with placeholder values
1622
+ #
1623
+ # resp = client.get_layer_version_policy({
1624
+ # layer_name: "LayerName", # required
1625
+ # version_number: 1, # required
1626
+ # })
1627
+ #
1628
+ # @example Response structure
1629
+ #
1630
+ # resp.policy #=> String
1631
+ # resp.revision_id #=> String
1632
+ #
1633
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicy AWS API Documentation
1634
+ #
1635
+ # @overload get_layer_version_policy(params = {})
1636
+ # @param [Hash] params ({})
1637
+ def get_layer_version_policy(params = {}, options = {})
1638
+ req = build_request(:get_layer_version_policy, params)
1639
+ req.send_request(options)
1640
+ end
1641
+
1444
1642
  # Returns the resource policy associated with the specified Lambda
1445
1643
  # function.
1446
1644
  #
@@ -1545,7 +1743,7 @@ module Aws::Lambda
1545
1743
  # [2]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
1546
1744
  #
1547
1745
  # @option params [required, String] :function_name
1548
- # The name of the lambda function.
1746
+ # The name of the Lambda function.
1549
1747
  #
1550
1748
  # **Name formats**
1551
1749
  #
@@ -1674,7 +1872,7 @@ module Aws::Lambda
1674
1872
  # action.
1675
1873
  #
1676
1874
  # @option params [required, String] :function_name
1677
- # The name of the lambda function.
1875
+ # The name of the Lambda function.
1678
1876
  #
1679
1877
  # **Name formats**
1680
1878
  #
@@ -1971,7 +2169,7 @@ module Aws::Lambda
1971
2169
  # resp.functions #=> Array
1972
2170
  # resp.functions[0].function_name #=> String
1973
2171
  # resp.functions[0].function_arn #=> String
1974
- # resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
2172
+ # resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
1975
2173
  # resp.functions[0].role #=> String
1976
2174
  # resp.functions[0].handler #=> String
1977
2175
  # resp.functions[0].code_size #=> Integer
@@ -1995,6 +2193,9 @@ module Aws::Lambda
1995
2193
  # resp.functions[0].tracing_config.mode #=> String, one of "Active", "PassThrough"
1996
2194
  # resp.functions[0].master_arn #=> String
1997
2195
  # resp.functions[0].revision_id #=> String
2196
+ # resp.functions[0].layers #=> Array
2197
+ # resp.functions[0].layers[0].arn #=> String
2198
+ # resp.functions[0].layers[0].code_size #=> Integer
1998
2199
  #
1999
2200
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
2000
2201
  #
@@ -2005,6 +2206,114 @@ module Aws::Lambda
2005
2206
  req.send_request(options)
2006
2207
  end
2007
2208
 
2209
+ # Lists the versions of a function layer. Versions that have been
2210
+ # deleted aren't listed. Specify a [runtime identifier][1] to list only
2211
+ # versions that indicate that they're compatible with that runtime.
2212
+ #
2213
+ #
2214
+ #
2215
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
2216
+ #
2217
+ # @option params [String] :compatible_runtime
2218
+ # A runtime identifier. For example, `go1.x`.
2219
+ #
2220
+ # @option params [required, String] :layer_name
2221
+ # The name of the layer.
2222
+ #
2223
+ # @option params [String] :marker
2224
+ # A pagination token returned by a previous call.
2225
+ #
2226
+ # @option params [Integer] :max_items
2227
+ # The maximum number of versions to return.
2228
+ #
2229
+ # @return [Types::ListLayerVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2230
+ #
2231
+ # * {Types::ListLayerVersionsResponse#next_marker #next_marker} => String
2232
+ # * {Types::ListLayerVersionsResponse#layer_versions #layer_versions} => Array&lt;Types::LayerVersionsListItem&gt;
2233
+ #
2234
+ # @example Request syntax with placeholder values
2235
+ #
2236
+ # resp = client.list_layer_versions({
2237
+ # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, provided
2238
+ # layer_name: "LayerName", # required
2239
+ # marker: "String",
2240
+ # max_items: 1,
2241
+ # })
2242
+ #
2243
+ # @example Response structure
2244
+ #
2245
+ # resp.next_marker #=> String
2246
+ # resp.layer_versions #=> Array
2247
+ # resp.layer_versions[0].layer_version_arn #=> String
2248
+ # resp.layer_versions[0].version #=> Integer
2249
+ # resp.layer_versions[0].description #=> String
2250
+ # resp.layer_versions[0].created_date #=> Time
2251
+ # resp.layer_versions[0].compatible_runtimes #=> Array
2252
+ # resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
2253
+ # resp.layer_versions[0].license_info #=> String
2254
+ #
2255
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions AWS API Documentation
2256
+ #
2257
+ # @overload list_layer_versions(params = {})
2258
+ # @param [Hash] params ({})
2259
+ def list_layer_versions(params = {}, options = {})
2260
+ req = build_request(:list_layer_versions, params)
2261
+ req.send_request(options)
2262
+ end
2263
+
2264
+ # Lists function layers and shows information about the latest version
2265
+ # of each. Specify a [runtime identifier][1] to list only layers that
2266
+ # indicate that they're compatible with that runtime.
2267
+ #
2268
+ #
2269
+ #
2270
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
2271
+ #
2272
+ # @option params [String] :compatible_runtime
2273
+ # A runtime identifier. For example, `go1.x`.
2274
+ #
2275
+ # @option params [String] :marker
2276
+ # A pagination token returned by a previous call.
2277
+ #
2278
+ # @option params [Integer] :max_items
2279
+ # The maximum number of layers to return.
2280
+ #
2281
+ # @return [Types::ListLayersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2282
+ #
2283
+ # * {Types::ListLayersResponse#next_marker #next_marker} => String
2284
+ # * {Types::ListLayersResponse#layers #layers} => Array&lt;Types::LayersListItem&gt;
2285
+ #
2286
+ # @example Request syntax with placeholder values
2287
+ #
2288
+ # resp = client.list_layers({
2289
+ # compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, provided
2290
+ # marker: "String",
2291
+ # max_items: 1,
2292
+ # })
2293
+ #
2294
+ # @example Response structure
2295
+ #
2296
+ # resp.next_marker #=> String
2297
+ # resp.layers #=> Array
2298
+ # resp.layers[0].layer_name #=> String
2299
+ # resp.layers[0].layer_arn #=> String
2300
+ # resp.layers[0].latest_matching_version.layer_version_arn #=> String
2301
+ # resp.layers[0].latest_matching_version.version #=> Integer
2302
+ # resp.layers[0].latest_matching_version.description #=> String
2303
+ # resp.layers[0].latest_matching_version.created_date #=> Time
2304
+ # resp.layers[0].latest_matching_version.compatible_runtimes #=> Array
2305
+ # resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
2306
+ # resp.layers[0].latest_matching_version.license_info #=> String
2307
+ #
2308
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers AWS API Documentation
2309
+ #
2310
+ # @overload list_layers(params = {})
2311
+ # @param [Hash] params ({})
2312
+ def list_layers(params = {}, options = {})
2313
+ req = build_request(:list_layers, params)
2314
+ req.send_request(options)
2315
+ end
2316
+
2008
2317
  # Returns a list of tags assigned to a function when supplied the
2009
2318
  # function ARN (Amazon Resource Name). For more information on Tagging,
2010
2319
  # see [Tagging Lambda Functions][1] in the **AWS Lambda Developer
@@ -2116,7 +2425,7 @@ module Aws::Lambda
2116
2425
  # resp.versions #=> Array
2117
2426
  # resp.versions[0].function_name #=> String
2118
2427
  # resp.versions[0].function_arn #=> String
2119
- # resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
2428
+ # resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
2120
2429
  # resp.versions[0].role #=> String
2121
2430
  # resp.versions[0].handler #=> String
2122
2431
  # resp.versions[0].code_size #=> Integer
@@ -2140,6 +2449,9 @@ module Aws::Lambda
2140
2449
  # resp.versions[0].tracing_config.mode #=> String, one of "Active", "PassThrough"
2141
2450
  # resp.versions[0].master_arn #=> String
2142
2451
  # resp.versions[0].revision_id #=> String
2452
+ # resp.versions[0].layers #=> Array
2453
+ # resp.versions[0].layers[0].arn #=> String
2454
+ # resp.versions[0].layers[0].code_size #=> Integer
2143
2455
  #
2144
2456
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
2145
2457
  #
@@ -2150,6 +2462,93 @@ module Aws::Lambda
2150
2462
  req.send_request(options)
2151
2463
  end
2152
2464
 
2465
+ # Creates a function layer from a ZIP archive. Each time you call
2466
+ # `PublishLayerVersion` with the same version name, a new version is
2467
+ # created.
2468
+ #
2469
+ # Add layers to your function with CreateFunction or
2470
+ # UpdateFunctionConfiguration.
2471
+ #
2472
+ # @option params [required, String] :layer_name
2473
+ # The name of the layer.
2474
+ #
2475
+ # @option params [String] :description
2476
+ # The description of the version.
2477
+ #
2478
+ # @option params [required, Types::LayerVersionContentInput] :content
2479
+ # The function layer archive.
2480
+ #
2481
+ # @option params [Array<String>] :compatible_runtimes
2482
+ # A list of compatible [function runtimes][1]. Used for filtering with
2483
+ # ListLayers and ListLayerVersions.
2484
+ #
2485
+ #
2486
+ #
2487
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
2488
+ #
2489
+ # @option params [String] :license_info
2490
+ # The layer's software license. It can be any of the following:
2491
+ #
2492
+ # * An [SPDX license identifier][1]. For example, `MIT`.
2493
+ #
2494
+ # * The URL of a license hosted on the internet. For example,
2495
+ # `https://opensource.org/licenses/MIT`.
2496
+ #
2497
+ # * The full text of the license.
2498
+ #
2499
+ #
2500
+ #
2501
+ # [1]: https://spdx.org/licenses/
2502
+ #
2503
+ # @return [Types::PublishLayerVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2504
+ #
2505
+ # * {Types::PublishLayerVersionResponse#content #content} => Types::LayerVersionContentOutput
2506
+ # * {Types::PublishLayerVersionResponse#layer_arn #layer_arn} => String
2507
+ # * {Types::PublishLayerVersionResponse#layer_version_arn #layer_version_arn} => String
2508
+ # * {Types::PublishLayerVersionResponse#description #description} => String
2509
+ # * {Types::PublishLayerVersionResponse#created_date #created_date} => Time
2510
+ # * {Types::PublishLayerVersionResponse#version #version} => Integer
2511
+ # * {Types::PublishLayerVersionResponse#compatible_runtimes #compatible_runtimes} => Array&lt;String&gt;
2512
+ # * {Types::PublishLayerVersionResponse#license_info #license_info} => String
2513
+ #
2514
+ # @example Request syntax with placeholder values
2515
+ #
2516
+ # resp = client.publish_layer_version({
2517
+ # layer_name: "LayerName", # required
2518
+ # description: "Description",
2519
+ # content: { # required
2520
+ # s3_bucket: "S3Bucket",
2521
+ # s3_key: "S3Key",
2522
+ # s3_object_version: "S3ObjectVersion",
2523
+ # zip_file: "data",
2524
+ # },
2525
+ # compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, provided
2526
+ # license_info: "LicenseInfo",
2527
+ # })
2528
+ #
2529
+ # @example Response structure
2530
+ #
2531
+ # resp.content.location #=> String
2532
+ # resp.content.code_sha_256 #=> String
2533
+ # resp.content.code_size #=> Integer
2534
+ # resp.layer_arn #=> String
2535
+ # resp.layer_version_arn #=> String
2536
+ # resp.description #=> String
2537
+ # resp.created_date #=> Time
2538
+ # resp.version #=> Integer
2539
+ # resp.compatible_runtimes #=> Array
2540
+ # resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
2541
+ # resp.license_info #=> String
2542
+ #
2543
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion AWS API Documentation
2544
+ #
2545
+ # @overload publish_layer_version(params = {})
2546
+ # @param [Hash] params ({})
2547
+ def publish_layer_version(params = {}, options = {})
2548
+ req = build_request(:publish_layer_version, params)
2549
+ req.send_request(options)
2550
+ end
2551
+
2153
2552
  # Publishes a version of your function from the current snapshot of
2154
2553
  # $LATEST. That is, AWS Lambda takes a snapshot of the function code and
2155
2554
  # configuration information from $LATEST and publishes a new version.
@@ -2217,6 +2616,7 @@ module Aws::Lambda
2217
2616
  # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
2218
2617
  # * {Types::FunctionConfiguration#master_arn #master_arn} => String
2219
2618
  # * {Types::FunctionConfiguration#revision_id #revision_id} => String
2619
+ # * {Types::FunctionConfiguration#layers #layers} => Array&lt;Types::Layer&gt;
2220
2620
  #
2221
2621
  #
2222
2622
  # @example Example: To publish a version of a Lambda function
@@ -2260,7 +2660,7 @@ module Aws::Lambda
2260
2660
  #
2261
2661
  # resp.function_name #=> String
2262
2662
  # resp.function_arn #=> String
2263
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
2663
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
2264
2664
  # resp.role #=> String
2265
2665
  # resp.handler #=> String
2266
2666
  # resp.code_size #=> Integer
@@ -2284,6 +2684,9 @@ module Aws::Lambda
2284
2684
  # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
2285
2685
  # resp.master_arn #=> String
2286
2686
  # resp.revision_id #=> String
2687
+ # resp.layers #=> Array
2688
+ # resp.layers[0].arn #=> String
2689
+ # resp.layers[0].code_size #=> Integer
2287
2690
  #
2288
2691
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
2289
2692
  #
@@ -2307,7 +2710,7 @@ module Aws::Lambda
2307
2710
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html
2308
2711
  #
2309
2712
  # @option params [required, String] :function_name
2310
- # The name of the lambda function.
2713
+ # The name of the Lambda function.
2311
2714
  #
2312
2715
  # **Name formats**
2313
2716
  #
@@ -2348,6 +2751,43 @@ module Aws::Lambda
2348
2751
  req.send_request(options)
2349
2752
  end
2350
2753
 
2754
+ # Removes a statement from the permissions policy for a layer version.
2755
+ # For more information, see AddLayerVersionPermission.
2756
+ #
2757
+ # @option params [required, String] :layer_name
2758
+ # The name of the layer.
2759
+ #
2760
+ # @option params [required, Integer] :version_number
2761
+ # The version number.
2762
+ #
2763
+ # @option params [required, String] :statement_id
2764
+ # The identifier that was specified when the statement was added.
2765
+ #
2766
+ # @option params [String] :revision_id
2767
+ # Only update the policy if the revision ID matches the ID specified.
2768
+ # Use this option to avoid modifying a policy that has changed since you
2769
+ # last read it.
2770
+ #
2771
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2772
+ #
2773
+ # @example Request syntax with placeholder values
2774
+ #
2775
+ # resp = client.remove_layer_version_permission({
2776
+ # layer_name: "LayerName", # required
2777
+ # version_number: 1, # required
2778
+ # statement_id: "StatementId", # required
2779
+ # revision_id: "String",
2780
+ # })
2781
+ #
2782
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemoveLayerVersionPermission AWS API Documentation
2783
+ #
2784
+ # @overload remove_layer_version_permission(params = {})
2785
+ # @param [Hash] params ({})
2786
+ def remove_layer_version_permission(params = {}, options = {})
2787
+ req = build_request(:remove_layer_version_permission, params)
2788
+ req.send_request(options)
2789
+ end
2790
+
2351
2791
  # Removes permissions from a function. You can remove individual
2352
2792
  # permissions from an resource policy associated with a Lambda function
2353
2793
  # by providing a statement ID that you provided when you added the
@@ -2368,7 +2808,7 @@ module Aws::Lambda
2368
2808
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
2369
2809
  #
2370
2810
  # @option params [required, String] :function_name
2371
- # The name of the lambda function.
2811
+ # The name of the Lambda function.
2372
2812
  #
2373
2813
  # **Name formats**
2374
2814
  #
@@ -2753,7 +3193,7 @@ module Aws::Lambda
2753
3193
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
2754
3194
  #
2755
3195
  # @option params [required, String] :function_name
2756
- # The name of the lambda function.
3196
+ # The name of the Lambda function.
2757
3197
  #
2758
3198
  # **Name formats**
2759
3199
  #
@@ -2832,6 +3272,7 @@ module Aws::Lambda
2832
3272
  # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
2833
3273
  # * {Types::FunctionConfiguration#master_arn #master_arn} => String
2834
3274
  # * {Types::FunctionConfiguration#revision_id #revision_id} => String
3275
+ # * {Types::FunctionConfiguration#layers #layers} => Array&lt;Types::Layer&gt;
2835
3276
  #
2836
3277
  #
2837
3278
  # @example Example: To update a Lambda function's code
@@ -2882,7 +3323,7 @@ module Aws::Lambda
2882
3323
  #
2883
3324
  # resp.function_name #=> String
2884
3325
  # resp.function_arn #=> String
2885
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
3326
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
2886
3327
  # resp.role #=> String
2887
3328
  # resp.handler #=> String
2888
3329
  # resp.code_size #=> Integer
@@ -2906,6 +3347,9 @@ module Aws::Lambda
2906
3347
  # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
2907
3348
  # resp.master_arn #=> String
2908
3349
  # resp.revision_id #=> String
3350
+ # resp.layers #=> Array
3351
+ # resp.layers[0].arn #=> String
3352
+ # resp.layers[0].code_size #=> Integer
2909
3353
  #
2910
3354
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
2911
3355
  #
@@ -2935,7 +3379,7 @@ module Aws::Lambda
2935
3379
  # [1]: http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
2936
3380
  #
2937
3381
  # @option params [required, String] :function_name
2938
- # The name of the lambda function.
3382
+ # The name of the Lambda function.
2939
3383
  #
2940
3384
  # **Name formats**
2941
3385
  #
@@ -3012,6 +3456,14 @@ module Aws::Lambda
3012
3456
  # function version or alias `RevisionID` using either GetFunction or
3013
3457
  # GetAlias.
3014
3458
  #
3459
+ # @option params [Array<String>] :layers
3460
+ # A list of [function layers][1] to add to the function's execution
3461
+ # environment.
3462
+ #
3463
+ #
3464
+ #
3465
+ # [1]: http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
3466
+ #
3015
3467
  # @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3016
3468
  #
3017
3469
  # * {Types::FunctionConfiguration#function_name #function_name} => String
@@ -3033,6 +3485,7 @@ module Aws::Lambda
3033
3485
  # * {Types::FunctionConfiguration#tracing_config #tracing_config} => Types::TracingConfigResponse
3034
3486
  # * {Types::FunctionConfiguration#master_arn #master_arn} => String
3035
3487
  # * {Types::FunctionConfiguration#revision_id #revision_id} => String
3488
+ # * {Types::FunctionConfiguration#layers #layers} => Array&lt;Types::Layer&gt;
3036
3489
  #
3037
3490
  #
3038
3491
  # @example Example: To update a Lambda function's configuration
@@ -3087,7 +3540,7 @@ module Aws::Lambda
3087
3540
  # "EnvironmentVariableName" => "EnvironmentVariableValue",
3088
3541
  # },
3089
3542
  # },
3090
- # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x
3543
+ # runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, provided
3091
3544
  # dead_letter_config: {
3092
3545
  # target_arn: "ResourceArn",
3093
3546
  # },
@@ -3096,13 +3549,14 @@ module Aws::Lambda
3096
3549
  # mode: "Active", # accepts Active, PassThrough
3097
3550
  # },
3098
3551
  # revision_id: "String",
3552
+ # layers: ["LayerVersionArn"],
3099
3553
  # })
3100
3554
  #
3101
3555
  # @example Response structure
3102
3556
  #
3103
3557
  # resp.function_name #=> String
3104
3558
  # resp.function_arn #=> String
3105
- # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x"
3559
+ # resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"
3106
3560
  # resp.role #=> String
3107
3561
  # resp.handler #=> String
3108
3562
  # resp.code_size #=> Integer
@@ -3126,6 +3580,9 @@ module Aws::Lambda
3126
3580
  # resp.tracing_config.mode #=> String, one of "Active", "PassThrough"
3127
3581
  # resp.master_arn #=> String
3128
3582
  # resp.revision_id #=> String
3583
+ # resp.layers #=> Array
3584
+ # resp.layers[0].arn #=> String
3585
+ # resp.layers[0].code_size #=> Integer
3129
3586
  #
3130
3587
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
3131
3588
  #
@@ -3149,7 +3606,7 @@ module Aws::Lambda
3149
3606
  params: params,
3150
3607
  config: config)
3151
3608
  context[:gem_name] = 'aws-sdk-lambda'
3152
- context[:gem_version] = '1.15.0'
3609
+ context[:gem_version] = '1.16.0'
3153
3610
  Seahorse::Client::Request.new(handlers, context)
3154
3611
  end
3155
3612