# SharedEnvironmentConfigProperty

The shared environment configuration for restricted instance groups that use cluster-level shared FSx Lustre storage.

- Source: Generated at build time
- Type last changed: v2.261.0 · 2 Jul 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_sagemaker as sagemaker } from 'aws-cdk-lib';
const sharedEnvironmentConfigProperty: sagemaker.CfnCluster.SharedEnvironmentConfigProperty = {
  fSxLustreDeletionPolicy: 'fSxLustreDeletionPolicy',

  // the properties below are optional
  fSxLustreConfig: {
    perUnitStorageThroughput: 123,
    sizeInGiB: 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_sagemaker as sagemaker

shared_environment_config_property = sagemaker.CfnCluster.SharedEnvironmentConfigProperty(
    f_sx_lustre_deletion_policy="fSxLustreDeletionPolicy",

    # the properties below are optional
    f_sx_lustre_config=sagemaker.CfnCluster.FSxLustreConfigProperty(
        per_unit_storage_throughput=123,
        size_in_gi_b=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.sagemaker.*;

SharedEnvironmentConfigProperty sharedEnvironmentConfigProperty = SharedEnvironmentConfigProperty.builder()
        .fSxLustreDeletionPolicy("fSxLustreDeletionPolicy")

        // the properties below are optional
        .fSxLustreConfig(FSxLustreConfigProperty.builder()
                .perUnitStorageThroughput(123)
                .sizeInGiB(123)
                .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.Sagemaker;

var sharedEnvironmentConfigProperty = new SharedEnvironmentConfigProperty {
    FSxLustreDeletionPolicy = "fSxLustreDeletionPolicy",

    // the properties below are optional
    FSxLustreConfig = new FSxLustreConfigProperty {
        PerUnitStorageThroughput = 123,
        SizeInGiB = 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"

sharedEnvironmentConfigProperty := &SharedEnvironmentConfigProperty{
	FSxLustreDeletionPolicy: jsii.String("fSxLustreDeletionPolicy"),

	// the properties below are optional
	FSxLustreConfig: &FSxLustreConfigProperty{
		PerUnitStorageThroughput: jsii.Number(123),
		SizeInGiB: jsii.Number(123),
	},
}
```

## Properties

- `fSxLustreConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.FSxLustreConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnCluster.FSxLustreConfigProperty.html) — Configuration settings for an Amazon FSx for Lustre file system to be used with the cluster.

- `fSxLustreDeletionPolicy`: string (required) — The deletion policy for the shared FSx Lustre file system.

  Keep retains the FSx when RIGs are deleted. DeleteIfNotUsed deletes the FSx when no RIGs reference it.
