FunctionProperty
Struct External
Defines parameters that the agent needs to invoke from the user to complete the function.
Corresponds to an action in an action group.
This data type is used in the following API operations:
- CreateAgentActionGroup request
- CreateAgentActionGroup response
- UpdateAgentActionGroup request
- UpdateAgentActionGroup response
- GetAgentActionGroup response
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const functionProperty: bedrock.CfnAgent.FunctionProperty = {
name: 'name',
// the properties below are optional
description: 'description',
parameters: {
parametersKey: {
type: 'type',
// the properties below are optional
description: 'description',
required: false,
},
},
requireConfirmation: 'requireConfirmation',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock
function_property = bedrock.CfnAgent.FunctionProperty(
name="name",
# the properties below are optional
description="description",
parameters={
"parameters_key": bedrock.CfnAgent.ParameterDetailProperty(
type="type",
# the properties below are optional
description="description",
required=False
)
},
require_confirmation="requireConfirmation"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
FunctionProperty functionProperty = FunctionProperty.builder()
.name("name")
// the properties below are optional
.description("description")
.parameters(Map.of(
"parametersKey", ParameterDetailProperty.builder()
.type("type")
// the properties below are optional
.description("description")
.required(false)
.build()))
.requireConfirmation("requireConfirmation")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var functionProperty = new FunctionProperty {
Name = "name",
// the properties below are optional
Description = "description",
Parameters = new Dictionary<string, object> {
{ "parametersKey", new ParameterDetailProperty {
Type = "type",
// the properties below are optional
Description = "description",
Required = false
} }
},
RequireConfirmation = "requireConfirmation"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
functionProperty := &FunctionProperty{
Name: jsii.String("name"),
// the properties below are optional
Description: jsii.String("description"),
Parameters: map[string]interface{}{
"parametersKey": &ParameterDetailProperty{
"type": jsii.String("type"),
// the properties below are optional
"description": jsii.String("description"),
"required": jsii.Boolean(false),
},
},
RequireConfirmation: jsii.String("requireConfirmation"),
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description of the function and its purpose.
A name for the function.
parametersoptionalIResolvable | { [key: string]: IResolvable | CfnAgent.ParameterDetailProperty }parametersoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, ParameterDetailProperty]]]parametersoptionalIResolvableParametersoptionalIResolvableParametersoptionalinterface{} #The parameters that the agent elicits from the user to fulfill the function.
requireConfirmationoptionalstringrequire_confirmationoptionalstrrequireConfirmationoptionalStringRequireConfirmationoptionalstringRequireConfirmationoptional*string #Contains information if user confirmation is required to invoke the function.