aws-sdk-lambda 1.43.1 → 1.44.0
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 +3 -1
- data/lib/aws-sdk-lambda/client.rb +58 -8
- data/lib/aws-sdk-lambda/client_api.rb +39 -0
- data/lib/aws-sdk-lambda/errors.rb +86 -0
- data/lib/aws-sdk-lambda/resource.rb +2 -0
- data/lib/aws-sdk-lambda/types.rb +133 -7
- data/lib/aws-sdk-lambda/waiters.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9d63fec3b2f344e942c399842f3ec0b624c6f8598c135c57d83b767efcd823e
|
4
|
+
data.tar.gz: 99739888eb4f5ee6f98c373887b785d327f5456bf99490d4b3f0c12bb94c40ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e20e618a0602b5d7687ade5405f0b58a2384f0636bdcc9fbcae2d701e4921b542f194686f49e05c21ae33d63482b3bc1b0e6a4021ff7554a578ccdbc45d2b00d
|
7
|
+
data.tar.gz: a73a5cd71339643e4882e8608c955cc118c09157c4dfe606059a74ba4300099eea4e8bf77941e91fcc3a800c51caaff7e62314ebda988e4fc108533375724776
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -46,6 +48,6 @@ require_relative 'aws-sdk-lambda/customizations'
|
|
46
48
|
# @service
|
47
49
|
module Aws::Lambda
|
48
50
|
|
49
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.44.0'
|
50
52
|
|
51
53
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -582,7 +584,7 @@ module Aws::Lambda
|
|
582
584
|
#
|
583
585
|
#
|
584
586
|
#
|
585
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
587
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing
|
586
588
|
#
|
587
589
|
# @return [Types::AliasConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
588
590
|
#
|
@@ -993,6 +995,9 @@ module Aws::Lambda
|
|
993
995
|
#
|
994
996
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
|
995
997
|
#
|
998
|
+
# @option params [Array<Types::FileSystemConfig>] :file_system_configs
|
999
|
+
# Connection settings for an Amazon EFS file system.
|
1000
|
+
#
|
996
1001
|
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
997
1002
|
#
|
998
1003
|
# * {Types::FunctionConfiguration#function_name #function_name} => String
|
@@ -1021,6 +1026,7 @@ module Aws::Lambda
|
|
1021
1026
|
# * {Types::FunctionConfiguration#last_update_status #last_update_status} => String
|
1022
1027
|
# * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
|
1023
1028
|
# * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
|
1029
|
+
# * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array<Types::FileSystemConfig>
|
1024
1030
|
#
|
1025
1031
|
#
|
1026
1032
|
# @example Example: To create a function
|
@@ -1122,6 +1128,12 @@ module Aws::Lambda
|
|
1122
1128
|
# "TagKey" => "TagValue",
|
1123
1129
|
# },
|
1124
1130
|
# layers: ["LayerVersionArn"],
|
1131
|
+
# file_system_configs: [
|
1132
|
+
# {
|
1133
|
+
# arn: "FileSystemArn", # required
|
1134
|
+
# local_mount_path: "LocalMountPath", # required
|
1135
|
+
# },
|
1136
|
+
# ],
|
1125
1137
|
# })
|
1126
1138
|
#
|
1127
1139
|
# @example Response structure
|
@@ -1161,6 +1173,9 @@ module Aws::Lambda
|
|
1161
1173
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
1162
1174
|
# resp.last_update_status_reason #=> String
|
1163
1175
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
1176
|
+
# resp.file_system_configs #=> Array
|
1177
|
+
# resp.file_system_configs[0].arn #=> String
|
1178
|
+
# resp.file_system_configs[0].local_mount_path #=> String
|
1164
1179
|
#
|
1165
1180
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
|
1166
1181
|
#
|
@@ -1893,6 +1908,9 @@ module Aws::Lambda
|
|
1893
1908
|
# resp.configuration.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
1894
1909
|
# resp.configuration.last_update_status_reason #=> String
|
1895
1910
|
# resp.configuration.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
1911
|
+
# resp.configuration.file_system_configs #=> Array
|
1912
|
+
# resp.configuration.file_system_configs[0].arn #=> String
|
1913
|
+
# resp.configuration.file_system_configs[0].local_mount_path #=> String
|
1896
1914
|
# resp.code.repository_type #=> String
|
1897
1915
|
# resp.code.location #=> String
|
1898
1916
|
# resp.tags #=> Hash
|
@@ -2025,6 +2043,7 @@ module Aws::Lambda
|
|
2025
2043
|
# * {Types::FunctionConfiguration#last_update_status #last_update_status} => String
|
2026
2044
|
# * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
|
2027
2045
|
# * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
|
2046
|
+
# * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array<Types::FileSystemConfig>
|
2028
2047
|
#
|
2029
2048
|
#
|
2030
2049
|
# @example Example: To get a Lambda function's event source mapping
|
@@ -2109,6 +2128,9 @@ module Aws::Lambda
|
|
2109
2128
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
2110
2129
|
# resp.last_update_status_reason #=> String
|
2111
2130
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
2131
|
+
# resp.file_system_configs #=> Array
|
2132
|
+
# resp.file_system_configs[0].arn #=> String
|
2133
|
+
# resp.file_system_configs[0].local_mount_path #=> String
|
2112
2134
|
#
|
2113
2135
|
#
|
2114
2136
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -2508,9 +2530,9 @@ module Aws::Lambda
|
|
2508
2530
|
# * {Types::GetProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
|
2509
2531
|
#
|
2510
2532
|
#
|
2511
|
-
# @example Example: To
|
2533
|
+
# @example Example: To view a provisioned concurrency configuration
|
2512
2534
|
#
|
2513
|
-
# # The following example
|
2535
|
+
# # The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified
|
2514
2536
|
# # function.
|
2515
2537
|
#
|
2516
2538
|
# resp = client.get_provisioned_concurrency_config({
|
@@ -2527,9 +2549,9 @@ module Aws::Lambda
|
|
2527
2549
|
# status: "READY",
|
2528
2550
|
# }
|
2529
2551
|
#
|
2530
|
-
# @example Example: To
|
2552
|
+
# @example Example: To get a provisioned concurrency configuration
|
2531
2553
|
#
|
2532
|
-
# # The following example
|
2554
|
+
# # The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified
|
2533
2555
|
# # function.
|
2534
2556
|
#
|
2535
2557
|
# resp = client.get_provisioned_concurrency_config({
|
@@ -3234,6 +3256,9 @@ module Aws::Lambda
|
|
3234
3256
|
# resp.functions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
3235
3257
|
# resp.functions[0].last_update_status_reason #=> String
|
3236
3258
|
# resp.functions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
3259
|
+
# resp.functions[0].file_system_configs #=> Array
|
3260
|
+
# resp.functions[0].file_system_configs[0].arn #=> String
|
3261
|
+
# resp.functions[0].file_system_configs[0].local_mount_path #=> String
|
3237
3262
|
#
|
3238
3263
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
|
3239
3264
|
#
|
@@ -3712,6 +3737,9 @@ module Aws::Lambda
|
|
3712
3737
|
# resp.versions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
3713
3738
|
# resp.versions[0].last_update_status_reason #=> String
|
3714
3739
|
# resp.versions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
3740
|
+
# resp.versions[0].file_system_configs #=> Array
|
3741
|
+
# resp.versions[0].file_system_configs[0].arn #=> String
|
3742
|
+
# resp.versions[0].file_system_configs[0].local_mount_path #=> String
|
3715
3743
|
#
|
3716
3744
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
|
3717
3745
|
#
|
@@ -3927,6 +3955,7 @@ module Aws::Lambda
|
|
3927
3955
|
# * {Types::FunctionConfiguration#last_update_status #last_update_status} => String
|
3928
3956
|
# * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
|
3929
3957
|
# * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
|
3958
|
+
# * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array<Types::FileSystemConfig>
|
3930
3959
|
#
|
3931
3960
|
#
|
3932
3961
|
# @example Example: To publish a version of a Lambda function
|
@@ -4014,6 +4043,9 @@ module Aws::Lambda
|
|
4014
4043
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
4015
4044
|
# resp.last_update_status_reason #=> String
|
4016
4045
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
4046
|
+
# resp.file_system_configs #=> Array
|
4047
|
+
# resp.file_system_configs[0].arn #=> String
|
4048
|
+
# resp.file_system_configs[0].local_mount_path #=> String
|
4017
4049
|
#
|
4018
4050
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
|
4019
4051
|
#
|
@@ -4104,7 +4136,8 @@ module Aws::Lambda
|
|
4104
4136
|
# version, or alias. If a configuration already exists for a function,
|
4105
4137
|
# version, or alias, this operation overwrites it. If you exclude any
|
4106
4138
|
# settings, they are removed. To set one option without affecting
|
4107
|
-
# existing settings for other options, use
|
4139
|
+
# existing settings for other options, use
|
4140
|
+
# UpdateFunctionEventInvokeConfig.
|
4108
4141
|
#
|
4109
4142
|
# By default, Lambda retries an asynchronous invocation twice if the
|
4110
4143
|
# function returns an error. It retains events in a queue for up to six
|
@@ -4553,7 +4586,7 @@ module Aws::Lambda
|
|
4553
4586
|
#
|
4554
4587
|
#
|
4555
4588
|
#
|
4556
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
4589
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing
|
4557
4590
|
#
|
4558
4591
|
# @option params [String] :revision_id
|
4559
4592
|
# Only update the alias if the revision ID matches the ID that's
|
@@ -4879,6 +4912,7 @@ module Aws::Lambda
|
|
4879
4912
|
# * {Types::FunctionConfiguration#last_update_status #last_update_status} => String
|
4880
4913
|
# * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
|
4881
4914
|
# * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
|
4915
|
+
# * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array<Types::FileSystemConfig>
|
4882
4916
|
#
|
4883
4917
|
#
|
4884
4918
|
# @example Example: To update a Lambda function's code
|
@@ -4962,6 +4996,9 @@ module Aws::Lambda
|
|
4962
4996
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
4963
4997
|
# resp.last_update_status_reason #=> String
|
4964
4998
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
4999
|
+
# resp.file_system_configs #=> Array
|
5000
|
+
# resp.file_system_configs[0].arn #=> String
|
5001
|
+
# resp.file_system_configs[0].local_mount_path #=> String
|
4965
5002
|
#
|
4966
5003
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
|
4967
5004
|
#
|
@@ -5089,6 +5126,9 @@ module Aws::Lambda
|
|
5089
5126
|
#
|
5090
5127
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
|
5091
5128
|
#
|
5129
|
+
# @option params [Array<Types::FileSystemConfig>] :file_system_configs
|
5130
|
+
# Connection settings for an Amazon EFS file system.
|
5131
|
+
#
|
5092
5132
|
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5093
5133
|
#
|
5094
5134
|
# * {Types::FunctionConfiguration#function_name #function_name} => String
|
@@ -5117,6 +5157,7 @@ module Aws::Lambda
|
|
5117
5157
|
# * {Types::FunctionConfiguration#last_update_status #last_update_status} => String
|
5118
5158
|
# * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
|
5119
5159
|
# * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
|
5160
|
+
# * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array<Types::FileSystemConfig>
|
5120
5161
|
#
|
5121
5162
|
#
|
5122
5163
|
# @example Example: To update a Lambda function's configuration
|
@@ -5177,6 +5218,12 @@ module Aws::Lambda
|
|
5177
5218
|
# },
|
5178
5219
|
# revision_id: "String",
|
5179
5220
|
# layers: ["LayerVersionArn"],
|
5221
|
+
# file_system_configs: [
|
5222
|
+
# {
|
5223
|
+
# arn: "FileSystemArn", # required
|
5224
|
+
# local_mount_path: "LocalMountPath", # required
|
5225
|
+
# },
|
5226
|
+
# ],
|
5180
5227
|
# })
|
5181
5228
|
#
|
5182
5229
|
# @example Response structure
|
@@ -5216,6 +5263,9 @@ module Aws::Lambda
|
|
5216
5263
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
5217
5264
|
# resp.last_update_status_reason #=> String
|
5218
5265
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
5266
|
+
# resp.file_system_configs #=> Array
|
5267
|
+
# resp.file_system_configs[0].arn #=> String
|
5268
|
+
# resp.file_system_configs[0].local_mount_path #=> String
|
5219
5269
|
#
|
5220
5270
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
|
5221
5271
|
#
|
@@ -5360,7 +5410,7 @@ module Aws::Lambda
|
|
5360
5410
|
params: params,
|
5361
5411
|
config: config)
|
5362
5412
|
context[:gem_name] = 'aws-sdk-lambda'
|
5363
|
-
context[:gem_version] = '1.
|
5413
|
+
context[:gem_version] = '1.44.0'
|
5364
5414
|
Seahorse::Client::Request.new(handlers, context)
|
5365
5415
|
end
|
5366
5416
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -51,6 +53,10 @@ module Aws::Lambda
|
|
51
53
|
EC2AccessDeniedException = Shapes::StructureShape.new(name: 'EC2AccessDeniedException')
|
52
54
|
EC2ThrottledException = Shapes::StructureShape.new(name: 'EC2ThrottledException')
|
53
55
|
EC2UnexpectedException = Shapes::StructureShape.new(name: 'EC2UnexpectedException')
|
56
|
+
EFSIOException = Shapes::StructureShape.new(name: 'EFSIOException')
|
57
|
+
EFSMountConnectivityException = Shapes::StructureShape.new(name: 'EFSMountConnectivityException')
|
58
|
+
EFSMountFailureException = Shapes::StructureShape.new(name: 'EFSMountFailureException')
|
59
|
+
EFSMountTimeoutException = Shapes::StructureShape.new(name: 'EFSMountTimeoutException')
|
54
60
|
ENILimitReachedException = Shapes::StructureShape.new(name: 'ENILimitReachedException')
|
55
61
|
Enabled = Shapes::BooleanShape.new(name: 'Enabled')
|
56
62
|
Environment = Shapes::StructureShape.new(name: 'Environment')
|
@@ -63,6 +69,9 @@ module Aws::Lambda
|
|
63
69
|
EventSourceMappingsList = Shapes::ListShape.new(name: 'EventSourceMappingsList')
|
64
70
|
EventSourcePosition = Shapes::StringShape.new(name: 'EventSourcePosition')
|
65
71
|
EventSourceToken = Shapes::StringShape.new(name: 'EventSourceToken')
|
72
|
+
FileSystemArn = Shapes::StringShape.new(name: 'FileSystemArn')
|
73
|
+
FileSystemConfig = Shapes::StructureShape.new(name: 'FileSystemConfig')
|
74
|
+
FileSystemConfigList = Shapes::ListShape.new(name: 'FileSystemConfigList')
|
66
75
|
FunctionArn = Shapes::StringShape.new(name: 'FunctionArn')
|
67
76
|
FunctionCode = Shapes::StructureShape.new(name: 'FunctionCode')
|
68
77
|
FunctionCodeLocation = Shapes::StructureShape.new(name: 'FunctionCodeLocation')
|
@@ -147,6 +156,7 @@ module Aws::Lambda
|
|
147
156
|
ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse')
|
148
157
|
ListVersionsByFunctionRequest = Shapes::StructureShape.new(name: 'ListVersionsByFunctionRequest')
|
149
158
|
ListVersionsByFunctionResponse = Shapes::StructureShape.new(name: 'ListVersionsByFunctionResponse')
|
159
|
+
LocalMountPath = Shapes::StringShape.new(name: 'LocalMountPath')
|
150
160
|
LogType = Shapes::StringShape.new(name: 'LogType')
|
151
161
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
152
162
|
MasterRegion = Shapes::StringShape.new(name: 'MasterRegion')
|
@@ -337,6 +347,7 @@ module Aws::Lambda
|
|
337
347
|
CreateFunctionRequest.add_member(:tracing_config, Shapes::ShapeRef.new(shape: TracingConfig, location_name: "TracingConfig"))
|
338
348
|
CreateFunctionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
339
349
|
CreateFunctionRequest.add_member(:layers, Shapes::ShapeRef.new(shape: LayerList, location_name: "Layers"))
|
350
|
+
CreateFunctionRequest.add_member(:file_system_configs, Shapes::ShapeRef.new(shape: FileSystemConfigList, location_name: "FileSystemConfigs"))
|
340
351
|
CreateFunctionRequest.struct_class = Types::CreateFunctionRequest
|
341
352
|
|
342
353
|
DeadLetterConfig.add_member(:target_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "TargetArn"))
|
@@ -385,6 +396,22 @@ module Aws::Lambda
|
|
385
396
|
EC2UnexpectedException.add_member(:ec2_error_code, Shapes::ShapeRef.new(shape: String, location_name: "EC2ErrorCode"))
|
386
397
|
EC2UnexpectedException.struct_class = Types::EC2UnexpectedException
|
387
398
|
|
399
|
+
EFSIOException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
400
|
+
EFSIOException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
401
|
+
EFSIOException.struct_class = Types::EFSIOException
|
402
|
+
|
403
|
+
EFSMountConnectivityException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
404
|
+
EFSMountConnectivityException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
405
|
+
EFSMountConnectivityException.struct_class = Types::EFSMountConnectivityException
|
406
|
+
|
407
|
+
EFSMountFailureException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
408
|
+
EFSMountFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
409
|
+
EFSMountFailureException.struct_class = Types::EFSMountFailureException
|
410
|
+
|
411
|
+
EFSMountTimeoutException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
412
|
+
EFSMountTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
413
|
+
EFSMountTimeoutException.struct_class = Types::EFSMountTimeoutException
|
414
|
+
|
388
415
|
ENILimitReachedException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
389
416
|
ENILimitReachedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
390
417
|
ENILimitReachedException.struct_class = Types::ENILimitReachedException
|
@@ -421,6 +448,12 @@ module Aws::Lambda
|
|
421
448
|
|
422
449
|
EventSourceMappingsList.member = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
|
423
450
|
|
451
|
+
FileSystemConfig.add_member(:arn, Shapes::ShapeRef.new(shape: FileSystemArn, required: true, location_name: "Arn"))
|
452
|
+
FileSystemConfig.add_member(:local_mount_path, Shapes::ShapeRef.new(shape: LocalMountPath, required: true, location_name: "LocalMountPath"))
|
453
|
+
FileSystemConfig.struct_class = Types::FileSystemConfig
|
454
|
+
|
455
|
+
FileSystemConfigList.member = Shapes::ShapeRef.new(shape: FileSystemConfig)
|
456
|
+
|
424
457
|
FunctionCode.add_member(:zip_file, Shapes::ShapeRef.new(shape: Blob, location_name: "ZipFile"))
|
425
458
|
FunctionCode.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "S3Bucket"))
|
426
459
|
FunctionCode.add_member(:s3_key, Shapes::ShapeRef.new(shape: S3Key, location_name: "S3Key"))
|
@@ -457,6 +490,7 @@ module Aws::Lambda
|
|
457
490
|
FunctionConfiguration.add_member(:last_update_status, Shapes::ShapeRef.new(shape: LastUpdateStatus, location_name: "LastUpdateStatus"))
|
458
491
|
FunctionConfiguration.add_member(:last_update_status_reason, Shapes::ShapeRef.new(shape: LastUpdateStatusReason, location_name: "LastUpdateStatusReason"))
|
459
492
|
FunctionConfiguration.add_member(:last_update_status_reason_code, Shapes::ShapeRef.new(shape: LastUpdateStatusReasonCode, location_name: "LastUpdateStatusReasonCode"))
|
493
|
+
FunctionConfiguration.add_member(:file_system_configs, Shapes::ShapeRef.new(shape: FileSystemConfigList, location_name: "FileSystemConfigs"))
|
460
494
|
FunctionConfiguration.struct_class = Types::FunctionConfiguration
|
461
495
|
|
462
496
|
FunctionEventInvokeConfig.add_member(:last_modified, Shapes::ShapeRef.new(shape: Date, location_name: "LastModified"))
|
@@ -931,6 +965,7 @@ module Aws::Lambda
|
|
931
965
|
UpdateFunctionConfigurationRequest.add_member(:tracing_config, Shapes::ShapeRef.new(shape: TracingConfig, location_name: "TracingConfig"))
|
932
966
|
UpdateFunctionConfigurationRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
|
933
967
|
UpdateFunctionConfigurationRequest.add_member(:layers, Shapes::ShapeRef.new(shape: LayerList, location_name: "Layers"))
|
968
|
+
UpdateFunctionConfigurationRequest.add_member(:file_system_configs, Shapes::ShapeRef.new(shape: FileSystemConfigList, location_name: "FileSystemConfigs"))
|
934
969
|
UpdateFunctionConfigurationRequest.struct_class = Types::UpdateFunctionConfigurationRequest
|
935
970
|
|
936
971
|
UpdateFunctionEventInvokeConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
@@ -1280,6 +1315,10 @@ module Aws::Lambda
|
|
1280
1315
|
o.errors << Shapes::ShapeRef.new(shape: EC2UnexpectedException)
|
1281
1316
|
o.errors << Shapes::ShapeRef.new(shape: SubnetIPAddressLimitReachedException)
|
1282
1317
|
o.errors << Shapes::ShapeRef.new(shape: ENILimitReachedException)
|
1318
|
+
o.errors << Shapes::ShapeRef.new(shape: EFSMountConnectivityException)
|
1319
|
+
o.errors << Shapes::ShapeRef.new(shape: EFSMountFailureException)
|
1320
|
+
o.errors << Shapes::ShapeRef.new(shape: EFSMountTimeoutException)
|
1321
|
+
o.errors << Shapes::ShapeRef.new(shape: EFSIOException)
|
1283
1322
|
o.errors << Shapes::ShapeRef.new(shape: EC2ThrottledException)
|
1284
1323
|
o.errors << Shapes::ShapeRef.new(shape: EC2AccessDeniedException)
|
1285
1324
|
o.errors << Shapes::ShapeRef.new(shape: InvalidSubnetIDException)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -29,6 +31,10 @@ module Aws::Lambda
|
|
29
31
|
# * {EC2AccessDeniedException}
|
30
32
|
# * {EC2ThrottledException}
|
31
33
|
# * {EC2UnexpectedException}
|
34
|
+
# * {EFSIOException}
|
35
|
+
# * {EFSMountConnectivityException}
|
36
|
+
# * {EFSMountFailureException}
|
37
|
+
# * {EFSMountTimeoutException}
|
32
38
|
# * {ENILimitReachedException}
|
33
39
|
# * {InvalidParameterValueException}
|
34
40
|
# * {InvalidRequestContentException}
|
@@ -144,6 +150,86 @@ module Aws::Lambda
|
|
144
150
|
end
|
145
151
|
end
|
146
152
|
|
153
|
+
class EFSIOException < ServiceError
|
154
|
+
|
155
|
+
# @param [Seahorse::Client::RequestContext] context
|
156
|
+
# @param [String] message
|
157
|
+
# @param [Aws::Lambda::Types::EFSIOException] data
|
158
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
159
|
+
super(context, message, data)
|
160
|
+
end
|
161
|
+
|
162
|
+
# @return [String]
|
163
|
+
def type
|
164
|
+
@data[:type]
|
165
|
+
end
|
166
|
+
|
167
|
+
# @return [String]
|
168
|
+
def message
|
169
|
+
@message || @data[:message]
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
class EFSMountConnectivityException < ServiceError
|
174
|
+
|
175
|
+
# @param [Seahorse::Client::RequestContext] context
|
176
|
+
# @param [String] message
|
177
|
+
# @param [Aws::Lambda::Types::EFSMountConnectivityException] data
|
178
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
179
|
+
super(context, message, data)
|
180
|
+
end
|
181
|
+
|
182
|
+
# @return [String]
|
183
|
+
def type
|
184
|
+
@data[:type]
|
185
|
+
end
|
186
|
+
|
187
|
+
# @return [String]
|
188
|
+
def message
|
189
|
+
@message || @data[:message]
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
class EFSMountFailureException < ServiceError
|
194
|
+
|
195
|
+
# @param [Seahorse::Client::RequestContext] context
|
196
|
+
# @param [String] message
|
197
|
+
# @param [Aws::Lambda::Types::EFSMountFailureException] data
|
198
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
199
|
+
super(context, message, data)
|
200
|
+
end
|
201
|
+
|
202
|
+
# @return [String]
|
203
|
+
def type
|
204
|
+
@data[:type]
|
205
|
+
end
|
206
|
+
|
207
|
+
# @return [String]
|
208
|
+
def message
|
209
|
+
@message || @data[:message]
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
class EFSMountTimeoutException < ServiceError
|
214
|
+
|
215
|
+
# @param [Seahorse::Client::RequestContext] context
|
216
|
+
# @param [String] message
|
217
|
+
# @param [Aws::Lambda::Types::EFSMountTimeoutException] data
|
218
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
219
|
+
super(context, message, data)
|
220
|
+
end
|
221
|
+
|
222
|
+
# @return [String]
|
223
|
+
def type
|
224
|
+
@data[:type]
|
225
|
+
end
|
226
|
+
|
227
|
+
# @return [String]
|
228
|
+
def message
|
229
|
+
@message || @data[:message]
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
147
233
|
class ENILimitReachedException < ServiceError
|
148
234
|
|
149
235
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -306,8 +308,8 @@ module Aws::Lambda
|
|
306
308
|
# }
|
307
309
|
#
|
308
310
|
# @!attribute [rw] additional_version_weights
|
309
|
-
# The
|
310
|
-
#
|
311
|
+
# The second version, and the percentage of traffic that's routed to
|
312
|
+
# it.
|
311
313
|
# @return [Hash<String,Float>]
|
312
314
|
#
|
313
315
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasRoutingConfiguration AWS API Documentation
|
@@ -403,7 +405,7 @@ module Aws::Lambda
|
|
403
405
|
#
|
404
406
|
#
|
405
407
|
#
|
406
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
408
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing
|
407
409
|
# @return [Types::AliasRoutingConfiguration]
|
408
410
|
#
|
409
411
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAliasRequest AWS API Documentation
|
@@ -583,6 +585,12 @@ module Aws::Lambda
|
|
583
585
|
# "TagKey" => "TagValue",
|
584
586
|
# },
|
585
587
|
# layers: ["LayerVersionArn"],
|
588
|
+
# file_system_configs: [
|
589
|
+
# {
|
590
|
+
# arn: "FileSystemArn", # required
|
591
|
+
# local_mount_path: "LocalMountPath", # required
|
592
|
+
# },
|
593
|
+
# ],
|
586
594
|
# }
|
587
595
|
#
|
588
596
|
# @!attribute [rw] function_name
|
@@ -703,6 +711,10 @@ module Aws::Lambda
|
|
703
711
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
|
704
712
|
# @return [Array<String>]
|
705
713
|
#
|
714
|
+
# @!attribute [rw] file_system_configs
|
715
|
+
# Connection settings for an Amazon EFS file system.
|
716
|
+
# @return [Array<Types::FileSystemConfig>]
|
717
|
+
#
|
706
718
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
|
707
719
|
#
|
708
720
|
class CreateFunctionRequest < Struct.new(
|
@@ -721,7 +733,8 @@ module Aws::Lambda
|
|
721
733
|
:kms_key_arn,
|
722
734
|
:tracing_config,
|
723
735
|
:tags,
|
724
|
-
:layers
|
736
|
+
:layers,
|
737
|
+
:file_system_configs)
|
725
738
|
include Aws::Structure
|
726
739
|
end
|
727
740
|
|
@@ -1057,6 +1070,74 @@ module Aws::Lambda
|
|
1057
1070
|
include Aws::Structure
|
1058
1071
|
end
|
1059
1072
|
|
1073
|
+
# An error occured when reading from or writing to a connected file
|
1074
|
+
# system.
|
1075
|
+
#
|
1076
|
+
# @!attribute [rw] type
|
1077
|
+
# @return [String]
|
1078
|
+
#
|
1079
|
+
# @!attribute [rw] message
|
1080
|
+
# @return [String]
|
1081
|
+
#
|
1082
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EFSIOException AWS API Documentation
|
1083
|
+
#
|
1084
|
+
class EFSIOException < Struct.new(
|
1085
|
+
:type,
|
1086
|
+
:message)
|
1087
|
+
include Aws::Structure
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
# The function couldn't make a network connection to the configured
|
1091
|
+
# file system.
|
1092
|
+
#
|
1093
|
+
# @!attribute [rw] type
|
1094
|
+
# @return [String]
|
1095
|
+
#
|
1096
|
+
# @!attribute [rw] message
|
1097
|
+
# @return [String]
|
1098
|
+
#
|
1099
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EFSMountConnectivityException AWS API Documentation
|
1100
|
+
#
|
1101
|
+
class EFSMountConnectivityException < Struct.new(
|
1102
|
+
:type,
|
1103
|
+
:message)
|
1104
|
+
include Aws::Structure
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
# The function couldn't mount the configured file system due to a
|
1108
|
+
# permission or configuration issue.
|
1109
|
+
#
|
1110
|
+
# @!attribute [rw] type
|
1111
|
+
# @return [String]
|
1112
|
+
#
|
1113
|
+
# @!attribute [rw] message
|
1114
|
+
# @return [String]
|
1115
|
+
#
|
1116
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EFSMountFailureException AWS API Documentation
|
1117
|
+
#
|
1118
|
+
class EFSMountFailureException < Struct.new(
|
1119
|
+
:type,
|
1120
|
+
:message)
|
1121
|
+
include Aws::Structure
|
1122
|
+
end
|
1123
|
+
|
1124
|
+
# The function was able to make a network connection to the configured
|
1125
|
+
# file system, but the mount operation timed out.
|
1126
|
+
#
|
1127
|
+
# @!attribute [rw] type
|
1128
|
+
# @return [String]
|
1129
|
+
#
|
1130
|
+
# @!attribute [rw] message
|
1131
|
+
# @return [String]
|
1132
|
+
#
|
1133
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EFSMountTimeoutException AWS API Documentation
|
1134
|
+
#
|
1135
|
+
class EFSMountTimeoutException < Struct.new(
|
1136
|
+
:type,
|
1137
|
+
:message)
|
1138
|
+
include Aws::Structure
|
1139
|
+
end
|
1140
|
+
|
1060
1141
|
# AWS Lambda was not able to create an elastic network interface in the
|
1061
1142
|
# VPC, specified as part of Lambda function configuration, because the
|
1062
1143
|
# limit for network interfaces has been reached.
|
@@ -1226,6 +1307,35 @@ module Aws::Lambda
|
|
1226
1307
|
include Aws::Structure
|
1227
1308
|
end
|
1228
1309
|
|
1310
|
+
# Details about the connection between a Lambda function and an Amazon
|
1311
|
+
# EFS file system.
|
1312
|
+
#
|
1313
|
+
# @note When making an API call, you may pass FileSystemConfig
|
1314
|
+
# data as a hash:
|
1315
|
+
#
|
1316
|
+
# {
|
1317
|
+
# arn: "FileSystemArn", # required
|
1318
|
+
# local_mount_path: "LocalMountPath", # required
|
1319
|
+
# }
|
1320
|
+
#
|
1321
|
+
# @!attribute [rw] arn
|
1322
|
+
# The Amazon Resource Name (ARN) of the Amazon EFS access point that
|
1323
|
+
# provides access to the file system.
|
1324
|
+
# @return [String]
|
1325
|
+
#
|
1326
|
+
# @!attribute [rw] local_mount_path
|
1327
|
+
# The path where the function can access the file system, starting
|
1328
|
+
# with `/mnt/`.
|
1329
|
+
# @return [String]
|
1330
|
+
#
|
1331
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FileSystemConfig AWS API Documentation
|
1332
|
+
#
|
1333
|
+
class FileSystemConfig < Struct.new(
|
1334
|
+
:arn,
|
1335
|
+
:local_mount_path)
|
1336
|
+
include Aws::Structure
|
1337
|
+
end
|
1338
|
+
|
1229
1339
|
# The code for the Lambda function. You can specify either an object in
|
1230
1340
|
# Amazon S3, or upload a deployment package directly.
|
1231
1341
|
#
|
@@ -1408,6 +1518,10 @@ module Aws::Lambda
|
|
1408
1518
|
# function.
|
1409
1519
|
# @return [String]
|
1410
1520
|
#
|
1521
|
+
# @!attribute [rw] file_system_configs
|
1522
|
+
# Connection settings for an Amazon EFS file system.
|
1523
|
+
# @return [Array<Types::FileSystemConfig>]
|
1524
|
+
#
|
1411
1525
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
|
1412
1526
|
#
|
1413
1527
|
class FunctionConfiguration < Struct.new(
|
@@ -1436,7 +1550,8 @@ module Aws::Lambda
|
|
1436
1550
|
:state_reason_code,
|
1437
1551
|
:last_update_status,
|
1438
1552
|
:last_update_status_reason,
|
1439
|
-
:last_update_status_reason_code
|
1553
|
+
:last_update_status_reason_code,
|
1554
|
+
:file_system_configs)
|
1440
1555
|
include Aws::Structure
|
1441
1556
|
end
|
1442
1557
|
|
@@ -3930,7 +4045,7 @@ module Aws::Lambda
|
|
3930
4045
|
#
|
3931
4046
|
#
|
3932
4047
|
#
|
3933
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
4048
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing
|
3934
4049
|
# @return [Types::AliasRoutingConfiguration]
|
3935
4050
|
#
|
3936
4051
|
# @!attribute [rw] revision_id
|
@@ -4166,6 +4281,12 @@ module Aws::Lambda
|
|
4166
4281
|
# },
|
4167
4282
|
# revision_id: "String",
|
4168
4283
|
# layers: ["LayerVersionArn"],
|
4284
|
+
# file_system_configs: [
|
4285
|
+
# {
|
4286
|
+
# arn: "FileSystemArn", # required
|
4287
|
+
# local_mount_path: "LocalMountPath", # required
|
4288
|
+
# },
|
4289
|
+
# ],
|
4169
4290
|
# }
|
4170
4291
|
#
|
4171
4292
|
# @!attribute [rw] function_name
|
@@ -4275,6 +4396,10 @@ module Aws::Lambda
|
|
4275
4396
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
|
4276
4397
|
# @return [Array<String>]
|
4277
4398
|
#
|
4399
|
+
# @!attribute [rw] file_system_configs
|
4400
|
+
# Connection settings for an Amazon EFS file system.
|
4401
|
+
# @return [Array<Types::FileSystemConfig>]
|
4402
|
+
#
|
4278
4403
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
|
4279
4404
|
#
|
4280
4405
|
class UpdateFunctionConfigurationRequest < Struct.new(
|
@@ -4291,7 +4416,8 @@ module Aws::Lambda
|
|
4291
4416
|
:kms_key_arn,
|
4292
4417
|
:tracing_config,
|
4293
4418
|
:revision_id,
|
4294
|
-
:layers
|
4419
|
+
:layers,
|
4420
|
+
:file_system_configs)
|
4295
4421
|
include Aws::Structure
|
4296
4422
|
end
|
4297
4423
|
|
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.
|
4
|
+
version: 1.44.0
|
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: 2020-06-
|
11
|
+
date: 2020-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|