Skip to content
v2.276.0

FunctionSchemaProperty Struct ​

Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.

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 functionSchemaProperty: bedrock.CfnAgent.FunctionSchemaProperty = {
  functions: [{
    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_schema_property = bedrock.CfnAgent.FunctionSchemaProperty(
    functions=[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.*;

FunctionSchemaProperty functionSchemaProperty = FunctionSchemaProperty.builder()
        .functions(List.of(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()))
        .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 functionSchemaProperty = new FunctionSchemaProperty {
    Functions = new [] { 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"

functionSchemaProperty := &FunctionSchemaProperty{
	Functions: []interface{}{
		&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 ​

functionsIResolvable | IResolvable | CfnAgent.FunctionProperty[]functionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FunctionProperty]]]functionsIResolvableFunctionsIResolvableFunctionsinterface{}required#
A list of functions that each define an action in the action group.