Class: AWSCDK::Sagemaker::CfnModelCard::UserContextProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelCard::UserContextProperty
- Defined in:
- sagemaker/cfn_model_card.rb
Overview
Information about the user who created or modified a SageMaker resource.
Instance Attribute Summary collapse
-
#domain_id ⇒ String?
readonly
The domain associated with the user.
-
#user_profile_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the user's profile.
-
#user_profile_name ⇒ String?
readonly
The name of the user's profile.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain_id: nil, user_profile_arn: nil, user_profile_name: nil) ⇒ UserContextProperty
constructor
A new instance of UserContextProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(domain_id: nil, user_profile_arn: nil, user_profile_name: nil) ⇒ UserContextProperty
Returns a new instance of UserContextProperty.
2088 2089 2090 2091 2092 2093 2094 2095 |
# File 'sagemaker/cfn_model_card.rb', line 2088 def initialize(domain_id: nil, user_profile_arn: nil, user_profile_name: nil) @domain_id = domain_id Jsii::Type.check_type(@domain_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainId") unless @domain_id.nil? @user_profile_arn = user_profile_arn Jsii::Type.check_type(@user_profile_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userProfileArn") unless @user_profile_arn.nil? @user_profile_name = user_profile_name Jsii::Type.check_type(@user_profile_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userProfileName") unless @user_profile_name.nil? end |
Instance Attribute Details
#domain_id ⇒ String? (readonly)
Note:
Default: - "UnsetValue"
The domain associated with the user.
2102 2103 2104 |
# File 'sagemaker/cfn_model_card.rb', line 2102 def domain_id @domain_id end |
#user_profile_arn ⇒ String? (readonly)
Note:
Default: - "UnsetValue"
The Amazon Resource Name (ARN) of the user's profile.
2108 2109 2110 |
# File 'sagemaker/cfn_model_card.rb', line 2108 def user_profile_arn @user_profile_arn end |
#user_profile_name ⇒ String? (readonly)
Note:
Default: - "UnsetValue"
The name of the user's profile.
2114 2115 2116 |
# File 'sagemaker/cfn_model_card.rb', line 2114 def user_profile_name @user_profile_name end |
Class Method Details
.jsii_properties ⇒ Object
2116 2117 2118 2119 2120 2121 2122 |
# File 'sagemaker/cfn_model_card.rb', line 2116 def self.jsii_properties { :domain_id => "domainId", :user_profile_arn => "userProfileArn", :user_profile_name => "userProfileName", } end |
Instance Method Details
#to_jsii ⇒ Object
2124 2125 2126 2127 2128 2129 2130 2131 2132 |
# File 'sagemaker/cfn_model_card.rb', line 2124 def to_jsii result = {} result.merge!({ "domainId" => @domain_id, "userProfileArn" => @user_profile_arn, "userProfileName" => @user_profile_name, }) result.compact end |