

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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Lambda::WebFunctionRevision ServiceConfig
<a name="aws-properties-lambda-webfunctionrevision-serviceconfig"></a>

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

## Syntax
<a name="aws-properties-lambda-webfunctionrevision-serviceconfig-syntax"></a>

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

### JSON
<a name="aws-properties-lambda-webfunctionrevision-serviceconfig-syntax.json"></a>

```
{
  "[EgressNetworkConnectorArn](#cfn-lambda-webfunctionrevision-serviceconfig-egressnetworkconnectorarn)" : {{String}},
  "[EnvironmentVariables](#cfn-lambda-webfunctionrevision-serviceconfig-environmentvariables)" : {{{{{Key}}: {{Value}}, ...}}},
  "[ExecutionRoleArn](#cfn-lambda-webfunctionrevision-serviceconfig-executionrolearn)" : {{String}},
  "[MaxConcurrencyPerEnvironment](#cfn-lambda-webfunctionrevision-serviceconfig-maxconcurrencyperenvironment)" : {{Integer}},
  "[TelemetryConfig](#cfn-lambda-webfunctionrevision-serviceconfig-telemetryconfig)" : {{TelemetryConfig}},
  "[TimeoutSeconds](#cfn-lambda-webfunctionrevision-serviceconfig-timeoutseconds)" : {{Integer}}
}
```

### YAML
<a name="aws-properties-lambda-webfunctionrevision-serviceconfig-syntax.yaml"></a>

```
  [EgressNetworkConnectorArn](#cfn-lambda-webfunctionrevision-serviceconfig-egressnetworkconnectorarn): {{String}}
  [EnvironmentVariables](#cfn-lambda-webfunctionrevision-serviceconfig-environmentvariables): {{
    {{Key}}: {{Value}}}}
  [ExecutionRoleArn](#cfn-lambda-webfunctionrevision-serviceconfig-executionrolearn): {{String}}
  [MaxConcurrencyPerEnvironment](#cfn-lambda-webfunctionrevision-serviceconfig-maxconcurrencyperenvironment): {{Integer}}
  [TelemetryConfig](#cfn-lambda-webfunctionrevision-serviceconfig-telemetryconfig): {{
    TelemetryConfig}}
  [TimeoutSeconds](#cfn-lambda-webfunctionrevision-serviceconfig-timeoutseconds): {{Integer}}
```

## Properties
<a name="aws-properties-lambda-webfunctionrevision-serviceconfig-properties"></a>

`EgressNetworkConnectorArn`  <a name="cfn-lambda-webfunctionrevision-serviceconfig-egressnetworkconnectorarn"></a>
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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`EnvironmentVariables`  <a name="cfn-lambda-webfunctionrevision-serviceconfig-environmentvariables"></a>
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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`ExecutionRoleArn`  <a name="cfn-lambda-webfunctionrevision-serviceconfig-executionrolearn"></a>
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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`MaxConcurrencyPerEnvironment`  <a name="cfn-lambda-webfunctionrevision-serviceconfig-maxconcurrencyperenvironment"></a>
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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`TelemetryConfig`  <a name="cfn-lambda-webfunctionrevision-serviceconfig-telemetryconfig"></a>
The telemetry configuration for the web function, including logging settings.  
*Required*: No  
*Type*: [TelemetryConfig](aws-properties-lambda-webfunctionrevision-telemetryconfig.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`TimeoutSeconds`  <a name="cfn-lambda-webfunctionrevision-serviceconfig-timeoutseconds"></a>
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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)