Class: AWSCDK::Sagemaker::CfnUserProfile::KernelGatewayAppSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnUserProfile::KernelGatewayAppSettingsProperty
- Defined in:
- sagemaker/cfn_user_profile.rb
Overview
The KernelGateway app settings.
Instance Attribute Summary collapse
-
#custom_images ⇒ AWSCDK::IResolvable, ...
readonly
A list of custom SageMaker AI images that are configured to run as a KernelGateway app.
-
#default_resource_spec ⇒ AWSCDK::IResolvable, ...
readonly
The default instance type and the Amazon Resource Name (ARN) of the default SageMaker AI image used by the KernelGateway app.
-
#lifecycle_config_arns ⇒ Array<String>?
readonly
The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user profile or domain.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(custom_images: nil, default_resource_spec: nil, lifecycle_config_arns: nil) ⇒ KernelGatewayAppSettingsProperty
constructor
A new instance of KernelGatewayAppSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(custom_images: nil, default_resource_spec: nil, lifecycle_config_arns: nil) ⇒ KernelGatewayAppSettingsProperty
Returns a new instance of KernelGatewayAppSettingsProperty.
1295 1296 1297 1298 1299 1300 1301 1302 |
# File 'sagemaker/cfn_user_profile.rb', line 1295 def initialize(custom_images: nil, default_resource_spec: nil, lifecycle_config_arns: nil) @custom_images = custom_images Jsii::Type.check_type(@custom_images, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmblVzZXJQcm9maWxlLkN1c3RvbUltYWdlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "customImages") unless @custom_images.nil? @default_resource_spec = default_resource_spec.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnUserProfile::ResourceSpecProperty.new(**default_resource_spec.transform_keys(&:to_sym)) : default_resource_spec Jsii::Type.check_type(@default_resource_spec, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuVXNlclByb2ZpbGUuUmVzb3VyY2VTcGVjUHJvcGVydHkifV19fQ==")), "defaultResourceSpec") unless @default_resource_spec.nil? @lifecycle_config_arns = lifecycle_config_arns Jsii::Type.check_type(@lifecycle_config_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "lifecycleConfigArns") unless @lifecycle_config_arns.nil? end |
Instance Attribute Details
#custom_images ⇒ AWSCDK::IResolvable, ... (readonly)
A list of custom SageMaker AI images that are configured to run as a KernelGateway app.
The maximum number of custom images are as follows.
- On a domain level: 200
- On a space level: 5
- On a user profile level: 5
1314 1315 1316 |
# File 'sagemaker/cfn_user_profile.rb', line 1314 def custom_images @custom_images end |
#default_resource_spec ⇒ AWSCDK::IResolvable, ... (readonly)
The default instance type and the Amazon Resource Name (ARN) of the default SageMaker AI image used by the KernelGateway app.
The Amazon SageMaker AI Studio UI does not use the default instance type value set here. The default instance type set here is used when Apps are created using the AWS CLI or CloudFormation and the instance type parameter value is not passed.
1321 1322 1323 |
# File 'sagemaker/cfn_user_profile.rb', line 1321 def default_resource_spec @default_resource_spec end |
#lifecycle_config_arns ⇒ Array<String>? (readonly)
The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the the user profile or domain.
To remove a Lifecycle Config, you must set
LifecycleConfigArnsto an empty list.
1328 1329 1330 |
# File 'sagemaker/cfn_user_profile.rb', line 1328 def lifecycle_config_arns @lifecycle_config_arns end |
Class Method Details
.jsii_properties ⇒ Object
1330 1331 1332 1333 1334 1335 1336 |
# File 'sagemaker/cfn_user_profile.rb', line 1330 def self.jsii_properties { :custom_images => "customImages", :default_resource_spec => "defaultResourceSpec", :lifecycle_config_arns => "lifecycleConfigArns", } end |
Instance Method Details
#to_jsii ⇒ Object
1338 1339 1340 1341 1342 1343 1344 1345 1346 |
# File 'sagemaker/cfn_user_profile.rb', line 1338 def to_jsii result = {} result.merge!({ "customImages" => @custom_images, "defaultResourceSpec" => @default_resource_spec, "lifecycleConfigArns" => @lifecycle_config_arns, }) result.compact end |