aws-sdk-lambda 1.32.0 → 1.33.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 +649 -31
- data/lib/aws-sdk-lambda/client_api.rb +175 -0
- data/lib/aws-sdk-lambda/errors.rb +21 -0
- data/lib/aws-sdk-lambda/types.rb +611 -31
- data/lib/aws-sdk-lambda/waiters.rb +102 -0
- metadata +2 -2
@@ -26,6 +26,7 @@ module Aws::Lambda
|
|
26
26
|
AliasRoutingConfiguration = Shapes::StructureShape.new(name: 'AliasRoutingConfiguration')
|
27
27
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
28
28
|
BatchSize = Shapes::IntegerShape.new(name: 'BatchSize')
|
29
|
+
BisectBatchOnFunctionError = Shapes::BooleanShape.new(name: 'BisectBatchOnFunctionError')
|
29
30
|
Blob = Shapes::BlobShape.new(name: 'Blob')
|
30
31
|
BlobStream = Shapes::BlobShape.new(name: 'BlobStream', streaming: true)
|
31
32
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
@@ -40,9 +41,12 @@ module Aws::Lambda
|
|
40
41
|
DeleteAliasRequest = Shapes::StructureShape.new(name: 'DeleteAliasRequest')
|
41
42
|
DeleteEventSourceMappingRequest = Shapes::StructureShape.new(name: 'DeleteEventSourceMappingRequest')
|
42
43
|
DeleteFunctionConcurrencyRequest = Shapes::StructureShape.new(name: 'DeleteFunctionConcurrencyRequest')
|
44
|
+
DeleteFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'DeleteFunctionEventInvokeConfigRequest')
|
43
45
|
DeleteFunctionRequest = Shapes::StructureShape.new(name: 'DeleteFunctionRequest')
|
44
46
|
DeleteLayerVersionRequest = Shapes::StructureShape.new(name: 'DeleteLayerVersionRequest')
|
45
47
|
Description = Shapes::StringShape.new(name: 'Description')
|
48
|
+
DestinationArn = Shapes::StringShape.new(name: 'DestinationArn')
|
49
|
+
DestinationConfig = Shapes::StructureShape.new(name: 'DestinationConfig')
|
46
50
|
EC2AccessDeniedException = Shapes::StructureShape.new(name: 'EC2AccessDeniedException')
|
47
51
|
EC2ThrottledException = Shapes::StructureShape.new(name: 'EC2ThrottledException')
|
48
52
|
EC2UnexpectedException = Shapes::StructureShape.new(name: 'EC2UnexpectedException')
|
@@ -62,6 +66,8 @@ module Aws::Lambda
|
|
62
66
|
FunctionCode = Shapes::StructureShape.new(name: 'FunctionCode')
|
63
67
|
FunctionCodeLocation = Shapes::StructureShape.new(name: 'FunctionCodeLocation')
|
64
68
|
FunctionConfiguration = Shapes::StructureShape.new(name: 'FunctionConfiguration')
|
69
|
+
FunctionEventInvokeConfig = Shapes::StructureShape.new(name: 'FunctionEventInvokeConfig')
|
70
|
+
FunctionEventInvokeConfigList = Shapes::ListShape.new(name: 'FunctionEventInvokeConfigList')
|
65
71
|
FunctionList = Shapes::ListShape.new(name: 'FunctionList')
|
66
72
|
FunctionName = Shapes::StringShape.new(name: 'FunctionName')
|
67
73
|
FunctionVersion = Shapes::StringShape.new(name: 'FunctionVersion')
|
@@ -70,6 +76,7 @@ module Aws::Lambda
|
|
70
76
|
GetAliasRequest = Shapes::StructureShape.new(name: 'GetAliasRequest')
|
71
77
|
GetEventSourceMappingRequest = Shapes::StructureShape.new(name: 'GetEventSourceMappingRequest')
|
72
78
|
GetFunctionConfigurationRequest = Shapes::StructureShape.new(name: 'GetFunctionConfigurationRequest')
|
79
|
+
GetFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'GetFunctionEventInvokeConfigRequest')
|
73
80
|
GetFunctionRequest = Shapes::StructureShape.new(name: 'GetFunctionRequest')
|
74
81
|
GetFunctionResponse = Shapes::StructureShape.new(name: 'GetFunctionResponse')
|
75
82
|
GetLayerVersionByArnRequest = Shapes::StructureShape.new(name: 'GetLayerVersionByArnRequest')
|
@@ -98,6 +105,9 @@ module Aws::Lambda
|
|
98
105
|
KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
|
99
106
|
KMSKeyArn = Shapes::StringShape.new(name: 'KMSKeyArn')
|
100
107
|
KMSNotFoundException = Shapes::StructureShape.new(name: 'KMSNotFoundException')
|
108
|
+
LastUpdateStatus = Shapes::StringShape.new(name: 'LastUpdateStatus')
|
109
|
+
LastUpdateStatusReason = Shapes::StringShape.new(name: 'LastUpdateStatusReason')
|
110
|
+
LastUpdateStatusReasonCode = Shapes::StringShape.new(name: 'LastUpdateStatusReasonCode')
|
101
111
|
Layer = Shapes::StructureShape.new(name: 'Layer')
|
102
112
|
LayerArn = Shapes::StringShape.new(name: 'LayerArn')
|
103
113
|
LayerList = Shapes::ListShape.new(name: 'LayerList')
|
@@ -118,6 +128,8 @@ module Aws::Lambda
|
|
118
128
|
ListAliasesResponse = Shapes::StructureShape.new(name: 'ListAliasesResponse')
|
119
129
|
ListEventSourceMappingsRequest = Shapes::StructureShape.new(name: 'ListEventSourceMappingsRequest')
|
120
130
|
ListEventSourceMappingsResponse = Shapes::StructureShape.new(name: 'ListEventSourceMappingsResponse')
|
131
|
+
ListFunctionEventInvokeConfigsRequest = Shapes::StructureShape.new(name: 'ListFunctionEventInvokeConfigsRequest')
|
132
|
+
ListFunctionEventInvokeConfigsResponse = Shapes::StructureShape.new(name: 'ListFunctionEventInvokeConfigsResponse')
|
121
133
|
ListFunctionsRequest = Shapes::StructureShape.new(name: 'ListFunctionsRequest')
|
122
134
|
ListFunctionsResponse = Shapes::StructureShape.new(name: 'ListFunctionsResponse')
|
123
135
|
ListLayerVersionsRequest = Shapes::StructureShape.new(name: 'ListLayerVersionsRequest')
|
@@ -131,14 +143,22 @@ module Aws::Lambda
|
|
131
143
|
LogType = Shapes::StringShape.new(name: 'LogType')
|
132
144
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
133
145
|
MasterRegion = Shapes::StringShape.new(name: 'MasterRegion')
|
146
|
+
MaxFunctionEventInvokeConfigListItems = Shapes::IntegerShape.new(name: 'MaxFunctionEventInvokeConfigListItems')
|
134
147
|
MaxLayerListItems = Shapes::IntegerShape.new(name: 'MaxLayerListItems')
|
135
148
|
MaxListItems = Shapes::IntegerShape.new(name: 'MaxListItems')
|
136
149
|
MaximumBatchingWindowInSeconds = Shapes::IntegerShape.new(name: 'MaximumBatchingWindowInSeconds')
|
150
|
+
MaximumEventAgeInSeconds = Shapes::IntegerShape.new(name: 'MaximumEventAgeInSeconds')
|
151
|
+
MaximumRecordAgeInSeconds = Shapes::IntegerShape.new(name: 'MaximumRecordAgeInSeconds')
|
152
|
+
MaximumRetryAttempts = Shapes::IntegerShape.new(name: 'MaximumRetryAttempts')
|
153
|
+
MaximumRetryAttemptsEventSourceMapping = Shapes::IntegerShape.new(name: 'MaximumRetryAttemptsEventSourceMapping')
|
137
154
|
MemorySize = Shapes::IntegerShape.new(name: 'MemorySize')
|
138
155
|
NameSpacedFunctionArn = Shapes::StringShape.new(name: 'NameSpacedFunctionArn')
|
139
156
|
NamespacedFunctionName = Shapes::StringShape.new(name: 'NamespacedFunctionName')
|
140
157
|
NamespacedStatementId = Shapes::StringShape.new(name: 'NamespacedStatementId')
|
158
|
+
OnFailure = Shapes::StructureShape.new(name: 'OnFailure')
|
159
|
+
OnSuccess = Shapes::StructureShape.new(name: 'OnSuccess')
|
141
160
|
OrganizationId = Shapes::StringShape.new(name: 'OrganizationId')
|
161
|
+
ParallelizationFactor = Shapes::IntegerShape.new(name: 'ParallelizationFactor')
|
142
162
|
PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
|
143
163
|
PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
|
144
164
|
Principal = Shapes::StringShape.new(name: 'Principal')
|
@@ -146,6 +166,7 @@ module Aws::Lambda
|
|
146
166
|
PublishLayerVersionResponse = Shapes::StructureShape.new(name: 'PublishLayerVersionResponse')
|
147
167
|
PublishVersionRequest = Shapes::StructureShape.new(name: 'PublishVersionRequest')
|
148
168
|
PutFunctionConcurrencyRequest = Shapes::StructureShape.new(name: 'PutFunctionConcurrencyRequest')
|
169
|
+
PutFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'PutFunctionEventInvokeConfigRequest')
|
149
170
|
Qualifier = Shapes::StringShape.new(name: 'Qualifier')
|
150
171
|
RemoveLayerVersionPermissionRequest = Shapes::StructureShape.new(name: 'RemoveLayerVersionPermissionRequest')
|
151
172
|
RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
|
@@ -155,6 +176,7 @@ module Aws::Lambda
|
|
155
176
|
ResourceConflictException = Shapes::StructureShape.new(name: 'ResourceConflictException')
|
156
177
|
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
157
178
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
179
|
+
ResourceNotReadyException = Shapes::StructureShape.new(name: 'ResourceNotReadyException')
|
158
180
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
159
181
|
Runtime = Shapes::StringShape.new(name: 'Runtime')
|
160
182
|
S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
|
@@ -165,6 +187,9 @@ module Aws::Lambda
|
|
165
187
|
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
166
188
|
ServiceException = Shapes::StructureShape.new(name: 'ServiceException')
|
167
189
|
SourceOwner = Shapes::StringShape.new(name: 'SourceOwner')
|
190
|
+
State = Shapes::StringShape.new(name: 'State')
|
191
|
+
StateReason = Shapes::StringShape.new(name: 'StateReason')
|
192
|
+
StateReasonCode = Shapes::StringShape.new(name: 'StateReasonCode')
|
168
193
|
StatementId = Shapes::StringShape.new(name: 'StatementId')
|
169
194
|
String = Shapes::StringShape.new(name: 'String')
|
170
195
|
SubnetIPAddressLimitReachedException = Shapes::StructureShape.new(name: 'SubnetIPAddressLimitReachedException')
|
@@ -189,6 +214,7 @@ module Aws::Lambda
|
|
189
214
|
UpdateEventSourceMappingRequest = Shapes::StructureShape.new(name: 'UpdateEventSourceMappingRequest')
|
190
215
|
UpdateFunctionCodeRequest = Shapes::StructureShape.new(name: 'UpdateFunctionCodeRequest')
|
191
216
|
UpdateFunctionConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateFunctionConfigurationRequest')
|
217
|
+
UpdateFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'UpdateFunctionEventInvokeConfigRequest')
|
192
218
|
Version = Shapes::StringShape.new(name: 'Version')
|
193
219
|
VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
|
194
220
|
VpcConfigResponse = Shapes::StructureShape.new(name: 'VpcConfigResponse')
|
@@ -270,8 +296,13 @@ module Aws::Lambda
|
|
270
296
|
CreateEventSourceMappingRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "Enabled"))
|
271
297
|
CreateEventSourceMappingRequest.add_member(:batch_size, Shapes::ShapeRef.new(shape: BatchSize, location_name: "BatchSize"))
|
272
298
|
CreateEventSourceMappingRequest.add_member(:maximum_batching_window_in_seconds, Shapes::ShapeRef.new(shape: MaximumBatchingWindowInSeconds, location_name: "MaximumBatchingWindowInSeconds"))
|
299
|
+
CreateEventSourceMappingRequest.add_member(:parallelization_factor, Shapes::ShapeRef.new(shape: ParallelizationFactor, location_name: "ParallelizationFactor"))
|
273
300
|
CreateEventSourceMappingRequest.add_member(:starting_position, Shapes::ShapeRef.new(shape: EventSourcePosition, location_name: "StartingPosition"))
|
274
301
|
CreateEventSourceMappingRequest.add_member(:starting_position_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "StartingPositionTimestamp"))
|
302
|
+
CreateEventSourceMappingRequest.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
303
|
+
CreateEventSourceMappingRequest.add_member(:maximum_record_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumRecordAgeInSeconds, location_name: "MaximumRecordAgeInSeconds"))
|
304
|
+
CreateEventSourceMappingRequest.add_member(:bisect_batch_on_function_error, Shapes::ShapeRef.new(shape: BisectBatchOnFunctionError, location_name: "BisectBatchOnFunctionError"))
|
305
|
+
CreateEventSourceMappingRequest.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttemptsEventSourceMapping, location_name: "MaximumRetryAttempts"))
|
275
306
|
CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
|
276
307
|
|
277
308
|
CreateFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
|
@@ -305,6 +336,10 @@ module Aws::Lambda
|
|
305
336
|
DeleteFunctionConcurrencyRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
306
337
|
DeleteFunctionConcurrencyRequest.struct_class = Types::DeleteFunctionConcurrencyRequest
|
307
338
|
|
339
|
+
DeleteFunctionEventInvokeConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
340
|
+
DeleteFunctionEventInvokeConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
341
|
+
DeleteFunctionEventInvokeConfigRequest.struct_class = Types::DeleteFunctionEventInvokeConfigRequest
|
342
|
+
|
308
343
|
DeleteFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
309
344
|
DeleteFunctionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
310
345
|
DeleteFunctionRequest.struct_class = Types::DeleteFunctionRequest
|
@@ -313,6 +348,10 @@ module Aws::Lambda
|
|
313
348
|
DeleteLayerVersionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
314
349
|
DeleteLayerVersionRequest.struct_class = Types::DeleteLayerVersionRequest
|
315
350
|
|
351
|
+
DestinationConfig.add_member(:on_success, Shapes::ShapeRef.new(shape: OnSuccess, location_name: "OnSuccess"))
|
352
|
+
DestinationConfig.add_member(:on_failure, Shapes::ShapeRef.new(shape: OnFailure, location_name: "OnFailure"))
|
353
|
+
DestinationConfig.struct_class = Types::DestinationConfig
|
354
|
+
|
316
355
|
EC2AccessDeniedException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
317
356
|
EC2AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
318
357
|
EC2AccessDeniedException.struct_class = Types::EC2AccessDeniedException
|
@@ -347,12 +386,17 @@ module Aws::Lambda
|
|
347
386
|
EventSourceMappingConfiguration.add_member(:uuid, Shapes::ShapeRef.new(shape: String, location_name: "UUID"))
|
348
387
|
EventSourceMappingConfiguration.add_member(:batch_size, Shapes::ShapeRef.new(shape: BatchSize, location_name: "BatchSize"))
|
349
388
|
EventSourceMappingConfiguration.add_member(:maximum_batching_window_in_seconds, Shapes::ShapeRef.new(shape: MaximumBatchingWindowInSeconds, location_name: "MaximumBatchingWindowInSeconds"))
|
389
|
+
EventSourceMappingConfiguration.add_member(:parallelization_factor, Shapes::ShapeRef.new(shape: ParallelizationFactor, location_name: "ParallelizationFactor"))
|
350
390
|
EventSourceMappingConfiguration.add_member(:event_source_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "EventSourceArn"))
|
351
391
|
EventSourceMappingConfiguration.add_member(:function_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "FunctionArn"))
|
352
392
|
EventSourceMappingConfiguration.add_member(:last_modified, Shapes::ShapeRef.new(shape: Date, location_name: "LastModified"))
|
353
393
|
EventSourceMappingConfiguration.add_member(:last_processing_result, Shapes::ShapeRef.new(shape: String, location_name: "LastProcessingResult"))
|
354
394
|
EventSourceMappingConfiguration.add_member(:state, Shapes::ShapeRef.new(shape: String, location_name: "State"))
|
355
395
|
EventSourceMappingConfiguration.add_member(:state_transition_reason, Shapes::ShapeRef.new(shape: String, location_name: "StateTransitionReason"))
|
396
|
+
EventSourceMappingConfiguration.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
397
|
+
EventSourceMappingConfiguration.add_member(:maximum_record_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumRecordAgeInSeconds, location_name: "MaximumRecordAgeInSeconds"))
|
398
|
+
EventSourceMappingConfiguration.add_member(:bisect_batch_on_function_error, Shapes::ShapeRef.new(shape: BisectBatchOnFunctionError, location_name: "BisectBatchOnFunctionError"))
|
399
|
+
EventSourceMappingConfiguration.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttemptsEventSourceMapping, location_name: "MaximumRetryAttempts"))
|
356
400
|
EventSourceMappingConfiguration.struct_class = Types::EventSourceMappingConfiguration
|
357
401
|
|
358
402
|
EventSourceMappingsList.member = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
|
@@ -387,8 +431,23 @@ module Aws::Lambda
|
|
387
431
|
FunctionConfiguration.add_member(:master_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "MasterArn"))
|
388
432
|
FunctionConfiguration.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
|
389
433
|
FunctionConfiguration.add_member(:layers, Shapes::ShapeRef.new(shape: LayersReferenceList, location_name: "Layers"))
|
434
|
+
FunctionConfiguration.add_member(:state, Shapes::ShapeRef.new(shape: State, location_name: "State"))
|
435
|
+
FunctionConfiguration.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, location_name: "StateReason"))
|
436
|
+
FunctionConfiguration.add_member(:state_reason_code, Shapes::ShapeRef.new(shape: StateReasonCode, location_name: "StateReasonCode"))
|
437
|
+
FunctionConfiguration.add_member(:last_update_status, Shapes::ShapeRef.new(shape: LastUpdateStatus, location_name: "LastUpdateStatus"))
|
438
|
+
FunctionConfiguration.add_member(:last_update_status_reason, Shapes::ShapeRef.new(shape: LastUpdateStatusReason, location_name: "LastUpdateStatusReason"))
|
439
|
+
FunctionConfiguration.add_member(:last_update_status_reason_code, Shapes::ShapeRef.new(shape: LastUpdateStatusReasonCode, location_name: "LastUpdateStatusReasonCode"))
|
390
440
|
FunctionConfiguration.struct_class = Types::FunctionConfiguration
|
391
441
|
|
442
|
+
FunctionEventInvokeConfig.add_member(:last_modified, Shapes::ShapeRef.new(shape: Date, location_name: "LastModified"))
|
443
|
+
FunctionEventInvokeConfig.add_member(:function_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "FunctionArn"))
|
444
|
+
FunctionEventInvokeConfig.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttempts, location_name: "MaximumRetryAttempts"))
|
445
|
+
FunctionEventInvokeConfig.add_member(:maximum_event_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumEventAgeInSeconds, location_name: "MaximumEventAgeInSeconds"))
|
446
|
+
FunctionEventInvokeConfig.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
447
|
+
FunctionEventInvokeConfig.struct_class = Types::FunctionEventInvokeConfig
|
448
|
+
|
449
|
+
FunctionEventInvokeConfigList.member = Shapes::ShapeRef.new(shape: FunctionEventInvokeConfig)
|
450
|
+
|
392
451
|
FunctionList.member = Shapes::ShapeRef.new(shape: FunctionConfiguration)
|
393
452
|
|
394
453
|
GetAccountSettingsRequest.struct_class = Types::GetAccountSettingsRequest
|
@@ -408,6 +467,10 @@ module Aws::Lambda
|
|
408
467
|
GetFunctionConfigurationRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
409
468
|
GetFunctionConfigurationRequest.struct_class = Types::GetFunctionConfigurationRequest
|
410
469
|
|
470
|
+
GetFunctionEventInvokeConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
471
|
+
GetFunctionEventInvokeConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
472
|
+
GetFunctionEventInvokeConfigRequest.struct_class = Types::GetFunctionEventInvokeConfigRequest
|
473
|
+
|
411
474
|
GetFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
412
475
|
GetFunctionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
413
476
|
GetFunctionRequest.struct_class = Types::GetFunctionRequest
|
@@ -575,6 +638,15 @@ module Aws::Lambda
|
|
575
638
|
ListEventSourceMappingsResponse.add_member(:event_source_mappings, Shapes::ShapeRef.new(shape: EventSourceMappingsList, location_name: "EventSourceMappings"))
|
576
639
|
ListEventSourceMappingsResponse.struct_class = Types::ListEventSourceMappingsResponse
|
577
640
|
|
641
|
+
ListFunctionEventInvokeConfigsRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
642
|
+
ListFunctionEventInvokeConfigsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
|
643
|
+
ListFunctionEventInvokeConfigsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxFunctionEventInvokeConfigListItems, location: "querystring", location_name: "MaxItems"))
|
644
|
+
ListFunctionEventInvokeConfigsRequest.struct_class = Types::ListFunctionEventInvokeConfigsRequest
|
645
|
+
|
646
|
+
ListFunctionEventInvokeConfigsResponse.add_member(:function_event_invoke_configs, Shapes::ShapeRef.new(shape: FunctionEventInvokeConfigList, location_name: "FunctionEventInvokeConfigs"))
|
647
|
+
ListFunctionEventInvokeConfigsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
|
648
|
+
ListFunctionEventInvokeConfigsResponse.struct_class = Types::ListFunctionEventInvokeConfigsResponse
|
649
|
+
|
578
650
|
ListFunctionsRequest.add_member(:master_region, Shapes::ShapeRef.new(shape: MasterRegion, location: "querystring", location_name: "MasterRegion"))
|
579
651
|
ListFunctionsRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: FunctionVersion, location: "querystring", location_name: "FunctionVersion"))
|
580
652
|
ListFunctionsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
|
@@ -619,6 +691,12 @@ module Aws::Lambda
|
|
619
691
|
ListVersionsByFunctionResponse.add_member(:versions, Shapes::ShapeRef.new(shape: FunctionList, location_name: "Versions"))
|
620
692
|
ListVersionsByFunctionResponse.struct_class = Types::ListVersionsByFunctionResponse
|
621
693
|
|
694
|
+
OnFailure.add_member(:destination, Shapes::ShapeRef.new(shape: DestinationArn, location_name: "Destination"))
|
695
|
+
OnFailure.struct_class = Types::OnFailure
|
696
|
+
|
697
|
+
OnSuccess.add_member(:destination, Shapes::ShapeRef.new(shape: DestinationArn, location_name: "Destination"))
|
698
|
+
OnSuccess.struct_class = Types::OnSuccess
|
699
|
+
|
622
700
|
PolicyLengthExceededException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
623
701
|
PolicyLengthExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
624
702
|
PolicyLengthExceededException.struct_class = Types::PolicyLengthExceededException
|
@@ -654,6 +732,13 @@ module Aws::Lambda
|
|
654
732
|
PutFunctionConcurrencyRequest.add_member(:reserved_concurrent_executions, Shapes::ShapeRef.new(shape: ReservedConcurrentExecutions, required: true, location_name: "ReservedConcurrentExecutions"))
|
655
733
|
PutFunctionConcurrencyRequest.struct_class = Types::PutFunctionConcurrencyRequest
|
656
734
|
|
735
|
+
PutFunctionEventInvokeConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
736
|
+
PutFunctionEventInvokeConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
737
|
+
PutFunctionEventInvokeConfigRequest.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttempts, location_name: "MaximumRetryAttempts"))
|
738
|
+
PutFunctionEventInvokeConfigRequest.add_member(:maximum_event_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumEventAgeInSeconds, location_name: "MaximumEventAgeInSeconds"))
|
739
|
+
PutFunctionEventInvokeConfigRequest.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
740
|
+
PutFunctionEventInvokeConfigRequest.struct_class = Types::PutFunctionEventInvokeConfigRequest
|
741
|
+
|
657
742
|
RemoveLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
658
743
|
RemoveLayerVersionPermissionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
659
744
|
RemoveLayerVersionPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location: "uri", location_name: "StatementId"))
|
@@ -682,6 +767,10 @@ module Aws::Lambda
|
|
682
767
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
683
768
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
684
769
|
|
770
|
+
ResourceNotReadyException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
771
|
+
ResourceNotReadyException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
772
|
+
ResourceNotReadyException.struct_class = Types::ResourceNotReadyException
|
773
|
+
|
685
774
|
SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
|
686
775
|
|
687
776
|
ServiceException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
@@ -736,6 +825,11 @@ module Aws::Lambda
|
|
736
825
|
UpdateEventSourceMappingRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "Enabled"))
|
737
826
|
UpdateEventSourceMappingRequest.add_member(:batch_size, Shapes::ShapeRef.new(shape: BatchSize, location_name: "BatchSize"))
|
738
827
|
UpdateEventSourceMappingRequest.add_member(:maximum_batching_window_in_seconds, Shapes::ShapeRef.new(shape: MaximumBatchingWindowInSeconds, location_name: "MaximumBatchingWindowInSeconds"))
|
828
|
+
UpdateEventSourceMappingRequest.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
829
|
+
UpdateEventSourceMappingRequest.add_member(:maximum_record_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumRecordAgeInSeconds, location_name: "MaximumRecordAgeInSeconds"))
|
830
|
+
UpdateEventSourceMappingRequest.add_member(:bisect_batch_on_function_error, Shapes::ShapeRef.new(shape: BisectBatchOnFunctionError, location_name: "BisectBatchOnFunctionError"))
|
831
|
+
UpdateEventSourceMappingRequest.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttemptsEventSourceMapping, location_name: "MaximumRetryAttempts"))
|
832
|
+
UpdateEventSourceMappingRequest.add_member(:parallelization_factor, Shapes::ShapeRef.new(shape: ParallelizationFactor, location_name: "ParallelizationFactor"))
|
739
833
|
UpdateEventSourceMappingRequest.struct_class = Types::UpdateEventSourceMappingRequest
|
740
834
|
|
741
835
|
UpdateFunctionCodeRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
@@ -764,6 +858,13 @@ module Aws::Lambda
|
|
764
858
|
UpdateFunctionConfigurationRequest.add_member(:layers, Shapes::ShapeRef.new(shape: LayerList, location_name: "Layers"))
|
765
859
|
UpdateFunctionConfigurationRequest.struct_class = Types::UpdateFunctionConfigurationRequest
|
766
860
|
|
861
|
+
UpdateFunctionEventInvokeConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
862
|
+
UpdateFunctionEventInvokeConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
863
|
+
UpdateFunctionEventInvokeConfigRequest.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttempts, location_name: "MaximumRetryAttempts"))
|
864
|
+
UpdateFunctionEventInvokeConfigRequest.add_member(:maximum_event_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumEventAgeInSeconds, location_name: "MaximumEventAgeInSeconds"))
|
865
|
+
UpdateFunctionEventInvokeConfigRequest.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
866
|
+
UpdateFunctionEventInvokeConfigRequest.struct_class = Types::UpdateFunctionEventInvokeConfigRequest
|
867
|
+
|
767
868
|
VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
|
768
869
|
VpcConfig.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, location_name: "SecurityGroupIds"))
|
769
870
|
VpcConfig.struct_class = Types::VpcConfig
|
@@ -906,6 +1007,19 @@ module Aws::Lambda
|
|
906
1007
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
907
1008
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
908
1009
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1010
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1011
|
+
end)
|
1012
|
+
|
1013
|
+
api.add_operation(:delete_function_event_invoke_config, Seahorse::Model::Operation.new.tap do |o|
|
1014
|
+
o.name = "DeleteFunctionEventInvokeConfig"
|
1015
|
+
o.http_method = "DELETE"
|
1016
|
+
o.http_request_uri = "/2019-09-25/functions/{FunctionName}/event-invoke-config"
|
1017
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteFunctionEventInvokeConfigRequest)
|
1018
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1019
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1020
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1021
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1022
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
909
1023
|
end)
|
910
1024
|
|
911
1025
|
api.add_operation(:delete_layer_version, Seahorse::Model::Operation.new.tap do |o|
|
@@ -976,6 +1090,18 @@ module Aws::Lambda
|
|
976
1090
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
977
1091
|
end)
|
978
1092
|
|
1093
|
+
api.add_operation(:get_function_event_invoke_config, Seahorse::Model::Operation.new.tap do |o|
|
1094
|
+
o.name = "GetFunctionEventInvokeConfig"
|
1095
|
+
o.http_method = "GET"
|
1096
|
+
o.http_request_uri = "/2019-09-25/functions/{FunctionName}/event-invoke-config"
|
1097
|
+
o.input = Shapes::ShapeRef.new(shape: GetFunctionEventInvokeConfigRequest)
|
1098
|
+
o.output = Shapes::ShapeRef.new(shape: FunctionEventInvokeConfig)
|
1099
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1100
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1101
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1102
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1103
|
+
end)
|
1104
|
+
|
979
1105
|
api.add_operation(:get_layer_version, Seahorse::Model::Operation.new.tap do |o|
|
980
1106
|
o.name = "GetLayerVersion"
|
981
1107
|
o.http_method = "GET"
|
@@ -1050,6 +1176,8 @@ module Aws::Lambda
|
|
1050
1176
|
o.errors << Shapes::ShapeRef.new(shape: KMSAccessDeniedException)
|
1051
1177
|
o.errors << Shapes::ShapeRef.new(shape: KMSNotFoundException)
|
1052
1178
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRuntimeException)
|
1179
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1180
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotReadyException)
|
1053
1181
|
end)
|
1054
1182
|
|
1055
1183
|
api.add_operation(:invoke_async, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1063,6 +1191,7 @@ module Aws::Lambda
|
|
1063
1191
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1064
1192
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestContentException)
|
1065
1193
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRuntimeException)
|
1194
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1066
1195
|
end)
|
1067
1196
|
|
1068
1197
|
api.add_operation(:list_aliases, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1101,6 +1230,24 @@ module Aws::Lambda
|
|
1101
1230
|
)
|
1102
1231
|
end)
|
1103
1232
|
|
1233
|
+
api.add_operation(:list_function_event_invoke_configs, Seahorse::Model::Operation.new.tap do |o|
|
1234
|
+
o.name = "ListFunctionEventInvokeConfigs"
|
1235
|
+
o.http_method = "GET"
|
1236
|
+
o.http_request_uri = "/2019-09-25/functions/{FunctionName}/event-invoke-config/list"
|
1237
|
+
o.input = Shapes::ShapeRef.new(shape: ListFunctionEventInvokeConfigsRequest)
|
1238
|
+
o.output = Shapes::ShapeRef.new(shape: ListFunctionEventInvokeConfigsResponse)
|
1239
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1240
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1241
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1242
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1243
|
+
o[:pager] = Aws::Pager.new(
|
1244
|
+
limit_key: "max_items",
|
1245
|
+
tokens: {
|
1246
|
+
"next_marker" => "marker"
|
1247
|
+
}
|
1248
|
+
)
|
1249
|
+
end)
|
1250
|
+
|
1104
1251
|
api.add_operation(:list_functions, Seahorse::Model::Operation.new.tap do |o|
|
1105
1252
|
o.name = "ListFunctions"
|
1106
1253
|
o.http_method = "GET"
|
@@ -1208,6 +1355,7 @@ module Aws::Lambda
|
|
1208
1355
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1209
1356
|
o.errors << Shapes::ShapeRef.new(shape: CodeStorageExceededException)
|
1210
1357
|
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
|
1358
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1211
1359
|
end)
|
1212
1360
|
|
1213
1361
|
api.add_operation(:put_function_concurrency, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1220,6 +1368,19 @@ module Aws::Lambda
|
|
1220
1368
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1221
1369
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1222
1370
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1371
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1372
|
+
end)
|
1373
|
+
|
1374
|
+
api.add_operation(:put_function_event_invoke_config, Seahorse::Model::Operation.new.tap do |o|
|
1375
|
+
o.name = "PutFunctionEventInvokeConfig"
|
1376
|
+
o.http_method = "PUT"
|
1377
|
+
o.http_request_uri = "/2019-09-25/functions/{FunctionName}/event-invoke-config"
|
1378
|
+
o.input = Shapes::ShapeRef.new(shape: PutFunctionEventInvokeConfigRequest)
|
1379
|
+
o.output = Shapes::ShapeRef.new(shape: FunctionEventInvokeConfig)
|
1380
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1381
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1382
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1383
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1223
1384
|
end)
|
1224
1385
|
|
1225
1386
|
api.add_operation(:remove_layer_version_permission, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1283,6 +1444,7 @@ module Aws::Lambda
|
|
1283
1444
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1284
1445
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1285
1446
|
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
|
1447
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1286
1448
|
end)
|
1287
1449
|
|
1288
1450
|
api.add_operation(:update_event_source_mapping, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1311,6 +1473,7 @@ module Aws::Lambda
|
|
1311
1473
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1312
1474
|
o.errors << Shapes::ShapeRef.new(shape: CodeStorageExceededException)
|
1313
1475
|
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
|
1476
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1314
1477
|
end)
|
1315
1478
|
|
1316
1479
|
api.add_operation(:update_function_configuration, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1326,6 +1489,18 @@ module Aws::Lambda
|
|
1326
1489
|
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1327
1490
|
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
|
1328
1491
|
end)
|
1492
|
+
|
1493
|
+
api.add_operation(:update_function_event_invoke_config, Seahorse::Model::Operation.new.tap do |o|
|
1494
|
+
o.name = "UpdateFunctionEventInvokeConfig"
|
1495
|
+
o.http_method = "POST"
|
1496
|
+
o.http_request_uri = "/2019-09-25/functions/{FunctionName}/event-invoke-config"
|
1497
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateFunctionEventInvokeConfigRequest)
|
1498
|
+
o.output = Shapes::ShapeRef.new(shape: FunctionEventInvokeConfig)
|
1499
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1500
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1501
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1502
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1503
|
+
end)
|
1329
1504
|
end
|
1330
1505
|
|
1331
1506
|
end
|
@@ -456,6 +456,27 @@ module Aws::Lambda
|
|
456
456
|
|
457
457
|
end
|
458
458
|
|
459
|
+
class ResourceNotReadyException < ServiceError
|
460
|
+
|
461
|
+
# @param [Seahorse::Client::RequestContext] context
|
462
|
+
# @param [String] message
|
463
|
+
# @param [Aws::Lambda::Types::ResourceNotReadyException] data
|
464
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
465
|
+
super(context, message, data)
|
466
|
+
end
|
467
|
+
|
468
|
+
# @return [String]
|
469
|
+
def type
|
470
|
+
@data[:type]
|
471
|
+
end
|
472
|
+
|
473
|
+
# @return [String]
|
474
|
+
def message
|
475
|
+
@message || @data[:message]
|
476
|
+
end
|
477
|
+
|
478
|
+
end
|
479
|
+
|
459
480
|
class ServiceException < ServiceError
|
460
481
|
|
461
482
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
module Aws::Lambda
|
9
9
|
module Types
|
10
10
|
|
11
|
-
# Limits that are related to concurrency and
|
11
|
+
# Limits that are related to concurrency and storage. All file and
|
12
12
|
# storage sizes are in bytes.
|
13
13
|
#
|
14
14
|
# @!attribute [rw] total_code_size
|
@@ -17,8 +17,8 @@ module Aws::Lambda
|
|
17
17
|
# @return [Integer]
|
18
18
|
#
|
19
19
|
# @!attribute [rw] code_size_unzipped
|
20
|
-
# The maximum size of
|
21
|
-
# extracted.
|
20
|
+
# The maximum size of a function's deployment package and layers when
|
21
|
+
# they're extracted.
|
22
22
|
# @return [Integer]
|
23
23
|
#
|
24
24
|
# @!attribute [rw] code_size_zipped
|
@@ -429,8 +429,20 @@ module Aws::Lambda
|
|
429
429
|
# enabled: false,
|
430
430
|
# batch_size: 1,
|
431
431
|
# maximum_batching_window_in_seconds: 1,
|
432
|
+
# parallelization_factor: 1,
|
432
433
|
# starting_position: "TRIM_HORIZON", # accepts TRIM_HORIZON, LATEST, AT_TIMESTAMP
|
433
434
|
# starting_position_timestamp: Time.now,
|
435
|
+
# destination_config: {
|
436
|
+
# on_success: {
|
437
|
+
# destination: "DestinationArn",
|
438
|
+
# },
|
439
|
+
# on_failure: {
|
440
|
+
# destination: "DestinationArn",
|
441
|
+
# },
|
442
|
+
# },
|
443
|
+
# maximum_record_age_in_seconds: 1,
|
444
|
+
# bisect_batch_on_function_error: false,
|
445
|
+
# maximum_retry_attempts: 1,
|
434
446
|
# }
|
435
447
|
#
|
436
448
|
# @!attribute [rw] event_source_arn
|
@@ -478,6 +490,13 @@ module Aws::Lambda
|
|
478
490
|
# @return [Integer]
|
479
491
|
#
|
480
492
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
493
|
+
# The maximum amount of time to gather records before invoking the
|
494
|
+
# function, in seconds.
|
495
|
+
# @return [Integer]
|
496
|
+
#
|
497
|
+
# @!attribute [rw] parallelization_factor
|
498
|
+
# (Streams) The number of batches to process from each shard
|
499
|
+
# concurrently.
|
481
500
|
# @return [Integer]
|
482
501
|
#
|
483
502
|
# @!attribute [rw] starting_position
|
@@ -491,6 +510,26 @@ module Aws::Lambda
|
|
491
510
|
# to start reading.
|
492
511
|
# @return [Time]
|
493
512
|
#
|
513
|
+
# @!attribute [rw] destination_config
|
514
|
+
# (Streams) An Amazon SQS queue or Amazon SNS topic destination for
|
515
|
+
# discarded records.
|
516
|
+
# @return [Types::DestinationConfig]
|
517
|
+
#
|
518
|
+
# @!attribute [rw] maximum_record_age_in_seconds
|
519
|
+
# (Streams) The maximum age of a record that Lambda sends to a
|
520
|
+
# function for processing.
|
521
|
+
# @return [Integer]
|
522
|
+
#
|
523
|
+
# @!attribute [rw] bisect_batch_on_function_error
|
524
|
+
# (Streams) If the function returns an error, split the batch in two
|
525
|
+
# and retry.
|
526
|
+
# @return [Boolean]
|
527
|
+
#
|
528
|
+
# @!attribute [rw] maximum_retry_attempts
|
529
|
+
# (Streams) The maximum number of times to retry when the function
|
530
|
+
# returns an error.
|
531
|
+
# @return [Integer]
|
532
|
+
#
|
494
533
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
|
495
534
|
#
|
496
535
|
class CreateEventSourceMappingRequest < Struct.new(
|
@@ -499,8 +538,13 @@ module Aws::Lambda
|
|
499
538
|
:enabled,
|
500
539
|
:batch_size,
|
501
540
|
:maximum_batching_window_in_seconds,
|
541
|
+
:parallelization_factor,
|
502
542
|
:starting_position,
|
503
|
-
:starting_position_timestamp
|
543
|
+
:starting_position_timestamp,
|
544
|
+
:destination_config,
|
545
|
+
:maximum_record_age_in_seconds,
|
546
|
+
:bisect_batch_on_function_error,
|
547
|
+
:maximum_retry_attempts)
|
504
548
|
include Aws::Structure
|
505
549
|
end
|
506
550
|
|
@@ -616,7 +660,7 @@ module Aws::Lambda
|
|
616
660
|
#
|
617
661
|
#
|
618
662
|
#
|
619
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/vpc.html
|
663
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
|
620
664
|
# @return [Types::VpcConfig]
|
621
665
|
#
|
622
666
|
# @!attribute [rw] dead_letter_config
|
@@ -626,7 +670,7 @@ module Aws::Lambda
|
|
626
670
|
#
|
627
671
|
#
|
628
672
|
#
|
629
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
673
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq
|
630
674
|
# @return [Types::DeadLetterConfig]
|
631
675
|
#
|
632
676
|
# @!attribute [rw] environment
|
@@ -684,11 +728,11 @@ module Aws::Lambda
|
|
684
728
|
include Aws::Structure
|
685
729
|
end
|
686
730
|
|
687
|
-
# The [dead
|
731
|
+
# The [dead-letter queue][1] for failed asynchronous invocations.
|
688
732
|
#
|
689
733
|
#
|
690
734
|
#
|
691
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
735
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq
|
692
736
|
#
|
693
737
|
# @note When making an API call, you may pass DeadLetterConfig
|
694
738
|
# data as a hash:
|
@@ -793,6 +837,44 @@ module Aws::Lambda
|
|
793
837
|
include Aws::Structure
|
794
838
|
end
|
795
839
|
|
840
|
+
# @note When making an API call, you may pass DeleteFunctionEventInvokeConfigRequest
|
841
|
+
# data as a hash:
|
842
|
+
#
|
843
|
+
# {
|
844
|
+
# function_name: "FunctionName", # required
|
845
|
+
# qualifier: "Qualifier",
|
846
|
+
# }
|
847
|
+
#
|
848
|
+
# @!attribute [rw] function_name
|
849
|
+
# The name of the Lambda function, version, or alias.
|
850
|
+
#
|
851
|
+
# **Name formats**
|
852
|
+
#
|
853
|
+
# * **Function name** - `my-function` (name-only), `my-function:v1`
|
854
|
+
# (with alias).
|
855
|
+
#
|
856
|
+
# * **Function ARN** -
|
857
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
858
|
+
#
|
859
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
860
|
+
#
|
861
|
+
# You can append a version number or alias to any of the formats. The
|
862
|
+
# length constraint applies only to the full ARN. If you specify only
|
863
|
+
# the function name, it is limited to 64 characters in length.
|
864
|
+
# @return [String]
|
865
|
+
#
|
866
|
+
# @!attribute [rw] qualifier
|
867
|
+
# A version number or alias name.
|
868
|
+
# @return [String]
|
869
|
+
#
|
870
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionEventInvokeConfigRequest AWS API Documentation
|
871
|
+
#
|
872
|
+
class DeleteFunctionEventInvokeConfigRequest < Struct.new(
|
873
|
+
:function_name,
|
874
|
+
:qualifier)
|
875
|
+
include Aws::Structure
|
876
|
+
end
|
877
|
+
|
796
878
|
# @note When making an API call, you may pass DeleteFunctionRequest
|
797
879
|
# data as a hash:
|
798
880
|
#
|
@@ -856,6 +938,37 @@ module Aws::Lambda
|
|
856
938
|
include Aws::Structure
|
857
939
|
end
|
858
940
|
|
941
|
+
# A configuration object that specifies the destination of an event
|
942
|
+
# after Lambda processes it.
|
943
|
+
#
|
944
|
+
# @note When making an API call, you may pass DestinationConfig
|
945
|
+
# data as a hash:
|
946
|
+
#
|
947
|
+
# {
|
948
|
+
# on_success: {
|
949
|
+
# destination: "DestinationArn",
|
950
|
+
# },
|
951
|
+
# on_failure: {
|
952
|
+
# destination: "DestinationArn",
|
953
|
+
# },
|
954
|
+
# }
|
955
|
+
#
|
956
|
+
# @!attribute [rw] on_success
|
957
|
+
# The destination configuration for successful invocations.
|
958
|
+
# @return [Types::OnSuccess]
|
959
|
+
#
|
960
|
+
# @!attribute [rw] on_failure
|
961
|
+
# The destination configuration for failed invocations.
|
962
|
+
# @return [Types::OnFailure]
|
963
|
+
#
|
964
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DestinationConfig AWS API Documentation
|
965
|
+
#
|
966
|
+
class DestinationConfig < Struct.new(
|
967
|
+
:on_success,
|
968
|
+
:on_failure)
|
969
|
+
include Aws::Structure
|
970
|
+
end
|
971
|
+
|
859
972
|
# Need additional permissions to configure VPC settings.
|
860
973
|
#
|
861
974
|
# @!attribute [rw] type
|
@@ -911,9 +1024,9 @@ module Aws::Lambda
|
|
911
1024
|
include Aws::Structure
|
912
1025
|
end
|
913
1026
|
|
914
|
-
# AWS Lambda was not able to create an
|
915
|
-
#
|
916
|
-
#
|
1027
|
+
# AWS Lambda was not able to create an elastic network interface in the
|
1028
|
+
# VPC, specified as part of Lambda function configuration, because the
|
1029
|
+
# limit for network interfaces has been reached.
|
917
1030
|
#
|
918
1031
|
# @!attribute [rw] type
|
919
1032
|
# @return [String]
|
@@ -969,8 +1082,10 @@ module Aws::Lambda
|
|
969
1082
|
include Aws::Structure
|
970
1083
|
end
|
971
1084
|
|
972
|
-
# The results of
|
973
|
-
#
|
1085
|
+
# The results of an operation to update or read environment variables.
|
1086
|
+
# If the operation is successful, the response contains the environment
|
1087
|
+
# variables. If it failed, the response contains details about the
|
1088
|
+
# error.
|
974
1089
|
#
|
975
1090
|
# @!attribute [rw] variables
|
976
1091
|
# Environment variable key-value pairs.
|
@@ -1000,6 +1115,13 @@ module Aws::Lambda
|
|
1000
1115
|
# @return [Integer]
|
1001
1116
|
#
|
1002
1117
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
1118
|
+
# The maximum amount of time to gather records before invoking the
|
1119
|
+
# function, in seconds.
|
1120
|
+
# @return [Integer]
|
1121
|
+
#
|
1122
|
+
# @!attribute [rw] parallelization_factor
|
1123
|
+
# (Streams) The number of batches to process from each shard
|
1124
|
+
# concurrently.
|
1003
1125
|
# @return [Integer]
|
1004
1126
|
#
|
1005
1127
|
# @!attribute [rw] event_source_arn
|
@@ -1011,7 +1133,8 @@ module Aws::Lambda
|
|
1011
1133
|
# @return [String]
|
1012
1134
|
#
|
1013
1135
|
# @!attribute [rw] last_modified
|
1014
|
-
# The date that the event source mapping was last updated
|
1136
|
+
# The date that the event source mapping was last updated, or its
|
1137
|
+
# state changed.
|
1015
1138
|
# @return [Time]
|
1016
1139
|
#
|
1017
1140
|
# @!attribute [rw] last_processing_result
|
@@ -1026,22 +1149,47 @@ module Aws::Lambda
|
|
1026
1149
|
# @return [String]
|
1027
1150
|
#
|
1028
1151
|
# @!attribute [rw] state_transition_reason
|
1029
|
-
#
|
1030
|
-
#
|
1152
|
+
# Indicates whether the last change to the event source mapping was
|
1153
|
+
# made by a user, or by the Lambda service.
|
1031
1154
|
# @return [String]
|
1032
1155
|
#
|
1156
|
+
# @!attribute [rw] destination_config
|
1157
|
+
# (Streams) An Amazon SQS queue or Amazon SNS topic destination for
|
1158
|
+
# discarded records.
|
1159
|
+
# @return [Types::DestinationConfig]
|
1160
|
+
#
|
1161
|
+
# @!attribute [rw] maximum_record_age_in_seconds
|
1162
|
+
# (Streams) The maximum age of a record that Lambda sends to a
|
1163
|
+
# function for processing.
|
1164
|
+
# @return [Integer]
|
1165
|
+
#
|
1166
|
+
# @!attribute [rw] bisect_batch_on_function_error
|
1167
|
+
# (Streams) If the function returns an error, split the batch in two
|
1168
|
+
# and retry.
|
1169
|
+
# @return [Boolean]
|
1170
|
+
#
|
1171
|
+
# @!attribute [rw] maximum_retry_attempts
|
1172
|
+
# (Streams) The maximum number of times to retry when the function
|
1173
|
+
# returns an error.
|
1174
|
+
# @return [Integer]
|
1175
|
+
#
|
1033
1176
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
|
1034
1177
|
#
|
1035
1178
|
class EventSourceMappingConfiguration < Struct.new(
|
1036
1179
|
:uuid,
|
1037
1180
|
:batch_size,
|
1038
1181
|
:maximum_batching_window_in_seconds,
|
1182
|
+
:parallelization_factor,
|
1039
1183
|
:event_source_arn,
|
1040
1184
|
:function_arn,
|
1041
1185
|
:last_modified,
|
1042
1186
|
:last_processing_result,
|
1043
1187
|
:state,
|
1044
|
-
:state_transition_reason
|
1188
|
+
:state_transition_reason,
|
1189
|
+
:destination_config,
|
1190
|
+
:maximum_record_age_in_seconds,
|
1191
|
+
:bisect_batch_on_function_error,
|
1192
|
+
:maximum_retry_attempts)
|
1045
1193
|
include Aws::Structure
|
1046
1194
|
end
|
1047
1195
|
|
@@ -1176,7 +1324,7 @@ module Aws::Lambda
|
|
1176
1324
|
# @!attribute [rw] kms_key_arn
|
1177
1325
|
# The KMS key that's used to encrypt the function's environment
|
1178
1326
|
# variables. This key is only returned if you've configured a
|
1179
|
-
# customer
|
1327
|
+
# customer managed CMK.
|
1180
1328
|
# @return [String]
|
1181
1329
|
#
|
1182
1330
|
# @!attribute [rw] tracing_config
|
@@ -1199,6 +1347,33 @@ module Aws::Lambda
|
|
1199
1347
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
|
1200
1348
|
# @return [Array<Types::Layer>]
|
1201
1349
|
#
|
1350
|
+
# @!attribute [rw] state
|
1351
|
+
# The current state of the function. When the state is `Inactive`, you
|
1352
|
+
# can reactivate the function by invoking it.
|
1353
|
+
# @return [String]
|
1354
|
+
#
|
1355
|
+
# @!attribute [rw] state_reason
|
1356
|
+
# The reason for the function's current state.
|
1357
|
+
# @return [String]
|
1358
|
+
#
|
1359
|
+
# @!attribute [rw] state_reason_code
|
1360
|
+
# The reason code for the function's current state. When the code is
|
1361
|
+
# `Creating`, you can't invoke or modify the function.
|
1362
|
+
# @return [String]
|
1363
|
+
#
|
1364
|
+
# @!attribute [rw] last_update_status
|
1365
|
+
# The status of the last update that was performed on the function.
|
1366
|
+
# @return [String]
|
1367
|
+
#
|
1368
|
+
# @!attribute [rw] last_update_status_reason
|
1369
|
+
# The reason for the last update that was performed on the function.
|
1370
|
+
# @return [String]
|
1371
|
+
#
|
1372
|
+
# @!attribute [rw] last_update_status_reason_code
|
1373
|
+
# The reason code for the last update that was performed on the
|
1374
|
+
# function.
|
1375
|
+
# @return [String]
|
1376
|
+
#
|
1202
1377
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
|
1203
1378
|
#
|
1204
1379
|
class FunctionConfiguration < Struct.new(
|
@@ -1221,7 +1396,58 @@ module Aws::Lambda
|
|
1221
1396
|
:tracing_config,
|
1222
1397
|
:master_arn,
|
1223
1398
|
:revision_id,
|
1224
|
-
:layers
|
1399
|
+
:layers,
|
1400
|
+
:state,
|
1401
|
+
:state_reason,
|
1402
|
+
:state_reason_code,
|
1403
|
+
:last_update_status,
|
1404
|
+
:last_update_status_reason,
|
1405
|
+
:last_update_status_reason_code)
|
1406
|
+
include Aws::Structure
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
# @!attribute [rw] last_modified
|
1410
|
+
# The date and time that the configuration was last updated.
|
1411
|
+
# @return [Time]
|
1412
|
+
#
|
1413
|
+
# @!attribute [rw] function_arn
|
1414
|
+
# The Amazon Resource Name (ARN) of the function.
|
1415
|
+
# @return [String]
|
1416
|
+
#
|
1417
|
+
# @!attribute [rw] maximum_retry_attempts
|
1418
|
+
# The maximum number of times to retry when the function returns an
|
1419
|
+
# error.
|
1420
|
+
# @return [Integer]
|
1421
|
+
#
|
1422
|
+
# @!attribute [rw] maximum_event_age_in_seconds
|
1423
|
+
# The maximum age of a request that Lambda sends to a function for
|
1424
|
+
# processing.
|
1425
|
+
# @return [Integer]
|
1426
|
+
#
|
1427
|
+
# @!attribute [rw] destination_config
|
1428
|
+
# A destination for events after they have been sent to a function for
|
1429
|
+
# processing.
|
1430
|
+
#
|
1431
|
+
# **Destinations**
|
1432
|
+
#
|
1433
|
+
# * **Function** - The Amazon Resource Name (ARN) of a Lambda
|
1434
|
+
# function.
|
1435
|
+
#
|
1436
|
+
# * **Queue** - The ARN of an SQS queue.
|
1437
|
+
#
|
1438
|
+
# * **Topic** - The ARN of an SNS topic.
|
1439
|
+
#
|
1440
|
+
# * **Event Bus** - The ARN of an Amazon EventBridge event bus.
|
1441
|
+
# @return [Types::DestinationConfig]
|
1442
|
+
#
|
1443
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionEventInvokeConfig AWS API Documentation
|
1444
|
+
#
|
1445
|
+
class FunctionEventInvokeConfig < Struct.new(
|
1446
|
+
:last_modified,
|
1447
|
+
:function_arn,
|
1448
|
+
:maximum_retry_attempts,
|
1449
|
+
:maximum_event_age_in_seconds,
|
1450
|
+
:destination_config)
|
1225
1451
|
include Aws::Structure
|
1226
1452
|
end
|
1227
1453
|
|
@@ -1340,6 +1566,44 @@ module Aws::Lambda
|
|
1340
1566
|
include Aws::Structure
|
1341
1567
|
end
|
1342
1568
|
|
1569
|
+
# @note When making an API call, you may pass GetFunctionEventInvokeConfigRequest
|
1570
|
+
# data as a hash:
|
1571
|
+
#
|
1572
|
+
# {
|
1573
|
+
# function_name: "FunctionName", # required
|
1574
|
+
# qualifier: "Qualifier",
|
1575
|
+
# }
|
1576
|
+
#
|
1577
|
+
# @!attribute [rw] function_name
|
1578
|
+
# The name of the Lambda function, version, or alias.
|
1579
|
+
#
|
1580
|
+
# **Name formats**
|
1581
|
+
#
|
1582
|
+
# * **Function name** - `my-function` (name-only), `my-function:v1`
|
1583
|
+
# (with alias).
|
1584
|
+
#
|
1585
|
+
# * **Function ARN** -
|
1586
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1587
|
+
#
|
1588
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
1589
|
+
#
|
1590
|
+
# You can append a version number or alias to any of the formats. The
|
1591
|
+
# length constraint applies only to the full ARN. If you specify only
|
1592
|
+
# the function name, it is limited to 64 characters in length.
|
1593
|
+
# @return [String]
|
1594
|
+
#
|
1595
|
+
# @!attribute [rw] qualifier
|
1596
|
+
# A version number or alias name.
|
1597
|
+
# @return [String]
|
1598
|
+
#
|
1599
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionEventInvokeConfigRequest AWS API Documentation
|
1600
|
+
#
|
1601
|
+
class GetFunctionEventInvokeConfigRequest < Struct.new(
|
1602
|
+
:function_name,
|
1603
|
+
:qualifier)
|
1604
|
+
include Aws::Structure
|
1605
|
+
end
|
1606
|
+
|
1343
1607
|
# @note When making an API call, you may pass GetFunctionRequest
|
1344
1608
|
# data as a hash:
|
1345
1609
|
#
|
@@ -1600,10 +1864,7 @@ module Aws::Lambda
|
|
1600
1864
|
include Aws::Structure
|
1601
1865
|
end
|
1602
1866
|
|
1603
|
-
# One of the parameters in the request is invalid.
|
1604
|
-
# provided an IAM role for AWS Lambda to assume in the `CreateFunction`
|
1605
|
-
# or the `UpdateFunctionConfiguration` API, that AWS Lambda is unable to
|
1606
|
-
# assume you will get this exception.
|
1867
|
+
# One of the parameters in the request is invalid.
|
1607
1868
|
#
|
1608
1869
|
# @!attribute [rw] type
|
1609
1870
|
# The exception type.
|
@@ -2251,6 +2512,65 @@ module Aws::Lambda
|
|
2251
2512
|
include Aws::Structure
|
2252
2513
|
end
|
2253
2514
|
|
2515
|
+
# @note When making an API call, you may pass ListFunctionEventInvokeConfigsRequest
|
2516
|
+
# data as a hash:
|
2517
|
+
#
|
2518
|
+
# {
|
2519
|
+
# function_name: "FunctionName", # required
|
2520
|
+
# marker: "String",
|
2521
|
+
# max_items: 1,
|
2522
|
+
# }
|
2523
|
+
#
|
2524
|
+
# @!attribute [rw] function_name
|
2525
|
+
# The name of the Lambda function.
|
2526
|
+
#
|
2527
|
+
# **Name formats**
|
2528
|
+
#
|
2529
|
+
# * **Function name** - `my-function`.
|
2530
|
+
#
|
2531
|
+
# * **Function ARN** -
|
2532
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2533
|
+
#
|
2534
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
2535
|
+
#
|
2536
|
+
# The length constraint applies only to the full ARN. If you specify
|
2537
|
+
# only the function name, it is limited to 64 characters in length.
|
2538
|
+
# @return [String]
|
2539
|
+
#
|
2540
|
+
# @!attribute [rw] marker
|
2541
|
+
# Specify the pagination token that's returned by a previous request
|
2542
|
+
# to retrieve the next page of results.
|
2543
|
+
# @return [String]
|
2544
|
+
#
|
2545
|
+
# @!attribute [rw] max_items
|
2546
|
+
# The maximum number of configurations to return.
|
2547
|
+
# @return [Integer]
|
2548
|
+
#
|
2549
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionEventInvokeConfigsRequest AWS API Documentation
|
2550
|
+
#
|
2551
|
+
class ListFunctionEventInvokeConfigsRequest < Struct.new(
|
2552
|
+
:function_name,
|
2553
|
+
:marker,
|
2554
|
+
:max_items)
|
2555
|
+
include Aws::Structure
|
2556
|
+
end
|
2557
|
+
|
2558
|
+
# @!attribute [rw] function_event_invoke_configs
|
2559
|
+
# A list of configurations.
|
2560
|
+
# @return [Array<Types::FunctionEventInvokeConfig>]
|
2561
|
+
#
|
2562
|
+
# @!attribute [rw] next_marker
|
2563
|
+
# The pagination token that's included if more results are available.
|
2564
|
+
# @return [String]
|
2565
|
+
#
|
2566
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionEventInvokeConfigsResponse AWS API Documentation
|
2567
|
+
#
|
2568
|
+
class ListFunctionEventInvokeConfigsResponse < Struct.new(
|
2569
|
+
:function_event_invoke_configs,
|
2570
|
+
:next_marker)
|
2571
|
+
include Aws::Structure
|
2572
|
+
end
|
2573
|
+
|
2254
2574
|
# @note When making an API call, you may pass ListFunctionsRequest
|
2255
2575
|
# data as a hash:
|
2256
2576
|
#
|
@@ -2498,6 +2818,46 @@ module Aws::Lambda
|
|
2498
2818
|
include Aws::Structure
|
2499
2819
|
end
|
2500
2820
|
|
2821
|
+
# A destination for events that failed processing.
|
2822
|
+
#
|
2823
|
+
# @note When making an API call, you may pass OnFailure
|
2824
|
+
# data as a hash:
|
2825
|
+
#
|
2826
|
+
# {
|
2827
|
+
# destination: "DestinationArn",
|
2828
|
+
# }
|
2829
|
+
#
|
2830
|
+
# @!attribute [rw] destination
|
2831
|
+
# The Amazon Resource Name (ARN) of the destination resource.
|
2832
|
+
# @return [String]
|
2833
|
+
#
|
2834
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/OnFailure AWS API Documentation
|
2835
|
+
#
|
2836
|
+
class OnFailure < Struct.new(
|
2837
|
+
:destination)
|
2838
|
+
include Aws::Structure
|
2839
|
+
end
|
2840
|
+
|
2841
|
+
# A destination for events that were processed successfully.
|
2842
|
+
#
|
2843
|
+
# @note When making an API call, you may pass OnSuccess
|
2844
|
+
# data as a hash:
|
2845
|
+
#
|
2846
|
+
# {
|
2847
|
+
# destination: "DestinationArn",
|
2848
|
+
# }
|
2849
|
+
#
|
2850
|
+
# @!attribute [rw] destination
|
2851
|
+
# The Amazon Resource Name (ARN) of the destination resource.
|
2852
|
+
# @return [String]
|
2853
|
+
#
|
2854
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/OnSuccess AWS API Documentation
|
2855
|
+
#
|
2856
|
+
class OnSuccess < Struct.new(
|
2857
|
+
:destination)
|
2858
|
+
include Aws::Structure
|
2859
|
+
end
|
2860
|
+
|
2501
2861
|
# The permissions policy for the resource is too large. [Learn more][1]
|
2502
2862
|
#
|
2503
2863
|
#
|
@@ -2743,6 +3103,83 @@ module Aws::Lambda
|
|
2743
3103
|
include Aws::Structure
|
2744
3104
|
end
|
2745
3105
|
|
3106
|
+
# @note When making an API call, you may pass PutFunctionEventInvokeConfigRequest
|
3107
|
+
# data as a hash:
|
3108
|
+
#
|
3109
|
+
# {
|
3110
|
+
# function_name: "FunctionName", # required
|
3111
|
+
# qualifier: "Qualifier",
|
3112
|
+
# maximum_retry_attempts: 1,
|
3113
|
+
# maximum_event_age_in_seconds: 1,
|
3114
|
+
# destination_config: {
|
3115
|
+
# on_success: {
|
3116
|
+
# destination: "DestinationArn",
|
3117
|
+
# },
|
3118
|
+
# on_failure: {
|
3119
|
+
# destination: "DestinationArn",
|
3120
|
+
# },
|
3121
|
+
# },
|
3122
|
+
# }
|
3123
|
+
#
|
3124
|
+
# @!attribute [rw] function_name
|
3125
|
+
# The name of the Lambda function, version, or alias.
|
3126
|
+
#
|
3127
|
+
# **Name formats**
|
3128
|
+
#
|
3129
|
+
# * **Function name** - `my-function` (name-only), `my-function:v1`
|
3130
|
+
# (with alias).
|
3131
|
+
#
|
3132
|
+
# * **Function ARN** -
|
3133
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
3134
|
+
#
|
3135
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
3136
|
+
#
|
3137
|
+
# You can append a version number or alias to any of the formats. The
|
3138
|
+
# length constraint applies only to the full ARN. If you specify only
|
3139
|
+
# the function name, it is limited to 64 characters in length.
|
3140
|
+
# @return [String]
|
3141
|
+
#
|
3142
|
+
# @!attribute [rw] qualifier
|
3143
|
+
# A version number or alias name.
|
3144
|
+
# @return [String]
|
3145
|
+
#
|
3146
|
+
# @!attribute [rw] maximum_retry_attempts
|
3147
|
+
# The maximum number of times to retry when the function returns an
|
3148
|
+
# error.
|
3149
|
+
# @return [Integer]
|
3150
|
+
#
|
3151
|
+
# @!attribute [rw] maximum_event_age_in_seconds
|
3152
|
+
# The maximum age of a request that Lambda sends to a function for
|
3153
|
+
# processing.
|
3154
|
+
# @return [Integer]
|
3155
|
+
#
|
3156
|
+
# @!attribute [rw] destination_config
|
3157
|
+
# A destination for events after they have been sent to a function for
|
3158
|
+
# processing.
|
3159
|
+
#
|
3160
|
+
# **Destinations**
|
3161
|
+
#
|
3162
|
+
# * **Function** - The Amazon Resource Name (ARN) of a Lambda
|
3163
|
+
# function.
|
3164
|
+
#
|
3165
|
+
# * **Queue** - The ARN of an SQS queue.
|
3166
|
+
#
|
3167
|
+
# * **Topic** - The ARN of an SNS topic.
|
3168
|
+
#
|
3169
|
+
# * **Event Bus** - The ARN of an Amazon EventBridge event bus.
|
3170
|
+
# @return [Types::DestinationConfig]
|
3171
|
+
#
|
3172
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionEventInvokeConfigRequest AWS API Documentation
|
3173
|
+
#
|
3174
|
+
class PutFunctionEventInvokeConfigRequest < Struct.new(
|
3175
|
+
:function_name,
|
3176
|
+
:qualifier,
|
3177
|
+
:maximum_retry_attempts,
|
3178
|
+
:maximum_event_age_in_seconds,
|
3179
|
+
:destination_config)
|
3180
|
+
include Aws::Structure
|
3181
|
+
end
|
3182
|
+
|
2746
3183
|
# @note When making an API call, you may pass RemoveLayerVersionPermissionRequest
|
2747
3184
|
# data as a hash:
|
2748
3185
|
#
|
@@ -2855,7 +3292,7 @@ module Aws::Lambda
|
|
2855
3292
|
include Aws::Structure
|
2856
3293
|
end
|
2857
3294
|
|
2858
|
-
# The resource already exists.
|
3295
|
+
# The resource already exists, or another operation is in progress.
|
2859
3296
|
#
|
2860
3297
|
# @!attribute [rw] type
|
2861
3298
|
# The exception type.
|
@@ -2892,8 +3329,7 @@ module Aws::Lambda
|
|
2892
3329
|
include Aws::Structure
|
2893
3330
|
end
|
2894
3331
|
|
2895
|
-
# The resource
|
2896
|
-
# statement) specified in the request does not exist.
|
3332
|
+
# The resource specified in the request does not exist.
|
2897
3333
|
#
|
2898
3334
|
# @!attribute [rw] type
|
2899
3335
|
# @return [String]
|
@@ -2909,6 +3345,25 @@ module Aws::Lambda
|
|
2909
3345
|
include Aws::Structure
|
2910
3346
|
end
|
2911
3347
|
|
3348
|
+
# The function is inactive and its VPC connection is no longer
|
3349
|
+
# available. Wait for the VPC connection to reestablish and try again.
|
3350
|
+
#
|
3351
|
+
# @!attribute [rw] type
|
3352
|
+
# The exception type.
|
3353
|
+
# @return [String]
|
3354
|
+
#
|
3355
|
+
# @!attribute [rw] message
|
3356
|
+
# The exception message.
|
3357
|
+
# @return [String]
|
3358
|
+
#
|
3359
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ResourceNotReadyException AWS API Documentation
|
3360
|
+
#
|
3361
|
+
class ResourceNotReadyException < Struct.new(
|
3362
|
+
:type,
|
3363
|
+
:message)
|
3364
|
+
include Aws::Structure
|
3365
|
+
end
|
3366
|
+
|
2912
3367
|
# The AWS Lambda service encountered an internal error.
|
2913
3368
|
#
|
2914
3369
|
# @!attribute [rw] type
|
@@ -2968,7 +3423,7 @@ module Aws::Lambda
|
|
2968
3423
|
include Aws::Structure
|
2969
3424
|
end
|
2970
3425
|
|
2971
|
-
#
|
3426
|
+
# The request throughput limit was exceeded.
|
2972
3427
|
#
|
2973
3428
|
# @!attribute [rw] retry_after_seconds
|
2974
3429
|
# The number of seconds the caller should wait before retrying.
|
@@ -3145,6 +3600,18 @@ module Aws::Lambda
|
|
3145
3600
|
# enabled: false,
|
3146
3601
|
# batch_size: 1,
|
3147
3602
|
# maximum_batching_window_in_seconds: 1,
|
3603
|
+
# destination_config: {
|
3604
|
+
# on_success: {
|
3605
|
+
# destination: "DestinationArn",
|
3606
|
+
# },
|
3607
|
+
# on_failure: {
|
3608
|
+
# destination: "DestinationArn",
|
3609
|
+
# },
|
3610
|
+
# },
|
3611
|
+
# maximum_record_age_in_seconds: 1,
|
3612
|
+
# bisect_batch_on_function_error: false,
|
3613
|
+
# maximum_retry_attempts: 1,
|
3614
|
+
# parallelization_factor: 1,
|
3148
3615
|
# }
|
3149
3616
|
#
|
3150
3617
|
# @!attribute [rw] uuid
|
@@ -3185,6 +3652,33 @@ module Aws::Lambda
|
|
3185
3652
|
# @return [Integer]
|
3186
3653
|
#
|
3187
3654
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
3655
|
+
# The maximum amount of time to gather records before invoking the
|
3656
|
+
# function, in seconds.
|
3657
|
+
# @return [Integer]
|
3658
|
+
#
|
3659
|
+
# @!attribute [rw] destination_config
|
3660
|
+
# (Streams) An Amazon SQS queue or Amazon SNS topic destination for
|
3661
|
+
# discarded records.
|
3662
|
+
# @return [Types::DestinationConfig]
|
3663
|
+
#
|
3664
|
+
# @!attribute [rw] maximum_record_age_in_seconds
|
3665
|
+
# (Streams) The maximum age of a record that Lambda sends to a
|
3666
|
+
# function for processing.
|
3667
|
+
# @return [Integer]
|
3668
|
+
#
|
3669
|
+
# @!attribute [rw] bisect_batch_on_function_error
|
3670
|
+
# (Streams) If the function returns an error, split the batch in two
|
3671
|
+
# and retry.
|
3672
|
+
# @return [Boolean]
|
3673
|
+
#
|
3674
|
+
# @!attribute [rw] maximum_retry_attempts
|
3675
|
+
# (Streams) The maximum number of times to retry when the function
|
3676
|
+
# returns an error.
|
3677
|
+
# @return [Integer]
|
3678
|
+
#
|
3679
|
+
# @!attribute [rw] parallelization_factor
|
3680
|
+
# (Streams) The number of batches to process from each shard
|
3681
|
+
# concurrently.
|
3188
3682
|
# @return [Integer]
|
3189
3683
|
#
|
3190
3684
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest AWS API Documentation
|
@@ -3194,7 +3688,12 @@ module Aws::Lambda
|
|
3194
3688
|
:function_name,
|
3195
3689
|
:enabled,
|
3196
3690
|
:batch_size,
|
3197
|
-
:maximum_batching_window_in_seconds
|
3691
|
+
:maximum_batching_window_in_seconds,
|
3692
|
+
:destination_config,
|
3693
|
+
:maximum_record_age_in_seconds,
|
3694
|
+
:bisect_batch_on_function_error,
|
3695
|
+
:maximum_retry_attempts,
|
3696
|
+
:parallelization_factor)
|
3198
3697
|
include Aws::Structure
|
3199
3698
|
end
|
3200
3699
|
|
@@ -3364,7 +3863,7 @@ module Aws::Lambda
|
|
3364
3863
|
#
|
3365
3864
|
#
|
3366
3865
|
#
|
3367
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/vpc.html
|
3866
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
|
3368
3867
|
# @return [Types::VpcConfig]
|
3369
3868
|
#
|
3370
3869
|
# @!attribute [rw] environment
|
@@ -3387,7 +3886,7 @@ module Aws::Lambda
|
|
3387
3886
|
#
|
3388
3887
|
#
|
3389
3888
|
#
|
3390
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
3889
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq
|
3391
3890
|
# @return [Types::DeadLetterConfig]
|
3392
3891
|
#
|
3393
3892
|
# @!attribute [rw] kms_key_arn
|
@@ -3436,8 +3935,89 @@ module Aws::Lambda
|
|
3436
3935
|
include Aws::Structure
|
3437
3936
|
end
|
3438
3937
|
|
3938
|
+
# @note When making an API call, you may pass UpdateFunctionEventInvokeConfigRequest
|
3939
|
+
# data as a hash:
|
3940
|
+
#
|
3941
|
+
# {
|
3942
|
+
# function_name: "FunctionName", # required
|
3943
|
+
# qualifier: "Qualifier",
|
3944
|
+
# maximum_retry_attempts: 1,
|
3945
|
+
# maximum_event_age_in_seconds: 1,
|
3946
|
+
# destination_config: {
|
3947
|
+
# on_success: {
|
3948
|
+
# destination: "DestinationArn",
|
3949
|
+
# },
|
3950
|
+
# on_failure: {
|
3951
|
+
# destination: "DestinationArn",
|
3952
|
+
# },
|
3953
|
+
# },
|
3954
|
+
# }
|
3955
|
+
#
|
3956
|
+
# @!attribute [rw] function_name
|
3957
|
+
# The name of the Lambda function, version, or alias.
|
3958
|
+
#
|
3959
|
+
# **Name formats**
|
3960
|
+
#
|
3961
|
+
# * **Function name** - `my-function` (name-only), `my-function:v1`
|
3962
|
+
# (with alias).
|
3963
|
+
#
|
3964
|
+
# * **Function ARN** -
|
3965
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
3966
|
+
#
|
3967
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
3968
|
+
#
|
3969
|
+
# You can append a version number or alias to any of the formats. The
|
3970
|
+
# length constraint applies only to the full ARN. If you specify only
|
3971
|
+
# the function name, it is limited to 64 characters in length.
|
3972
|
+
# @return [String]
|
3973
|
+
#
|
3974
|
+
# @!attribute [rw] qualifier
|
3975
|
+
# A version number or alias name.
|
3976
|
+
# @return [String]
|
3977
|
+
#
|
3978
|
+
# @!attribute [rw] maximum_retry_attempts
|
3979
|
+
# The maximum number of times to retry when the function returns an
|
3980
|
+
# error.
|
3981
|
+
# @return [Integer]
|
3982
|
+
#
|
3983
|
+
# @!attribute [rw] maximum_event_age_in_seconds
|
3984
|
+
# The maximum age of a request that Lambda sends to a function for
|
3985
|
+
# processing.
|
3986
|
+
# @return [Integer]
|
3987
|
+
#
|
3988
|
+
# @!attribute [rw] destination_config
|
3989
|
+
# A destination for events after they have been sent to a function for
|
3990
|
+
# processing.
|
3991
|
+
#
|
3992
|
+
# **Destinations**
|
3993
|
+
#
|
3994
|
+
# * **Function** - The Amazon Resource Name (ARN) of a Lambda
|
3995
|
+
# function.
|
3996
|
+
#
|
3997
|
+
# * **Queue** - The ARN of an SQS queue.
|
3998
|
+
#
|
3999
|
+
# * **Topic** - The ARN of an SNS topic.
|
4000
|
+
#
|
4001
|
+
# * **Event Bus** - The ARN of an Amazon EventBridge event bus.
|
4002
|
+
# @return [Types::DestinationConfig]
|
4003
|
+
#
|
4004
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionEventInvokeConfigRequest AWS API Documentation
|
4005
|
+
#
|
4006
|
+
class UpdateFunctionEventInvokeConfigRequest < Struct.new(
|
4007
|
+
:function_name,
|
4008
|
+
:qualifier,
|
4009
|
+
:maximum_retry_attempts,
|
4010
|
+
:maximum_event_age_in_seconds,
|
4011
|
+
:destination_config)
|
4012
|
+
include Aws::Structure
|
4013
|
+
end
|
4014
|
+
|
3439
4015
|
# The VPC security groups and subnets that are attached to a Lambda
|
3440
|
-
# function.
|
4016
|
+
# function. For more information, see [VPC Settings][1].
|
4017
|
+
#
|
4018
|
+
#
|
4019
|
+
#
|
4020
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
|
3441
4021
|
#
|
3442
4022
|
# @note When making an API call, you may pass VpcConfig
|
3443
4023
|
# data as a hash:
|