Class: AWSCDK::Bedrock::CfnApplicationInferenceProfileProps

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

Overview

Properties for defining a CfnApplicationInferenceProfile.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(inference_profile_name:, description: nil, model_source: nil, tags: nil) ⇒ CfnApplicationInferenceProfileProps

Returns a new instance of CfnApplicationInferenceProfileProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'bedrock/cfn_application_inference_profile_props.rb', line 13

def initialize(inference_profile_name:, description: nil, model_source: nil, tags: nil)
  @inference_profile_name = inference_profile_name
  Jsii::Type.check_type(@inference_profile_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inferenceProfileName")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @model_source = model_source.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnApplicationInferenceProfile::InferenceProfileModelSourceProperty.new(**model_source.transform_keys(&:to_sym)) : model_source
  Jsii::Type.check_type(@model_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkFwcGxpY2F0aW9uSW5mZXJlbmNlUHJvZmlsZS5JbmZlcmVuY2VQcm9maWxlTW9kZWxTb3VyY2VQcm9wZXJ0eSJ9XX19")), "modelSource") unless @model_source.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the inference profile.



33
34
35
# File 'bedrock/cfn_application_inference_profile_props.rb', line 33

def description
  @description
end

#inference_profile_nameString (readonly)

The name of the inference profile.



28
29
30
# File 'bedrock/cfn_application_inference_profile_props.rb', line 28

def inference_profile_name
  @inference_profile_name
end

#model_sourceAWSCDK::IResolvable, ... (readonly)

Contains configurations for the inference profile to copy as the resource.



38
39
40
# File 'bedrock/cfn_application_inference_profile_props.rb', line 38

def model_source
  @model_source
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A list of tags associated with the inference profile.



43
44
45
# File 'bedrock/cfn_application_inference_profile_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'bedrock/cfn_application_inference_profile_props.rb', line 45

def self.jsii_properties
  {
    :inference_profile_name => "inferenceProfileName",
    :description => "description",
    :model_source => "modelSource",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'bedrock/cfn_application_inference_profile_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "inferenceProfileName" => @inference_profile_name,
    "description" => @description,
    "modelSource" => @model_source,
    "tags" => @tags,
  })
  result.compact
end