Class: AWSCDK::Sagemaker::CfnStudioLifecycleConfigProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnStudioLifecycleConfigProps
- Defined in:
- sagemaker/cfn_studio_lifecycle_config_props.rb
Overview
Properties for defining a CfnStudioLifecycleConfig.
Instance Attribute Summary collapse
-
#studio_lifecycle_config_app_type ⇒ String
readonly
The App type to which the Lifecycle Configuration is attached.
-
#studio_lifecycle_config_content ⇒ String
readonly
The content of your Amazon SageMaker Studio Lifecycle Configuration script.
-
#studio_lifecycle_config_name ⇒ String
readonly
The name of the Amazon SageMaker AI Studio Lifecycle Configuration.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Tags to be associated with the Lifecycle Configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(studio_lifecycle_config_app_type:, studio_lifecycle_config_content:, studio_lifecycle_config_name:, tags: nil) ⇒ CfnStudioLifecycleConfigProps
constructor
A new instance of CfnStudioLifecycleConfigProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(studio_lifecycle_config_app_type:, studio_lifecycle_config_content:, studio_lifecycle_config_name:, tags: nil) ⇒ CfnStudioLifecycleConfigProps
Returns a new instance of CfnStudioLifecycleConfigProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'sagemaker/cfn_studio_lifecycle_config_props.rb', line 13 def initialize(studio_lifecycle_config_app_type:, studio_lifecycle_config_content:, studio_lifecycle_config_name:, tags: nil) @studio_lifecycle_config_app_type = studio_lifecycle_config_app_type Jsii::Type.check_type(@studio_lifecycle_config_app_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "studioLifecycleConfigAppType") @studio_lifecycle_config_content = studio_lifecycle_config_content Jsii::Type.check_type(@studio_lifecycle_config_content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "studioLifecycleConfigContent") @studio_lifecycle_config_name = studio_lifecycle_config_name Jsii::Type.check_type(@studio_lifecycle_config_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "studioLifecycleConfigName") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#studio_lifecycle_config_app_type ⇒ String (readonly)
The App type to which the Lifecycle Configuration is attached.
28 29 30 |
# File 'sagemaker/cfn_studio_lifecycle_config_props.rb', line 28 def studio_lifecycle_config_app_type @studio_lifecycle_config_app_type end |
#studio_lifecycle_config_content ⇒ String (readonly)
The content of your Amazon SageMaker Studio Lifecycle Configuration script.
This content must be base64 encoded.
35 36 37 |
# File 'sagemaker/cfn_studio_lifecycle_config_props.rb', line 35 def studio_lifecycle_config_content @studio_lifecycle_config_content end |
#studio_lifecycle_config_name ⇒ String (readonly)
The name of the Amazon SageMaker AI Studio Lifecycle Configuration.
40 41 42 |
# File 'sagemaker/cfn_studio_lifecycle_config_props.rb', line 40 def studio_lifecycle_config_name @studio_lifecycle_config_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Tags to be associated with the Lifecycle Configuration.
Each tag consists of a key and an optional value. Tag keys must be unique per resource. Tags are searchable using the Search API.
47 48 49 |
# File 'sagemaker/cfn_studio_lifecycle_config_props.rb', line 47 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'sagemaker/cfn_studio_lifecycle_config_props.rb', line 49 def self.jsii_properties { :studio_lifecycle_config_app_type => "studioLifecycleConfigAppType", :studio_lifecycle_config_content => "studioLifecycleConfigContent", :studio_lifecycle_config_name => "studioLifecycleConfigName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'sagemaker/cfn_studio_lifecycle_config_props.rb', line 58 def to_jsii result = {} result.merge!({ "studioLifecycleConfigAppType" => @studio_lifecycle_config_app_type, "studioLifecycleConfigContent" => @studio_lifecycle_config_content, "studioLifecycleConfigName" => @studio_lifecycle_config_name, "tags" => @tags, }) result.compact end |