Class: AWSCDK::Sagemaker::CfnSpace::KernelGatewayAppSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_space.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:



913
914
915
916
917
918
919
920
# File 'sagemaker/cfn_space.rb', line 913

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


932
933
934
# File 'sagemaker/cfn_space.rb', line 932

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.



939
940
941
# File 'sagemaker/cfn_space.rb', line 939

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.



946
947
948
# File 'sagemaker/cfn_space.rb', line 946

def lifecycle_config_arns
  @lifecycle_config_arns
end

Class Method Details

.jsii_propertiesObject



948
949
950
951
952
953
954
# File 'sagemaker/cfn_space.rb', line 948

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

Instance Method Details

#to_jsiiObject



956
957
958
959
960
961
962
963
964
# File 'sagemaker/cfn_space.rb', line 956

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