Class: AWSCDK::Sagemaker::CfnSpace::JupyterServerAppSettingsProperty

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

Overview

The JupyterServer app settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_resource_spec: nil, lifecycle_config_arns: nil) ⇒ JupyterServerAppSettingsProperty

Returns a new instance of JupyterServerAppSettingsProperty.

Parameters:

  • default_resource_spec (AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnSpace::ResourceSpecProperty, nil) (defaults to: nil)

    The default instance type and the Amazon Resource Name (ARN) of the default SageMaker AI image used by the JupyterServer app.

  • lifecycle_config_arns (Array<String>, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the Lifecycle Configurations attached to the JupyterServerApp.



863
864
865
866
867
868
# File 'sagemaker/cfn_space.rb', line 863

def initialize(default_resource_spec: nil, lifecycle_config_arns: 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

#default_resource_specAWSCDK::IResolvable, ... (readonly)

The default instance type and the Amazon Resource Name (ARN) of the default SageMaker AI image used by the JupyterServer app.

If you use the LifecycleConfigArns parameter, then this parameter is also required.



876
877
878
# File 'sagemaker/cfn_space.rb', line 876

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 JupyterServerApp.

If you use this parameter, the DefaultResourceSpec parameter is also required.

To remove a Lifecycle Config, you must set LifecycleConfigArns to an empty list.



885
886
887
# File 'sagemaker/cfn_space.rb', line 885

def lifecycle_config_arns
  @lifecycle_config_arns
end

Class Method Details

.jsii_propertiesObject



887
888
889
890
891
892
# File 'sagemaker/cfn_space.rb', line 887

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

Instance Method Details

#to_jsiiObject



894
895
896
897
898
899
900
901
# File 'sagemaker/cfn_space.rb', line 894

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