Class: AWSCDK::Bedrock::CfnAgent::FunctionSchemaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnAgent::FunctionSchemaProperty
- Defined in:
- bedrock/cfn_agent.rb
Overview
Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
Instance Attribute Summary collapse
-
#functions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Bedrock::CfnAgent::FunctionProperty>
readonly
A list of functions that each define an action in the action group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(functions:) ⇒ FunctionSchemaProperty
constructor
A new instance of FunctionSchemaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(functions:) ⇒ FunctionSchemaProperty
Returns a new instance of FunctionSchemaProperty.
1330 1331 1332 1333 |
# File 'bedrock/cfn_agent.rb', line 1330 def initialize(functions:) @functions = functions Jsii::Type.check_type(@functions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5BZ2VudC5GdW5jdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "functions") end |
Instance Attribute Details
#functions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Bedrock::CfnAgent::FunctionProperty> (readonly)
A list of functions that each define an action in the action group.
1339 1340 1341 |
# File 'bedrock/cfn_agent.rb', line 1339 def functions @functions end |
Class Method Details
.jsii_properties ⇒ Object
1341 1342 1343 1344 1345 |
# File 'bedrock/cfn_agent.rb', line 1341 def self.jsii_properties { :functions => "functions", } end |
Instance Method Details
#to_jsii ⇒ Object
1347 1348 1349 1350 1351 1352 1353 |
# File 'bedrock/cfn_agent.rb', line 1347 def to_jsii result = {} result.merge!({ "functions" => @functions, }) result.compact end |