aws-sdk-lambda 1.15.0 → 1.16.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 +1 -1
- data/lib/aws-sdk-lambda/client.rb +480 -23
- data/lib/aws-sdk-lambda/client_api.rb +253 -0
- data/lib/aws-sdk-lambda/types.rb +661 -18
- metadata +2 -2
@@ -14,6 +14,8 @@ module Aws::Lambda
|
|
14
14
|
AccountLimit = Shapes::StructureShape.new(name: 'AccountLimit')
|
15
15
|
AccountUsage = Shapes::StructureShape.new(name: 'AccountUsage')
|
16
16
|
Action = Shapes::StringShape.new(name: 'Action')
|
17
|
+
AddLayerVersionPermissionRequest = Shapes::StructureShape.new(name: 'AddLayerVersionPermissionRequest')
|
18
|
+
AddLayerVersionPermissionResponse = Shapes::StructureShape.new(name: 'AddLayerVersionPermissionResponse')
|
17
19
|
AddPermissionRequest = Shapes::StructureShape.new(name: 'AddPermissionRequest')
|
18
20
|
AddPermissionResponse = Shapes::StructureShape.new(name: 'AddPermissionResponse')
|
19
21
|
AdditionalVersion = Shapes::StringShape.new(name: 'AdditionalVersion')
|
@@ -28,6 +30,7 @@ module Aws::Lambda
|
|
28
30
|
BlobStream = Shapes::BlobShape.new(name: 'BlobStream')
|
29
31
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
30
32
|
CodeStorageExceededException = Shapes::StructureShape.new(name: 'CodeStorageExceededException')
|
33
|
+
CompatibleRuntimes = Shapes::ListShape.new(name: 'CompatibleRuntimes')
|
31
34
|
Concurrency = Shapes::StructureShape.new(name: 'Concurrency')
|
32
35
|
CreateAliasRequest = Shapes::StructureShape.new(name: 'CreateAliasRequest')
|
33
36
|
CreateEventSourceMappingRequest = Shapes::StructureShape.new(name: 'CreateEventSourceMappingRequest')
|
@@ -38,6 +41,7 @@ module Aws::Lambda
|
|
38
41
|
DeleteEventSourceMappingRequest = Shapes::StructureShape.new(name: 'DeleteEventSourceMappingRequest')
|
39
42
|
DeleteFunctionConcurrencyRequest = Shapes::StructureShape.new(name: 'DeleteFunctionConcurrencyRequest')
|
40
43
|
DeleteFunctionRequest = Shapes::StructureShape.new(name: 'DeleteFunctionRequest')
|
44
|
+
DeleteLayerVersionRequest = Shapes::StructureShape.new(name: 'DeleteLayerVersionRequest')
|
41
45
|
Description = Shapes::StringShape.new(name: 'Description')
|
42
46
|
EC2AccessDeniedException = Shapes::StructureShape.new(name: 'EC2AccessDeniedException')
|
43
47
|
EC2ThrottledException = Shapes::StructureShape.new(name: 'EC2ThrottledException')
|
@@ -68,6 +72,10 @@ module Aws::Lambda
|
|
68
72
|
GetFunctionConfigurationRequest = Shapes::StructureShape.new(name: 'GetFunctionConfigurationRequest')
|
69
73
|
GetFunctionRequest = Shapes::StructureShape.new(name: 'GetFunctionRequest')
|
70
74
|
GetFunctionResponse = Shapes::StructureShape.new(name: 'GetFunctionResponse')
|
75
|
+
GetLayerVersionPolicyRequest = Shapes::StructureShape.new(name: 'GetLayerVersionPolicyRequest')
|
76
|
+
GetLayerVersionPolicyResponse = Shapes::StructureShape.new(name: 'GetLayerVersionPolicyResponse')
|
77
|
+
GetLayerVersionRequest = Shapes::StructureShape.new(name: 'GetLayerVersionRequest')
|
78
|
+
GetLayerVersionResponse = Shapes::StructureShape.new(name: 'GetLayerVersionResponse')
|
71
79
|
GetPolicyRequest = Shapes::StructureShape.new(name: 'GetPolicyRequest')
|
72
80
|
GetPolicyResponse = Shapes::StructureShape.new(name: 'GetPolicyResponse')
|
73
81
|
Handler = Shapes::StringShape.new(name: 'Handler')
|
@@ -89,12 +97,32 @@ module Aws::Lambda
|
|
89
97
|
KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
|
90
98
|
KMSKeyArn = Shapes::StringShape.new(name: 'KMSKeyArn')
|
91
99
|
KMSNotFoundException = Shapes::StructureShape.new(name: 'KMSNotFoundException')
|
100
|
+
Layer = Shapes::StructureShape.new(name: 'Layer')
|
101
|
+
LayerArn = Shapes::StringShape.new(name: 'LayerArn')
|
102
|
+
LayerList = Shapes::ListShape.new(name: 'LayerList')
|
103
|
+
LayerName = Shapes::StringShape.new(name: 'LayerName')
|
104
|
+
LayerPermissionAllowedAction = Shapes::StringShape.new(name: 'LayerPermissionAllowedAction')
|
105
|
+
LayerPermissionAllowedPrincipal = Shapes::StringShape.new(name: 'LayerPermissionAllowedPrincipal')
|
106
|
+
LayerVersionArn = Shapes::StringShape.new(name: 'LayerVersionArn')
|
107
|
+
LayerVersionContentInput = Shapes::StructureShape.new(name: 'LayerVersionContentInput')
|
108
|
+
LayerVersionContentOutput = Shapes::StructureShape.new(name: 'LayerVersionContentOutput')
|
109
|
+
LayerVersionNumber = Shapes::IntegerShape.new(name: 'LayerVersionNumber')
|
110
|
+
LayerVersionsList = Shapes::ListShape.new(name: 'LayerVersionsList')
|
111
|
+
LayerVersionsListItem = Shapes::StructureShape.new(name: 'LayerVersionsListItem')
|
112
|
+
LayersList = Shapes::ListShape.new(name: 'LayersList')
|
113
|
+
LayersListItem = Shapes::StructureShape.new(name: 'LayersListItem')
|
114
|
+
LayersReferenceList = Shapes::ListShape.new(name: 'LayersReferenceList')
|
115
|
+
LicenseInfo = Shapes::StringShape.new(name: 'LicenseInfo')
|
92
116
|
ListAliasesRequest = Shapes::StructureShape.new(name: 'ListAliasesRequest')
|
93
117
|
ListAliasesResponse = Shapes::StructureShape.new(name: 'ListAliasesResponse')
|
94
118
|
ListEventSourceMappingsRequest = Shapes::StructureShape.new(name: 'ListEventSourceMappingsRequest')
|
95
119
|
ListEventSourceMappingsResponse = Shapes::StructureShape.new(name: 'ListEventSourceMappingsResponse')
|
96
120
|
ListFunctionsRequest = Shapes::StructureShape.new(name: 'ListFunctionsRequest')
|
97
121
|
ListFunctionsResponse = Shapes::StructureShape.new(name: 'ListFunctionsResponse')
|
122
|
+
ListLayerVersionsRequest = Shapes::StructureShape.new(name: 'ListLayerVersionsRequest')
|
123
|
+
ListLayerVersionsResponse = Shapes::StructureShape.new(name: 'ListLayerVersionsResponse')
|
124
|
+
ListLayersRequest = Shapes::StructureShape.new(name: 'ListLayersRequest')
|
125
|
+
ListLayersResponse = Shapes::StructureShape.new(name: 'ListLayersResponse')
|
98
126
|
ListTagsRequest = Shapes::StructureShape.new(name: 'ListTagsRequest')
|
99
127
|
ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse')
|
100
128
|
ListVersionsByFunctionRequest = Shapes::StructureShape.new(name: 'ListVersionsByFunctionRequest')
|
@@ -102,17 +130,22 @@ module Aws::Lambda
|
|
102
130
|
LogType = Shapes::StringShape.new(name: 'LogType')
|
103
131
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
104
132
|
MasterRegion = Shapes::StringShape.new(name: 'MasterRegion')
|
133
|
+
MaxLayerListItems = Shapes::IntegerShape.new(name: 'MaxLayerListItems')
|
105
134
|
MaxListItems = Shapes::IntegerShape.new(name: 'MaxListItems')
|
106
135
|
MemorySize = Shapes::IntegerShape.new(name: 'MemorySize')
|
107
136
|
NameSpacedFunctionArn = Shapes::StringShape.new(name: 'NameSpacedFunctionArn')
|
108
137
|
NamespacedFunctionName = Shapes::StringShape.new(name: 'NamespacedFunctionName')
|
109
138
|
NamespacedStatementId = Shapes::StringShape.new(name: 'NamespacedStatementId')
|
139
|
+
OrganizationId = Shapes::StringShape.new(name: 'OrganizationId')
|
110
140
|
PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
|
111
141
|
PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
|
112
142
|
Principal = Shapes::StringShape.new(name: 'Principal')
|
143
|
+
PublishLayerVersionRequest = Shapes::StructureShape.new(name: 'PublishLayerVersionRequest')
|
144
|
+
PublishLayerVersionResponse = Shapes::StructureShape.new(name: 'PublishLayerVersionResponse')
|
113
145
|
PublishVersionRequest = Shapes::StructureShape.new(name: 'PublishVersionRequest')
|
114
146
|
PutFunctionConcurrencyRequest = Shapes::StructureShape.new(name: 'PutFunctionConcurrencyRequest')
|
115
147
|
Qualifier = Shapes::StringShape.new(name: 'Qualifier')
|
148
|
+
RemoveLayerVersionPermissionRequest = Shapes::StructureShape.new(name: 'RemoveLayerVersionPermissionRequest')
|
116
149
|
RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
|
117
150
|
RequestTooLargeException = Shapes::StructureShape.new(name: 'RequestTooLargeException')
|
118
151
|
ReservedConcurrentExecutions = Shapes::IntegerShape.new(name: 'ReservedConcurrentExecutions')
|
@@ -171,6 +204,19 @@ module Aws::Lambda
|
|
171
204
|
AccountUsage.add_member(:function_count, Shapes::ShapeRef.new(shape: Long, location_name: "FunctionCount"))
|
172
205
|
AccountUsage.struct_class = Types::AccountUsage
|
173
206
|
|
207
|
+
AddLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
208
|
+
AddLayerVersionPermissionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
209
|
+
AddLayerVersionPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "StatementId"))
|
210
|
+
AddLayerVersionPermissionRequest.add_member(:action, Shapes::ShapeRef.new(shape: LayerPermissionAllowedAction, required: true, location_name: "Action"))
|
211
|
+
AddLayerVersionPermissionRequest.add_member(:principal, Shapes::ShapeRef.new(shape: LayerPermissionAllowedPrincipal, required: true, location_name: "Principal"))
|
212
|
+
AddLayerVersionPermissionRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, location_name: "OrganizationId"))
|
213
|
+
AddLayerVersionPermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "RevisionId"))
|
214
|
+
AddLayerVersionPermissionRequest.struct_class = Types::AddLayerVersionPermissionRequest
|
215
|
+
|
216
|
+
AddLayerVersionPermissionResponse.add_member(:statement, Shapes::ShapeRef.new(shape: String, location_name: "Statement"))
|
217
|
+
AddLayerVersionPermissionResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
|
218
|
+
AddLayerVersionPermissionResponse.struct_class = Types::AddLayerVersionPermissionResponse
|
219
|
+
|
174
220
|
AddPermissionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
175
221
|
AddPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "StatementId"))
|
176
222
|
AddPermissionRequest.add_member(:action, Shapes::ShapeRef.new(shape: Action, required: true, location_name: "Action"))
|
@@ -201,6 +247,8 @@ module Aws::Lambda
|
|
201
247
|
AliasRoutingConfiguration.add_member(:additional_version_weights, Shapes::ShapeRef.new(shape: AdditionalVersionWeights, location_name: "AdditionalVersionWeights"))
|
202
248
|
AliasRoutingConfiguration.struct_class = Types::AliasRoutingConfiguration
|
203
249
|
|
250
|
+
CompatibleRuntimes.member = Shapes::ShapeRef.new(shape: Runtime)
|
251
|
+
|
204
252
|
Concurrency.add_member(:reserved_concurrent_executions, Shapes::ShapeRef.new(shape: ReservedConcurrentExecutions, location_name: "ReservedConcurrentExecutions"))
|
205
253
|
Concurrency.struct_class = Types::Concurrency
|
206
254
|
|
@@ -234,6 +282,7 @@ module Aws::Lambda
|
|
234
282
|
CreateFunctionRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
|
235
283
|
CreateFunctionRequest.add_member(:tracing_config, Shapes::ShapeRef.new(shape: TracingConfig, location_name: "TracingConfig"))
|
236
284
|
CreateFunctionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
285
|
+
CreateFunctionRequest.add_member(:layers, Shapes::ShapeRef.new(shape: LayerList, location_name: "Layers"))
|
237
286
|
CreateFunctionRequest.struct_class = Types::CreateFunctionRequest
|
238
287
|
|
239
288
|
DeadLetterConfig.add_member(:target_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "TargetArn"))
|
@@ -253,6 +302,10 @@ module Aws::Lambda
|
|
253
302
|
DeleteFunctionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
254
303
|
DeleteFunctionRequest.struct_class = Types::DeleteFunctionRequest
|
255
304
|
|
305
|
+
DeleteLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
306
|
+
DeleteLayerVersionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
307
|
+
DeleteLayerVersionRequest.struct_class = Types::DeleteLayerVersionRequest
|
308
|
+
|
256
309
|
Environment.add_member(:variables, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "Variables"))
|
257
310
|
Environment.struct_class = Types::Environment
|
258
311
|
|
@@ -308,6 +361,7 @@ module Aws::Lambda
|
|
308
361
|
FunctionConfiguration.add_member(:tracing_config, Shapes::ShapeRef.new(shape: TracingConfigResponse, location_name: "TracingConfig"))
|
309
362
|
FunctionConfiguration.add_member(:master_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "MasterArn"))
|
310
363
|
FunctionConfiguration.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
|
364
|
+
FunctionConfiguration.add_member(:layers, Shapes::ShapeRef.new(shape: LayersReferenceList, location_name: "Layers"))
|
311
365
|
FunctionConfiguration.struct_class = Types::FunctionConfiguration
|
312
366
|
|
313
367
|
FunctionList.member = Shapes::ShapeRef.new(shape: FunctionConfiguration)
|
@@ -339,6 +393,28 @@ module Aws::Lambda
|
|
339
393
|
GetFunctionResponse.add_member(:concurrency, Shapes::ShapeRef.new(shape: Concurrency, location_name: "Concurrency"))
|
340
394
|
GetFunctionResponse.struct_class = Types::GetFunctionResponse
|
341
395
|
|
396
|
+
GetLayerVersionPolicyRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
397
|
+
GetLayerVersionPolicyRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
398
|
+
GetLayerVersionPolicyRequest.struct_class = Types::GetLayerVersionPolicyRequest
|
399
|
+
|
400
|
+
GetLayerVersionPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
|
401
|
+
GetLayerVersionPolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
|
402
|
+
GetLayerVersionPolicyResponse.struct_class = Types::GetLayerVersionPolicyResponse
|
403
|
+
|
404
|
+
GetLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
405
|
+
GetLayerVersionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
406
|
+
GetLayerVersionRequest.struct_class = Types::GetLayerVersionRequest
|
407
|
+
|
408
|
+
GetLayerVersionResponse.add_member(:content, Shapes::ShapeRef.new(shape: LayerVersionContentOutput, location_name: "Content"))
|
409
|
+
GetLayerVersionResponse.add_member(:layer_arn, Shapes::ShapeRef.new(shape: LayerArn, location_name: "LayerArn"))
|
410
|
+
GetLayerVersionResponse.add_member(:layer_version_arn, Shapes::ShapeRef.new(shape: LayerVersionArn, location_name: "LayerVersionArn"))
|
411
|
+
GetLayerVersionResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
412
|
+
GetLayerVersionResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedDate"))
|
413
|
+
GetLayerVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: LayerVersionNumber, location_name: "Version"))
|
414
|
+
GetLayerVersionResponse.add_member(:compatible_runtimes, Shapes::ShapeRef.new(shape: CompatibleRuntimes, location_name: "CompatibleRuntimes"))
|
415
|
+
GetLayerVersionResponse.add_member(:license_info, Shapes::ShapeRef.new(shape: LicenseInfo, location_name: "LicenseInfo"))
|
416
|
+
GetLayerVersionResponse.struct_class = Types::GetLayerVersionResponse
|
417
|
+
|
342
418
|
GetPolicyRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
343
419
|
GetPolicyRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
344
420
|
GetPolicyRequest.struct_class = Types::GetPolicyRequest
|
@@ -375,6 +451,42 @@ module Aws::Lambda
|
|
375
451
|
InvokeAsyncResponse.add_member(:status, Shapes::ShapeRef.new(shape: HttpStatus, location: "statusCode", location_name: "Status"))
|
376
452
|
InvokeAsyncResponse.struct_class = Types::InvokeAsyncResponse
|
377
453
|
|
454
|
+
Layer.add_member(:arn, Shapes::ShapeRef.new(shape: LayerVersionArn, location_name: "Arn"))
|
455
|
+
Layer.add_member(:code_size, Shapes::ShapeRef.new(shape: Long, location_name: "CodeSize"))
|
456
|
+
Layer.struct_class = Types::Layer
|
457
|
+
|
458
|
+
LayerList.member = Shapes::ShapeRef.new(shape: LayerVersionArn)
|
459
|
+
|
460
|
+
LayerVersionContentInput.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "S3Bucket"))
|
461
|
+
LayerVersionContentInput.add_member(:s3_key, Shapes::ShapeRef.new(shape: S3Key, location_name: "S3Key"))
|
462
|
+
LayerVersionContentInput.add_member(:s3_object_version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "S3ObjectVersion"))
|
463
|
+
LayerVersionContentInput.add_member(:zip_file, Shapes::ShapeRef.new(shape: Blob, location_name: "ZipFile"))
|
464
|
+
LayerVersionContentInput.struct_class = Types::LayerVersionContentInput
|
465
|
+
|
466
|
+
LayerVersionContentOutput.add_member(:location, Shapes::ShapeRef.new(shape: String, location_name: "Location"))
|
467
|
+
LayerVersionContentOutput.add_member(:code_sha_256, Shapes::ShapeRef.new(shape: String, location_name: "CodeSha256"))
|
468
|
+
LayerVersionContentOutput.add_member(:code_size, Shapes::ShapeRef.new(shape: Long, location_name: "CodeSize"))
|
469
|
+
LayerVersionContentOutput.struct_class = Types::LayerVersionContentOutput
|
470
|
+
|
471
|
+
LayerVersionsList.member = Shapes::ShapeRef.new(shape: LayerVersionsListItem)
|
472
|
+
|
473
|
+
LayerVersionsListItem.add_member(:layer_version_arn, Shapes::ShapeRef.new(shape: LayerVersionArn, location_name: "LayerVersionArn"))
|
474
|
+
LayerVersionsListItem.add_member(:version, Shapes::ShapeRef.new(shape: LayerVersionNumber, location_name: "Version"))
|
475
|
+
LayerVersionsListItem.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
476
|
+
LayerVersionsListItem.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedDate"))
|
477
|
+
LayerVersionsListItem.add_member(:compatible_runtimes, Shapes::ShapeRef.new(shape: CompatibleRuntimes, location_name: "CompatibleRuntimes"))
|
478
|
+
LayerVersionsListItem.add_member(:license_info, Shapes::ShapeRef.new(shape: LicenseInfo, location_name: "LicenseInfo"))
|
479
|
+
LayerVersionsListItem.struct_class = Types::LayerVersionsListItem
|
480
|
+
|
481
|
+
LayersList.member = Shapes::ShapeRef.new(shape: LayersListItem)
|
482
|
+
|
483
|
+
LayersListItem.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, location_name: "LayerName"))
|
484
|
+
LayersListItem.add_member(:layer_arn, Shapes::ShapeRef.new(shape: LayerArn, location_name: "LayerArn"))
|
485
|
+
LayersListItem.add_member(:latest_matching_version, Shapes::ShapeRef.new(shape: LayerVersionsListItem, location_name: "LatestMatchingVersion"))
|
486
|
+
LayersListItem.struct_class = Types::LayersListItem
|
487
|
+
|
488
|
+
LayersReferenceList.member = Shapes::ShapeRef.new(shape: Layer)
|
489
|
+
|
378
490
|
ListAliasesRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
379
491
|
ListAliasesRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: Version, location: "querystring", location_name: "FunctionVersion"))
|
380
492
|
ListAliasesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
|
@@ -405,6 +517,25 @@ module Aws::Lambda
|
|
405
517
|
ListFunctionsResponse.add_member(:functions, Shapes::ShapeRef.new(shape: FunctionList, location_name: "Functions"))
|
406
518
|
ListFunctionsResponse.struct_class = Types::ListFunctionsResponse
|
407
519
|
|
520
|
+
ListLayerVersionsRequest.add_member(:compatible_runtime, Shapes::ShapeRef.new(shape: Runtime, location: "querystring", location_name: "CompatibleRuntime"))
|
521
|
+
ListLayerVersionsRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
522
|
+
ListLayerVersionsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
|
523
|
+
ListLayerVersionsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxLayerListItems, location: "querystring", location_name: "MaxItems"))
|
524
|
+
ListLayerVersionsRequest.struct_class = Types::ListLayerVersionsRequest
|
525
|
+
|
526
|
+
ListLayerVersionsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
|
527
|
+
ListLayerVersionsResponse.add_member(:layer_versions, Shapes::ShapeRef.new(shape: LayerVersionsList, location_name: "LayerVersions"))
|
528
|
+
ListLayerVersionsResponse.struct_class = Types::ListLayerVersionsResponse
|
529
|
+
|
530
|
+
ListLayersRequest.add_member(:compatible_runtime, Shapes::ShapeRef.new(shape: Runtime, location: "querystring", location_name: "CompatibleRuntime"))
|
531
|
+
ListLayersRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
|
532
|
+
ListLayersRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxLayerListItems, location: "querystring", location_name: "MaxItems"))
|
533
|
+
ListLayersRequest.struct_class = Types::ListLayersRequest
|
534
|
+
|
535
|
+
ListLayersResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
|
536
|
+
ListLayersResponse.add_member(:layers, Shapes::ShapeRef.new(shape: LayersList, location_name: "Layers"))
|
537
|
+
ListLayersResponse.struct_class = Types::ListLayersResponse
|
538
|
+
|
408
539
|
ListTagsRequest.add_member(:resource, Shapes::ShapeRef.new(shape: FunctionArn, required: true, location: "uri", location_name: "ARN"))
|
409
540
|
ListTagsRequest.struct_class = Types::ListTagsRequest
|
410
541
|
|
@@ -420,6 +551,23 @@ module Aws::Lambda
|
|
420
551
|
ListVersionsByFunctionResponse.add_member(:versions, Shapes::ShapeRef.new(shape: FunctionList, location_name: "Versions"))
|
421
552
|
ListVersionsByFunctionResponse.struct_class = Types::ListVersionsByFunctionResponse
|
422
553
|
|
554
|
+
PublishLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
555
|
+
PublishLayerVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
556
|
+
PublishLayerVersionRequest.add_member(:content, Shapes::ShapeRef.new(shape: LayerVersionContentInput, required: true, location_name: "Content"))
|
557
|
+
PublishLayerVersionRequest.add_member(:compatible_runtimes, Shapes::ShapeRef.new(shape: CompatibleRuntimes, location_name: "CompatibleRuntimes"))
|
558
|
+
PublishLayerVersionRequest.add_member(:license_info, Shapes::ShapeRef.new(shape: LicenseInfo, location_name: "LicenseInfo"))
|
559
|
+
PublishLayerVersionRequest.struct_class = Types::PublishLayerVersionRequest
|
560
|
+
|
561
|
+
PublishLayerVersionResponse.add_member(:content, Shapes::ShapeRef.new(shape: LayerVersionContentOutput, location_name: "Content"))
|
562
|
+
PublishLayerVersionResponse.add_member(:layer_arn, Shapes::ShapeRef.new(shape: LayerArn, location_name: "LayerArn"))
|
563
|
+
PublishLayerVersionResponse.add_member(:layer_version_arn, Shapes::ShapeRef.new(shape: LayerVersionArn, location_name: "LayerVersionArn"))
|
564
|
+
PublishLayerVersionResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
565
|
+
PublishLayerVersionResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedDate"))
|
566
|
+
PublishLayerVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: LayerVersionNumber, location_name: "Version"))
|
567
|
+
PublishLayerVersionResponse.add_member(:compatible_runtimes, Shapes::ShapeRef.new(shape: CompatibleRuntimes, location_name: "CompatibleRuntimes"))
|
568
|
+
PublishLayerVersionResponse.add_member(:license_info, Shapes::ShapeRef.new(shape: LicenseInfo, location_name: "LicenseInfo"))
|
569
|
+
PublishLayerVersionResponse.struct_class = Types::PublishLayerVersionResponse
|
570
|
+
|
423
571
|
PublishVersionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
424
572
|
PublishVersionRequest.add_member(:code_sha_256, Shapes::ShapeRef.new(shape: String, location_name: "CodeSha256"))
|
425
573
|
PublishVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
@@ -430,6 +578,12 @@ module Aws::Lambda
|
|
430
578
|
PutFunctionConcurrencyRequest.add_member(:reserved_concurrent_executions, Shapes::ShapeRef.new(shape: ReservedConcurrentExecutions, required: true, location_name: "ReservedConcurrentExecutions"))
|
431
579
|
PutFunctionConcurrencyRequest.struct_class = Types::PutFunctionConcurrencyRequest
|
432
580
|
|
581
|
+
RemoveLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
582
|
+
RemoveLayerVersionPermissionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
583
|
+
RemoveLayerVersionPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location: "uri", location_name: "StatementId"))
|
584
|
+
RemoveLayerVersionPermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "RevisionId"))
|
585
|
+
RemoveLayerVersionPermissionRequest.struct_class = Types::RemoveLayerVersionPermissionRequest
|
586
|
+
|
433
587
|
RemovePermissionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
434
588
|
RemovePermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: NamespacedStatementId, required: true, location: "uri", location_name: "StatementId"))
|
435
589
|
RemovePermissionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
@@ -496,6 +650,7 @@ module Aws::Lambda
|
|
496
650
|
UpdateFunctionConfigurationRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
|
497
651
|
UpdateFunctionConfigurationRequest.add_member(:tracing_config, Shapes::ShapeRef.new(shape: TracingConfig, location_name: "TracingConfig"))
|
498
652
|
UpdateFunctionConfigurationRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
|
653
|
+
UpdateFunctionConfigurationRequest.add_member(:layers, Shapes::ShapeRef.new(shape: LayerList, location_name: "Layers"))
|
499
654
|
UpdateFunctionConfigurationRequest.struct_class = Types::UpdateFunctionConfigurationRequest
|
500
655
|
|
501
656
|
VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
|
@@ -523,6 +678,21 @@ module Aws::Lambda
|
|
523
678
|
"uid" => "lambda-2015-03-31",
|
524
679
|
}
|
525
680
|
|
681
|
+
api.add_operation(:add_layer_version_permission, Seahorse::Model::Operation.new.tap do |o|
|
682
|
+
o.name = "AddLayerVersionPermission"
|
683
|
+
o.http_method = "POST"
|
684
|
+
o.http_request_uri = "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy"
|
685
|
+
o.input = Shapes::ShapeRef.new(shape: AddLayerVersionPermissionRequest)
|
686
|
+
o.output = Shapes::ShapeRef.new(shape: AddLayerVersionPermissionResponse)
|
687
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
688
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
689
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
690
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
691
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
692
|
+
o.errors << Shapes::ShapeRef.new(shape: PolicyLengthExceededException)
|
693
|
+
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
|
694
|
+
end)
|
695
|
+
|
526
696
|
api.add_operation(:add_permission, Seahorse::Model::Operation.new.tap do |o|
|
527
697
|
o.name = "AddPermission"
|
528
698
|
o.http_method = "POST"
|
@@ -627,6 +797,16 @@ module Aws::Lambda
|
|
627
797
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
628
798
|
end)
|
629
799
|
|
800
|
+
api.add_operation(:delete_layer_version, Seahorse::Model::Operation.new.tap do |o|
|
801
|
+
o.name = "DeleteLayerVersion"
|
802
|
+
o.http_method = "DELETE"
|
803
|
+
o.http_request_uri = "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}"
|
804
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteLayerVersionRequest)
|
805
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
806
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
807
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
808
|
+
end)
|
809
|
+
|
630
810
|
api.add_operation(:get_account_settings, Seahorse::Model::Operation.new.tap do |o|
|
631
811
|
o.name = "GetAccountSettings"
|
632
812
|
o.http_method = "GET"
|
@@ -685,6 +865,30 @@ module Aws::Lambda
|
|
685
865
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
686
866
|
end)
|
687
867
|
|
868
|
+
api.add_operation(:get_layer_version, Seahorse::Model::Operation.new.tap do |o|
|
869
|
+
o.name = "GetLayerVersion"
|
870
|
+
o.http_method = "GET"
|
871
|
+
o.http_request_uri = "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}"
|
872
|
+
o.input = Shapes::ShapeRef.new(shape: GetLayerVersionRequest)
|
873
|
+
o.output = Shapes::ShapeRef.new(shape: GetLayerVersionResponse)
|
874
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
875
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
876
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
877
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
878
|
+
end)
|
879
|
+
|
880
|
+
api.add_operation(:get_layer_version_policy, Seahorse::Model::Operation.new.tap do |o|
|
881
|
+
o.name = "GetLayerVersionPolicy"
|
882
|
+
o.http_method = "GET"
|
883
|
+
o.http_request_uri = "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy"
|
884
|
+
o.input = Shapes::ShapeRef.new(shape: GetLayerVersionPolicyRequest)
|
885
|
+
o.output = Shapes::ShapeRef.new(shape: GetLayerVersionPolicyResponse)
|
886
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
887
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
888
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
889
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
890
|
+
end)
|
891
|
+
|
688
892
|
api.add_operation(:get_policy, Seahorse::Model::Operation.new.tap do |o|
|
689
893
|
o.name = "GetPolicy"
|
690
894
|
o.http_method = "GET"
|
@@ -785,6 +989,29 @@ module Aws::Lambda
|
|
785
989
|
)
|
786
990
|
end)
|
787
991
|
|
992
|
+
api.add_operation(:list_layer_versions, Seahorse::Model::Operation.new.tap do |o|
|
993
|
+
o.name = "ListLayerVersions"
|
994
|
+
o.http_method = "GET"
|
995
|
+
o.http_request_uri = "/2018-10-31/layers/{LayerName}/versions"
|
996
|
+
o.input = Shapes::ShapeRef.new(shape: ListLayerVersionsRequest)
|
997
|
+
o.output = Shapes::ShapeRef.new(shape: ListLayerVersionsResponse)
|
998
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
999
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1000
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1001
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1002
|
+
end)
|
1003
|
+
|
1004
|
+
api.add_operation(:list_layers, Seahorse::Model::Operation.new.tap do |o|
|
1005
|
+
o.name = "ListLayers"
|
1006
|
+
o.http_method = "GET"
|
1007
|
+
o.http_request_uri = "/2018-10-31/layers"
|
1008
|
+
o.input = Shapes::ShapeRef.new(shape: ListLayersRequest)
|
1009
|
+
o.output = Shapes::ShapeRef.new(shape: ListLayersResponse)
|
1010
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1011
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1012
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1013
|
+
end)
|
1014
|
+
|
788
1015
|
api.add_operation(:list_tags, Seahorse::Model::Operation.new.tap do |o|
|
789
1016
|
o.name = "ListTags"
|
790
1017
|
o.http_method = "GET"
|
@@ -809,6 +1036,19 @@ module Aws::Lambda
|
|
809
1036
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
810
1037
|
end)
|
811
1038
|
|
1039
|
+
api.add_operation(:publish_layer_version, Seahorse::Model::Operation.new.tap do |o|
|
1040
|
+
o.name = "PublishLayerVersion"
|
1041
|
+
o.http_method = "POST"
|
1042
|
+
o.http_request_uri = "/2018-10-31/layers/{LayerName}/versions"
|
1043
|
+
o.input = Shapes::ShapeRef.new(shape: PublishLayerVersionRequest)
|
1044
|
+
o.output = Shapes::ShapeRef.new(shape: PublishLayerVersionResponse)
|
1045
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1046
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1047
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1048
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1049
|
+
o.errors << Shapes::ShapeRef.new(shape: CodeStorageExceededException)
|
1050
|
+
end)
|
1051
|
+
|
812
1052
|
api.add_operation(:publish_version, Seahorse::Model::Operation.new.tap do |o|
|
813
1053
|
o.name = "PublishVersion"
|
814
1054
|
o.http_method = "POST"
|
@@ -835,6 +1075,19 @@ module Aws::Lambda
|
|
835
1075
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
836
1076
|
end)
|
837
1077
|
|
1078
|
+
api.add_operation(:remove_layer_version_permission, Seahorse::Model::Operation.new.tap do |o|
|
1079
|
+
o.name = "RemoveLayerVersionPermission"
|
1080
|
+
o.http_method = "DELETE"
|
1081
|
+
o.http_request_uri = "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}"
|
1082
|
+
o.input = Shapes::ShapeRef.new(shape: RemoveLayerVersionPermissionRequest)
|
1083
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1084
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1085
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1086
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1087
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1088
|
+
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
|
1089
|
+
end)
|
1090
|
+
|
838
1091
|
api.add_operation(:remove_permission, Seahorse::Model::Operation.new.tap do |o|
|
839
1092
|
o.name = "RemovePermission"
|
840
1093
|
o.http_method = "DELETE"
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -79,6 +79,81 @@ module Aws::Lambda
|
|
79
79
|
include Aws::Structure
|
80
80
|
end
|
81
81
|
|
82
|
+
# @note When making an API call, you may pass AddLayerVersionPermissionRequest
|
83
|
+
# data as a hash:
|
84
|
+
#
|
85
|
+
# {
|
86
|
+
# layer_name: "LayerName", # required
|
87
|
+
# version_number: 1, # required
|
88
|
+
# statement_id: "StatementId", # required
|
89
|
+
# action: "LayerPermissionAllowedAction", # required
|
90
|
+
# principal: "LayerPermissionAllowedPrincipal", # required
|
91
|
+
# organization_id: "OrganizationId",
|
92
|
+
# revision_id: "String",
|
93
|
+
# }
|
94
|
+
#
|
95
|
+
# @!attribute [rw] layer_name
|
96
|
+
# The name of the layer.
|
97
|
+
# @return [String]
|
98
|
+
#
|
99
|
+
# @!attribute [rw] version_number
|
100
|
+
# The version number.
|
101
|
+
# @return [Integer]
|
102
|
+
#
|
103
|
+
# @!attribute [rw] statement_id
|
104
|
+
# An identifier that distinguishes the policy from others on the same
|
105
|
+
# layer version.
|
106
|
+
# @return [String]
|
107
|
+
#
|
108
|
+
# @!attribute [rw] action
|
109
|
+
# The API action that grants access to the layer. For example,
|
110
|
+
# `lambda:GetLayerVersion`.
|
111
|
+
# @return [String]
|
112
|
+
#
|
113
|
+
# @!attribute [rw] principal
|
114
|
+
# An account ID, or `*` to grant permission to all AWS accounts.
|
115
|
+
# @return [String]
|
116
|
+
#
|
117
|
+
# @!attribute [rw] organization_id
|
118
|
+
# With the principal set to `*`, grant permission to all accounts in
|
119
|
+
# the specified organization.
|
120
|
+
# @return [String]
|
121
|
+
#
|
122
|
+
# @!attribute [rw] revision_id
|
123
|
+
# Only update the policy if the revision ID matches the ID specified.
|
124
|
+
# Use this option to avoid modifying a policy that has changed since
|
125
|
+
# you last read it.
|
126
|
+
# @return [String]
|
127
|
+
#
|
128
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermissionRequest AWS API Documentation
|
129
|
+
#
|
130
|
+
class AddLayerVersionPermissionRequest < Struct.new(
|
131
|
+
:layer_name,
|
132
|
+
:version_number,
|
133
|
+
:statement_id,
|
134
|
+
:action,
|
135
|
+
:principal,
|
136
|
+
:organization_id,
|
137
|
+
:revision_id)
|
138
|
+
include Aws::Structure
|
139
|
+
end
|
140
|
+
|
141
|
+
# @!attribute [rw] statement
|
142
|
+
# The permission statement.
|
143
|
+
# @return [String]
|
144
|
+
#
|
145
|
+
# @!attribute [rw] revision_id
|
146
|
+
# A unique identifier for the current revision of the policy.
|
147
|
+
# @return [String]
|
148
|
+
#
|
149
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermissionResponse AWS API Documentation
|
150
|
+
#
|
151
|
+
class AddLayerVersionPermissionResponse < Struct.new(
|
152
|
+
:statement,
|
153
|
+
:revision_id)
|
154
|
+
include Aws::Structure
|
155
|
+
end
|
156
|
+
|
82
157
|
# @note When making an API call, you may pass AddPermissionRequest
|
83
158
|
# data as a hash:
|
84
159
|
#
|
@@ -95,7 +170,7 @@ module Aws::Lambda
|
|
95
170
|
# }
|
96
171
|
#
|
97
172
|
# @!attribute [rw] function_name
|
98
|
-
# The name of the
|
173
|
+
# The name of the Lambda function.
|
99
174
|
#
|
100
175
|
# **Name formats**
|
101
176
|
#
|
@@ -433,7 +508,7 @@ module Aws::Lambda
|
|
433
508
|
#
|
434
509
|
# {
|
435
510
|
# function_name: "FunctionName", # required
|
436
|
-
# 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
|
511
|
+
# 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
|
437
512
|
# role: "RoleArn", # required
|
438
513
|
# handler: "Handler", # required
|
439
514
|
# code: { # required
|
@@ -465,10 +540,11 @@ module Aws::Lambda
|
|
465
540
|
# tags: {
|
466
541
|
# "TagKey" => "TagValue",
|
467
542
|
# },
|
543
|
+
# layers: ["LayerVersionArn"],
|
468
544
|
# }
|
469
545
|
#
|
470
546
|
# @!attribute [rw] function_name
|
471
|
-
# The name of the
|
547
|
+
# The name of the Lambda function.
|
472
548
|
#
|
473
549
|
# **Name formats**
|
474
550
|
#
|
@@ -573,6 +649,15 @@ module Aws::Lambda
|
|
573
649
|
# [1]: http://docs.aws.amazon.com/lambda/latest/dg/tagging.html
|
574
650
|
# @return [Hash<String,String>]
|
575
651
|
#
|
652
|
+
# @!attribute [rw] layers
|
653
|
+
# A list of [function layers][1] to add to the function's execution
|
654
|
+
# environment.
|
655
|
+
#
|
656
|
+
#
|
657
|
+
#
|
658
|
+
# [1]: http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
|
659
|
+
# @return [Array<String>]
|
660
|
+
#
|
576
661
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
|
577
662
|
#
|
578
663
|
class CreateFunctionRequest < Struct.new(
|
@@ -590,7 +675,8 @@ module Aws::Lambda
|
|
590
675
|
:environment,
|
591
676
|
:kms_key_arn,
|
592
677
|
:tracing_config,
|
593
|
-
:tags
|
678
|
+
:tags,
|
679
|
+
:layers)
|
594
680
|
include Aws::Structure
|
595
681
|
end
|
596
682
|
|
@@ -681,7 +767,7 @@ module Aws::Lambda
|
|
681
767
|
# }
|
682
768
|
#
|
683
769
|
# @!attribute [rw] function_name
|
684
|
-
# The name of the
|
770
|
+
# The name of the Lambda function.
|
685
771
|
#
|
686
772
|
# **Name formats**
|
687
773
|
#
|
@@ -712,7 +798,7 @@ module Aws::Lambda
|
|
712
798
|
# }
|
713
799
|
#
|
714
800
|
# @!attribute [rw] function_name
|
715
|
-
# The name of the
|
801
|
+
# The name of the Lambda function.
|
716
802
|
#
|
717
803
|
# **Name formats**
|
718
804
|
#
|
@@ -740,6 +826,30 @@ module Aws::Lambda
|
|
740
826
|
include Aws::Structure
|
741
827
|
end
|
742
828
|
|
829
|
+
# @note When making an API call, you may pass DeleteLayerVersionRequest
|
830
|
+
# data as a hash:
|
831
|
+
#
|
832
|
+
# {
|
833
|
+
# layer_name: "LayerName", # required
|
834
|
+
# version_number: 1, # required
|
835
|
+
# }
|
836
|
+
#
|
837
|
+
# @!attribute [rw] layer_name
|
838
|
+
# The name of the layer.
|
839
|
+
# @return [String]
|
840
|
+
#
|
841
|
+
# @!attribute [rw] version_number
|
842
|
+
# The version number.
|
843
|
+
# @return [Integer]
|
844
|
+
#
|
845
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersionRequest AWS API Documentation
|
846
|
+
#
|
847
|
+
class DeleteLayerVersionRequest < Struct.new(
|
848
|
+
:layer_name,
|
849
|
+
:version_number)
|
850
|
+
include Aws::Structure
|
851
|
+
end
|
852
|
+
|
743
853
|
# A function's environment variable settings.
|
744
854
|
#
|
745
855
|
# @note When making an API call, you may pass Environment
|
@@ -955,7 +1065,7 @@ module Aws::Lambda
|
|
955
1065
|
#
|
956
1066
|
# @!attribute [rw] last_modified
|
957
1067
|
# The date and time that the function was last updated, in [ISO-8601
|
958
|
-
# format][1] (YYYY-MM-DDThh:mm:
|
1068
|
+
# format][1] (YYYY-MM-DDThh:mm:ss.sTZD).
|
959
1069
|
#
|
960
1070
|
#
|
961
1071
|
#
|
@@ -999,6 +1109,14 @@ module Aws::Lambda
|
|
999
1109
|
# Represents the latest updated revision of the function or alias.
|
1000
1110
|
# @return [String]
|
1001
1111
|
#
|
1112
|
+
# @!attribute [rw] layers
|
1113
|
+
# A list of [function layers][1].
|
1114
|
+
#
|
1115
|
+
#
|
1116
|
+
#
|
1117
|
+
# [1]: http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
|
1118
|
+
# @return [Array<Types::Layer>]
|
1119
|
+
#
|
1002
1120
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
|
1003
1121
|
#
|
1004
1122
|
class FunctionConfiguration < Struct.new(
|
@@ -1020,7 +1138,8 @@ module Aws::Lambda
|
|
1020
1138
|
:kms_key_arn,
|
1021
1139
|
:tracing_config,
|
1022
1140
|
:master_arn,
|
1023
|
-
:revision_id
|
1141
|
+
:revision_id,
|
1142
|
+
:layers)
|
1024
1143
|
include Aws::Structure
|
1025
1144
|
end
|
1026
1145
|
|
@@ -1109,7 +1228,7 @@ module Aws::Lambda
|
|
1109
1228
|
# }
|
1110
1229
|
#
|
1111
1230
|
# @!attribute [rw] function_name
|
1112
|
-
# The name of the
|
1231
|
+
# The name of the Lambda function.
|
1113
1232
|
#
|
1114
1233
|
# **Name formats**
|
1115
1234
|
#
|
@@ -1146,7 +1265,7 @@ module Aws::Lambda
|
|
1146
1265
|
# }
|
1147
1266
|
#
|
1148
1267
|
# @!attribute [rw] function_name
|
1149
|
-
# The name of the
|
1268
|
+
# The name of the Lambda function.
|
1150
1269
|
#
|
1151
1270
|
# **Name formats**
|
1152
1271
|
#
|
@@ -1214,6 +1333,121 @@ module Aws::Lambda
|
|
1214
1333
|
include Aws::Structure
|
1215
1334
|
end
|
1216
1335
|
|
1336
|
+
# @note When making an API call, you may pass GetLayerVersionPolicyRequest
|
1337
|
+
# data as a hash:
|
1338
|
+
#
|
1339
|
+
# {
|
1340
|
+
# layer_name: "LayerName", # required
|
1341
|
+
# version_number: 1, # required
|
1342
|
+
# }
|
1343
|
+
#
|
1344
|
+
# @!attribute [rw] layer_name
|
1345
|
+
# The name of the layer.
|
1346
|
+
# @return [String]
|
1347
|
+
#
|
1348
|
+
# @!attribute [rw] version_number
|
1349
|
+
# The version number.
|
1350
|
+
# @return [Integer]
|
1351
|
+
#
|
1352
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicyRequest AWS API Documentation
|
1353
|
+
#
|
1354
|
+
class GetLayerVersionPolicyRequest < Struct.new(
|
1355
|
+
:layer_name,
|
1356
|
+
:version_number)
|
1357
|
+
include Aws::Structure
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
# @!attribute [rw] policy
|
1361
|
+
# The policy document.
|
1362
|
+
# @return [String]
|
1363
|
+
#
|
1364
|
+
# @!attribute [rw] revision_id
|
1365
|
+
# A unique identifier for the current revision of the policy.
|
1366
|
+
# @return [String]
|
1367
|
+
#
|
1368
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicyResponse AWS API Documentation
|
1369
|
+
#
|
1370
|
+
class GetLayerVersionPolicyResponse < Struct.new(
|
1371
|
+
:policy,
|
1372
|
+
:revision_id)
|
1373
|
+
include Aws::Structure
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
# @note When making an API call, you may pass GetLayerVersionRequest
|
1377
|
+
# data as a hash:
|
1378
|
+
#
|
1379
|
+
# {
|
1380
|
+
# layer_name: "LayerName", # required
|
1381
|
+
# version_number: 1, # required
|
1382
|
+
# }
|
1383
|
+
#
|
1384
|
+
# @!attribute [rw] layer_name
|
1385
|
+
# The name of the layer.
|
1386
|
+
# @return [String]
|
1387
|
+
#
|
1388
|
+
# @!attribute [rw] version_number
|
1389
|
+
# The version number.
|
1390
|
+
# @return [Integer]
|
1391
|
+
#
|
1392
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionRequest AWS API Documentation
|
1393
|
+
#
|
1394
|
+
class GetLayerVersionRequest < Struct.new(
|
1395
|
+
:layer_name,
|
1396
|
+
:version_number)
|
1397
|
+
include Aws::Structure
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
# @!attribute [rw] content
|
1401
|
+
# Details about the layer version.
|
1402
|
+
# @return [Types::LayerVersionContentOutput]
|
1403
|
+
#
|
1404
|
+
# @!attribute [rw] layer_arn
|
1405
|
+
# The Amazon Resource Name (ARN) of the function layer.
|
1406
|
+
# @return [String]
|
1407
|
+
#
|
1408
|
+
# @!attribute [rw] layer_version_arn
|
1409
|
+
# The ARN of the layer version.
|
1410
|
+
# @return [String]
|
1411
|
+
#
|
1412
|
+
# @!attribute [rw] description
|
1413
|
+
# The description of the version.
|
1414
|
+
# @return [String]
|
1415
|
+
#
|
1416
|
+
# @!attribute [rw] created_date
|
1417
|
+
# The date that the layer version was created, in [ISO-8601 format][1]
|
1418
|
+
# (YYYY-MM-DDThh:mm:ss.sTZD).
|
1419
|
+
#
|
1420
|
+
#
|
1421
|
+
#
|
1422
|
+
# [1]: https://www.w3.org/TR/NOTE-datetime
|
1423
|
+
# @return [Time]
|
1424
|
+
#
|
1425
|
+
# @!attribute [rw] version
|
1426
|
+
# The version number.
|
1427
|
+
# @return [Integer]
|
1428
|
+
#
|
1429
|
+
# @!attribute [rw] compatible_runtimes
|
1430
|
+
# The layer's compatible runtimes.
|
1431
|
+
# @return [Array<String>]
|
1432
|
+
#
|
1433
|
+
# @!attribute [rw] license_info
|
1434
|
+
# The layer's software license.
|
1435
|
+
# @return [String]
|
1436
|
+
#
|
1437
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionResponse AWS API Documentation
|
1438
|
+
#
|
1439
|
+
class GetLayerVersionResponse < Struct.new(
|
1440
|
+
:content,
|
1441
|
+
:layer_arn,
|
1442
|
+
:layer_version_arn,
|
1443
|
+
:description,
|
1444
|
+
:created_date,
|
1445
|
+
:version,
|
1446
|
+
:compatible_runtimes,
|
1447
|
+
:license_info)
|
1448
|
+
include Aws::Structure
|
1449
|
+
end
|
1450
|
+
|
1217
1451
|
# @note When making an API call, you may pass GetPolicyRequest
|
1218
1452
|
# data as a hash:
|
1219
1453
|
#
|
@@ -1285,7 +1519,7 @@ module Aws::Lambda
|
|
1285
1519
|
# }
|
1286
1520
|
#
|
1287
1521
|
# @!attribute [rw] function_name
|
1288
|
-
# The name of the
|
1522
|
+
# The name of the Lambda function.
|
1289
1523
|
#
|
1290
1524
|
# **Name formats**
|
1291
1525
|
#
|
@@ -1437,7 +1671,7 @@ module Aws::Lambda
|
|
1437
1671
|
# }
|
1438
1672
|
#
|
1439
1673
|
# @!attribute [rw] function_name
|
1440
|
-
# The name of the
|
1674
|
+
# The name of the Lambda function.
|
1441
1675
|
#
|
1442
1676
|
# **Name formats**
|
1443
1677
|
#
|
@@ -1478,6 +1712,152 @@ module Aws::Lambda
|
|
1478
1712
|
include Aws::Structure
|
1479
1713
|
end
|
1480
1714
|
|
1715
|
+
# A function layer.
|
1716
|
+
#
|
1717
|
+
# @!attribute [rw] arn
|
1718
|
+
# The Amazon Resource Name (ARN) of the function layer.
|
1719
|
+
# @return [String]
|
1720
|
+
#
|
1721
|
+
# @!attribute [rw] code_size
|
1722
|
+
# The size of the layer archive in bytes.
|
1723
|
+
# @return [Integer]
|
1724
|
+
#
|
1725
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Layer AWS API Documentation
|
1726
|
+
#
|
1727
|
+
class Layer < Struct.new(
|
1728
|
+
:arn,
|
1729
|
+
:code_size)
|
1730
|
+
include Aws::Structure
|
1731
|
+
end
|
1732
|
+
|
1733
|
+
# A ZIP archive that contains the contents of the function layer. You
|
1734
|
+
# can specify either an Amazon S3 location, or upload a layer archive
|
1735
|
+
# directly.
|
1736
|
+
#
|
1737
|
+
# @note When making an API call, you may pass LayerVersionContentInput
|
1738
|
+
# data as a hash:
|
1739
|
+
#
|
1740
|
+
# {
|
1741
|
+
# s3_bucket: "S3Bucket",
|
1742
|
+
# s3_key: "S3Key",
|
1743
|
+
# s3_object_version: "S3ObjectVersion",
|
1744
|
+
# zip_file: "data",
|
1745
|
+
# }
|
1746
|
+
#
|
1747
|
+
# @!attribute [rw] s3_bucket
|
1748
|
+
# The Amazon S3 bucket of the layer archive.
|
1749
|
+
# @return [String]
|
1750
|
+
#
|
1751
|
+
# @!attribute [rw] s3_key
|
1752
|
+
# The Amazon S3 key of the layer archive.
|
1753
|
+
# @return [String]
|
1754
|
+
#
|
1755
|
+
# @!attribute [rw] s3_object_version
|
1756
|
+
# For versioned objects, the version of the layer archive object to
|
1757
|
+
# use.
|
1758
|
+
# @return [String]
|
1759
|
+
#
|
1760
|
+
# @!attribute [rw] zip_file
|
1761
|
+
# The base64-encoded contents of the layer archive. AWS SDK and AWS
|
1762
|
+
# CLI clients handle the encoding for you.
|
1763
|
+
# @return [String]
|
1764
|
+
#
|
1765
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayerVersionContentInput AWS API Documentation
|
1766
|
+
#
|
1767
|
+
class LayerVersionContentInput < Struct.new(
|
1768
|
+
:s3_bucket,
|
1769
|
+
:s3_key,
|
1770
|
+
:s3_object_version,
|
1771
|
+
:zip_file)
|
1772
|
+
include Aws::Structure
|
1773
|
+
end
|
1774
|
+
|
1775
|
+
# Details about a layer version.
|
1776
|
+
#
|
1777
|
+
# @!attribute [rw] location
|
1778
|
+
# A link to the layer archive in Amazon S3 that is valid for 10
|
1779
|
+
# minutes.
|
1780
|
+
# @return [String]
|
1781
|
+
#
|
1782
|
+
# @!attribute [rw] code_sha_256
|
1783
|
+
# The SHA-256 hash of the layer archive.
|
1784
|
+
# @return [String]
|
1785
|
+
#
|
1786
|
+
# @!attribute [rw] code_size
|
1787
|
+
# The size of the layer archive in bytes.
|
1788
|
+
# @return [Integer]
|
1789
|
+
#
|
1790
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayerVersionContentOutput AWS API Documentation
|
1791
|
+
#
|
1792
|
+
class LayerVersionContentOutput < Struct.new(
|
1793
|
+
:location,
|
1794
|
+
:code_sha_256,
|
1795
|
+
:code_size)
|
1796
|
+
include Aws::Structure
|
1797
|
+
end
|
1798
|
+
|
1799
|
+
# Details about a layer version.
|
1800
|
+
#
|
1801
|
+
# @!attribute [rw] layer_version_arn
|
1802
|
+
# The ARN of the layer version.
|
1803
|
+
# @return [String]
|
1804
|
+
#
|
1805
|
+
# @!attribute [rw] version
|
1806
|
+
# The version number.
|
1807
|
+
# @return [Integer]
|
1808
|
+
#
|
1809
|
+
# @!attribute [rw] description
|
1810
|
+
# The description of the version.
|
1811
|
+
# @return [String]
|
1812
|
+
#
|
1813
|
+
# @!attribute [rw] created_date
|
1814
|
+
# The date that the version was created, in ISO 8601 format. For
|
1815
|
+
# example, `2018-11-27T15:10:45.123+0000`.
|
1816
|
+
# @return [Time]
|
1817
|
+
#
|
1818
|
+
# @!attribute [rw] compatible_runtimes
|
1819
|
+
# The layer's compatible runtimes.
|
1820
|
+
# @return [Array<String>]
|
1821
|
+
#
|
1822
|
+
# @!attribute [rw] license_info
|
1823
|
+
# The layer's open-source license.
|
1824
|
+
# @return [String]
|
1825
|
+
#
|
1826
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayerVersionsListItem AWS API Documentation
|
1827
|
+
#
|
1828
|
+
class LayerVersionsListItem < Struct.new(
|
1829
|
+
:layer_version_arn,
|
1830
|
+
:version,
|
1831
|
+
:description,
|
1832
|
+
:created_date,
|
1833
|
+
:compatible_runtimes,
|
1834
|
+
:license_info)
|
1835
|
+
include Aws::Structure
|
1836
|
+
end
|
1837
|
+
|
1838
|
+
# Details about a function layer.
|
1839
|
+
#
|
1840
|
+
# @!attribute [rw] layer_name
|
1841
|
+
# The name of the layer.
|
1842
|
+
# @return [String]
|
1843
|
+
#
|
1844
|
+
# @!attribute [rw] layer_arn
|
1845
|
+
# The Amazon Resource Name (ARN) of the function layer.
|
1846
|
+
# @return [String]
|
1847
|
+
#
|
1848
|
+
# @!attribute [rw] latest_matching_version
|
1849
|
+
# The newest version of the layer.
|
1850
|
+
# @return [Types::LayerVersionsListItem]
|
1851
|
+
#
|
1852
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayersListItem AWS API Documentation
|
1853
|
+
#
|
1854
|
+
class LayersListItem < Struct.new(
|
1855
|
+
:layer_name,
|
1856
|
+
:layer_arn,
|
1857
|
+
:latest_matching_version)
|
1858
|
+
include Aws::Structure
|
1859
|
+
end
|
1860
|
+
|
1481
1861
|
# @note When making an API call, you may pass ListAliasesRequest
|
1482
1862
|
# data as a hash:
|
1483
1863
|
#
|
@@ -1686,6 +2066,106 @@ module Aws::Lambda
|
|
1686
2066
|
include Aws::Structure
|
1687
2067
|
end
|
1688
2068
|
|
2069
|
+
# @note When making an API call, you may pass ListLayerVersionsRequest
|
2070
|
+
# data as a hash:
|
2071
|
+
#
|
2072
|
+
# {
|
2073
|
+
# 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
|
2074
|
+
# layer_name: "LayerName", # required
|
2075
|
+
# marker: "String",
|
2076
|
+
# max_items: 1,
|
2077
|
+
# }
|
2078
|
+
#
|
2079
|
+
# @!attribute [rw] compatible_runtime
|
2080
|
+
# A runtime identifier. For example, `go1.x`.
|
2081
|
+
# @return [String]
|
2082
|
+
#
|
2083
|
+
# @!attribute [rw] layer_name
|
2084
|
+
# The name of the layer.
|
2085
|
+
# @return [String]
|
2086
|
+
#
|
2087
|
+
# @!attribute [rw] marker
|
2088
|
+
# A pagination token returned by a previous call.
|
2089
|
+
# @return [String]
|
2090
|
+
#
|
2091
|
+
# @!attribute [rw] max_items
|
2092
|
+
# The maximum number of versions to return.
|
2093
|
+
# @return [Integer]
|
2094
|
+
#
|
2095
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersionsRequest AWS API Documentation
|
2096
|
+
#
|
2097
|
+
class ListLayerVersionsRequest < Struct.new(
|
2098
|
+
:compatible_runtime,
|
2099
|
+
:layer_name,
|
2100
|
+
:marker,
|
2101
|
+
:max_items)
|
2102
|
+
include Aws::Structure
|
2103
|
+
end
|
2104
|
+
|
2105
|
+
# @!attribute [rw] next_marker
|
2106
|
+
# A pagination token returned when the response doesn't contain all
|
2107
|
+
# versions.
|
2108
|
+
# @return [String]
|
2109
|
+
#
|
2110
|
+
# @!attribute [rw] layer_versions
|
2111
|
+
# A list of versions.
|
2112
|
+
# @return [Array<Types::LayerVersionsListItem>]
|
2113
|
+
#
|
2114
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersionsResponse AWS API Documentation
|
2115
|
+
#
|
2116
|
+
class ListLayerVersionsResponse < Struct.new(
|
2117
|
+
:next_marker,
|
2118
|
+
:layer_versions)
|
2119
|
+
include Aws::Structure
|
2120
|
+
end
|
2121
|
+
|
2122
|
+
# @note When making an API call, you may pass ListLayersRequest
|
2123
|
+
# data as a hash:
|
2124
|
+
#
|
2125
|
+
# {
|
2126
|
+
# 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
|
2127
|
+
# marker: "String",
|
2128
|
+
# max_items: 1,
|
2129
|
+
# }
|
2130
|
+
#
|
2131
|
+
# @!attribute [rw] compatible_runtime
|
2132
|
+
# A runtime identifier. For example, `go1.x`.
|
2133
|
+
# @return [String]
|
2134
|
+
#
|
2135
|
+
# @!attribute [rw] marker
|
2136
|
+
# A pagination token returned by a previous call.
|
2137
|
+
# @return [String]
|
2138
|
+
#
|
2139
|
+
# @!attribute [rw] max_items
|
2140
|
+
# The maximum number of layers to return.
|
2141
|
+
# @return [Integer]
|
2142
|
+
#
|
2143
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayersRequest AWS API Documentation
|
2144
|
+
#
|
2145
|
+
class ListLayersRequest < Struct.new(
|
2146
|
+
:compatible_runtime,
|
2147
|
+
:marker,
|
2148
|
+
:max_items)
|
2149
|
+
include Aws::Structure
|
2150
|
+
end
|
2151
|
+
|
2152
|
+
# @!attribute [rw] next_marker
|
2153
|
+
# A pagination token returned when the response doesn't contain all
|
2154
|
+
# layers.
|
2155
|
+
# @return [String]
|
2156
|
+
#
|
2157
|
+
# @!attribute [rw] layers
|
2158
|
+
# A list of function layers.
|
2159
|
+
# @return [Array<Types::LayersListItem>]
|
2160
|
+
#
|
2161
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayersResponse AWS API Documentation
|
2162
|
+
#
|
2163
|
+
class ListLayersResponse < Struct.new(
|
2164
|
+
:next_marker,
|
2165
|
+
:layers)
|
2166
|
+
include Aws::Structure
|
2167
|
+
end
|
2168
|
+
|
1689
2169
|
# @note When making an API call, you may pass ListTagsRequest
|
1690
2170
|
# data as a hash:
|
1691
2171
|
#
|
@@ -1788,6 +2268,120 @@ module Aws::Lambda
|
|
1788
2268
|
include Aws::Structure
|
1789
2269
|
end
|
1790
2270
|
|
2271
|
+
# @note When making an API call, you may pass PublishLayerVersionRequest
|
2272
|
+
# data as a hash:
|
2273
|
+
#
|
2274
|
+
# {
|
2275
|
+
# layer_name: "LayerName", # required
|
2276
|
+
# description: "Description",
|
2277
|
+
# content: { # required
|
2278
|
+
# s3_bucket: "S3Bucket",
|
2279
|
+
# s3_key: "S3Key",
|
2280
|
+
# s3_object_version: "S3ObjectVersion",
|
2281
|
+
# zip_file: "data",
|
2282
|
+
# },
|
2283
|
+
# 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
|
2284
|
+
# license_info: "LicenseInfo",
|
2285
|
+
# }
|
2286
|
+
#
|
2287
|
+
# @!attribute [rw] layer_name
|
2288
|
+
# The name of the layer.
|
2289
|
+
# @return [String]
|
2290
|
+
#
|
2291
|
+
# @!attribute [rw] description
|
2292
|
+
# The description of the version.
|
2293
|
+
# @return [String]
|
2294
|
+
#
|
2295
|
+
# @!attribute [rw] content
|
2296
|
+
# The function layer archive.
|
2297
|
+
# @return [Types::LayerVersionContentInput]
|
2298
|
+
#
|
2299
|
+
# @!attribute [rw] compatible_runtimes
|
2300
|
+
# A list of compatible [function runtimes][1]. Used for filtering with
|
2301
|
+
# ListLayers and ListLayerVersions.
|
2302
|
+
#
|
2303
|
+
#
|
2304
|
+
#
|
2305
|
+
# [1]: http://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
|
2306
|
+
# @return [Array<String>]
|
2307
|
+
#
|
2308
|
+
# @!attribute [rw] license_info
|
2309
|
+
# The layer's software license. It can be any of the following:
|
2310
|
+
#
|
2311
|
+
# * An [SPDX license identifier][1]. For example, `MIT`.
|
2312
|
+
#
|
2313
|
+
# * The URL of a license hosted on the internet. For example,
|
2314
|
+
# `https://opensource.org/licenses/MIT`.
|
2315
|
+
#
|
2316
|
+
# * The full text of the license.
|
2317
|
+
#
|
2318
|
+
#
|
2319
|
+
#
|
2320
|
+
# [1]: https://spdx.org/licenses/
|
2321
|
+
# @return [String]
|
2322
|
+
#
|
2323
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersionRequest AWS API Documentation
|
2324
|
+
#
|
2325
|
+
class PublishLayerVersionRequest < Struct.new(
|
2326
|
+
:layer_name,
|
2327
|
+
:description,
|
2328
|
+
:content,
|
2329
|
+
:compatible_runtimes,
|
2330
|
+
:license_info)
|
2331
|
+
include Aws::Structure
|
2332
|
+
end
|
2333
|
+
|
2334
|
+
# @!attribute [rw] content
|
2335
|
+
# Details about the layer version.
|
2336
|
+
# @return [Types::LayerVersionContentOutput]
|
2337
|
+
#
|
2338
|
+
# @!attribute [rw] layer_arn
|
2339
|
+
# The Amazon Resource Name (ARN) of the function layer.
|
2340
|
+
# @return [String]
|
2341
|
+
#
|
2342
|
+
# @!attribute [rw] layer_version_arn
|
2343
|
+
# The ARN of the layer version.
|
2344
|
+
# @return [String]
|
2345
|
+
#
|
2346
|
+
# @!attribute [rw] description
|
2347
|
+
# The description of the version.
|
2348
|
+
# @return [String]
|
2349
|
+
#
|
2350
|
+
# @!attribute [rw] created_date
|
2351
|
+
# The date that the layer version was created, in [ISO-8601 format][1]
|
2352
|
+
# (YYYY-MM-DDThh:mm:ss.sTZD).
|
2353
|
+
#
|
2354
|
+
#
|
2355
|
+
#
|
2356
|
+
# [1]: https://www.w3.org/TR/NOTE-datetime
|
2357
|
+
# @return [Time]
|
2358
|
+
#
|
2359
|
+
# @!attribute [rw] version
|
2360
|
+
# The version number.
|
2361
|
+
# @return [Integer]
|
2362
|
+
#
|
2363
|
+
# @!attribute [rw] compatible_runtimes
|
2364
|
+
# The layer's compatible runtimes.
|
2365
|
+
# @return [Array<String>]
|
2366
|
+
#
|
2367
|
+
# @!attribute [rw] license_info
|
2368
|
+
# The layer's software license.
|
2369
|
+
# @return [String]
|
2370
|
+
#
|
2371
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersionResponse AWS API Documentation
|
2372
|
+
#
|
2373
|
+
class PublishLayerVersionResponse < Struct.new(
|
2374
|
+
:content,
|
2375
|
+
:layer_arn,
|
2376
|
+
:layer_version_arn,
|
2377
|
+
:description,
|
2378
|
+
:created_date,
|
2379
|
+
:version,
|
2380
|
+
:compatible_runtimes,
|
2381
|
+
:license_info)
|
2382
|
+
include Aws::Structure
|
2383
|
+
end
|
2384
|
+
|
1791
2385
|
# @note When making an API call, you may pass PublishVersionRequest
|
1792
2386
|
# data as a hash:
|
1793
2387
|
#
|
@@ -1856,7 +2450,7 @@ module Aws::Lambda
|
|
1856
2450
|
# }
|
1857
2451
|
#
|
1858
2452
|
# @!attribute [rw] function_name
|
1859
|
-
# The name of the
|
2453
|
+
# The name of the Lambda function.
|
1860
2454
|
#
|
1861
2455
|
# **Name formats**
|
1862
2456
|
#
|
@@ -1883,6 +2477,44 @@ module Aws::Lambda
|
|
1883
2477
|
include Aws::Structure
|
1884
2478
|
end
|
1885
2479
|
|
2480
|
+
# @note When making an API call, you may pass RemoveLayerVersionPermissionRequest
|
2481
|
+
# data as a hash:
|
2482
|
+
#
|
2483
|
+
# {
|
2484
|
+
# layer_name: "LayerName", # required
|
2485
|
+
# version_number: 1, # required
|
2486
|
+
# statement_id: "StatementId", # required
|
2487
|
+
# revision_id: "String",
|
2488
|
+
# }
|
2489
|
+
#
|
2490
|
+
# @!attribute [rw] layer_name
|
2491
|
+
# The name of the layer.
|
2492
|
+
# @return [String]
|
2493
|
+
#
|
2494
|
+
# @!attribute [rw] version_number
|
2495
|
+
# The version number.
|
2496
|
+
# @return [Integer]
|
2497
|
+
#
|
2498
|
+
# @!attribute [rw] statement_id
|
2499
|
+
# The identifier that was specified when the statement was added.
|
2500
|
+
# @return [String]
|
2501
|
+
#
|
2502
|
+
# @!attribute [rw] revision_id
|
2503
|
+
# Only update the policy if the revision ID matches the ID specified.
|
2504
|
+
# Use this option to avoid modifying a policy that has changed since
|
2505
|
+
# you last read it.
|
2506
|
+
# @return [String]
|
2507
|
+
#
|
2508
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemoveLayerVersionPermissionRequest AWS API Documentation
|
2509
|
+
#
|
2510
|
+
class RemoveLayerVersionPermissionRequest < Struct.new(
|
2511
|
+
:layer_name,
|
2512
|
+
:version_number,
|
2513
|
+
:statement_id,
|
2514
|
+
:revision_id)
|
2515
|
+
include Aws::Structure
|
2516
|
+
end
|
2517
|
+
|
1886
2518
|
# @note When making an API call, you may pass RemovePermissionRequest
|
1887
2519
|
# data as a hash:
|
1888
2520
|
#
|
@@ -1894,7 +2526,7 @@ module Aws::Lambda
|
|
1894
2526
|
# }
|
1895
2527
|
#
|
1896
2528
|
# @!attribute [rw] function_name
|
1897
|
-
# The name of the
|
2529
|
+
# The name of the Lambda function.
|
1898
2530
|
#
|
1899
2531
|
# **Name formats**
|
1900
2532
|
#
|
@@ -2192,7 +2824,7 @@ module Aws::Lambda
|
|
2192
2824
|
# }
|
2193
2825
|
#
|
2194
2826
|
# @!attribute [rw] function_name
|
2195
|
-
# The name of the
|
2827
|
+
# The name of the Lambda function.
|
2196
2828
|
#
|
2197
2829
|
# **Name formats**
|
2198
2830
|
#
|
@@ -2293,7 +2925,7 @@ module Aws::Lambda
|
|
2293
2925
|
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
2294
2926
|
# },
|
2295
2927
|
# },
|
2296
|
-
# 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
|
2928
|
+
# 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
|
2297
2929
|
# dead_letter_config: {
|
2298
2930
|
# target_arn: "ResourceArn",
|
2299
2931
|
# },
|
@@ -2302,10 +2934,11 @@ module Aws::Lambda
|
|
2302
2934
|
# mode: "Active", # accepts Active, PassThrough
|
2303
2935
|
# },
|
2304
2936
|
# revision_id: "String",
|
2937
|
+
# layers: ["LayerVersionArn"],
|
2305
2938
|
# }
|
2306
2939
|
#
|
2307
2940
|
# @!attribute [rw] function_name
|
2308
|
-
# The name of the
|
2941
|
+
# The name of the Lambda function.
|
2309
2942
|
#
|
2310
2943
|
# **Name formats**
|
2311
2944
|
#
|
@@ -2395,6 +3028,15 @@ module Aws::Lambda
|
|
2395
3028
|
# GetFunction or GetAlias.
|
2396
3029
|
# @return [String]
|
2397
3030
|
#
|
3031
|
+
# @!attribute [rw] layers
|
3032
|
+
# A list of [function layers][1] to add to the function's execution
|
3033
|
+
# environment.
|
3034
|
+
#
|
3035
|
+
#
|
3036
|
+
#
|
3037
|
+
# [1]: http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
|
3038
|
+
# @return [Array<String>]
|
3039
|
+
#
|
2398
3040
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
|
2399
3041
|
#
|
2400
3042
|
class UpdateFunctionConfigurationRequest < Struct.new(
|
@@ -2410,7 +3052,8 @@ module Aws::Lambda
|
|
2410
3052
|
:dead_letter_config,
|
2411
3053
|
:kms_key_arn,
|
2412
3054
|
:tracing_config,
|
2413
|
-
:revision_id
|
3055
|
+
:revision_id,
|
3056
|
+
:layers)
|
2414
3057
|
include Aws::Structure
|
2415
3058
|
end
|
2416
3059
|
|