Class: AWSCDK::Sagemaker::CfnModel::ModelAccessConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModel::ModelAccessConfigProperty
- Defined in:
- sagemaker/cfn_model.rb
Overview
The access configuration file to control access to the ML model.
You can explicitly accept the model end-user license agreement (EULA) within the ModelAccessConfig .
- If you are a Jumpstart user, see the End-user license agreements section for more details on accepting the EULA.
- If you are an AutoML user, see the Optional Parameters section of Create an AutoML job to fine-tune text generation models using the API for details on How to set the EULA acceptance when fine-tuning a model using the AutoML API .
Instance Attribute Summary collapse
-
#accept_eula ⇒ Boolean, AWSCDK::IResolvable
readonly
Specifies agreement to the model end-user license agreement (EULA).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(accept_eula:) ⇒ ModelAccessConfigProperty
constructor
A new instance of ModelAccessConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(accept_eula:) ⇒ ModelAccessConfigProperty
Returns a new instance of ModelAccessConfigProperty.
892 893 894 895 |
# File 'sagemaker/cfn_model.rb', line 892 def initialize(accept_eula:) @accept_eula = accept_eula Jsii::Type.check_type(@accept_eula, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "acceptEula") end |
Instance Attribute Details
#accept_eula ⇒ Boolean, AWSCDK::IResolvable (readonly)
Specifies agreement to the model end-user license agreement (EULA).
The AcceptEula value must be explicitly defined as True in order to accept the EULA that this model requires. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.
903 904 905 |
# File 'sagemaker/cfn_model.rb', line 903 def accept_eula @accept_eula end |
Class Method Details
.jsii_properties ⇒ Object
905 906 907 908 909 |
# File 'sagemaker/cfn_model.rb', line 905 def self.jsii_properties { :accept_eula => "acceptEula", } end |
Instance Method Details
#to_jsii ⇒ Object
911 912 913 914 915 916 917 |
# File 'sagemaker/cfn_model.rb', line 911 def to_jsii result = {} result.merge!({ "acceptEula" => @accept_eula, }) result.compact end |