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" :{, "ExecutionRoleArn" :Key:Value, ...}String, "MaxConcurrencyPerEnvironment" :Integer, "TelemetryConfig" :TelemetryConfig, "TimeoutSeconds" :Integer}
YAML
EgressNetworkConnectorArn:StringEnvironmentVariables:ExecutionRoleArn:Key:ValueStringMaxConcurrencyPerEnvironment:IntegerTelemetryConfig:TelemetryConfigTimeoutSeconds: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
HomeRegionendpoints, notMultiRegionorPerRegion.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:
1Maximum:
2048Update 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:
1Maximum:
4096Update 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:
20Maximum:
2048Update 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:
1Maximum:
128Update 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:
3Maximum:
900Update requires: Replacement