Class: AWSCDK::Bedrock::CfnAgent::ActionGroupExecutorProperty

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

Overview

Contains details about the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(custom_control: nil, lambda: nil) ⇒ ActionGroupExecutorProperty

Returns a new instance of ActionGroupExecutorProperty.

Parameters:

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

    To return the action group invocation results directly in the InvokeInlineAgent response, specify RETURN_CONTROL .

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

    The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.



923
924
925
926
927
928
# File 'bedrock/cfn_agent.rb', line 923

def initialize(custom_control: nil, lambda: nil)
  @custom_control = custom_control
  Jsii::Type.check_type(@custom_control, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customControl") unless @custom_control.nil?
  @lambda = lambda
  Jsii::Type.check_type(@lambda, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lambda") unless @lambda.nil?
end

Instance Attribute Details

#custom_controlString? (readonly)

To return the action group invocation results directly in the InvokeInlineAgent response, specify RETURN_CONTROL .



934
935
936
# File 'bedrock/cfn_agent.rb', line 934

def custom_control
  @custom_control
end

#lambdaString? (readonly)

The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.



939
940
941
# File 'bedrock/cfn_agent.rb', line 939

def lambda
  @lambda
end

Class Method Details

.jsii_propertiesObject



941
942
943
944
945
946
# File 'bedrock/cfn_agent.rb', line 941

def self.jsii_properties
  {
    :custom_control => "customControl",
    :lambda => "lambda",
  }
end

Instance Method Details

#to_jsiiObject



948
949
950
951
952
953
954
955
# File 'bedrock/cfn_agent.rb', line 948

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