Skip to content

Commit

Permalink
feat(client-lambda): Add Node 18 (nodejs18.x) support to AWS Lambda.
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Nov 17, 2022
1 parent 45452e5 commit 407c7ad
Show file tree
Hide file tree
Showing 4 changed files with 912 additions and 746 deletions.
2 changes: 1 addition & 1 deletion clients/client-lambda/src/Lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export class Lambda extends LambdaClient {
}

/**
* <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
* <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
* allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment
* validation checks fail). </p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface CreateCodeSigningConfigCommandInput extends CreateCodeSigningCo
export interface CreateCodeSigningConfigCommandOutput extends CreateCodeSigningConfigResponse, __MetadataBearer {}

/**
* <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
* <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
* allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment
* validation checks fail). </p>
* @example
Expand Down
52 changes: 31 additions & 21 deletions clients/client-lambda/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export interface AmazonManagedKafkaEventSourceConfig {
/**
* <p>The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources.
* After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see
* <a>services-msk-consumer-group-id</a>.</p>
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id">Customizable consumer group ID</a>.</p>
*/
ConsumerGroupId?: string;
}
Expand Down Expand Up @@ -676,7 +676,7 @@ export interface SelfManagedKafkaEventSourceConfig {
/**
* <p>The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources.
* After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see
* <a>services-msk-consumer-group-id</a>.</p>
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id">Customizable consumer group ID</a>.</p>
*/
ConsumerGroupId?: string;
}
Expand Down Expand Up @@ -709,23 +709,23 @@ export interface SourceAccessConfiguration {
* </li>
* <li>
* <p>
* <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>
* <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>
* </li>
* <li>
* <p>
* <code>VPC_SECURITY_GROUP</code> - The VPC security group used to manage access to your self-managed Apache Kafka brokers.</p>
* <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>
* </li>
* <li>
* <p>
* <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>
* <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>
* </li>
* <li>
* <p>
* <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>
* <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>
* </li>
* <li>
* <p>
* <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.
* <code>VIRTUAL_HOST</code> - (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source.
* This property cannot be specified in an UpdateEventSourceMapping API call.</p>
* </li>
* <li>
Expand Down Expand Up @@ -851,9 +851,12 @@ export interface CreateEventSourceMappingRequest {
FilterCriteria?: FilterCriteria;

/**
* <p>(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.</p>
* <p>Default: 0</p>
* <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>
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
* You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
* <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
* 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.
* To restore the default batching window, you must create a new event source mapping.</p>
* <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>
*/
MaximumBatchingWindowInSeconds?: number;

Expand Down Expand Up @@ -965,9 +968,12 @@ export interface EventSourceMappingConfiguration {
BatchSize?: number;

/**
* <p>(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.</p>
* <p>Default: 0</p>
* <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>
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
* You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
* <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
* 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.
* To restore the default batching window, you must create a new event source mapping.</p>
* <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>
*/
MaximumBatchingWindowInSeconds?: number;

Expand Down Expand Up @@ -1274,6 +1280,7 @@ export enum Runtime {
nodejs12x = "nodejs12.x",
nodejs14x = "nodejs14.x",
nodejs16x = "nodejs16.x",
nodejs18x = "nodejs18.x",
nodejs43 = "nodejs4.3",
nodejs43edge = "nodejs4.3-edge",
nodejs610 = "nodejs6.10",
Expand Down Expand Up @@ -1488,7 +1495,7 @@ export interface EnvironmentError {
*/
export interface EnvironmentResponse {
/**
* <p>Environment variable key-value pairs.</p>
* <p>Environment variable key-value pairs. Omitted from CloudTrail logs.</p>
*/
Variables?: Record<string, string>;

Expand Down Expand Up @@ -1701,7 +1708,7 @@ export interface FunctionConfiguration {
DeadLetterConfig?: DeadLetterConfig;

/**
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html">environment variables</a>.</p>
* <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>
*/
Environment?: EnvironmentResponse;

Expand Down Expand Up @@ -2836,7 +2843,7 @@ export interface GetProvisionedConcurrencyConfigResponse {
AvailableProvisionedConcurrentExecutions?: number;

/**
* <p>The amount of provisioned concurrency allocated.</p>
* <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>
*/
AllocatedProvisionedConcurrentExecutions?: number;

Expand Down Expand Up @@ -4085,7 +4092,7 @@ export interface ProvisionedConcurrencyConfigListItem {
AvailableProvisionedConcurrentExecutions?: number;

/**
* <p>The amount of provisioned concurrency allocated.</p>
* <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>
*/
AllocatedProvisionedConcurrentExecutions?: number;

Expand Down Expand Up @@ -4556,7 +4563,7 @@ export interface PutProvisionedConcurrencyConfigResponse {
AvailableProvisionedConcurrentExecutions?: number;

/**
* <p>The amount of provisioned concurrency allocated.</p>
* <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>
*/
AllocatedProvisionedConcurrentExecutions?: number;

Expand Down Expand Up @@ -4826,9 +4833,12 @@ export interface UpdateEventSourceMappingRequest {
FilterCriteria?: FilterCriteria;

/**
* <p>(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.</p>
* <p>Default: 0</p>
* <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>
* <p>The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
* You can configure <code>MaximumBatchingWindowInSeconds</code> to any value from 0 seconds to 300 seconds in increments of seconds.</p>
* <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
* 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.
* To restore the default batching window, you must create a new event source mapping.</p>
* <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>
*/
MaximumBatchingWindowInSeconds?: number;

Expand Down
Loading

0 comments on commit 407c7ad

Please sign in to comment.