Class: AWSCDK::Sagemaker::CfnDomain::KernelGatewayAppSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_domain.rb

Overview

The KernelGateway app settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(custom_images: nil, default_resource_spec: nil, lifecycle_config_arns: nil) ⇒ KernelGatewayAppSettingsProperty

Returns a new instance of KernelGatewayAppSettingsProperty.

Parameters:



1718
1719
1720
1721
1722
1723
1724
1725
# File 'sagemaker/cfn_domain.rb', line 1718

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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbkRvbWFpbi5DdXN0b21JbWFnZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "customImages") unless @custom_images.nil?
  @default_resource_spec = default_resource_spec.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnDomain::ResourceSpecProperty.new(**default_resource_spec.transform_keys(&:to_sym)) : default_resource_spec
  Jsii::Type.check_type(@default_resource_spec, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuRG9tYWluLlJlc291cmNlU3BlY1Byb3BlcnR5In1dfX0=")), "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_imagesAWSCDK::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


1737
1738
1739
# File 'sagemaker/cfn_domain.rb', line 1737

def custom_images
  @custom_images
end

#default_resource_specAWSCDK::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.



1744
1745
1746
# File 'sagemaker/cfn_domain.rb', line 1744

def default_resource_spec
  @default_resource_spec
end

#lifecycle_config_arnsArray<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 LifecycleConfigArns to an empty list.



1751
1752
1753
# File 'sagemaker/cfn_domain.rb', line 1751

def lifecycle_config_arns
  @lifecycle_config_arns
end

Class Method Details

.jsii_propertiesObject



1753
1754
1755
1756
1757
1758
1759
# File 'sagemaker/cfn_domain.rb', line 1753

def self.jsii_properties
  {
    :custom_images => "customImages",
    :default_resource_spec => "defaultResourceSpec",
    :lifecycle_config_arns => "lifecycleConfigArns",
  }
end

Instance Method Details

#to_jsiiObject



1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'sagemaker/cfn_domain.rb', line 1761

def to_jsii
  result = {}
  result.merge!({
    "customImages" => @custom_images,
    "defaultResourceSpec" => @default_resource_spec,
    "lifecycleConfigArns" => @lifecycle_config_arns,
  })
  result.compact
end