Skip to content
v2.277.0

ServiceConfigProperty Struct ​

The service configuration for the revision.

Example ​

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
# 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
// 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();
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
};
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 ​

egressNetworkConnectorArnoptionalstringegress_network_connector_arnoptionalstregressNetworkConnectorArnoptionalStringEgressNetworkConnectorArnoptionalstringEgressNetworkConnectorArnoptional*string #
The versioned ARN of the network connector used for outbound network access from the revision.
environmentVariablesoptionalIResolvable | { [key: string]: string }environment_variablesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]environmentVariablesoptionalIResolvableEnvironmentVariablesoptionalIResolvableEnvironmentVariablesoptionalinterface{} #
Environment variables for the function.
executionRoleArnstringexecution_role_arnstrexecutionRoleArnStringExecutionRoleArnstringExecutionRoleArn*string required #
The ARN of the execution role.
maxConcurrencyPerEnvironmentoptionalnumbermax_concurrency_per_environmentoptionalint | floatmaxConcurrencyPerEnvironmentoptionalNumberMaxConcurrencyPerEnvironmentoptionaldoubleMaxConcurrencyPerEnvironmentoptional*float64 #
The maximum concurrency per environment.
telemetryConfigoptionalIResolvable | CfnWebFunctionRevision.TelemetryConfigPropertytelemetry_configoptionaltyping.Union[IResolvable, TelemetryConfigProperty]telemetryConfigoptionalIResolvableTelemetryConfigoptionalIResolvableTelemetryConfigoptionalinterface{} #
The telemetry configuration.
timeoutSecondsoptionalnumbertimeout_secondsoptionalint | floattimeoutSecondsoptionalNumberTimeoutSecondsoptionaldoubleTimeoutSecondsoptional*float64 #
The function timeout in seconds.