Class: AWSCDK::Bedrock::CfnFlow::PromptInputVariableProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_flow.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.



2293
2294
2295
2296
# File 'bedrock/cfn_flow.rb', line 2293

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.



2302
2303
2304
# File 'bedrock/cfn_flow.rb', line 2302

def name
  @name
end

Class Method Details

.jsii_propertiesObject



2304
2305
2306
2307
2308
# File 'bedrock/cfn_flow.rb', line 2304

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

Instance Method Details

#to_jsiiObject



2310
2311
2312
2313
2314
2315
2316
# File 'bedrock/cfn_flow.rb', line 2310

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