Class: AWSCDK::Bedrock::CfnPrompt::PromptInputVariableProperty

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

Overview

Contains information about a variable in the prompt.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil) ⇒ PromptInputVariableProperty

Returns a new instance of PromptInputVariableProperty.

Parameters:

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

    The name of the variable.



909
910
911
912
# File 'bedrock/cfn_prompt.rb', line 909

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

Instance Attribute Details

#nameString? (readonly)

The name of the variable.



918
919
920
# File 'bedrock/cfn_prompt.rb', line 918

def name
  @name
end

Class Method Details

.jsii_propertiesObject



920
921
922
923
924
# File 'bedrock/cfn_prompt.rb', line 920

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

Instance Method Details

#to_jsiiObject



926
927
928
929
930
931
932
# File 'bedrock/cfn_prompt.rb', line 926

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