Class: AWSCDK::Sagemaker::CfnUserProfile::JupyterServerAppSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_user_profile.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::CfnUserProfile::ResourceSpecProperty, nil) (defaults to: nil)

    The default instance type and the Amazon Resource Name (ARN) of the default SageMaker 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.



1247
1248
1249
1250
1251
1252
# File 'sagemaker/cfn_user_profile.rb', line 1247

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

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

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



1258
1259
1260
# File 'sagemaker/cfn_user_profile.rb', line 1258

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.



1267
1268
1269
# File 'sagemaker/cfn_user_profile.rb', line 1267

def lifecycle_config_arns
  @lifecycle_config_arns
end

Class Method Details

.jsii_propertiesObject



1269
1270
1271
1272
1273
1274
# File 'sagemaker/cfn_user_profile.rb', line 1269

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

Instance Method Details

#to_jsiiObject



1276
1277
1278
1279
1280
1281
1282
1283
# File 'sagemaker/cfn_user_profile.rb', line 1276

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