Class: AWSCDK::Interfaces::AWSSagemaker::ModelCardReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSSagemaker::ModelCardReference
- Defined in:
- interfaces/aws_sagemaker/model_card_reference.rb
Overview
A reference to a ModelCard resource.
Instance Attribute Summary collapse
-
#model_card_arn ⇒ String
readonly
The ARN of the ModelCard resource.
-
#model_card_name ⇒ String
readonly
The ModelCardName of the ModelCard resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(model_card_arn:, model_card_name:) ⇒ ModelCardReference
constructor
A new instance of ModelCardReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(model_card_arn:, model_card_name:) ⇒ ModelCardReference
Returns a new instance of ModelCardReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_sagemaker/model_card_reference.rb', line 9 def initialize(model_card_arn:, model_card_name:) @model_card_arn = model_card_arn Jsii::Type.check_type(@model_card_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelCardArn") @model_card_name = model_card_name Jsii::Type.check_type(@model_card_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelCardName") end |
Instance Attribute Details
#model_card_arn ⇒ String (readonly)
The ARN of the ModelCard resource.
19 20 21 |
# File 'interfaces/aws_sagemaker/model_card_reference.rb', line 19 def model_card_arn @model_card_arn end |
#model_card_name ⇒ String (readonly)
The ModelCardName of the ModelCard resource.
23 24 25 |
# File 'interfaces/aws_sagemaker/model_card_reference.rb', line 23 def model_card_name @model_card_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_sagemaker/model_card_reference.rb', line 25 def self.jsii_properties { :model_card_arn => "modelCardArn", :model_card_name => "modelCardName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_sagemaker/model_card_reference.rb', line 32 def to_jsii result = {} result.merge!({ "modelCardArn" => @model_card_arn, "modelCardName" => @model_card_name, }) result.compact end |