Skip to content
v2.278.0

DefaultConfigProperty Struct ​

The default configuration that applies to all Lambda functions in the function definition version.

Individual Lambda functions can override these settings.

In an CloudFormation template, DefaultConfig is a property of the AWS::Greengrass::FunctionDefinitionVersion resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';
const defaultConfigProperty: greengrass.CfnFunctionDefinitionVersion.DefaultConfigProperty = {
  execution: {
    isolationMode: 'isolationMode',
    runAs: {
      gid: 123,
      uid: 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_greengrass as greengrass

default_config_property = greengrass.CfnFunctionDefinitionVersion.DefaultConfigProperty(
    execution=greengrass.CfnFunctionDefinitionVersion.ExecutionProperty(
        isolation_mode="isolationMode",
        run_as=greengrass.CfnFunctionDefinitionVersion.RunAsProperty(
            gid=123,
            uid=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.greengrass.*;

DefaultConfigProperty defaultConfigProperty = DefaultConfigProperty.builder()
        .execution(ExecutionProperty.builder()
                .isolationMode("isolationMode")
                .runAs(RunAsProperty.builder()
                        .gid(123)
                        .uid(123)
                        .build())
                .build())
        .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.Greengrass;

var defaultConfigProperty = new DefaultConfigProperty {
    Execution = new ExecutionProperty {
        IsolationMode = "isolationMode",
        RunAs = new RunAsProperty {
            Gid = 123,
            Uid = 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"

defaultConfigProperty := &DefaultConfigProperty{
	Execution: &ExecutionProperty{
		IsolationMode: jsii.String("isolationMode"),
		RunAs: &RunAsProperty{
			Gid: jsii.Number(123),
			Uid: jsii.Number(123),
		},
	},
}

Properties ​

executionIResolvable | CfnFunctionDefinitionVersion.ExecutionPropertyexecutiontyping.Union[IResolvable, ExecutionProperty]executionIResolvableExecutionIResolvableExecutioninterface{} required #
Configuration settings for the Lambda execution environment on the AWS IoT Greengrass core.