Class: AWSCDK::Bedrock::CfnAgent::ParameterDetailProperty

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

Overview

Contains details about a parameter in a function for an action group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, description: nil, required: nil) ⇒ ParameterDetailProperty

Returns a new instance of ParameterDetailProperty.

Parameters:

  • type (String)

    The data type of the parameter.

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

    A description of the parameter.

  • required (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Whether the parameter is required for the agent to complete the function for action group invocation.



1581
1582
1583
1584
1585
1586
1587
1588
# File 'bedrock/cfn_agent.rb', line 1581

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

Instance Attribute Details

#descriptionString? (readonly)

A description of the parameter.

Helps the foundation model determine how to elicit the parameters from the user.



1601
1602
1603
# File 'bedrock/cfn_agent.rb', line 1601

def description
  @description
end

#requiredBoolean, ... (readonly)

Whether the parameter is required for the agent to complete the function for action group invocation.



1606
1607
1608
# File 'bedrock/cfn_agent.rb', line 1606

def required
  @required
end

#typeString (readonly)

The data type of the parameter.



1594
1595
1596
# File 'bedrock/cfn_agent.rb', line 1594

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1608
1609
1610
1611
1612
1613
1614
# File 'bedrock/cfn_agent.rb', line 1608

def self.jsii_properties
  {
    :type => "type",
    :description => "description",
    :required => "required",
  }
end

Instance Method Details

#to_jsiiObject



1616
1617
1618
1619
1620
1621
1622
1623
1624
# File 'bedrock/cfn_agent.rb', line 1616

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