# ServiceConfigProperty

The service configuration for the revision.

- Source: Generated at build time
- Type last changed: v2.274.0 · 20 Oct 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const serviceConfigProperty: lambda.CfnWebFunctionRevision.ServiceConfigProperty = {
  executionRoleArn: 'executionRoleArn',

  // the properties below are optional
  egressNetworkConnectorArn: 'egressNetworkConnectorArn',
  environmentVariables: {
    environmentVariablesKey: 'environmentVariables',
  },
  maxConcurrencyPerEnvironment: 123,
  telemetryConfig: {
    loggingConfig: {
      applicationLogLevel: 'applicationLogLevel',
      logGroup: 'logGroup',
      systemLogLevel: 'systemLogLevel',
    },
  },
  timeoutSeconds: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

service_config_property = lambda.CfnWebFunctionRevision.ServiceConfigProperty(
    execution_role_arn="executionRoleArn",

    # the properties below are optional
    egress_network_connector_arn="egressNetworkConnectorArn",
    environment_variables={
        "environment_variables_key": "environmentVariables"
    },
    max_concurrency_per_environment=123,
    telemetry_config=lambda.CfnWebFunctionRevision.TelemetryConfigProperty(
        logging_config=lambda.CfnWebFunctionRevision.LoggingConfigProperty(
            application_log_level="applicationLogLevel",
            log_group="logGroup",
            system_log_level="systemLogLevel"
        )
    ),
    timeout_seconds=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

ServiceConfigProperty serviceConfigProperty = ServiceConfigProperty.builder()
        .executionRoleArn("executionRoleArn")

        // the properties below are optional
        .egressNetworkConnectorArn("egressNetworkConnectorArn")
        .environmentVariables(Map.of(
                "environmentVariablesKey", "environmentVariables"))
        .maxConcurrencyPerEnvironment(123)
        .telemetryConfig(TelemetryConfigProperty.builder()
                .loggingConfig(LoggingConfigProperty.builder()
                        .applicationLogLevel("applicationLogLevel")
                        .logGroup("logGroup")
                        .systemLogLevel("systemLogLevel")
                        .build())
                .build())
        .timeoutSeconds(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

var serviceConfigProperty = new ServiceConfigProperty {
    ExecutionRoleArn = "executionRoleArn",

    // the properties below are optional
    EgressNetworkConnectorArn = "egressNetworkConnectorArn",
    EnvironmentVariables = new Dictionary<string, string> {
        { "environmentVariablesKey", "environmentVariables" }
    },
    MaxConcurrencyPerEnvironment = 123,
    TelemetryConfig = new TelemetryConfigProperty {
        LoggingConfig = new LoggingConfigProperty {
            ApplicationLogLevel = "applicationLogLevel",
            LogGroup = "logGroup",
            SystemLogLevel = "systemLogLevel"
        }
    },
    TimeoutSeconds = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

serviceConfigProperty := &ServiceConfigProperty{
	ExecutionRoleArn: jsii.String("executionRoleArn"),

	// the properties below are optional
	EgressNetworkConnectorArn: jsii.String("egressNetworkConnectorArn"),
	EnvironmentVariables: map[string]*string{
		"environmentVariablesKey": jsii.String("environmentVariables"),
	},
	MaxConcurrencyPerEnvironment: jsii.Number(123),
	TelemetryConfig: &TelemetryConfigProperty{
		LoggingConfig: &LoggingConfigProperty{
			ApplicationLogLevel: jsii.String("applicationLogLevel"),
			LogGroup: jsii.String("logGroup"),
			SystemLogLevel: jsii.String("systemLogLevel"),
		},
	},
	TimeoutSeconds: jsii.Number(123),
}
```

## Properties

- `egressNetworkConnectorArn`: string — The versioned ARN of the network connector used for outbound network access from the revision.

- `environmentVariables`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Environment variables for the function.

- `executionRoleArn`: string (required) — The ARN of the execution role.

- `maxConcurrencyPerEnvironment`: number — The maximum concurrency per environment.

- `telemetryConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWebFunctionRevision.TelemetryConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnWebFunctionRevision.TelemetryConfigProperty.html) — The telemetry configuration.

- `timeoutSeconds`: number — The function timeout in seconds.
