Class: AWSCDK::Sagemaker::CfnModelPackage::ModelAccessConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelPackage::ModelAccessConfigProperty
- Defined in:
- sagemaker/cfn_model_package.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.
1617 1618 1619 1620 |
# File 'sagemaker/cfn_model_package.rb', line 1617 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.
1628 1629 1630 |
# File 'sagemaker/cfn_model_package.rb', line 1628 def accept_eula @accept_eula end |
Class Method Details
.jsii_properties ⇒ Object
1630 1631 1632 1633 1634 |
# File 'sagemaker/cfn_model_package.rb', line 1630 def self.jsii_properties { :accept_eula => "acceptEula", } end |
Instance Method Details
#to_jsii ⇒ Object
1636 1637 1638 1639 1640 1641 1642 |
# File 'sagemaker/cfn_model_package.rb', line 1636 def to_jsii result = {} result.merge!({ "acceptEula" => @accept_eula, }) result.compact end |