Class: AWSCDK::Sagemaker::CfnUserProfile::ResourceSpecProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnUserProfile::ResourceSpecProperty
- Defined in:
- sagemaker/cfn_user_profile.rb
Overview
Specifies the ARN's of a SageMaker AI image and SageMaker AI image version, and the instance type that the version runs on.
When both
SageMakerImageVersionArnandSageMakerImageArnare passed,SageMakerImageVersionArnis used. Any updates toSageMakerImageArnwill not take effect ifSageMakerImageVersionArnalready exists in theResourceSpecbecauseSageMakerImageVersionArnalways takes precedence. To clear the value set forSageMakerImageVersionArn, passNoneas the value.
Instance Attribute Summary collapse
-
#instance_type ⇒ String?
readonly
The instance type that the image version runs on.
-
#lifecycle_config_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
-
#sage_maker_image_arn ⇒ String?
readonly
The ARN of the SageMaker AI image that the image version belongs to.
-
#sage_maker_image_version_arn ⇒ String?
readonly
The ARN of the image version created on the instance.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_type: nil, lifecycle_config_arn: nil, sage_maker_image_arn: nil, sage_maker_image_version_arn: nil) ⇒ ResourceSpecProperty
constructor
A new instance of ResourceSpecProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_type: nil, lifecycle_config_arn: nil, sage_maker_image_arn: nil, sage_maker_image_version_arn: nil) ⇒ ResourceSpecProperty
Returns a new instance of ResourceSpecProperty.
1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 |
# File 'sagemaker/cfn_user_profile.rb', line 1406 def initialize(instance_type: nil, lifecycle_config_arn: nil, sage_maker_image_arn: nil, sage_maker_image_version_arn: nil) @instance_type = instance_type Jsii::Type.check_type(@instance_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceType") unless @instance_type.nil? @lifecycle_config_arn = lifecycle_config_arn Jsii::Type.check_type(@lifecycle_config_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lifecycleConfigArn") unless @lifecycle_config_arn.nil? @sage_maker_image_arn = sage_maker_image_arn Jsii::Type.check_type(@sage_maker_image_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sageMakerImageArn") unless @sage_maker_image_arn.nil? @sage_maker_image_version_arn = sage_maker_image_version_arn Jsii::Type.check_type(@sage_maker_image_version_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sageMakerImageVersionArn") unless @sage_maker_image_version_arn.nil? end |
Instance Attribute Details
#instance_type ⇒ String? (readonly)
The instance type that the image version runs on.
JupyterServer apps only support the
systemvalue.For KernelGateway apps , the
systemvalue is translated toml.t3.medium. KernelGateway apps also support all other values for available instance types.
1425 1426 1427 |
# File 'sagemaker/cfn_user_profile.rb', line 1425 def instance_type @instance_type end |
#lifecycle_config_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
1430 1431 1432 |
# File 'sagemaker/cfn_user_profile.rb', line 1430 def lifecycle_config_arn @lifecycle_config_arn end |
#sage_maker_image_arn ⇒ String? (readonly)
The ARN of the SageMaker AI image that the image version belongs to.
1435 1436 1437 |
# File 'sagemaker/cfn_user_profile.rb', line 1435 def sage_maker_image_arn @sage_maker_image_arn end |
#sage_maker_image_version_arn ⇒ String? (readonly)
The ARN of the image version created on the instance.
To clear the value set for SageMakerImageVersionArn , pass None as the value.
1442 1443 1444 |
# File 'sagemaker/cfn_user_profile.rb', line 1442 def sage_maker_image_version_arn @sage_maker_image_version_arn end |
Class Method Details
.jsii_properties ⇒ Object
1444 1445 1446 1447 1448 1449 1450 1451 |
# File 'sagemaker/cfn_user_profile.rb', line 1444 def self.jsii_properties { :instance_type => "instanceType", :lifecycle_config_arn => "lifecycleConfigArn", :sage_maker_image_arn => "sageMakerImageArn", :sage_maker_image_version_arn => "sageMakerImageVersionArn", } end |
Instance Method Details
#to_jsii ⇒ Object
1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 |
# File 'sagemaker/cfn_user_profile.rb', line 1453 def to_jsii result = {} result.merge!({ "instanceType" => @instance_type, "lifecycleConfigArn" => @lifecycle_config_arn, "sageMakerImageArn" => @sage_maker_image_arn, "sageMakerImageVersionArn" => @sage_maker_image_version_arn, }) result.compact end |