Class: AWSCDK::Bedrock::CfnFlowVersion::PromptInputVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnFlowVersion::PromptInputVariableProperty
- Defined in:
- bedrock/cfn_flow_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.
2114 2115 2116 2117 |
# File 'bedrock/cfn_flow_version.rb', line 2114 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.
2123 2124 2125 |
# File 'bedrock/cfn_flow_version.rb', line 2123 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
2125 2126 2127 2128 2129 |
# File 'bedrock/cfn_flow_version.rb', line 2125 def self.jsii_properties { :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
2131 2132 2133 2134 2135 2136 2137 |
# File 'bedrock/cfn_flow_version.rb', line 2131 def to_jsii result = {} result.merge!({ "name" => @name, }) result.compact end |