class FunctionParameter
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Alpha.FunctionParameter |
Go | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#FunctionParameter |
Java | software.amazon.awscdk.services.bedrock.alpha.FunctionParameter |
Python | aws_cdk.aws_bedrock_alpha.FunctionParameter |
TypeScript (source) | @aws-cdk/aws-bedrock-alpha ยป FunctionParameter |
Represents a function parameter 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 functionParameter = new bedrock_alpha.FunctionParameter({
type: bedrock_alpha.ParameterType.STRING,
// the properties below are optional
description: 'description',
required: false,
});
Initializer
new FunctionParameter(props: FunctionParameterProps)
Parameters
- props
FunctionParameter Props
Properties
| Name | Type | Description |
|---|---|---|
| required | boolean | Whether the parameter is required. |
| type | Parameter | The type of the parameter. |
| description? | string | Description of the parameter. |
required
Type:
boolean
Whether the parameter is required.
type
Type:
Parameter
The type of the parameter.
description?
Type:
string
(optional, default: undefined no description will be present)
Description of the parameter.

.NET
Go
Java
Python
TypeScript (