# RestrictedInstanceGroupsConfigProperty

The cluster-level configuration for restricted instance groups, including shared environment settings for inter-RIG communication and FSx Lustre sharing.

- 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 restrictedInstanceGroupsConfigProperty: sagemaker.CfnCluster.RestrictedInstanceGroupsConfigProperty = {
  sharedEnvironmentConfig: {
    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

restricted_instance_groups_config_property = sagemaker.CfnCluster.RestrictedInstanceGroupsConfigProperty(
    shared_environment_config=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.*;

RestrictedInstanceGroupsConfigProperty restrictedInstanceGroupsConfigProperty = RestrictedInstanceGroupsConfigProperty.builder()
        .sharedEnvironmentConfig(SharedEnvironmentConfigProperty.builder()
                .fSxLustreDeletionPolicy("fSxLustreDeletionPolicy")

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

var restrictedInstanceGroupsConfigProperty = new RestrictedInstanceGroupsConfigProperty {
    SharedEnvironmentConfig = 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"

restrictedInstanceGroupsConfigProperty := &RestrictedInstanceGroupsConfigProperty{
	SharedEnvironmentConfig: &SharedEnvironmentConfigProperty{
		FSxLustreDeletionPolicy: jsii.String("fSxLustreDeletionPolicy"),

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

## Properties

- `sharedEnvironmentConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.SharedEnvironmentConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnCluster.SharedEnvironmentConfigProperty.html) (required) — The shared environment configuration for restricted instance groups that use cluster-level shared FSx Lustre storage.
