Class: AWSCDK::Sagemaker::CfnModel::ModelAccessConfigProperty

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

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).



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_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.



903
904
905
# File 'sagemaker/cfn_model.rb', line 903

def accept_eula
  @accept_eula
end

Class Method Details

.jsii_propertiesObject



905
906
907
908
909
# File 'sagemaker/cfn_model.rb', line 905

def self.jsii_properties
  {
    :accept_eula => "acceptEula",
  }
end

Instance Method Details

#to_jsiiObject



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