class Function
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Alpha.Function |
Go | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#Function |
Java | software.amazon.awscdk.services.bedrock.alpha.Function |
Python | aws_cdk.aws_bedrock_alpha.Function |
TypeScript (source) | @aws-cdk/aws-bedrock-alpha ยป Function |
Represents a function in a function schema.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_alpha from '@aws-cdk/aws-bedrock-alpha';
const function_ = new bedrock_alpha.Function({
description: 'description',
name: 'name',
// the properties below are optional
parameters: {
parametersKey: {
type: bedrock_alpha.ParameterType.STRING,
// the properties below are optional
description: 'description',
required: false,
},
},
requireConfirmation: bedrock_alpha.RequireConfirmation.ENABLED,
});
Initializer
new Function(props: FunctionProps)
Parameters
- props
FunctionProps
Properties
| Name | Type | Description |
|---|---|---|
| description | string | Description of the function. |
| name | string | The name of the function. |
| parameters | { [string]: Function } | Parameters for the function. |
| require | Require | Whether to require confirmation before executing the function. |
description
Type:
string
Description of the function.
name
Type:
string
The name of the function.
parameters
Type:
{ [string]: Function }
Parameters for the function.
requireConfirmation
Type:
Require
Whether to require confirmation before executing the function.

.NET
Go
Java
Python
TypeScript (