Class: AWSCDK::Bedrock::CfnApplicationInferenceProfile::InferenceProfileModelSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_application_inference_profile.rb

Overview

Contains information about the model or system-defined inference profile that is the source for an inference profile..

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(copy_from:) ⇒ InferenceProfileModelSourceProperty

Returns a new instance of InferenceProfileModelSourceProperty.

Parameters:

  • copy_from (String)

    The ARN of the model or system-defined inference profile that is the source for the inference profile.



648
649
650
651
# File 'bedrock/cfn_application_inference_profile.rb', line 648

def initialize(copy_from:)
  @copy_from = copy_from
  Jsii::Type.check_type(@copy_from, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "copyFrom")
end

Instance Attribute Details

#copy_fromString (readonly)

The ARN of the model or system-defined inference profile that is the source for the inference profile.



657
658
659
# File 'bedrock/cfn_application_inference_profile.rb', line 657

def copy_from
  @copy_from
end

Class Method Details

.jsii_propertiesObject



659
660
661
662
663
# File 'bedrock/cfn_application_inference_profile.rb', line 659

def self.jsii_properties
  {
    :copy_from => "copyFrom",
  }
end

Instance Method Details

#to_jsiiObject



665
666
667
668
669
670
671
# File 'bedrock/cfn_application_inference_profile.rb', line 665

def to_jsii
  result = {}
  result.merge!({
    "copyFrom" => @copy_from,
  })
  result.compact
end