Skip to content
v2.277.0

InstanceMetadataServiceConfigurationProperty Struct ​

Information on the IMDS configuration of the notebook instance.

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 instanceMetadataServiceConfigurationProperty: sagemaker.CfnNotebookInstance.InstanceMetadataServiceConfigurationProperty = {
  minimumInstanceMetadataServiceVersion: 'minimumInstanceMetadataServiceVersion',
};
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

instance_metadata_service_configuration_property = sagemaker.CfnNotebookInstance.InstanceMetadataServiceConfigurationProperty(
    minimum_instance_metadata_service_version="minimumInstanceMetadataServiceVersion"
)
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.*;

InstanceMetadataServiceConfigurationProperty instanceMetadataServiceConfigurationProperty = InstanceMetadataServiceConfigurationProperty.builder()
        .minimumInstanceMetadataServiceVersion("minimumInstanceMetadataServiceVersion")
        .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 instanceMetadataServiceConfigurationProperty = new InstanceMetadataServiceConfigurationProperty {
    MinimumInstanceMetadataServiceVersion = "minimumInstanceMetadataServiceVersion"
};
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"

instanceMetadataServiceConfigurationProperty := &InstanceMetadataServiceConfigurationProperty{
	MinimumInstanceMetadataServiceVersion: jsii.String("minimumInstanceMetadataServiceVersion"),
}

Properties ​

minimumInstanceMetadataServiceVersionstringminimum_instance_metadata_service_versionstrminimumInstanceMetadataServiceVersionStringMinimumInstanceMetadataServiceVersionstringMinimumInstanceMetadataServiceVersion*string required #
Indicates the minimum IMDS version that the notebook instance supports.

When passed as part of CreateNotebookInstance , if no value is selected, then it defaults to IMDSv1. This means that both IMDSv1 and IMDSv2 are supported. If passed as part of UpdateNotebookInstance , there is no default.