@aws-sdk/client-lambda 3.1168.0 → 3.1170.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.
Files changed (35) hide show
  1. package/dist-cjs/index.js +91 -11
  2. package/dist-es/models/enums.js +13 -0
  3. package/dist-es/models/errors.js +30 -0
  4. package/dist-es/schemas/schemas_0.js +41 -11
  5. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +2 -2
  6. package/dist-types/commands/CreateFunctionCommand.d.ts +18 -4
  7. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +1 -1
  8. package/dist-types/commands/GetCapacityProviderCommand.d.ts +1 -1
  9. package/dist-types/commands/GetFunctionCommand.d.ts +10 -3
  10. package/dist-types/commands/GetFunctionConfigurationCommand.d.ts +10 -3
  11. package/dist-types/commands/GetLayerVersionByArnCommand.d.ts +1 -1
  12. package/dist-types/commands/GetLayerVersionCommand.d.ts +1 -1
  13. package/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  14. package/dist-types/commands/InvokeCommand.d.ts +6 -0
  15. package/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +6 -0
  16. package/dist-types/commands/ListCapacityProvidersCommand.d.ts +1 -1
  17. package/dist-types/commands/ListFunctionsCommand.d.ts +10 -3
  18. package/dist-types/commands/ListLayerVersionsCommand.d.ts +2 -2
  19. package/dist-types/commands/ListLayersCommand.d.ts +2 -2
  20. package/dist-types/commands/ListVersionsByFunctionCommand.d.ts +10 -3
  21. package/dist-types/commands/PublishLayerVersionCommand.d.ts +2 -2
  22. package/dist-types/commands/PublishVersionCommand.d.ts +10 -3
  23. package/dist-types/commands/RemoveLayerVersionPermissionCommand.d.ts +3 -0
  24. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +2 -2
  25. package/dist-types/commands/UpdateFunctionCodeCommand.d.ts +10 -3
  26. package/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +18 -4
  27. package/dist-types/models/enums.d.ts +12 -0
  28. package/dist-types/models/errors.d.ts +36 -0
  29. package/dist-types/models/models_0.d.ts +65 -8
  30. package/dist-types/schemas/schemas_0.d.ts +4 -0
  31. package/dist-types/ts3.4/models/enums.d.ts +12 -0
  32. package/dist-types/ts3.4/models/errors.d.ts +14 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +14 -0
  34. package/dist-types/ts3.4/schemas/schemas_0.d.ts +4 -0
  35. package/package.json +1 -1
@@ -54,7 +54,7 @@ declare const UpdateFunctionConfigurationCommand_base: {
54
54
  * "<keys>": "STRING_VALUE",
55
55
  * },
56
56
  * },
57
- * Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "nodejs18.x" || "nodejs20.x" || "nodejs22.x" || "nodejs24.x" || "java8" || "java8.al2" || "java11" || "java17" || "java21" || "java25" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "python3.10" || "python3.11" || "python3.12" || "python3.13" || "python3.14" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "dotnet8" || "dotnet10" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "ruby3.2" || "ruby3.3" || "ruby3.4" || "ruby4.0" || "provided" || "provided.al2" || "provided.al2023" || "nodejs26.x" || "python3.15" || "java8.al2023" || "java11.al2023" || "java17.al2023",
57
+ * Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "nodejs18.x" || "nodejs20.x" || "nodejs22.x" || "nodejs24.x" || "java8" || "java8.al2" || "java11" || "java17" || "java21" || "java25" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "python3.10" || "python3.11" || "python3.12" || "python3.13" || "python3.14" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "dotnet8" || "dotnet10" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "ruby3.2" || "ruby3.3" || "ruby3.4" || "ruby4.0" || "provided" || "provided.al2" || "provided.al2023" || "nodejs26.x" || "python3.15" || "java8.al2023" || "java11.al2023" || "java17.al2023" || "custom",
58
58
  * DeadLetterConfig: { // DeadLetterConfig
59
59
  * TargetArn: "STRING_VALUE",
60
60
  * },
@@ -108,13 +108,20 @@ declare const UpdateFunctionConfigurationCommand_base: {
108
108
  * RetentionPeriodInDays: Number("int"),
109
109
  * ExecutionTimeout: Number("int"),
110
110
  * },
111
+ * RuntimeConfig: { // FunctionRuntimeConfig
112
+ * RuntimeArn: "STRING_VALUE", // required
113
+ * RuntimeAlias: "STRING_VALUE", // required
114
+ * },
115
+ * AcceleratorConfig: { // AcceleratorConfig
116
+ * AcceleratorMemorySize: 3 || 6 || 12 || 16 || 24 || 48, // required
117
+ * },
111
118
  * };
112
119
  * const command = new UpdateFunctionConfigurationCommand(input);
113
120
  * const response = await client.send(command);
114
121
  * // { // FunctionConfiguration
115
122
  * // FunctionName: "STRING_VALUE",
116
123
  * // FunctionArn: "STRING_VALUE",
117
- * // Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "nodejs18.x" || "nodejs20.x" || "nodejs22.x" || "nodejs24.x" || "java8" || "java8.al2" || "java11" || "java17" || "java21" || "java25" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "python3.10" || "python3.11" || "python3.12" || "python3.13" || "python3.14" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "dotnet8" || "dotnet10" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "ruby3.2" || "ruby3.3" || "ruby3.4" || "ruby4.0" || "provided" || "provided.al2" || "provided.al2023" || "nodejs26.x" || "python3.15" || "java8.al2023" || "java11.al2023" || "java17.al2023",
124
+ * // Runtime: "nodejs" || "nodejs4.3" || "nodejs6.10" || "nodejs8.10" || "nodejs10.x" || "nodejs12.x" || "nodejs14.x" || "nodejs16.x" || "nodejs18.x" || "nodejs20.x" || "nodejs22.x" || "nodejs24.x" || "java8" || "java8.al2" || "java11" || "java17" || "java21" || "java25" || "python2.7" || "python3.6" || "python3.7" || "python3.8" || "python3.9" || "python3.10" || "python3.11" || "python3.12" || "python3.13" || "python3.14" || "dotnetcore1.0" || "dotnetcore2.0" || "dotnetcore2.1" || "dotnetcore3.1" || "dotnet6" || "dotnet8" || "dotnet10" || "nodejs4.3-edge" || "go1.x" || "ruby2.5" || "ruby2.7" || "ruby3.2" || "ruby3.3" || "ruby3.4" || "ruby4.0" || "provided" || "provided.al2" || "provided.al2023" || "nodejs26.x" || "python3.15" || "java8.al2023" || "java11.al2023" || "java17.al2023" || "custom",
118
125
  * // Role: "STRING_VALUE",
119
126
  * // Handler: "STRING_VALUE",
120
127
  * // CodeSize: Number("long"),
@@ -162,10 +169,10 @@ declare const UpdateFunctionConfigurationCommand_base: {
162
169
  * // ],
163
170
  * // State: "Pending" || "Active" || "Inactive" || "Failed" || "Deactivating" || "Deactivated" || "ActiveNonInvocable" || "Deleting",
164
171
  * // StateReason: "STRING_VALUE",
165
- * // StateReasonCode: "Idle" || "Creating" || "Restoring" || "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError" || "ServiceQuotaExceededException" || "VcpuLimitExceeded" || "CapacityProviderScalingLimitExceeded" || "InsufficientCapacity" || "EC2RequestLimitExceeded" || "FunctionError.InitTimeout" || "FunctionError.RuntimeInitError" || "FunctionError.ExtensionInitError" || "FunctionError.InvalidEntryPoint" || "FunctionError.InvalidWorkingDirectory" || "FunctionError.PermissionDenied" || "FunctionError.TooManyExtensions" || "FunctionError.InitResourceExhausted" || "DisallowedByVpcEncryptionControl" || "DrainingDurableExecutions" || "DependencyError",
172
+ * // StateReasonCode: "Idle" || "Creating" || "Restoring" || "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError" || "ServiceQuotaExceededException" || "VcpuLimitExceeded" || "CapacityProviderScalingLimitExceeded" || "InsufficientCapacity" || "EC2RequestLimitExceeded" || "FunctionError.InitTimeout" || "FunctionError.RuntimeInitError" || "FunctionError.ExtensionInitError" || "FunctionError.InvalidEntryPoint" || "FunctionError.InvalidWorkingDirectory" || "FunctionError.PermissionDenied" || "FunctionError.TooManyExtensions" || "FunctionError.InitResourceExhausted" || "DisallowedByVpcEncryptionControl" || "DrainingDurableExecutions" || "IncompatibleAcceleratorInstanceTypes" || "DependencyError",
166
173
  * // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
167
174
  * // LastUpdateStatusReason: "STRING_VALUE",
168
- * // LastUpdateStatusReasonCode: "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError" || "ServiceQuotaExceededException" || "VcpuLimitExceeded" || "CapacityProviderScalingLimitExceeded" || "InsufficientCapacity" || "EC2RequestLimitExceeded" || "FunctionError.InitTimeout" || "FunctionError.RuntimeInitError" || "FunctionError.ExtensionInitError" || "FunctionError.InvalidEntryPoint" || "FunctionError.InvalidWorkingDirectory" || "FunctionError.PermissionDenied" || "FunctionError.TooManyExtensions" || "FunctionError.InitResourceExhausted" || "DisallowedByVpcEncryptionControl" || "DependencyError",
175
+ * // LastUpdateStatusReasonCode: "EniLimitExceeded" || "InsufficientRolePermissions" || "InvalidConfiguration" || "InternalError" || "SubnetOutOfIPAddresses" || "InvalidSubnet" || "InvalidSecurityGroup" || "ImageDeleted" || "ImageAccessDenied" || "InvalidImage" || "KMSKeyAccessDenied" || "KMSKeyNotFound" || "InvalidStateKMSKey" || "DisabledKMSKey" || "EFSIOError" || "EFSMountConnectivityError" || "EFSMountFailure" || "EFSMountTimeout" || "InvalidRuntime" || "InvalidZipFileException" || "FunctionError" || "ServiceQuotaExceededException" || "VcpuLimitExceeded" || "CapacityProviderScalingLimitExceeded" || "InsufficientCapacity" || "EC2RequestLimitExceeded" || "FunctionError.InitTimeout" || "FunctionError.RuntimeInitError" || "FunctionError.ExtensionInitError" || "FunctionError.InvalidEntryPoint" || "FunctionError.InvalidWorkingDirectory" || "FunctionError.PermissionDenied" || "FunctionError.TooManyExtensions" || "FunctionError.InitResourceExhausted" || "DisallowedByVpcEncryptionControl" || "IncompatibleAcceleratorInstanceTypes" || "DependencyError",
169
176
  * // FileSystemConfigs: [ // FileSystemConfigList
170
177
  * // { // FileSystemConfig
171
178
  * // Arn: "STRING_VALUE", // required
@@ -232,6 +239,13 @@ declare const UpdateFunctionConfigurationCommand_base: {
232
239
  * // RetentionPeriodInDays: Number("int"),
233
240
  * // ExecutionTimeout: Number("int"),
234
241
  * // },
242
+ * // RuntimeConfig: { // FunctionRuntimeConfig
243
+ * // RuntimeArn: "STRING_VALUE", // required
244
+ * // RuntimeAlias: "STRING_VALUE", // required
245
+ * // },
246
+ * // AcceleratorConfig: { // AcceleratorConfig
247
+ * // AcceleratorMemorySize: 3 || 6 || 12 || 16 || 24 || 48, // required
248
+ * // },
235
249
  * // };
236
250
  *
237
251
  * ```
@@ -1,3 +1,11 @@
1
+ export declare enum AcceleratorMemoryGB {
2
+ MEMORY_3 = 3,
3
+ MEMORY_6 = 6,
4
+ MEMORY_12 = 12,
5
+ MEMORY_16 = 16,
6
+ MEMORY_24 = 24,
7
+ MEMORY_48 = 48
8
+ }
1
9
  /**
2
10
  * @public
3
11
  * @enum
@@ -110,6 +118,7 @@ export type CapacityProviderScalingMode = (typeof CapacityProviderScalingMode)[k
110
118
  */
111
119
  export declare const CapacityProviderPredefinedMetricType: {
112
120
  readonly LambdaCapacityProviderAverageCPUUtilization: "LambdaCapacityProviderAverageCPUUtilization";
121
+ readonly LambdaCapacityProviderAverageGPUUtilization: "LambdaCapacityProviderAverageGPUUtilization";
113
122
  };
114
123
  /**
115
124
  * @public
@@ -469,6 +478,7 @@ export type FunctionVersionLatestPublished = (typeof FunctionVersionLatestPublis
469
478
  * @enum
470
479
  */
471
480
  export declare const Runtime: {
481
+ readonly custom: "custom";
472
482
  readonly dotnet10: "dotnet10";
473
483
  readonly dotnet6: "dotnet6";
474
484
  readonly dotnet8: "dotnet8";
@@ -599,6 +609,7 @@ export declare const LastUpdateStatusReasonCode: {
599
609
  readonly FunctionErrorTooManyExtensions: "FunctionError.TooManyExtensions";
600
610
  readonly ImageAccessDenied: "ImageAccessDenied";
601
611
  readonly ImageDeleted: "ImageDeleted";
612
+ readonly IncompatibleAcceleratorInstanceTypes: "IncompatibleAcceleratorInstanceTypes";
602
613
  readonly InsufficientCapacity: "InsufficientCapacity";
603
614
  readonly InsufficientRolePermissions: "InsufficientRolePermissions";
604
615
  readonly InternalError: "InternalError";
@@ -660,6 +671,7 @@ export declare const StateReasonCode: {
660
671
  readonly Idle: "Idle";
661
672
  readonly ImageAccessDenied: "ImageAccessDenied";
662
673
  readonly ImageDeleted: "ImageDeleted";
674
+ readonly IncompatibleAcceleratorInstanceTypes: "IncompatibleAcceleratorInstanceTypes";
663
675
  readonly InsufficientCapacity: "InsufficientCapacity";
664
676
  readonly InsufficientRolePermissions: "InsufficientRolePermissions";
665
677
  readonly InternalError: "InternalError";
@@ -721,6 +721,42 @@ export declare class ResourceNotReadyException extends __BaseException {
721
721
  */
722
722
  constructor(opts: __ExceptionOptionType<ResourceNotReadyException, __BaseException>);
723
723
  }
724
+ /**
725
+ * <p>The runtime alias for your function is no longer available. Update your function to use an available runtime alias.</p>
726
+ * @public
727
+ */
728
+ export declare class RuntimeAliasDeletedException extends __BaseException {
729
+ static readonly shapeId: string;
730
+ readonly name: "RuntimeAliasDeletedException";
731
+ readonly $fault: "client";
732
+ /**
733
+ * <p>Indicates the exception type for a deleted runtime alias.</p>
734
+ * @public
735
+ */
736
+ Type?: string | undefined;
737
+ /**
738
+ * @internal
739
+ */
740
+ constructor(opts: __ExceptionOptionType<RuntimeAliasDeletedException, __BaseException>);
741
+ }
742
+ /**
743
+ * <p>The runtime version used by your function is no longer available. Update your function to use an available runtime version or runtime alias.</p>
744
+ * @public
745
+ */
746
+ export declare class RuntimeVersionDeletedException extends __BaseException {
747
+ static readonly shapeId: string;
748
+ readonly name: "RuntimeVersionDeletedException";
749
+ readonly $fault: "client";
750
+ /**
751
+ * <p>Indicates the exception type for a deleted runtime version.</p>
752
+ * @public
753
+ */
754
+ Type?: string | undefined;
755
+ /**
756
+ * @internal
757
+ */
758
+ constructor(opts: __ExceptionOptionType<RuntimeVersionDeletedException, __BaseException>);
759
+ }
724
760
  /**
725
761
  * <p>The Lambda function couldn't make a network connection to the configured S3 Files access point.</p>
726
762
  * @public
@@ -1,5 +1,16 @@
1
1
  import type { StreamingBlobTypes } from "@smithy/types";
2
- import type { ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, DirectS3Read, EndPointType, EventSourceMappingMetric, EventSourceMappingSystemLogLevel, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaEventSourceMappingConsumptionMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, PropagateTagsMode, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, S3ObjectStorageMode, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
2
+ import type { AcceleratorMemoryGB, ApplicationLogLevel, Architecture, CapacityProviderPredefinedMetricType, CapacityProviderScalingMode, CapacityProviderState, CodeSigningPolicy, DirectS3Read, EndPointType, EventSourceMappingMetric, EventSourceMappingSystemLogLevel, EventSourcePosition, EventType, ExecutionStatus, FullDocument, FunctionResponseType, FunctionUrlAuthType, FunctionVersion, FunctionVersionLatestPublished, InvocationType, InvokeMode, KafkaEventSourceMappingConsumptionMode, KafkaSchemaRegistryAuthType, KafkaSchemaValidationAttribute, LastUpdateStatus, LastUpdateStatusReasonCode, LogFormat, LogType, OperationAction, OperationStatus, OperationType, PackageType, PropagateTagsMode, ProvisionedConcurrencyStatusEnum, RecursiveLoop, ResponseStreamingInvocationType, Runtime, S3ObjectStorageMode, SchemaRegistryEventRecordFormat, SnapStartApplyOn, SnapStartOptimizationStatus, SourceAccessType, State, StateReasonCode, SystemLogLevel, TenantIsolationMode, TracingMode, UpdateRuntimeOn } from "./enums";
3
+ /**
4
+ * <p>The accelerator resource settings for a Lambda execution environment, including the amount of accelerator memory to allocate.</p>
5
+ * @public
6
+ */
7
+ export interface AcceleratorConfig {
8
+ /**
9
+ * <p>The minimum amount of memory (in GB) of each accelerator device exposed to the execution environment. Lambda might allocate more, depending on the accelerator instance types available.</p>
10
+ * @public
11
+ */
12
+ AcceleratorMemorySize: AcceleratorMemoryGB | undefined;
13
+ }
3
14
  /**
4
15
  * <p>Limits that are related to concurrency and storage. All file and storage sizes are in bytes.</p>
5
16
  * @public
@@ -2328,7 +2339,7 @@ export interface SelfManagedKafkaEventSourceConfig {
2328
2339
  */
2329
2340
  SchemaRegistryConfig?: KafkaSchemaRegistryConfig | undefined;
2330
2341
  /**
2331
- * <p>The mode that Lambda uses to consume records from your self-managed Apache Kafka topic. The default is <code>Stream</code>.</p> <ul> <li> <p> <code>Stream</code> – Lambda consumes records using a Kafka consumer group and preserves the order of records within each partition. This is the default when you omit <code>ConsumptionMode</code>.</p> </li> <li> <p> <code>Queue</code> – Lambda consumes records using a Kafka share group. Multiple consumers can process records from the same partitions concurrently. Queue mode does not preserve per-partition order. Queue mode requires an Apache Kafka cluster running version 4.2 or later with share groups enabled.</p> </li> </ul> <p>You cannot change <code>ConsumptionMode</code> after you create the event source mapping. To use a different consumption mode, create a new event source mapping.</p> <p>When <code>ConsumptionMode</code> is <code>Queue</code>, the <code>StartingPosition</code>, <code>StartingPositionTimestamp</code>, and <code>MaximumBatchingWindowInSeconds</code> parameters are not supported.</p>
2342
+ * <p>The mode that Lambda uses to consume records from your self-managed Apache Kafka topic. Valid values are the following:</p> <ul> <li> <p> <code>Stream</code> (default) – Lambda consumes records using a Kafka consumer group and preserves the order of records within each partition.</p> </li> <li> <p> <code>Queue</code> – Lambda consumes records using a Kafka share group. Multiple consumers can process records from the same partition concurrently, so Lambda doesn't preserve per-partition order. To use Queue mode, your cluster must run Apache Kafka version 4.2 or later with share groups enabled.</p> </li> </ul> <p>If you omit this parameter, Lambda uses <code>Stream</code>.</p> <p>You cannot change <code>ConsumptionMode</code> after you create the event source mapping. To use a different consumption mode, create a new event source mapping.</p> <p>When <code>ConsumptionMode</code> is <code>Queue</code>, the <code>StartingPosition</code>, <code>StartingPositionTimestamp</code>, and <code>MaximumBatchingWindowInSeconds</code> parameters are not supported.</p>
2332
2343
  * @public
2333
2344
  */
2334
2345
  ConsumptionMode?: KafkaEventSourceMappingConsumptionMode | undefined;
@@ -2434,7 +2445,7 @@ export interface CreateEventSourceMappingRequest {
2434
2445
  */
2435
2446
  BisectBatchOnFunctionError?: boolean | undefined;
2436
2447
  /**
2437
- * <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p> <p>For Kafka <code>Stream</code> consumption mode, the default is <code>-1</code> (infinite retries; capped at 10 when an on-failure destination is configured). For Kafka <code>Queue</code> consumption mode, the default is <code>0</code>, and if no on-failure destination is configured the Kafka broker performs retries.</p>
2448
+ * <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p> <p>For Kafka event source mappings with <code>ConsumptionMode</code> set to <code>Queue</code>, the value -1 (infinite retries) is not supported and the default is 0 (no retries). Lambda releases failed records back to the broker, which redelivers them up to the share group's <code>group.share.delivery.count.limit</code>.</p>
2438
2449
  * @public
2439
2450
  */
2440
2451
  MaximumRetryAttempts?: number | undefined;
@@ -2816,7 +2827,7 @@ export interface UpdateEventSourceMappingRequest {
2816
2827
  */
2817
2828
  BisectBatchOnFunctionError?: boolean | undefined;
2818
2829
  /**
2819
- * <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p> <p>For Kafka <code>Stream</code> consumption mode, the default is <code>-1</code> (infinite retries; capped at 10 when an on-failure destination is configured). For Kafka <code>Queue</code> consumption mode, the default is <code>0</code>, and if no on-failure destination is configured the Kafka broker performs retries.</p>
2830
+ * <p>(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p> <p>For Kafka event source mappings with <code>ConsumptionMode</code> set to <code>Queue</code>, the value -1 (infinite retries) is not supported and the default is 0 (no retries). Lambda releases failed records back to the broker, which redelivers them up to the share group's <code>group.share.delivery.count.limit</code>.</p>
2820
2831
  * @public
2821
2832
  */
2822
2833
  MaximumRetryAttempts?: number | undefined;
@@ -2952,7 +2963,7 @@ export interface Environment {
2952
2963
  Variables?: Record<string, string> | undefined;
2953
2964
  }
2954
2965
  /**
2955
- * <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
2966
+ * <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For functions that use <code>AcceleratorConfig</code>, the maximum is 32,768 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
2956
2967
  * @public
2957
2968
  */
2958
2969
  export interface EphemeralStorage {
@@ -3041,6 +3052,22 @@ export interface LoggingConfig {
3041
3052
  */
3042
3053
  LogGroup?: string | undefined;
3043
3054
  }
3055
+ /**
3056
+ * <p>The customer-managed runtime configuration for your function. Specifies the customer-managed runtime and the runtime alias that your function uses.</p>
3057
+ * @public
3058
+ */
3059
+ export interface FunctionRuntimeConfig {
3060
+ /**
3061
+ * <p>The Amazon Resource Name (ARN) of the customer-managed runtime that your function uses.</p>
3062
+ * @public
3063
+ */
3064
+ RuntimeArn: string | undefined;
3065
+ /**
3066
+ * <p>The name of the customer-managed runtime alias that your function uses. A runtime alias is a name that points to a runtime version.</p>
3067
+ * @public
3068
+ */
3069
+ RuntimeAlias: string | undefined;
3070
+ }
3044
3071
  /**
3045
3072
  * <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html">Lambda SnapStart</a> setting. Set <code>ApplyOn</code> to <code>PublishedVersions</code> to create a snapshot of the initialized execution environment when you publish a function version.</p>
3046
3073
  * @public
@@ -3210,7 +3237,7 @@ export interface CreateFunctionRequest {
3210
3237
  */
3211
3238
  Architectures?: Architecture[] | undefined;
3212
3239
  /**
3213
- * <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
3240
+ * <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For functions that use <code>AcceleratorConfig</code>, the maximum is 32,768 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
3214
3241
  * @public
3215
3242
  */
3216
3243
  EphemeralStorage?: EphemeralStorage | undefined;
@@ -3239,6 +3266,16 @@ export interface CreateFunctionRequest {
3239
3266
  * @public
3240
3267
  */
3241
3268
  DurableConfig?: DurableConfig | undefined;
3269
+ /**
3270
+ * <p>The customer-managed runtime configuration for your function. Specifies the customer-managed runtime and the runtime alias that your function uses.</p>
3271
+ * @public
3272
+ */
3273
+ RuntimeConfig?: FunctionRuntimeConfig | undefined;
3274
+ /**
3275
+ * <p>The accelerator resource settings for a Lambda execution environment.</p>
3276
+ * @public
3277
+ */
3278
+ AcceleratorConfig?: AcceleratorConfig | undefined;
3242
3279
  }
3243
3280
  /**
3244
3281
  * <p>Error messages for environment variables that couldn't be applied.</p>
@@ -3581,7 +3618,7 @@ export interface FunctionConfiguration {
3581
3618
  */
3582
3619
  Architectures?: Architecture[] | undefined;
3583
3620
  /**
3584
- * <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
3621
+ * <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For functions that use <code>AcceleratorConfig</code>, the maximum is 32,768 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
3585
3622
  * @public
3586
3623
  */
3587
3624
  EphemeralStorage?: EphemeralStorage | undefined;
@@ -3620,6 +3657,16 @@ export interface FunctionConfiguration {
3620
3657
  * @public
3621
3658
  */
3622
3659
  DurableConfig?: DurableConfig | undefined;
3660
+ /**
3661
+ * <p>The customer-managed runtime configuration for your function. Specifies the customer-managed runtime and the runtime alias that your function uses.</p>
3662
+ * @public
3663
+ */
3664
+ RuntimeConfig?: FunctionRuntimeConfig | undefined;
3665
+ /**
3666
+ * <p>The accelerator resource settings for a Lambda execution environment.</p>
3667
+ * @public
3668
+ */
3669
+ AcceleratorConfig?: AcceleratorConfig | undefined;
3623
3670
  }
3624
3671
  /**
3625
3672
  * <p>The <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin resource sharing (CORS)</a> settings for your Lambda function URL. Use CORS to grant access to your function URL from any origin. You can also use CORS to control access for specific HTTP headers and methods in requests to your function URL.</p>
@@ -5008,7 +5055,7 @@ export interface UpdateFunctionConfigurationRequest {
5008
5055
  */
5009
5056
  ImageConfig?: ImageConfig | undefined;
5010
5057
  /**
5011
- * <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
5058
+ * <p>The size of the function's <code>/tmp</code> directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For functions that use <code>AcceleratorConfig</code>, the maximum is 32,768 MB. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage">Configuring ephemeral storage (console)</a>.</p>
5012
5059
  * @public
5013
5060
  */
5014
5061
  EphemeralStorage?: EphemeralStorage | undefined;
@@ -5032,6 +5079,16 @@ export interface UpdateFunctionConfigurationRequest {
5032
5079
  * @public
5033
5080
  */
5034
5081
  DurableConfig?: DurableConfig | undefined;
5082
+ /**
5083
+ * <p>The customer-managed runtime configuration for your function. Specifies the customer-managed runtime and the runtime alias that your function uses.</p>
5084
+ * @public
5085
+ */
5086
+ RuntimeConfig?: FunctionRuntimeConfig | undefined;
5087
+ /**
5088
+ * <p>The accelerator resource settings for a Lambda execution environment.</p>
5089
+ * @public
5090
+ */
5091
+ AcceleratorConfig?: AcceleratorConfig | undefined;
5035
5092
  }
5036
5093
  /**
5037
5094
  * @public
@@ -44,6 +44,8 @@ export declare var ResourceConflictException$: StaticErrorSchema;
44
44
  export declare var ResourceInUseException$: StaticErrorSchema;
45
45
  export declare var ResourceNotFoundException$: StaticErrorSchema;
46
46
  export declare var ResourceNotReadyException$: StaticErrorSchema;
47
+ export declare var RuntimeAliasDeletedException$: StaticErrorSchema;
48
+ export declare var RuntimeVersionDeletedException$: StaticErrorSchema;
47
49
  export declare var S3FilesMountConnectivityException$: StaticErrorSchema;
48
50
  export declare var S3FilesMountFailureException$: StaticErrorSchema;
49
51
  export declare var S3FilesMountTimeoutException$: StaticErrorSchema;
@@ -63,6 +65,7 @@ export declare var UnsupportedMediaTypeException$: StaticErrorSchema;
63
65
  *
64
66
  */
65
67
  export declare const errorTypeRegistries: TypeRegistry[];
68
+ export declare var AcceleratorConfig$: StaticStructureSchema;
66
69
  export declare var AccountLimit$: StaticStructureSchema;
67
70
  export declare var AccountUsage$: StaticStructureSchema;
68
71
  export declare var AddLayerVersionPermissionRequest$: StaticStructureSchema;
@@ -161,6 +164,7 @@ export declare var FunctionCodeLocation$: StaticStructureSchema;
161
164
  export declare var FunctionCodeLocationError$: StaticStructureSchema;
162
165
  export declare var FunctionConfiguration$: StaticStructureSchema;
163
166
  export declare var FunctionEventInvokeConfig$: StaticStructureSchema;
167
+ export declare var FunctionRuntimeConfig$: StaticStructureSchema;
164
168
  export declare var FunctionScalingConfig$: StaticStructureSchema;
165
169
  export declare var FunctionUrlConfig$: StaticStructureSchema;
166
170
  export declare var FunctionVersionsByCapacityProviderListItem$: StaticStructureSchema;
@@ -1,3 +1,11 @@
1
+ export declare enum AcceleratorMemoryGB {
2
+ MEMORY_3 = 3,
3
+ MEMORY_6 = 6,
4
+ MEMORY_12 = 12,
5
+ MEMORY_16 = 16,
6
+ MEMORY_24 = 24,
7
+ MEMORY_48 = 48,
8
+ }
1
9
  export declare const ThrottleReason: {
2
10
  readonly CallerRateLimitExceeded: "CallerRateLimitExceeded";
3
11
  readonly ConcurrentInvocationLimitExceeded: "ConcurrentInvocationLimitExceeded";
@@ -54,6 +62,7 @@ export type CapacityProviderScalingMode =
54
62
  (typeof CapacityProviderScalingMode)[keyof typeof CapacityProviderScalingMode];
55
63
  export declare const CapacityProviderPredefinedMetricType: {
56
64
  readonly LambdaCapacityProviderAverageCPUUtilization: "LambdaCapacityProviderAverageCPUUtilization";
65
+ readonly LambdaCapacityProviderAverageGPUUtilization: "LambdaCapacityProviderAverageGPUUtilization";
57
66
  };
58
67
  export type CapacityProviderPredefinedMetricType =
59
68
  (typeof CapacityProviderPredefinedMetricType)[keyof typeof CapacityProviderPredefinedMetricType];
@@ -239,6 +248,7 @@ export declare const FunctionVersionLatestPublished: {
239
248
  export type FunctionVersionLatestPublished =
240
249
  (typeof FunctionVersionLatestPublished)[keyof typeof FunctionVersionLatestPublished];
241
250
  export declare const Runtime: {
251
+ readonly custom: "custom";
242
252
  readonly dotnet10: "dotnet10";
243
253
  readonly dotnet6: "dotnet6";
244
254
  readonly dotnet8: "dotnet8";
@@ -334,6 +344,7 @@ export declare const LastUpdateStatusReasonCode: {
334
344
  readonly FunctionErrorTooManyExtensions: "FunctionError.TooManyExtensions";
335
345
  readonly ImageAccessDenied: "ImageAccessDenied";
336
346
  readonly ImageDeleted: "ImageDeleted";
347
+ readonly IncompatibleAcceleratorInstanceTypes: "IncompatibleAcceleratorInstanceTypes";
337
348
  readonly InsufficientCapacity: "InsufficientCapacity";
338
349
  readonly InsufficientRolePermissions: "InsufficientRolePermissions";
339
350
  readonly InternalError: "InternalError";
@@ -383,6 +394,7 @@ export declare const StateReasonCode: {
383
394
  readonly Idle: "Idle";
384
395
  readonly ImageAccessDenied: "ImageAccessDenied";
385
396
  readonly ImageDeleted: "ImageDeleted";
397
+ readonly IncompatibleAcceleratorInstanceTypes: "IncompatibleAcceleratorInstanceTypes";
386
398
  readonly InsufficientCapacity: "InsufficientCapacity";
387
399
  readonly InsufficientRolePermissions: "InsufficientRolePermissions";
388
400
  readonly InternalError: "InternalError";
@@ -339,6 +339,20 @@ export declare class ResourceNotReadyException extends __BaseException {
339
339
  Type?: string | undefined;
340
340
  constructor(opts: __ExceptionOptionType<ResourceNotReadyException, __BaseException>);
341
341
  }
342
+ export declare class RuntimeAliasDeletedException extends __BaseException {
343
+ static readonly shapeId: string;
344
+ readonly name: "RuntimeAliasDeletedException";
345
+ readonly $fault: "client";
346
+ Type?: string | undefined;
347
+ constructor(opts: __ExceptionOptionType<RuntimeAliasDeletedException, __BaseException>);
348
+ }
349
+ export declare class RuntimeVersionDeletedException extends __BaseException {
350
+ static readonly shapeId: string;
351
+ readonly name: "RuntimeVersionDeletedException";
352
+ readonly $fault: "client";
353
+ Type?: string | undefined;
354
+ constructor(opts: __ExceptionOptionType<RuntimeVersionDeletedException, __BaseException>);
355
+ }
342
356
  export declare class S3FilesMountConnectivityException extends __BaseException {
343
357
  static readonly shapeId: string;
344
358
  readonly name: "S3FilesMountConnectivityException";
@@ -1,5 +1,6 @@
1
1
  import { StreamingBlobTypes } from "@smithy/types";
2
2
  import {
3
+ AcceleratorMemoryGB,
3
4
  ApplicationLogLevel,
4
5
  Architecture,
5
6
  CapacityProviderPredefinedMetricType,
@@ -48,6 +49,9 @@ import {
48
49
  TracingMode,
49
50
  UpdateRuntimeOn,
50
51
  } from "./enums";
52
+ export interface AcceleratorConfig {
53
+ AcceleratorMemorySize: AcceleratorMemoryGB | undefined;
54
+ }
51
55
  export interface AccountLimit {
52
56
  TotalCodeSize?: number | undefined;
53
57
  CodeSizeUnzipped?: number | undefined;
@@ -776,6 +780,10 @@ export interface LoggingConfig {
776
780
  SystemLogLevel?: SystemLogLevel | undefined;
777
781
  LogGroup?: string | undefined;
778
782
  }
783
+ export interface FunctionRuntimeConfig {
784
+ RuntimeArn: string | undefined;
785
+ RuntimeAlias: string | undefined;
786
+ }
779
787
  export interface SnapStart {
780
788
  ApplyOn?: SnapStartApplyOn | undefined;
781
789
  }
@@ -819,6 +827,8 @@ export interface CreateFunctionRequest {
819
827
  TenancyConfig?: TenancyConfig | undefined;
820
828
  CapacityProviderConfig?: CapacityProviderConfig | undefined;
821
829
  DurableConfig?: DurableConfig | undefined;
830
+ RuntimeConfig?: FunctionRuntimeConfig | undefined;
831
+ AcceleratorConfig?: AcceleratorConfig | undefined;
822
832
  }
823
833
  export interface EnvironmentError {
824
834
  ErrorCode?: string | undefined;
@@ -904,6 +914,8 @@ export interface FunctionConfiguration {
904
914
  CapacityProviderConfig?: CapacityProviderConfig | undefined;
905
915
  ConfigSha256?: string | undefined;
906
916
  DurableConfig?: DurableConfig | undefined;
917
+ RuntimeConfig?: FunctionRuntimeConfig | undefined;
918
+ AcceleratorConfig?: AcceleratorConfig | undefined;
907
919
  }
908
920
  export interface Cors {
909
921
  AllowCredentials?: boolean | undefined;
@@ -1259,6 +1271,8 @@ export interface UpdateFunctionConfigurationRequest {
1259
1271
  LoggingConfig?: LoggingConfig | undefined;
1260
1272
  CapacityProviderConfig?: CapacityProviderConfig | undefined;
1261
1273
  DurableConfig?: DurableConfig | undefined;
1274
+ RuntimeConfig?: FunctionRuntimeConfig | undefined;
1275
+ AcceleratorConfig?: AcceleratorConfig | undefined;
1262
1276
  }
1263
1277
  export interface UpdateFunctionUrlConfigRequest {
1264
1278
  FunctionName: string | undefined;
@@ -49,6 +49,8 @@ export declare var ResourceConflictException$: StaticErrorSchema;
49
49
  export declare var ResourceInUseException$: StaticErrorSchema;
50
50
  export declare var ResourceNotFoundException$: StaticErrorSchema;
51
51
  export declare var ResourceNotReadyException$: StaticErrorSchema;
52
+ export declare var RuntimeAliasDeletedException$: StaticErrorSchema;
53
+ export declare var RuntimeVersionDeletedException$: StaticErrorSchema;
52
54
  export declare var S3FilesMountConnectivityException$: StaticErrorSchema;
53
55
  export declare var S3FilesMountFailureException$: StaticErrorSchema;
54
56
  export declare var S3FilesMountTimeoutException$: StaticErrorSchema;
@@ -63,6 +65,7 @@ export declare var SubnetIPAddressLimitReachedException$: StaticErrorSchema;
63
65
  export declare var TooManyRequestsException$: StaticErrorSchema;
64
66
  export declare var UnsupportedMediaTypeException$: StaticErrorSchema;
65
67
  export declare const errorTypeRegistries: TypeRegistry[];
68
+ export declare var AcceleratorConfig$: StaticStructureSchema;
66
69
  export declare var AccountLimit$: StaticStructureSchema;
67
70
  export declare var AccountUsage$: StaticStructureSchema;
68
71
  export declare var AddLayerVersionPermissionRequest$: StaticStructureSchema;
@@ -161,6 +164,7 @@ export declare var FunctionCodeLocation$: StaticStructureSchema;
161
164
  export declare var FunctionCodeLocationError$: StaticStructureSchema;
162
165
  export declare var FunctionConfiguration$: StaticStructureSchema;
163
166
  export declare var FunctionEventInvokeConfig$: StaticStructureSchema;
167
+ export declare var FunctionRuntimeConfig$: StaticStructureSchema;
164
168
  export declare var FunctionScalingConfig$: StaticStructureSchema;
165
169
  export declare var FunctionUrlConfig$: StaticStructureSchema;
166
170
  export declare var FunctionVersionsByCapacityProviderListItem$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lambda",
3
- "version": "3.1168.0",
3
+ "version": "3.1170.0",
4
4
  "description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lambda",
6
6
  "license": "Apache-2.0",