Skip to content

Commit 407c7ad

Browse files
author
awstools
committed
feat(client-lambda): Add Node 18 (nodejs18.x) support to AWS Lambda.
1 parent 45452e5 commit 407c7ad

File tree

4 files changed

+912
-746
lines changed

4 files changed

+912
-746
lines changed

clients/client-lambda/src/Lambda.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ export class Lambda extends LambdaClient {
454454
}
455455

456456
/**
457-
* <p>Creates a code signing configuration. A <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html">code signing configuration</a> defines a list of
457+
* <p>Creates a code signing configuration. A <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html">code signing configuration</a> defines a list of
458458
* allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment
459459
* validation checks fail). </p>
460460
*/

clients/client-lambda/src/commands/CreateCodeSigningConfigCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface CreateCodeSigningConfigCommandInput extends CreateCodeSigningCo
2929
export interface CreateCodeSigningConfigCommandOutput extends CreateCodeSigningConfigResponse, __MetadataBearer {}
3030

3131
/**
32-
* <p>Creates a code signing configuration. A <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html">code signing configuration</a> defines a list of
32+
* <p>Creates a code signing configuration. A <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html">code signing configuration</a> defines a list of
3333
* allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment
3434
* validation checks fail). </p>
3535
* @example

clients/client-lambda/src/models/models_0.ts

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export interface AmazonManagedKafkaEventSourceConfig {
449449
/**
450450
* <p>The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources.
451451
* After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see
452-
* <a>services-msk-consumer-group-id</a>.</p>
452+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id">Customizable consumer group ID</a>.</p>
453453
*/
454454
ConsumerGroupId?: string;
455455
}
@@ -676,7 +676,7 @@ export interface SelfManagedKafkaEventSourceConfig {
676676
/**
677677
* <p>The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources.
678678
* After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see
679-
* <a>services-msk-consumer-group-id</a>.</p>
679+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id">Customizable consumer group ID</a>.</p>
680680
*/
681681
ConsumerGroupId?: string;
682682
}
@@ -709,23 +709,23 @@ export interface SourceAccessConfiguration {
709709
* </li>
710710
* <li>
711711
* <p>
712-
* <code>VPC_SUBNET</code> - The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.</p>
712+
* <code>VPC_SUBNET</code> - (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.</p>
713713
* </li>
714714
* <li>
715715
* <p>
716-
* <code>VPC_SECURITY_GROUP</code> - The VPC security group used to manage access to your self-managed Apache Kafka brokers.</p>
716+
* <code>VPC_SECURITY_GROUP</code> - (Self-managed Apache Kafka) The VPC security group used to manage access to your self-managed Apache Kafka brokers.</p>
717717
* </li>
718718
* <li>
719719
* <p>
720-
* <code>SASL_SCRAM_256_AUTH</code> - The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.</p>
720+
* <code>SASL_SCRAM_256_AUTH</code> - (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.</p>
721721
* </li>
722722
* <li>
723723
* <p>
724-
* <code>SASL_SCRAM_512_AUTH</code> - The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.</p>
724+
* <code>SASL_SCRAM_512_AUTH</code> - (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.</p>
725725
* </li>
726726
* <li>
727727
* <p>
728-
* <code>VIRTUAL_HOST</code> - (Amazon MQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source.
728+
* <code>VIRTUAL_HOST</code> - (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source.
729729
* This property cannot be specified in an UpdateEventSourceMapping API call.</p>
730730
* </li>
731731
* <li>
@@ -851,9 +851,12 @@ export interface CreateEventSourceMappingRequest {
851851
FilterCriteria?: FilterCriteria;
852852

853853
/**
854-
* <p>(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.</p>
855-
* <p>Default: 0</p>
856-
* <p>Related setting: When you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
854+
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
855+
* You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
856+
* <p>For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default
857+
* batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it.
858+
* To restore the default batching window, you must create a new event source mapping.</p>
859+
* <p>Related setting: For streams and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
857860
*/
858861
MaximumBatchingWindowInSeconds?: number;
859862

@@ -965,9 +968,12 @@ export interface EventSourceMappingConfiguration {
965968
BatchSize?: number;
966969

967970
/**
968-
* <p>(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.</p>
969-
* <p>Default: 0</p>
970-
* <p>Related setting: When you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
971+
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
972+
* You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
973+
* <p>For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default
974+
* batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it.
975+
* To restore the default batching window, you must create a new event source mapping.</p>
976+
* <p>Related setting: For streams and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
971977
*/
972978
MaximumBatchingWindowInSeconds?: number;
973979

@@ -1274,6 +1280,7 @@ export enum Runtime {
12741280
nodejs12x = "nodejs12.x",
12751281
nodejs14x = "nodejs14.x",
12761282
nodejs16x = "nodejs16.x",
1283+
nodejs18x = "nodejs18.x",
12771284
nodejs43 = "nodejs4.3",
12781285
nodejs43edge = "nodejs4.3-edge",
12791286
nodejs610 = "nodejs6.10",
@@ -1488,7 +1495,7 @@ export interface EnvironmentError {
14881495
*/
14891496
export interface EnvironmentResponse {
14901497
/**
1491-
* <p>Environment variable key-value pairs.</p>
1498+
* <p>Environment variable key-value pairs. Omitted from CloudTrail logs.</p>
14921499
*/
14931500
Variables?: Record<string, string>;
14941501

@@ -1701,7 +1708,7 @@ export interface FunctionConfiguration {
17011708
DeadLetterConfig?: DeadLetterConfig;
17021709

17031710
/**
1704-
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">environment variables</a>.</p>
1711+
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">environment variables</a>. Omitted from CloudTrail logs.</p>
17051712
*/
17061713
Environment?: EnvironmentResponse;
17071714

@@ -2836,7 +2843,7 @@ export interface GetProvisionedConcurrencyConfigResponse {
28362843
AvailableProvisionedConcurrentExecutions?: number;
28372844

28382845
/**
2839-
* <p>The amount of provisioned concurrency allocated.</p>
2846+
* <p>The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function versions.</p>
28402847
*/
28412848
AllocatedProvisionedConcurrentExecutions?: number;
28422849

@@ -4085,7 +4092,7 @@ export interface ProvisionedConcurrencyConfigListItem {
40854092
AvailableProvisionedConcurrentExecutions?: number;
40864093

40874094
/**
4088-
* <p>The amount of provisioned concurrency allocated.</p>
4095+
* <p>The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function versions.</p>
40894096
*/
40904097
AllocatedProvisionedConcurrentExecutions?: number;
40914098

@@ -4556,7 +4563,7 @@ export interface PutProvisionedConcurrencyConfigResponse {
45564563
AvailableProvisionedConcurrentExecutions?: number;
45574564

45584565
/**
4559-
* <p>The amount of provisioned concurrency allocated.</p>
4566+
* <p>The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function versions.</p>
45604567
*/
45614568
AllocatedProvisionedConcurrentExecutions?: number;
45624569

@@ -4826,9 +4833,12 @@ export interface UpdateEventSourceMappingRequest {
48264833
FilterCriteria?: FilterCriteria;
48274834

48284835
/**
4829-
* <p>(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.</p>
4830-
* <p>Default: 0</p>
4831-
* <p>Related setting: When you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
4836+
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
4837+
* You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
4838+
* <p>For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default
4839+
* batching window is 500 ms. Note that because you can only change <code>MaximumBatchingWindowInSeconds</code> in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it.
4840+
* To restore the default batching window, you must create a new event source mapping.</p>
4841+
* <p>Related setting: For streams and Amazon SQS event sources, when you set <code>BatchSize</code> to a value greater than 10, you must set <code>MaximumBatchingWindowInSeconds</code> to at least 1.</p>
48324842
*/
48334843
MaximumBatchingWindowInSeconds?: number;
48344844

0 commit comments

Comments
 (0)