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

Properties for a function in a function schema.

Used as props by: [Function](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.Function.html)

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

## Example

TypeScript:

```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 functionProps: bedrock_alpha.FunctionProps = {
  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,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_alpha as bedrock_alpha

function_props = bedrock_alpha.FunctionProps(
    description="description",
    name="name",

    # the properties below are optional
    parameters={
        "parameters_key": bedrock_alpha.FunctionParameterProps(
            type=bedrock_alpha.ParameterType.STRING,

            # the properties below are optional
            description="description",
            required=False
        )
    },
    require_confirmation=bedrock_alpha.RequireConfirmation.ENABLED
)
```

Java:

```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.alpha.*;

FunctionProps functionProps = FunctionProps.builder()
        .description("description")
        .name("name")

        // the properties below are optional
        .parameters(Map.of(
                "parametersKey", FunctionParameterProps.builder()
                        .type(ParameterType.STRING)

                        // the properties below are optional
                        .description("description")
                        .required(false)
                        .build()))
        .requireConfirmation(RequireConfirmation.ENABLED)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Alpha;

var functionProps = new FunctionProps {
    Description = "description",
    Name = "name",

    // the properties below are optional
    Parameters = new Dictionary<string, FunctionParameterProps> {
        { "parametersKey", new FunctionParameterProps {
            Type = ParameterType.STRING,

            // the properties below are optional
            Description = "description",
            Required = false
        } }
    },
    RequireConfirmation = RequireConfirmation.ENABLED
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockalpha/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/awsbedrockalpha"

functionProps := &FunctionProps{
	Description: jsii.String("description"),
	Name: jsii.String("name"),

	// the properties below are optional
	Parameters: map[string]FunctionParameterProps{
		"parametersKey": &FunctionParameterProps{
			"type": bedrock_alpha.ParameterType_STRING,

			// the properties below are optional
			"description": jsii.String("description"),
			"required": jsii.Boolean(false),
		},
	},
	RequireConfirmation: bedrock_alpha.RequireConfirmation_ENABLED,
}
```

## Properties

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

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

- `parameters`: { [key: string]: [FunctionParameterProps](/cdk/api/v2/docs/@aws-cdk_aws-bedrock-alpha.FunctionParameterProps.html) } = {} — Parameters for the function as a record of parameter name to parameter properties.

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