# DefaultConfigProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

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.Greengrass;

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

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

## Properties

- `execution`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFunctionDefinitionVersion.ExecutionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnFunctionDefinitionVersion.ExecutionProperty.html) (required) — Configuration settings for the Lambda execution environment on the AWS IoT Greengrass core.
