aws-sdk-lambda 1.211.0 → 1.213.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +129 -63
- data/lib/aws-sdk-lambda/client_api.rb +41 -7
- data/lib/aws-sdk-lambda/errors.rb +42 -0
- data/lib/aws-sdk-lambda/types.rb +147 -23
- data/lib/aws-sdk-lambda.rb +1 -1
- data/sig/client.rbs +47 -23
- data/sig/errors.rbs +8 -0
- data/sig/params.rbs +1 -1
- data/sig/types.rbs +41 -12
- metadata +3 -3
|
@@ -14,6 +14,8 @@ module Aws::Lambda
|
|
|
14
14
|
|
|
15
15
|
include Seahorse::Model
|
|
16
16
|
|
|
17
|
+
AcceleratorConfig = Shapes::StructureShape.new(name: 'AcceleratorConfig')
|
|
18
|
+
AcceleratorMemoryGB = Shapes::IntegerShape.new(name: 'AcceleratorMemoryGB')
|
|
17
19
|
AccountLimit = Shapes::StructureShape.new(name: 'AccountLimit')
|
|
18
20
|
AccountUsage = Shapes::StructureShape.new(name: 'AccountUsage')
|
|
19
21
|
Action = Shapes::StringShape.new(name: 'Action')
|
|
@@ -222,6 +224,9 @@ module Aws::Lambda
|
|
|
222
224
|
FunctionName = Shapes::StringShape.new(name: 'FunctionName')
|
|
223
225
|
FunctionResponseType = Shapes::StringShape.new(name: 'FunctionResponseType')
|
|
224
226
|
FunctionResponseTypeList = Shapes::ListShape.new(name: 'FunctionResponseTypeList')
|
|
227
|
+
FunctionRuntimeAlias = Shapes::StringShape.new(name: 'FunctionRuntimeAlias')
|
|
228
|
+
FunctionRuntimeArn = Shapes::StringShape.new(name: 'FunctionRuntimeArn')
|
|
229
|
+
FunctionRuntimeConfig = Shapes::StructureShape.new(name: 'FunctionRuntimeConfig')
|
|
225
230
|
FunctionScalingConfig = Shapes::StructureShape.new(name: 'FunctionScalingConfig')
|
|
226
231
|
FunctionScalingConfigExecutionEnvironments = Shapes::IntegerShape.new(name: 'FunctionScalingConfigExecutionEnvironments')
|
|
227
232
|
FunctionUrl = Shapes::StringShape.new(name: 'FunctionUrl')
|
|
@@ -332,6 +337,7 @@ module Aws::Lambda
|
|
|
332
337
|
LayerArn = Shapes::StringShape.new(name: 'LayerArn')
|
|
333
338
|
LayerList = Shapes::ListShape.new(name: 'LayerList')
|
|
334
339
|
LayerName = Shapes::StringShape.new(name: 'LayerName')
|
|
340
|
+
LayerNameOrArn = Shapes::StringShape.new(name: 'LayerNameOrArn')
|
|
335
341
|
LayerPermissionAllowedAction = Shapes::StringShape.new(name: 'LayerPermissionAllowedAction')
|
|
336
342
|
LayerPermissionAllowedPrincipal = Shapes::StringShape.new(name: 'LayerPermissionAllowedPrincipal')
|
|
337
343
|
LayerVersionArn = Shapes::StringShape.new(name: 'LayerVersionArn')
|
|
@@ -485,8 +491,10 @@ module Aws::Lambda
|
|
|
485
491
|
RevisionId = Shapes::StringShape.new(name: 'RevisionId')
|
|
486
492
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
|
487
493
|
Runtime = Shapes::StringShape.new(name: 'Runtime')
|
|
494
|
+
RuntimeAliasDeletedException = Shapes::StructureShape.new(name: 'RuntimeAliasDeletedException')
|
|
488
495
|
RuntimeVersionArn = Shapes::StringShape.new(name: 'RuntimeVersionArn')
|
|
489
496
|
RuntimeVersionConfig = Shapes::StructureShape.new(name: 'RuntimeVersionConfig')
|
|
497
|
+
RuntimeVersionDeletedException = Shapes::StructureShape.new(name: 'RuntimeVersionDeletedException')
|
|
490
498
|
RuntimeVersionError = Shapes::StructureShape.new(name: 'RuntimeVersionError')
|
|
491
499
|
S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
|
|
492
500
|
S3FilesConfig = Shapes::StructureShape.new(name: 'S3FilesConfig')
|
|
@@ -605,6 +613,9 @@ module Aws::Lambda
|
|
|
605
613
|
WorkingDirectory = Shapes::StringShape.new(name: 'WorkingDirectory')
|
|
606
614
|
XAmznTraceId = Shapes::StringShape.new(name: 'XAmznTraceId')
|
|
607
615
|
|
|
616
|
+
AcceleratorConfig.add_member(:accelerator_memory_size, Shapes::ShapeRef.new(shape: AcceleratorMemoryGB, required: true, location_name: "AcceleratorMemorySize"))
|
|
617
|
+
AcceleratorConfig.struct_class = Types::AcceleratorConfig
|
|
618
|
+
|
|
608
619
|
AccountLimit.add_member(:total_code_size, Shapes::ShapeRef.new(shape: Long, location_name: "TotalCodeSize"))
|
|
609
620
|
AccountLimit.add_member(:code_size_unzipped, Shapes::ShapeRef.new(shape: Long, location_name: "CodeSizeUnzipped"))
|
|
610
621
|
AccountLimit.add_member(:code_size_zipped, Shapes::ShapeRef.new(shape: Long, location_name: "CodeSizeZipped"))
|
|
@@ -616,7 +627,7 @@ module Aws::Lambda
|
|
|
616
627
|
AccountUsage.add_member(:function_count, Shapes::ShapeRef.new(shape: Long, location_name: "FunctionCount"))
|
|
617
628
|
AccountUsage.struct_class = Types::AccountUsage
|
|
618
629
|
|
|
619
|
-
AddLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape:
|
|
630
|
+
AddLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
|
|
620
631
|
AddLayerVersionPermissionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
|
621
632
|
AddLayerVersionPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "StatementId"))
|
|
622
633
|
AddLayerVersionPermissionRequest.add_member(:action, Shapes::ShapeRef.new(shape: LayerPermissionAllowedAction, required: true, location_name: "Action"))
|
|
@@ -950,6 +961,8 @@ module Aws::Lambda
|
|
|
950
961
|
CreateFunctionRequest.add_member(:tenancy_config, Shapes::ShapeRef.new(shape: TenancyConfig, location_name: "TenancyConfig"))
|
|
951
962
|
CreateFunctionRequest.add_member(:capacity_provider_config, Shapes::ShapeRef.new(shape: CapacityProviderConfig, location_name: "CapacityProviderConfig"))
|
|
952
963
|
CreateFunctionRequest.add_member(:durable_config, Shapes::ShapeRef.new(shape: DurableConfig, location_name: "DurableConfig"))
|
|
964
|
+
CreateFunctionRequest.add_member(:runtime_config, Shapes::ShapeRef.new(shape: FunctionRuntimeConfig, location_name: "RuntimeConfig"))
|
|
965
|
+
CreateFunctionRequest.add_member(:accelerator_config, Shapes::ShapeRef.new(shape: AcceleratorConfig, location_name: "AcceleratorConfig"))
|
|
953
966
|
CreateFunctionRequest.struct_class = Types::CreateFunctionRequest
|
|
954
967
|
|
|
955
968
|
CreateFunctionUrlConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionUrlFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
|
@@ -1009,7 +1022,7 @@ module Aws::Lambda
|
|
|
1009
1022
|
DeleteFunctionUrlConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: FunctionUrlQualifier, location: "querystring", location_name: "Qualifier"))
|
|
1010
1023
|
DeleteFunctionUrlConfigRequest.struct_class = Types::DeleteFunctionUrlConfigRequest
|
|
1011
1024
|
|
|
1012
|
-
DeleteLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape:
|
|
1025
|
+
DeleteLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
|
|
1013
1026
|
DeleteLayerVersionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
|
1014
1027
|
DeleteLayerVersionRequest.struct_class = Types::DeleteLayerVersionRequest
|
|
1015
1028
|
|
|
@@ -1311,6 +1324,8 @@ module Aws::Lambda
|
|
|
1311
1324
|
FunctionConfiguration.add_member(:capacity_provider_config, Shapes::ShapeRef.new(shape: CapacityProviderConfig, location_name: "CapacityProviderConfig"))
|
|
1312
1325
|
FunctionConfiguration.add_member(:config_sha_256, Shapes::ShapeRef.new(shape: String, location_name: "ConfigSha256"))
|
|
1313
1326
|
FunctionConfiguration.add_member(:durable_config, Shapes::ShapeRef.new(shape: DurableConfig, location_name: "DurableConfig"))
|
|
1327
|
+
FunctionConfiguration.add_member(:runtime_config, Shapes::ShapeRef.new(shape: FunctionRuntimeConfig, location_name: "RuntimeConfig"))
|
|
1328
|
+
FunctionConfiguration.add_member(:accelerator_config, Shapes::ShapeRef.new(shape: AcceleratorConfig, location_name: "AcceleratorConfig"))
|
|
1314
1329
|
FunctionConfiguration.struct_class = Types::FunctionConfiguration
|
|
1315
1330
|
|
|
1316
1331
|
FunctionEventInvokeConfig.add_member(:last_modified, Shapes::ShapeRef.new(shape: Date, location_name: "LastModified"))
|
|
@@ -1326,6 +1341,10 @@ module Aws::Lambda
|
|
|
1326
1341
|
|
|
1327
1342
|
FunctionResponseTypeList.member = Shapes::ShapeRef.new(shape: FunctionResponseType)
|
|
1328
1343
|
|
|
1344
|
+
FunctionRuntimeConfig.add_member(:runtime_arn, Shapes::ShapeRef.new(shape: FunctionRuntimeArn, required: true, location_name: "RuntimeArn"))
|
|
1345
|
+
FunctionRuntimeConfig.add_member(:runtime_alias, Shapes::ShapeRef.new(shape: FunctionRuntimeAlias, required: true, location_name: "RuntimeAlias"))
|
|
1346
|
+
FunctionRuntimeConfig.struct_class = Types::FunctionRuntimeConfig
|
|
1347
|
+
|
|
1329
1348
|
FunctionScalingConfig.add_member(:min_execution_environments, Shapes::ShapeRef.new(shape: FunctionScalingConfigExecutionEnvironments, location_name: "MinExecutionEnvironments"))
|
|
1330
1349
|
FunctionScalingConfig.add_member(:max_execution_environments, Shapes::ShapeRef.new(shape: FunctionScalingConfigExecutionEnvironments, location_name: "MaxExecutionEnvironments"))
|
|
1331
1350
|
FunctionScalingConfig.struct_class = Types::FunctionScalingConfig
|
|
@@ -1479,7 +1498,7 @@ module Aws::Lambda
|
|
|
1479
1498
|
GetLayerVersionByArnRequest.add_member(:arn, Shapes::ShapeRef.new(shape: LayerVersionArn, required: true, location: "querystring", location_name: "Arn"))
|
|
1480
1499
|
GetLayerVersionByArnRequest.struct_class = Types::GetLayerVersionByArnRequest
|
|
1481
1500
|
|
|
1482
|
-
GetLayerVersionPolicyRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape:
|
|
1501
|
+
GetLayerVersionPolicyRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
|
|
1483
1502
|
GetLayerVersionPolicyRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
|
1484
1503
|
GetLayerVersionPolicyRequest.struct_class = Types::GetLayerVersionPolicyRequest
|
|
1485
1504
|
|
|
@@ -1487,7 +1506,7 @@ module Aws::Lambda
|
|
|
1487
1506
|
GetLayerVersionPolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
|
|
1488
1507
|
GetLayerVersionPolicyResponse.struct_class = Types::GetLayerVersionPolicyResponse
|
|
1489
1508
|
|
|
1490
|
-
GetLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape:
|
|
1509
|
+
GetLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
|
|
1491
1510
|
GetLayerVersionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
|
1492
1511
|
GetLayerVersionRequest.struct_class = Types::GetLayerVersionRequest
|
|
1493
1512
|
|
|
@@ -1838,7 +1857,7 @@ module Aws::Lambda
|
|
|
1838
1857
|
|
|
1839
1858
|
ListLayerVersionsRequest.add_member(:compatible_architecture, Shapes::ShapeRef.new(shape: Architecture, location: "querystring", location_name: "CompatibleArchitecture"))
|
|
1840
1859
|
ListLayerVersionsRequest.add_member(:compatible_runtime, Shapes::ShapeRef.new(shape: Runtime, location: "querystring", location_name: "CompatibleRuntime"))
|
|
1841
|
-
ListLayerVersionsRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape:
|
|
1860
|
+
ListLayerVersionsRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
|
|
1842
1861
|
ListLayerVersionsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
|
|
1843
1862
|
ListLayerVersionsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxLayerListItems, location: "querystring", location_name: "MaxItems"))
|
|
1844
1863
|
ListLayerVersionsRequest.struct_class = Types::ListLayerVersionsRequest
|
|
@@ -1975,7 +1994,7 @@ module Aws::Lambda
|
|
|
1975
1994
|
PublicPolicyException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
|
1976
1995
|
PublicPolicyException.struct_class = Types::PublicPolicyException
|
|
1977
1996
|
|
|
1978
|
-
PublishLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape:
|
|
1997
|
+
PublishLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
|
|
1979
1998
|
PublishLayerVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
|
1980
1999
|
PublishLayerVersionRequest.add_member(:content, Shapes::ShapeRef.new(shape: LayerVersionContentInput, required: true, location_name: "Content"))
|
|
1981
2000
|
PublishLayerVersionRequest.add_member(:compatible_architectures, Shapes::ShapeRef.new(shape: CompatibleArchitectures, location_name: "CompatibleArchitectures"))
|
|
@@ -2074,7 +2093,7 @@ module Aws::Lambda
|
|
|
2074
2093
|
RecursiveInvocationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
|
2075
2094
|
RecursiveInvocationException.struct_class = Types::RecursiveInvocationException
|
|
2076
2095
|
|
|
2077
|
-
RemoveLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape:
|
|
2096
|
+
RemoveLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
|
|
2078
2097
|
RemoveLayerVersionPermissionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
|
2079
2098
|
RemoveLayerVersionPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location: "uri", location_name: "StatementId"))
|
|
2080
2099
|
RemoveLayerVersionPermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "RevisionId"))
|
|
@@ -2115,10 +2134,18 @@ module Aws::Lambda
|
|
|
2115
2134
|
RetryDetails.add_member(:next_attempt_delay_seconds, Shapes::ShapeRef.new(shape: DurationSeconds, location_name: "NextAttemptDelaySeconds"))
|
|
2116
2135
|
RetryDetails.struct_class = Types::RetryDetails
|
|
2117
2136
|
|
|
2137
|
+
RuntimeAliasDeletedException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
|
2138
|
+
RuntimeAliasDeletedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
2139
|
+
RuntimeAliasDeletedException.struct_class = Types::RuntimeAliasDeletedException
|
|
2140
|
+
|
|
2118
2141
|
RuntimeVersionConfig.add_member(:runtime_version_arn, Shapes::ShapeRef.new(shape: RuntimeVersionArn, location_name: "RuntimeVersionArn"))
|
|
2119
2142
|
RuntimeVersionConfig.add_member(:error, Shapes::ShapeRef.new(shape: RuntimeVersionError, location_name: "Error"))
|
|
2120
2143
|
RuntimeVersionConfig.struct_class = Types::RuntimeVersionConfig
|
|
2121
2144
|
|
|
2145
|
+
RuntimeVersionDeletedException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
|
2146
|
+
RuntimeVersionDeletedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
2147
|
+
RuntimeVersionDeletedException.struct_class = Types::RuntimeVersionDeletedException
|
|
2148
|
+
|
|
2122
2149
|
RuntimeVersionError.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "ErrorCode"))
|
|
2123
2150
|
RuntimeVersionError.add_member(:message, Shapes::ShapeRef.new(shape: SensitiveString, location_name: "Message"))
|
|
2124
2151
|
RuntimeVersionError.struct_class = Types::RuntimeVersionError
|
|
@@ -2384,6 +2411,8 @@ module Aws::Lambda
|
|
|
2384
2411
|
UpdateFunctionConfigurationRequest.add_member(:logging_config, Shapes::ShapeRef.new(shape: LoggingConfig, location_name: "LoggingConfig"))
|
|
2385
2412
|
UpdateFunctionConfigurationRequest.add_member(:capacity_provider_config, Shapes::ShapeRef.new(shape: CapacityProviderConfig, location_name: "CapacityProviderConfig"))
|
|
2386
2413
|
UpdateFunctionConfigurationRequest.add_member(:durable_config, Shapes::ShapeRef.new(shape: DurableConfig, location_name: "DurableConfig"))
|
|
2414
|
+
UpdateFunctionConfigurationRequest.add_member(:runtime_config, Shapes::ShapeRef.new(shape: FunctionRuntimeConfig, location_name: "RuntimeConfig"))
|
|
2415
|
+
UpdateFunctionConfigurationRequest.add_member(:accelerator_config, Shapes::ShapeRef.new(shape: AcceleratorConfig, location_name: "AcceleratorConfig"))
|
|
2387
2416
|
UpdateFunctionConfigurationRequest.struct_class = Types::UpdateFunctionConfigurationRequest
|
|
2388
2417
|
|
|
2389
2418
|
UpdateFunctionEventInvokeConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
|
@@ -3043,6 +3072,7 @@ module Aws::Lambda
|
|
|
3043
3072
|
o.http_request_uri = "/2015-03-31/functions/{FunctionName}/invocations"
|
|
3044
3073
|
o.input = Shapes::ShapeRef.new(shape: InvocationRequest)
|
|
3045
3074
|
o.output = Shapes::ShapeRef.new(shape: InvocationResponse)
|
|
3075
|
+
o.errors << Shapes::ShapeRef.new(shape: RuntimeAliasDeletedException)
|
|
3046
3076
|
o.errors << Shapes::ShapeRef.new(shape: CodeArtifactUserDeletedException)
|
|
3047
3077
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotReadyException)
|
|
3048
3078
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
|
@@ -3068,6 +3098,7 @@ module Aws::Lambda
|
|
|
3068
3098
|
o.errors << Shapes::ShapeRef.new(shape: EFSIOException)
|
|
3069
3099
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
|
3070
3100
|
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
|
3101
|
+
o.errors << Shapes::ShapeRef.new(shape: RuntimeVersionDeletedException)
|
|
3071
3102
|
o.errors << Shapes::ShapeRef.new(shape: ENILimitReachedException)
|
|
3072
3103
|
o.errors << Shapes::ShapeRef.new(shape: SnapStartNotReadyException)
|
|
3073
3104
|
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
|
@@ -3132,6 +3163,7 @@ module Aws::Lambda
|
|
|
3132
3163
|
o.http_request_uri = "/2021-11-15/functions/{FunctionName}/response-streaming-invocations"
|
|
3133
3164
|
o.input = Shapes::ShapeRef.new(shape: InvokeWithResponseStreamRequest)
|
|
3134
3165
|
o.output = Shapes::ShapeRef.new(shape: InvokeWithResponseStreamResponse)
|
|
3166
|
+
o.errors << Shapes::ShapeRef.new(shape: RuntimeAliasDeletedException)
|
|
3135
3167
|
o.errors << Shapes::ShapeRef.new(shape: CodeArtifactUserDeletedException)
|
|
3136
3168
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotReadyException)
|
|
3137
3169
|
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
|
@@ -3157,6 +3189,7 @@ module Aws::Lambda
|
|
|
3157
3189
|
o.errors << Shapes::ShapeRef.new(shape: EFSIOException)
|
|
3158
3190
|
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
|
3159
3191
|
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
|
3192
|
+
o.errors << Shapes::ShapeRef.new(shape: RuntimeVersionDeletedException)
|
|
3160
3193
|
o.errors << Shapes::ShapeRef.new(shape: ENILimitReachedException)
|
|
3161
3194
|
o.errors << Shapes::ShapeRef.new(shape: SnapStartNotReadyException)
|
|
3162
3195
|
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
|
@@ -3576,6 +3609,7 @@ module Aws::Lambda
|
|
|
3576
3609
|
o.input = Shapes::ShapeRef.new(shape: RemoveLayerVersionPermissionRequest)
|
|
3577
3610
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
|
3578
3611
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
|
3612
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
|
3579
3613
|
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
|
3580
3614
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
|
3581
3615
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
@@ -70,6 +70,8 @@ module Aws::Lambda
|
|
|
70
70
|
# * {ResourceInUseException}
|
|
71
71
|
# * {ResourceNotFoundException}
|
|
72
72
|
# * {ResourceNotReadyException}
|
|
73
|
+
# * {RuntimeAliasDeletedException}
|
|
74
|
+
# * {RuntimeVersionDeletedException}
|
|
73
75
|
# * {S3FilesMountConnectivityException}
|
|
74
76
|
# * {S3FilesMountFailureException}
|
|
75
77
|
# * {S3FilesMountTimeoutException}
|
|
@@ -955,6 +957,46 @@ module Aws::Lambda
|
|
|
955
957
|
end
|
|
956
958
|
end
|
|
957
959
|
|
|
960
|
+
class RuntimeAliasDeletedException < ServiceError
|
|
961
|
+
|
|
962
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
963
|
+
# @param [String] message
|
|
964
|
+
# @param [Aws::Lambda::Types::RuntimeAliasDeletedException] data
|
|
965
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
966
|
+
super(context, message, data)
|
|
967
|
+
end
|
|
968
|
+
|
|
969
|
+
# @return [String]
|
|
970
|
+
def type
|
|
971
|
+
@data[:type]
|
|
972
|
+
end
|
|
973
|
+
|
|
974
|
+
# @return [String]
|
|
975
|
+
def message
|
|
976
|
+
@message || @data[:message]
|
|
977
|
+
end
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
class RuntimeVersionDeletedException < ServiceError
|
|
981
|
+
|
|
982
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
983
|
+
# @param [String] message
|
|
984
|
+
# @param [Aws::Lambda::Types::RuntimeVersionDeletedException] data
|
|
985
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
986
|
+
super(context, message, data)
|
|
987
|
+
end
|
|
988
|
+
|
|
989
|
+
# @return [String]
|
|
990
|
+
def type
|
|
991
|
+
@data[:type]
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
# @return [String]
|
|
995
|
+
def message
|
|
996
|
+
@message || @data[:message]
|
|
997
|
+
end
|
|
998
|
+
end
|
|
999
|
+
|
|
958
1000
|
class S3FilesMountConnectivityException < ServiceError
|
|
959
1001
|
|
|
960
1002
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
|
@@ -10,6 +10,23 @@
|
|
|
10
10
|
module Aws::Lambda
|
|
11
11
|
module Types
|
|
12
12
|
|
|
13
|
+
# The accelerator resource settings for a Lambda execution environment,
|
|
14
|
+
# including the amount of accelerator memory to allocate.
|
|
15
|
+
#
|
|
16
|
+
# @!attribute [rw] accelerator_memory_size
|
|
17
|
+
# The minimum amount of memory (in GB) of each accelerator device
|
|
18
|
+
# exposed to the execution environment. Lambda might allocate more,
|
|
19
|
+
# depending on the accelerator instance types available.
|
|
20
|
+
# @return [Integer]
|
|
21
|
+
#
|
|
22
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AcceleratorConfig AWS API Documentation
|
|
23
|
+
#
|
|
24
|
+
class AcceleratorConfig < Struct.new(
|
|
25
|
+
:accelerator_memory_size)
|
|
26
|
+
SENSITIVE = []
|
|
27
|
+
include Aws::Structure
|
|
28
|
+
end
|
|
29
|
+
|
|
13
30
|
# Limits that are related to concurrency and storage. All file and
|
|
14
31
|
# storage sizes are in bytes.
|
|
15
32
|
#
|
|
@@ -1677,11 +1694,11 @@ module Aws::Lambda
|
|
|
1677
1694
|
# default value is infinite (-1). When set to infinite (-1), failed
|
|
1678
1695
|
# records are retried until the record expires.
|
|
1679
1696
|
#
|
|
1680
|
-
# For Kafka
|
|
1681
|
-
#
|
|
1682
|
-
#
|
|
1683
|
-
#
|
|
1684
|
-
#
|
|
1697
|
+
# For Kafka event source mappings with `ConsumptionMode` set to
|
|
1698
|
+
# `Queue`, the value -1 (infinite retries) is not supported and the
|
|
1699
|
+
# default is 0 (no retries). Lambda releases failed records back to
|
|
1700
|
+
# the broker, which redelivers them up to the share group's
|
|
1701
|
+
# `group.share.delivery.count.limit`.
|
|
1685
1702
|
# @return [Integer]
|
|
1686
1703
|
#
|
|
1687
1704
|
# @!attribute [rw] tags
|
|
@@ -1991,7 +2008,8 @@ module Aws::Lambda
|
|
|
1991
2008
|
# @!attribute [rw] ephemeral_storage
|
|
1992
2009
|
# The size of the function's `/tmp` directory in MB. The default
|
|
1993
2010
|
# value is 512, but can be any whole number between 512 and 10,240 MB.
|
|
1994
|
-
# For
|
|
2011
|
+
# For functions that use `AcceleratorConfig`, the maximum is 32,768
|
|
2012
|
+
# MB. For more information, see [Configuring ephemeral storage
|
|
1995
2013
|
# (console)][1].
|
|
1996
2014
|
#
|
|
1997
2015
|
#
|
|
@@ -2028,6 +2046,17 @@ module Aws::Lambda
|
|
|
2028
2046
|
# execution even after interruptions.
|
|
2029
2047
|
# @return [Types::DurableConfig]
|
|
2030
2048
|
#
|
|
2049
|
+
# @!attribute [rw] runtime_config
|
|
2050
|
+
# The customer-managed runtime configuration for your function.
|
|
2051
|
+
# Specifies the customer-managed runtime and the runtime alias that
|
|
2052
|
+
# your function uses.
|
|
2053
|
+
# @return [Types::FunctionRuntimeConfig]
|
|
2054
|
+
#
|
|
2055
|
+
# @!attribute [rw] accelerator_config
|
|
2056
|
+
# The accelerator resource settings for a Lambda execution
|
|
2057
|
+
# environment.
|
|
2058
|
+
# @return [Types::AcceleratorConfig]
|
|
2059
|
+
#
|
|
2031
2060
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
|
|
2032
2061
|
#
|
|
2033
2062
|
class CreateFunctionRequest < Struct.new(
|
|
@@ -2058,7 +2087,9 @@ module Aws::Lambda
|
|
|
2058
2087
|
:logging_config,
|
|
2059
2088
|
:tenancy_config,
|
|
2060
2089
|
:capacity_provider_config,
|
|
2061
|
-
:durable_config
|
|
2090
|
+
:durable_config,
|
|
2091
|
+
:runtime_config,
|
|
2092
|
+
:accelerator_config)
|
|
2062
2093
|
SENSITIVE = []
|
|
2063
2094
|
include Aws::Structure
|
|
2064
2095
|
end
|
|
@@ -2876,6 +2907,7 @@ module Aws::Lambda
|
|
|
2876
2907
|
|
|
2877
2908
|
# The size of the function's `/tmp` directory in MB. The default value
|
|
2878
2909
|
# is 512, but can be any whole number between 512 and 10,240 MB. For
|
|
2910
|
+
# functions that use `AcceleratorConfig`, the maximum is 32,768 MB. For
|
|
2879
2911
|
# more information, see [Configuring ephemeral storage (console)][1].
|
|
2880
2912
|
#
|
|
2881
2913
|
#
|
|
@@ -4101,7 +4133,8 @@ module Aws::Lambda
|
|
|
4101
4133
|
# @!attribute [rw] ephemeral_storage
|
|
4102
4134
|
# The size of the function's `/tmp` directory in MB. The default
|
|
4103
4135
|
# value is 512, but can be any whole number between 512 and 10,240 MB.
|
|
4104
|
-
# For
|
|
4136
|
+
# For functions that use `AcceleratorConfig`, the maximum is 32,768
|
|
4137
|
+
# MB. For more information, see [Configuring ephemeral storage
|
|
4105
4138
|
# (console)][1].
|
|
4106
4139
|
#
|
|
4107
4140
|
#
|
|
@@ -4148,6 +4181,17 @@ module Aws::Lambda
|
|
|
4148
4181
|
# function is configured for durability.
|
|
4149
4182
|
# @return [Types::DurableConfig]
|
|
4150
4183
|
#
|
|
4184
|
+
# @!attribute [rw] runtime_config
|
|
4185
|
+
# The customer-managed runtime configuration for your function.
|
|
4186
|
+
# Specifies the customer-managed runtime and the runtime alias that
|
|
4187
|
+
# your function uses.
|
|
4188
|
+
# @return [Types::FunctionRuntimeConfig]
|
|
4189
|
+
#
|
|
4190
|
+
# @!attribute [rw] accelerator_config
|
|
4191
|
+
# The accelerator resource settings for a Lambda execution
|
|
4192
|
+
# environment.
|
|
4193
|
+
# @return [Types::AcceleratorConfig]
|
|
4194
|
+
#
|
|
4151
4195
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
|
|
4152
4196
|
#
|
|
4153
4197
|
class FunctionConfiguration < Struct.new(
|
|
@@ -4190,7 +4234,9 @@ module Aws::Lambda
|
|
|
4190
4234
|
:tenancy_config,
|
|
4191
4235
|
:capacity_provider_config,
|
|
4192
4236
|
:config_sha_256,
|
|
4193
|
-
:durable_config
|
|
4237
|
+
:durable_config,
|
|
4238
|
+
:runtime_config,
|
|
4239
|
+
:accelerator_config)
|
|
4194
4240
|
SENSITIVE = []
|
|
4195
4241
|
include Aws::Structure
|
|
4196
4242
|
end
|
|
@@ -4248,6 +4294,29 @@ module Aws::Lambda
|
|
|
4248
4294
|
include Aws::Structure
|
|
4249
4295
|
end
|
|
4250
4296
|
|
|
4297
|
+
# The customer-managed runtime configuration for your function.
|
|
4298
|
+
# Specifies the customer-managed runtime and the runtime alias that your
|
|
4299
|
+
# function uses.
|
|
4300
|
+
#
|
|
4301
|
+
# @!attribute [rw] runtime_arn
|
|
4302
|
+
# The Amazon Resource Name (ARN) of the customer-managed runtime that
|
|
4303
|
+
# your function uses.
|
|
4304
|
+
# @return [String]
|
|
4305
|
+
#
|
|
4306
|
+
# @!attribute [rw] runtime_alias
|
|
4307
|
+
# The name of the customer-managed runtime alias that your function
|
|
4308
|
+
# uses. A runtime alias is a name that points to a runtime version.
|
|
4309
|
+
# @return [String]
|
|
4310
|
+
#
|
|
4311
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionRuntimeConfig AWS API Documentation
|
|
4312
|
+
#
|
|
4313
|
+
class FunctionRuntimeConfig < Struct.new(
|
|
4314
|
+
:runtime_arn,
|
|
4315
|
+
:runtime_alias)
|
|
4316
|
+
SENSITIVE = []
|
|
4317
|
+
include Aws::Structure
|
|
4318
|
+
end
|
|
4319
|
+
|
|
4251
4320
|
# Configuration that defines the scaling behavior for a Lambda Managed
|
|
4252
4321
|
# Instances function, including the minimum and maximum number of
|
|
4253
4322
|
# execution environments that can be provisioned.
|
|
@@ -8796,6 +8865,25 @@ module Aws::Lambda
|
|
|
8796
8865
|
include Aws::Structure
|
|
8797
8866
|
end
|
|
8798
8867
|
|
|
8868
|
+
# The runtime alias for your function is no longer available. Update
|
|
8869
|
+
# your function to use an available runtime alias.
|
|
8870
|
+
#
|
|
8871
|
+
# @!attribute [rw] type
|
|
8872
|
+
# Indicates the exception type for a deleted runtime alias.
|
|
8873
|
+
# @return [String]
|
|
8874
|
+
#
|
|
8875
|
+
# @!attribute [rw] message
|
|
8876
|
+
# @return [String]
|
|
8877
|
+
#
|
|
8878
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RuntimeAliasDeletedException AWS API Documentation
|
|
8879
|
+
#
|
|
8880
|
+
class RuntimeAliasDeletedException < Struct.new(
|
|
8881
|
+
:type,
|
|
8882
|
+
:message)
|
|
8883
|
+
SENSITIVE = []
|
|
8884
|
+
include Aws::Structure
|
|
8885
|
+
end
|
|
8886
|
+
|
|
8799
8887
|
# The ARN of the runtime and any errors that occured.
|
|
8800
8888
|
#
|
|
8801
8889
|
# @!attribute [rw] runtime_version_arn
|
|
@@ -8816,6 +8904,26 @@ module Aws::Lambda
|
|
|
8816
8904
|
include Aws::Structure
|
|
8817
8905
|
end
|
|
8818
8906
|
|
|
8907
|
+
# The runtime version used by your function is no longer available.
|
|
8908
|
+
# Update your function to use an available runtime version or runtime
|
|
8909
|
+
# alias.
|
|
8910
|
+
#
|
|
8911
|
+
# @!attribute [rw] type
|
|
8912
|
+
# Indicates the exception type for a deleted runtime version.
|
|
8913
|
+
# @return [String]
|
|
8914
|
+
#
|
|
8915
|
+
# @!attribute [rw] message
|
|
8916
|
+
# @return [String]
|
|
8917
|
+
#
|
|
8918
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RuntimeVersionDeletedException AWS API Documentation
|
|
8919
|
+
#
|
|
8920
|
+
class RuntimeVersionDeletedException < Struct.new(
|
|
8921
|
+
:type,
|
|
8922
|
+
:message)
|
|
8923
|
+
SENSITIVE = []
|
|
8924
|
+
include Aws::Structure
|
|
8925
|
+
end
|
|
8926
|
+
|
|
8819
8927
|
# Any error returned when the runtime version information for the
|
|
8820
8928
|
# function could not be retrieved.
|
|
8821
8929
|
#
|
|
@@ -8980,18 +9088,20 @@ module Aws::Lambda
|
|
|
8980
9088
|
#
|
|
8981
9089
|
# @!attribute [rw] consumption_mode
|
|
8982
9090
|
# The mode that Lambda uses to consume records from your self-managed
|
|
8983
|
-
# Apache Kafka topic.
|
|
9091
|
+
# Apache Kafka topic. Valid values are the following:
|
|
8984
9092
|
#
|
|
8985
|
-
# * `Stream` – Lambda consumes records using a Kafka
|
|
8986
|
-
# and preserves the order of records within each
|
|
8987
|
-
#
|
|
9093
|
+
# * `Stream` (default) – Lambda consumes records using a Kafka
|
|
9094
|
+
# consumer group and preserves the order of records within each
|
|
9095
|
+
# partition.
|
|
8988
9096
|
#
|
|
8989
9097
|
# * `Queue` – Lambda consumes records using a Kafka share group.
|
|
8990
|
-
# Multiple consumers can process records from the same
|
|
8991
|
-
# concurrently
|
|
8992
|
-
# Queue mode
|
|
9098
|
+
# Multiple consumers can process records from the same partition
|
|
9099
|
+
# concurrently, so Lambda doesn't preserve per-partition order. To
|
|
9100
|
+
# use Queue mode, your cluster must run Apache Kafka version 4.2 or
|
|
8993
9101
|
# later with share groups enabled.
|
|
8994
9102
|
#
|
|
9103
|
+
# If you omit this parameter, Lambda uses `Stream`.
|
|
9104
|
+
#
|
|
8995
9105
|
# You cannot change `ConsumptionMode` after you create the event
|
|
8996
9106
|
# source mapping. To use a different consumption mode, create a new
|
|
8997
9107
|
# event source mapping.
|
|
@@ -9995,11 +10105,11 @@ module Aws::Lambda
|
|
|
9995
10105
|
# default value is infinite (-1). When set to infinite (-1), failed
|
|
9996
10106
|
# records are retried until the record expires.
|
|
9997
10107
|
#
|
|
9998
|
-
# For Kafka
|
|
9999
|
-
#
|
|
10000
|
-
#
|
|
10001
|
-
#
|
|
10002
|
-
#
|
|
10108
|
+
# For Kafka event source mappings with `ConsumptionMode` set to
|
|
10109
|
+
# `Queue`, the value -1 (infinite retries) is not supported and the
|
|
10110
|
+
# default is 0 (no retries). Lambda releases failed records back to
|
|
10111
|
+
# the broker, which redelivers them up to the share group's
|
|
10112
|
+
# `group.share.delivery.count.limit`.
|
|
10003
10113
|
# @return [Integer]
|
|
10004
10114
|
#
|
|
10005
10115
|
# @!attribute [rw] tumbling_window_in_seconds
|
|
@@ -10362,7 +10472,8 @@ module Aws::Lambda
|
|
|
10362
10472
|
# @!attribute [rw] ephemeral_storage
|
|
10363
10473
|
# The size of the function's `/tmp` directory in MB. The default
|
|
10364
10474
|
# value is 512, but can be any whole number between 512 and 10,240 MB.
|
|
10365
|
-
# For
|
|
10475
|
+
# For functions that use `AcceleratorConfig`, the maximum is 32,768
|
|
10476
|
+
# MB. For more information, see [Configuring ephemeral storage
|
|
10366
10477
|
# (console)][1].
|
|
10367
10478
|
#
|
|
10368
10479
|
#
|
|
@@ -10399,6 +10510,17 @@ module Aws::Lambda
|
|
|
10399
10510
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html
|
|
10400
10511
|
# @return [Types::DurableConfig]
|
|
10401
10512
|
#
|
|
10513
|
+
# @!attribute [rw] runtime_config
|
|
10514
|
+
# The customer-managed runtime configuration for your function.
|
|
10515
|
+
# Specifies the customer-managed runtime and the runtime alias that
|
|
10516
|
+
# your function uses.
|
|
10517
|
+
# @return [Types::FunctionRuntimeConfig]
|
|
10518
|
+
#
|
|
10519
|
+
# @!attribute [rw] accelerator_config
|
|
10520
|
+
# The accelerator resource settings for a Lambda execution
|
|
10521
|
+
# environment.
|
|
10522
|
+
# @return [Types::AcceleratorConfig]
|
|
10523
|
+
#
|
|
10402
10524
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
|
|
10403
10525
|
#
|
|
10404
10526
|
class UpdateFunctionConfigurationRequest < Struct.new(
|
|
@@ -10422,7 +10544,9 @@ module Aws::Lambda
|
|
|
10422
10544
|
:snap_start,
|
|
10423
10545
|
:logging_config,
|
|
10424
10546
|
:capacity_provider_config,
|
|
10425
|
-
:durable_config
|
|
10547
|
+
:durable_config,
|
|
10548
|
+
:runtime_config,
|
|
10549
|
+
:accelerator_config)
|
|
10426
10550
|
SENSITIVE = []
|
|
10427
10551
|
include Aws::Structure
|
|
10428
10552
|
end
|