Class: AWSCDK::Bedrock::CfnPromptVersion::PromptInputVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPromptVersion::PromptInputVariableProperty
- Defined in:
- bedrock/cfn_prompt_version.rb
Overview
Contains information about a variable in the prompt.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The name of the variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil) ⇒ PromptInputVariableProperty
constructor
A new instance of PromptInputVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil) ⇒ PromptInputVariableProperty
Returns a new instance of PromptInputVariableProperty.
902 903 904 905 |
# File 'bedrock/cfn_prompt_version.rb', line 902 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
#name ⇒ String? (readonly)
The name of the variable.
911 912 913 |
# File 'bedrock/cfn_prompt_version.rb', line 911 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
913 914 915 916 917 |
# File 'bedrock/cfn_prompt_version.rb', line 913 def self.jsii_properties { :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
919 920 921 922 923 924 925 |
# File 'bedrock/cfn_prompt_version.rb', line 919 def to_jsii result = {} result.merge!({ "name" => @name, }) result.compact end |