Class: AWSCDK::Bedrock::CfnApplicationInferenceProfile::InferenceProfileModelProperty

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

Overview

Contains information about a model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model_arn: nil) ⇒ InferenceProfileModelProperty

Returns a new instance of InferenceProfileModelProperty.

Parameters:

  • model_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the model.



615
616
617
618
# File 'bedrock/cfn_application_inference_profile.rb', line 615

def initialize(model_arn: nil)
  @model_arn = model_arn
  Jsii::Type.check_type(@model_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelArn") unless @model_arn.nil?
end

Instance Attribute Details

#model_arnString? (readonly)

The Amazon Resource Name (ARN) of the model.



624
625
626
# File 'bedrock/cfn_application_inference_profile.rb', line 624

def model_arn
  @model_arn
end

Class Method Details

.jsii_propertiesObject



626
627
628
629
630
# File 'bedrock/cfn_application_inference_profile.rb', line 626

def self.jsii_properties
  {
    :model_arn => "modelArn",
  }
end

Instance Method Details

#to_jsiiObject



632
633
634
635
636
637
638
# File 'bedrock/cfn_application_inference_profile.rb', line 632

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