> **Experimental**
>
> `@aws-cdk/aws-bedrock-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# Function

Represents a function in a function schema.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`bedrock/agents/function-schema.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-bedrock-alpha/bedrock/agents/function-schema.ts#L172)

## Example

```ts
// 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

```ts
new Function(props: FunctionProps)
```

## Properties

- `description`: string (required) — Description of the function.

- `name`: string (required) — The name of the function.

- `parameters`: { [key: string]: [FunctionParameter](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.FunctionParameter.html) } (required) — Parameters for the function.

- `requireConfirmation`: [RequireConfirmation](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.RequireConfirmation.html) (required) — Whether to require confirmation before executing the function.
