/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Information on the IMDS configuration of the notebook instance

See * Also:

AWS * API Reference

*/ class InstanceMetadataServiceConfiguration { public: AWS_SAGEMAKER_API InstanceMetadataServiceConfiguration(); AWS_SAGEMAKER_API InstanceMetadataServiceConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API InstanceMetadataServiceConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::String& GetMinimumInstanceMetadataServiceVersion() const{ return m_minimumInstanceMetadataServiceVersion; } /** *

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.

*/ inline bool MinimumInstanceMetadataServiceVersionHasBeenSet() const { return m_minimumInstanceMetadataServiceVersionHasBeenSet; } /** *

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.

*/ inline void SetMinimumInstanceMetadataServiceVersion(const Aws::String& value) { m_minimumInstanceMetadataServiceVersionHasBeenSet = true; m_minimumInstanceMetadataServiceVersion = value; } /** *

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.

*/ inline void SetMinimumInstanceMetadataServiceVersion(Aws::String&& value) { m_minimumInstanceMetadataServiceVersionHasBeenSet = true; m_minimumInstanceMetadataServiceVersion = std::move(value); } /** *

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.

*/ inline void SetMinimumInstanceMetadataServiceVersion(const char* value) { m_minimumInstanceMetadataServiceVersionHasBeenSet = true; m_minimumInstanceMetadataServiceVersion.assign(value); } /** *

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.

*/ inline InstanceMetadataServiceConfiguration& WithMinimumInstanceMetadataServiceVersion(const Aws::String& value) { SetMinimumInstanceMetadataServiceVersion(value); return *this;} /** *

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.

*/ inline InstanceMetadataServiceConfiguration& WithMinimumInstanceMetadataServiceVersion(Aws::String&& value) { SetMinimumInstanceMetadataServiceVersion(std::move(value)); return *this;} /** *

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.

*/ inline InstanceMetadataServiceConfiguration& WithMinimumInstanceMetadataServiceVersion(const char* value) { SetMinimumInstanceMetadataServiceVersion(value); return *this;} private: Aws::String m_minimumInstanceMetadataServiceVersion; bool m_minimumInstanceMetadataServiceVersionHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws