Class: AWSCDK::Sagemaker::CfnModelPackage::ModelAccessConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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 .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(accept_eula:) ⇒ ModelAccessConfigProperty

Returns a new instance of ModelAccessConfigProperty.

Parameters:

  • accept_eula (Boolean, AWSCDK::IResolvable)

    Specifies agreement to the model end-user license agreement (EULA).



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_eulaBoolean, 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_propertiesObject



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_jsiiObject



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