Skip to content
v2.278.0

SharedEnvironmentConfigProperty Struct ​

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

Example ​

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

fSxLustreConfigoptionalIResolvable | CfnCluster.FSxLustreConfigPropertyf_sx_lustre_configoptionaltyping.Union[IResolvable, FSxLustreConfigProperty]fSxLustreConfigoptionalIResolvableFSxLustreConfigoptionalIResolvableFSxLustreConfigoptionalinterface{} #
Configuration settings for an Amazon FSx for Lustre file system to be used with the cluster.
fSxLustreDeletionPolicystringf_sx_lustre_deletion_policystrfSxLustreDeletionPolicyStringFSxLustreDeletionPolicystringFSxLustreDeletionPolicy*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.