View a markdown version of this page

AWS::Lambda::WebFunctionRevision ServiceConfig - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::Lambda::WebFunctionRevision ServiceConfig

The service configuration for a web function revision, including execution role, timeout, VPC network access, concurrency, and telemetry settings.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "EgressNetworkConnectorArn" : String, "EnvironmentVariables" : {Key: Value, ...}, "ExecutionRoleArn" : String, "MaxConcurrencyPerEnvironment" : Integer, "TelemetryConfig" : TelemetryConfig, "TimeoutSeconds" : Integer }

Properties

EgressNetworkConnectorArn

The Amazon Resource Name (ARN) of the Lambda network connector that gives the web function access to resources in your VPC. You must specify the fully qualified ARN, including the connector version, which pins the revision to that version. If the network connector is deleted, invocations of revisions that reference it fail. Revisions that specify a network connector support only HomeRegion endpoints, not MultiRegion or PerRegion.

Required: No

Type: String

Pattern: ^arn:(aws[a-z-]*):lambda:[a-z0-9-]+:[0-9]{12}:network-connector:[a-zA-Z0-9_-]+:[0-9]+$

Minimum: 1

Maximum: 2048

Update requires: Replacement

EnvironmentVariables

A map of environment variable key-value pairs available to the web function at runtime. Environment variable values are sensitive.

Required: No

Type: Object of String

Pattern: ^[a-zA-Z]([a-zA-Z0-9_])*$

Minimum: 1

Maximum: 4096

Update requires: Replacement

ExecutionRoleArn

The ARN of the IAM role that the web function assumes when it runs. This role provides permissions to access AWS services and resources.

Required: Yes

Type: String

Pattern: ^arn:(aws[a-z-]*){1}:iam::[0-9]{12}:role/.*$

Minimum: 20

Maximum: 2048

Update requires: Replacement

MaxConcurrencyPerEnvironment

The maximum number of concurrent requests handled for each execution environment. The minimum value is 1 and the maximum value is 128. If you don't specify a value, the default is 64.

Required: No

Type: Integer

Minimum: 1

Maximum: 128

Update requires: Replacement

TelemetryConfig

The telemetry configuration for the web function, including logging settings.

Required: No

Type: TelemetryConfig

Update requires: Replacement

TimeoutSeconds

The amount of time (in seconds) that Lambda allows the web function to run before stopping it. The minimum value is 3 and the maximum value is 900. If you don't specify a value, the default is 30.

Required: No

Type: Integer

Minimum: 3

Maximum: 900

Update requires: Replacement