aws-sdk-lambda 1.211.0 → 1.212.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.
@@ -222,6 +222,9 @@ module Aws::Lambda
222
222
  FunctionName = Shapes::StringShape.new(name: 'FunctionName')
223
223
  FunctionResponseType = Shapes::StringShape.new(name: 'FunctionResponseType')
224
224
  FunctionResponseTypeList = Shapes::ListShape.new(name: 'FunctionResponseTypeList')
225
+ FunctionRuntimeAlias = Shapes::StringShape.new(name: 'FunctionRuntimeAlias')
226
+ FunctionRuntimeArn = Shapes::StringShape.new(name: 'FunctionRuntimeArn')
227
+ FunctionRuntimeConfig = Shapes::StructureShape.new(name: 'FunctionRuntimeConfig')
225
228
  FunctionScalingConfig = Shapes::StructureShape.new(name: 'FunctionScalingConfig')
226
229
  FunctionScalingConfigExecutionEnvironments = Shapes::IntegerShape.new(name: 'FunctionScalingConfigExecutionEnvironments')
227
230
  FunctionUrl = Shapes::StringShape.new(name: 'FunctionUrl')
@@ -332,6 +335,7 @@ module Aws::Lambda
332
335
  LayerArn = Shapes::StringShape.new(name: 'LayerArn')
333
336
  LayerList = Shapes::ListShape.new(name: 'LayerList')
334
337
  LayerName = Shapes::StringShape.new(name: 'LayerName')
338
+ LayerNameOrArn = Shapes::StringShape.new(name: 'LayerNameOrArn')
335
339
  LayerPermissionAllowedAction = Shapes::StringShape.new(name: 'LayerPermissionAllowedAction')
336
340
  LayerPermissionAllowedPrincipal = Shapes::StringShape.new(name: 'LayerPermissionAllowedPrincipal')
337
341
  LayerVersionArn = Shapes::StringShape.new(name: 'LayerVersionArn')
@@ -485,8 +489,10 @@ module Aws::Lambda
485
489
  RevisionId = Shapes::StringShape.new(name: 'RevisionId')
486
490
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
487
491
  Runtime = Shapes::StringShape.new(name: 'Runtime')
492
+ RuntimeAliasDeletedException = Shapes::StructureShape.new(name: 'RuntimeAliasDeletedException')
488
493
  RuntimeVersionArn = Shapes::StringShape.new(name: 'RuntimeVersionArn')
489
494
  RuntimeVersionConfig = Shapes::StructureShape.new(name: 'RuntimeVersionConfig')
495
+ RuntimeVersionDeletedException = Shapes::StructureShape.new(name: 'RuntimeVersionDeletedException')
490
496
  RuntimeVersionError = Shapes::StructureShape.new(name: 'RuntimeVersionError')
491
497
  S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
492
498
  S3FilesConfig = Shapes::StructureShape.new(name: 'S3FilesConfig')
@@ -616,7 +622,7 @@ module Aws::Lambda
616
622
  AccountUsage.add_member(:function_count, Shapes::ShapeRef.new(shape: Long, location_name: "FunctionCount"))
617
623
  AccountUsage.struct_class = Types::AccountUsage
618
624
 
619
- AddLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
625
+ AddLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
620
626
  AddLayerVersionPermissionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
621
627
  AddLayerVersionPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location_name: "StatementId"))
622
628
  AddLayerVersionPermissionRequest.add_member(:action, Shapes::ShapeRef.new(shape: LayerPermissionAllowedAction, required: true, location_name: "Action"))
@@ -950,6 +956,7 @@ module Aws::Lambda
950
956
  CreateFunctionRequest.add_member(:tenancy_config, Shapes::ShapeRef.new(shape: TenancyConfig, location_name: "TenancyConfig"))
951
957
  CreateFunctionRequest.add_member(:capacity_provider_config, Shapes::ShapeRef.new(shape: CapacityProviderConfig, location_name: "CapacityProviderConfig"))
952
958
  CreateFunctionRequest.add_member(:durable_config, Shapes::ShapeRef.new(shape: DurableConfig, location_name: "DurableConfig"))
959
+ CreateFunctionRequest.add_member(:runtime_config, Shapes::ShapeRef.new(shape: FunctionRuntimeConfig, location_name: "RuntimeConfig"))
953
960
  CreateFunctionRequest.struct_class = Types::CreateFunctionRequest
954
961
 
955
962
  CreateFunctionUrlConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionUrlFunctionName, required: true, location: "uri", location_name: "FunctionName"))
@@ -1009,7 +1016,7 @@ module Aws::Lambda
1009
1016
  DeleteFunctionUrlConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: FunctionUrlQualifier, location: "querystring", location_name: "Qualifier"))
1010
1017
  DeleteFunctionUrlConfigRequest.struct_class = Types::DeleteFunctionUrlConfigRequest
1011
1018
 
1012
- DeleteLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
1019
+ DeleteLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
1013
1020
  DeleteLayerVersionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
1014
1021
  DeleteLayerVersionRequest.struct_class = Types::DeleteLayerVersionRequest
1015
1022
 
@@ -1311,6 +1318,7 @@ module Aws::Lambda
1311
1318
  FunctionConfiguration.add_member(:capacity_provider_config, Shapes::ShapeRef.new(shape: CapacityProviderConfig, location_name: "CapacityProviderConfig"))
1312
1319
  FunctionConfiguration.add_member(:config_sha_256, Shapes::ShapeRef.new(shape: String, location_name: "ConfigSha256"))
1313
1320
  FunctionConfiguration.add_member(:durable_config, Shapes::ShapeRef.new(shape: DurableConfig, location_name: "DurableConfig"))
1321
+ FunctionConfiguration.add_member(:runtime_config, Shapes::ShapeRef.new(shape: FunctionRuntimeConfig, location_name: "RuntimeConfig"))
1314
1322
  FunctionConfiguration.struct_class = Types::FunctionConfiguration
1315
1323
 
1316
1324
  FunctionEventInvokeConfig.add_member(:last_modified, Shapes::ShapeRef.new(shape: Date, location_name: "LastModified"))
@@ -1326,6 +1334,10 @@ module Aws::Lambda
1326
1334
 
1327
1335
  FunctionResponseTypeList.member = Shapes::ShapeRef.new(shape: FunctionResponseType)
1328
1336
 
1337
+ FunctionRuntimeConfig.add_member(:runtime_arn, Shapes::ShapeRef.new(shape: FunctionRuntimeArn, required: true, location_name: "RuntimeArn"))
1338
+ FunctionRuntimeConfig.add_member(:runtime_alias, Shapes::ShapeRef.new(shape: FunctionRuntimeAlias, required: true, location_name: "RuntimeAlias"))
1339
+ FunctionRuntimeConfig.struct_class = Types::FunctionRuntimeConfig
1340
+
1329
1341
  FunctionScalingConfig.add_member(:min_execution_environments, Shapes::ShapeRef.new(shape: FunctionScalingConfigExecutionEnvironments, location_name: "MinExecutionEnvironments"))
1330
1342
  FunctionScalingConfig.add_member(:max_execution_environments, Shapes::ShapeRef.new(shape: FunctionScalingConfigExecutionEnvironments, location_name: "MaxExecutionEnvironments"))
1331
1343
  FunctionScalingConfig.struct_class = Types::FunctionScalingConfig
@@ -1479,7 +1491,7 @@ module Aws::Lambda
1479
1491
  GetLayerVersionByArnRequest.add_member(:arn, Shapes::ShapeRef.new(shape: LayerVersionArn, required: true, location: "querystring", location_name: "Arn"))
1480
1492
  GetLayerVersionByArnRequest.struct_class = Types::GetLayerVersionByArnRequest
1481
1493
 
1482
- GetLayerVersionPolicyRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
1494
+ GetLayerVersionPolicyRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
1483
1495
  GetLayerVersionPolicyRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
1484
1496
  GetLayerVersionPolicyRequest.struct_class = Types::GetLayerVersionPolicyRequest
1485
1497
 
@@ -1487,7 +1499,7 @@ module Aws::Lambda
1487
1499
  GetLayerVersionPolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
1488
1500
  GetLayerVersionPolicyResponse.struct_class = Types::GetLayerVersionPolicyResponse
1489
1501
 
1490
- GetLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
1502
+ GetLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
1491
1503
  GetLayerVersionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
1492
1504
  GetLayerVersionRequest.struct_class = Types::GetLayerVersionRequest
1493
1505
 
@@ -1838,7 +1850,7 @@ module Aws::Lambda
1838
1850
 
1839
1851
  ListLayerVersionsRequest.add_member(:compatible_architecture, Shapes::ShapeRef.new(shape: Architecture, location: "querystring", location_name: "CompatibleArchitecture"))
1840
1852
  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: LayerName, required: true, location: "uri", location_name: "LayerName"))
1853
+ ListLayerVersionsRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
1842
1854
  ListLayerVersionsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
1843
1855
  ListLayerVersionsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxLayerListItems, location: "querystring", location_name: "MaxItems"))
1844
1856
  ListLayerVersionsRequest.struct_class = Types::ListLayerVersionsRequest
@@ -1975,7 +1987,7 @@ module Aws::Lambda
1975
1987
  PublicPolicyException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
1976
1988
  PublicPolicyException.struct_class = Types::PublicPolicyException
1977
1989
 
1978
- PublishLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
1990
+ PublishLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
1979
1991
  PublishLayerVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
1980
1992
  PublishLayerVersionRequest.add_member(:content, Shapes::ShapeRef.new(shape: LayerVersionContentInput, required: true, location_name: "Content"))
1981
1993
  PublishLayerVersionRequest.add_member(:compatible_architectures, Shapes::ShapeRef.new(shape: CompatibleArchitectures, location_name: "CompatibleArchitectures"))
@@ -2074,7 +2086,7 @@ module Aws::Lambda
2074
2086
  RecursiveInvocationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
2075
2087
  RecursiveInvocationException.struct_class = Types::RecursiveInvocationException
2076
2088
 
2077
- RemoveLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
2089
+ RemoveLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerNameOrArn, required: true, location: "uri", location_name: "LayerName"))
2078
2090
  RemoveLayerVersionPermissionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
2079
2091
  RemoveLayerVersionPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location: "uri", location_name: "StatementId"))
2080
2092
  RemoveLayerVersionPermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "RevisionId"))
@@ -2115,10 +2127,18 @@ module Aws::Lambda
2115
2127
  RetryDetails.add_member(:next_attempt_delay_seconds, Shapes::ShapeRef.new(shape: DurationSeconds, location_name: "NextAttemptDelaySeconds"))
2116
2128
  RetryDetails.struct_class = Types::RetryDetails
2117
2129
 
2130
+ RuntimeAliasDeletedException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
2131
+ RuntimeAliasDeletedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
2132
+ RuntimeAliasDeletedException.struct_class = Types::RuntimeAliasDeletedException
2133
+
2118
2134
  RuntimeVersionConfig.add_member(:runtime_version_arn, Shapes::ShapeRef.new(shape: RuntimeVersionArn, location_name: "RuntimeVersionArn"))
2119
2135
  RuntimeVersionConfig.add_member(:error, Shapes::ShapeRef.new(shape: RuntimeVersionError, location_name: "Error"))
2120
2136
  RuntimeVersionConfig.struct_class = Types::RuntimeVersionConfig
2121
2137
 
2138
+ RuntimeVersionDeletedException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
2139
+ RuntimeVersionDeletedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
2140
+ RuntimeVersionDeletedException.struct_class = Types::RuntimeVersionDeletedException
2141
+
2122
2142
  RuntimeVersionError.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "ErrorCode"))
2123
2143
  RuntimeVersionError.add_member(:message, Shapes::ShapeRef.new(shape: SensitiveString, location_name: "Message"))
2124
2144
  RuntimeVersionError.struct_class = Types::RuntimeVersionError
@@ -2384,6 +2404,7 @@ module Aws::Lambda
2384
2404
  UpdateFunctionConfigurationRequest.add_member(:logging_config, Shapes::ShapeRef.new(shape: LoggingConfig, location_name: "LoggingConfig"))
2385
2405
  UpdateFunctionConfigurationRequest.add_member(:capacity_provider_config, Shapes::ShapeRef.new(shape: CapacityProviderConfig, location_name: "CapacityProviderConfig"))
2386
2406
  UpdateFunctionConfigurationRequest.add_member(:durable_config, Shapes::ShapeRef.new(shape: DurableConfig, location_name: "DurableConfig"))
2407
+ UpdateFunctionConfigurationRequest.add_member(:runtime_config, Shapes::ShapeRef.new(shape: FunctionRuntimeConfig, location_name: "RuntimeConfig"))
2387
2408
  UpdateFunctionConfigurationRequest.struct_class = Types::UpdateFunctionConfigurationRequest
2388
2409
 
2389
2410
  UpdateFunctionEventInvokeConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
@@ -3043,6 +3064,7 @@ module Aws::Lambda
3043
3064
  o.http_request_uri = "/2015-03-31/functions/{FunctionName}/invocations"
3044
3065
  o.input = Shapes::ShapeRef.new(shape: InvocationRequest)
3045
3066
  o.output = Shapes::ShapeRef.new(shape: InvocationResponse)
3067
+ o.errors << Shapes::ShapeRef.new(shape: RuntimeAliasDeletedException)
3046
3068
  o.errors << Shapes::ShapeRef.new(shape: CodeArtifactUserDeletedException)
3047
3069
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotReadyException)
3048
3070
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
@@ -3068,6 +3090,7 @@ module Aws::Lambda
3068
3090
  o.errors << Shapes::ShapeRef.new(shape: EFSIOException)
3069
3091
  o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
3070
3092
  o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
3093
+ o.errors << Shapes::ShapeRef.new(shape: RuntimeVersionDeletedException)
3071
3094
  o.errors << Shapes::ShapeRef.new(shape: ENILimitReachedException)
3072
3095
  o.errors << Shapes::ShapeRef.new(shape: SnapStartNotReadyException)
3073
3096
  o.errors << Shapes::ShapeRef.new(shape: ServiceException)
@@ -3132,6 +3155,7 @@ module Aws::Lambda
3132
3155
  o.http_request_uri = "/2021-11-15/functions/{FunctionName}/response-streaming-invocations"
3133
3156
  o.input = Shapes::ShapeRef.new(shape: InvokeWithResponseStreamRequest)
3134
3157
  o.output = Shapes::ShapeRef.new(shape: InvokeWithResponseStreamResponse)
3158
+ o.errors << Shapes::ShapeRef.new(shape: RuntimeAliasDeletedException)
3135
3159
  o.errors << Shapes::ShapeRef.new(shape: CodeArtifactUserDeletedException)
3136
3160
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotReadyException)
3137
3161
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
@@ -3157,6 +3181,7 @@ module Aws::Lambda
3157
3181
  o.errors << Shapes::ShapeRef.new(shape: EFSIOException)
3158
3182
  o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
3159
3183
  o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
3184
+ o.errors << Shapes::ShapeRef.new(shape: RuntimeVersionDeletedException)
3160
3185
  o.errors << Shapes::ShapeRef.new(shape: ENILimitReachedException)
3161
3186
  o.errors << Shapes::ShapeRef.new(shape: SnapStartNotReadyException)
3162
3187
  o.errors << Shapes::ShapeRef.new(shape: ServiceException)
@@ -3576,6 +3601,7 @@ module Aws::Lambda
3576
3601
  o.input = Shapes::ShapeRef.new(shape: RemoveLayerVersionPermissionRequest)
3577
3602
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
3578
3603
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
3604
+ o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
3579
3605
  o.errors << Shapes::ShapeRef.new(shape: ServiceException)
3580
3606
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
3581
3607
  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
@@ -1677,11 +1677,11 @@ module Aws::Lambda
1677
1677
  # default value is infinite (-1). When set to infinite (-1), failed
1678
1678
  # records are retried until the record expires.
1679
1679
  #
1680
- # For Kafka `Stream` consumption mode, the default is `-1` (infinite
1681
- # retries; capped at 10 when an on-failure destination is configured).
1682
- # For Kafka `Queue` consumption mode, the default is `0`, and if no
1683
- # on-failure destination is configured the Kafka broker performs
1684
- # retries.
1680
+ # For Kafka event source mappings with `ConsumptionMode` set to
1681
+ # `Queue`, the value -1 (infinite retries) is not supported and the
1682
+ # default is 0 (no retries). Lambda releases failed records back to
1683
+ # the broker, which redelivers them up to the share group's
1684
+ # `group.share.delivery.count.limit`.
1685
1685
  # @return [Integer]
1686
1686
  #
1687
1687
  # @!attribute [rw] tags
@@ -2028,6 +2028,12 @@ module Aws::Lambda
2028
2028
  # execution even after interruptions.
2029
2029
  # @return [Types::DurableConfig]
2030
2030
  #
2031
+ # @!attribute [rw] runtime_config
2032
+ # The customer-managed runtime configuration for your function.
2033
+ # Specifies the customer-managed runtime and the runtime alias that
2034
+ # your function uses.
2035
+ # @return [Types::FunctionRuntimeConfig]
2036
+ #
2031
2037
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
2032
2038
  #
2033
2039
  class CreateFunctionRequest < Struct.new(
@@ -2058,7 +2064,8 @@ module Aws::Lambda
2058
2064
  :logging_config,
2059
2065
  :tenancy_config,
2060
2066
  :capacity_provider_config,
2061
- :durable_config)
2067
+ :durable_config,
2068
+ :runtime_config)
2062
2069
  SENSITIVE = []
2063
2070
  include Aws::Structure
2064
2071
  end
@@ -4148,6 +4155,12 @@ module Aws::Lambda
4148
4155
  # function is configured for durability.
4149
4156
  # @return [Types::DurableConfig]
4150
4157
  #
4158
+ # @!attribute [rw] runtime_config
4159
+ # The customer-managed runtime configuration for your function.
4160
+ # Specifies the customer-managed runtime and the runtime alias that
4161
+ # your function uses.
4162
+ # @return [Types::FunctionRuntimeConfig]
4163
+ #
4151
4164
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
4152
4165
  #
4153
4166
  class FunctionConfiguration < Struct.new(
@@ -4190,7 +4203,8 @@ module Aws::Lambda
4190
4203
  :tenancy_config,
4191
4204
  :capacity_provider_config,
4192
4205
  :config_sha_256,
4193
- :durable_config)
4206
+ :durable_config,
4207
+ :runtime_config)
4194
4208
  SENSITIVE = []
4195
4209
  include Aws::Structure
4196
4210
  end
@@ -4248,6 +4262,29 @@ module Aws::Lambda
4248
4262
  include Aws::Structure
4249
4263
  end
4250
4264
 
4265
+ # The customer-managed runtime configuration for your function.
4266
+ # Specifies the customer-managed runtime and the runtime alias that your
4267
+ # function uses.
4268
+ #
4269
+ # @!attribute [rw] runtime_arn
4270
+ # The Amazon Resource Name (ARN) of the customer-managed runtime that
4271
+ # your function uses.
4272
+ # @return [String]
4273
+ #
4274
+ # @!attribute [rw] runtime_alias
4275
+ # The name of the customer-managed runtime alias that your function
4276
+ # uses. A runtime alias is a name that points to a runtime version.
4277
+ # @return [String]
4278
+ #
4279
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionRuntimeConfig AWS API Documentation
4280
+ #
4281
+ class FunctionRuntimeConfig < Struct.new(
4282
+ :runtime_arn,
4283
+ :runtime_alias)
4284
+ SENSITIVE = []
4285
+ include Aws::Structure
4286
+ end
4287
+
4251
4288
  # Configuration that defines the scaling behavior for a Lambda Managed
4252
4289
  # Instances function, including the minimum and maximum number of
4253
4290
  # execution environments that can be provisioned.
@@ -8796,6 +8833,25 @@ module Aws::Lambda
8796
8833
  include Aws::Structure
8797
8834
  end
8798
8835
 
8836
+ # The runtime alias for your function is no longer available. Update
8837
+ # your function to use an available runtime alias.
8838
+ #
8839
+ # @!attribute [rw] type
8840
+ # Indicates the exception type for a deleted runtime alias.
8841
+ # @return [String]
8842
+ #
8843
+ # @!attribute [rw] message
8844
+ # @return [String]
8845
+ #
8846
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RuntimeAliasDeletedException AWS API Documentation
8847
+ #
8848
+ class RuntimeAliasDeletedException < Struct.new(
8849
+ :type,
8850
+ :message)
8851
+ SENSITIVE = []
8852
+ include Aws::Structure
8853
+ end
8854
+
8799
8855
  # The ARN of the runtime and any errors that occured.
8800
8856
  #
8801
8857
  # @!attribute [rw] runtime_version_arn
@@ -8816,6 +8872,26 @@ module Aws::Lambda
8816
8872
  include Aws::Structure
8817
8873
  end
8818
8874
 
8875
+ # The runtime version used by your function is no longer available.
8876
+ # Update your function to use an available runtime version or runtime
8877
+ # alias.
8878
+ #
8879
+ # @!attribute [rw] type
8880
+ # Indicates the exception type for a deleted runtime version.
8881
+ # @return [String]
8882
+ #
8883
+ # @!attribute [rw] message
8884
+ # @return [String]
8885
+ #
8886
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RuntimeVersionDeletedException AWS API Documentation
8887
+ #
8888
+ class RuntimeVersionDeletedException < Struct.new(
8889
+ :type,
8890
+ :message)
8891
+ SENSITIVE = []
8892
+ include Aws::Structure
8893
+ end
8894
+
8819
8895
  # Any error returned when the runtime version information for the
8820
8896
  # function could not be retrieved.
8821
8897
  #
@@ -8980,18 +9056,20 @@ module Aws::Lambda
8980
9056
  #
8981
9057
  # @!attribute [rw] consumption_mode
8982
9058
  # The mode that Lambda uses to consume records from your self-managed
8983
- # Apache Kafka topic. The default is `Stream`.
9059
+ # Apache Kafka topic. Valid values are the following:
8984
9060
  #
8985
- # * `Stream` – Lambda consumes records using a Kafka consumer group
8986
- # and preserves the order of records within each partition. This is
8987
- # the default when you omit `ConsumptionMode`.
9061
+ # * `Stream` (default) – Lambda consumes records using a Kafka
9062
+ # consumer group and preserves the order of records within each
9063
+ # partition.
8988
9064
  #
8989
9065
  # * `Queue` – Lambda consumes records using a Kafka share group.
8990
- # Multiple consumers can process records from the same partitions
8991
- # concurrently. Queue mode does not preserve per-partition order.
8992
- # Queue mode requires an Apache Kafka cluster running version 4.2 or
9066
+ # Multiple consumers can process records from the same partition
9067
+ # concurrently, so Lambda doesn't preserve per-partition order. To
9068
+ # use Queue mode, your cluster must run Apache Kafka version 4.2 or
8993
9069
  # later with share groups enabled.
8994
9070
  #
9071
+ # If you omit this parameter, Lambda uses `Stream`.
9072
+ #
8995
9073
  # You cannot change `ConsumptionMode` after you create the event
8996
9074
  # source mapping. To use a different consumption mode, create a new
8997
9075
  # event source mapping.
@@ -9995,11 +10073,11 @@ module Aws::Lambda
9995
10073
  # default value is infinite (-1). When set to infinite (-1), failed
9996
10074
  # records are retried until the record expires.
9997
10075
  #
9998
- # For Kafka `Stream` consumption mode, the default is `-1` (infinite
9999
- # retries; capped at 10 when an on-failure destination is configured).
10000
- # For Kafka `Queue` consumption mode, the default is `0`, and if no
10001
- # on-failure destination is configured the Kafka broker performs
10002
- # retries.
10076
+ # For Kafka event source mappings with `ConsumptionMode` set to
10077
+ # `Queue`, the value -1 (infinite retries) is not supported and the
10078
+ # default is 0 (no retries). Lambda releases failed records back to
10079
+ # the broker, which redelivers them up to the share group's
10080
+ # `group.share.delivery.count.limit`.
10003
10081
  # @return [Integer]
10004
10082
  #
10005
10083
  # @!attribute [rw] tumbling_window_in_seconds
@@ -10399,6 +10477,12 @@ module Aws::Lambda
10399
10477
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html
10400
10478
  # @return [Types::DurableConfig]
10401
10479
  #
10480
+ # @!attribute [rw] runtime_config
10481
+ # The customer-managed runtime configuration for your function.
10482
+ # Specifies the customer-managed runtime and the runtime alias that
10483
+ # your function uses.
10484
+ # @return [Types::FunctionRuntimeConfig]
10485
+ #
10402
10486
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
10403
10487
  #
10404
10488
  class UpdateFunctionConfigurationRequest < Struct.new(
@@ -10422,7 +10506,8 @@ module Aws::Lambda
10422
10506
  :snap_start,
10423
10507
  :logging_config,
10424
10508
  :capacity_provider_config,
10425
- :durable_config)
10509
+ :durable_config,
10510
+ :runtime_config)
10426
10511
  SENSITIVE = []
10427
10512
  include Aws::Structure
10428
10513
  end
@@ -56,7 +56,7 @@ module Aws::Lambda
56
56
  autoload :Endpoints, 'aws-sdk-lambda/endpoints'
57
57
  autoload :EventStreams, 'aws-sdk-lambda/event_streams'
58
58
 
59
- GEM_VERSION = '1.211.0'
59
+ GEM_VERSION = '1.212.0'
60
60
 
61
61
  end
62
62