# CfnKnowledgeBasePolicyProps

Properties for defining a `CfnKnowledgeBasePolicy`.

Used as props by: [CfnKnowledgeBasePolicy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnKnowledgeBasePolicy.html)

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```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';

declare const policyDocument: any;
const cfnKnowledgeBasePolicyProps: bedrock.CfnKnowledgeBasePolicyProps = {
  knowledgeBaseId: 'knowledgeBaseId',
  policyDocument: policyDocument,
};
```

Python:

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

# policy_document: Any

cfn_knowledge_base_policy_props = bedrock.CfnKnowledgeBasePolicyProps(
    knowledge_base_id="knowledgeBaseId",
    policy_document=policy_document
)
```

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

Object policyDocument;

CfnKnowledgeBasePolicyProps cfnKnowledgeBasePolicyProps = CfnKnowledgeBasePolicyProps.builder()
        .knowledgeBaseId("knowledgeBaseId")
        .policyDocument(policyDocument)
        .build();
```

C# / .NET:

```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 policyDocument;

var cfnKnowledgeBasePolicyProps = new CfnKnowledgeBasePolicyProps {
    KnowledgeBaseId = "knowledgeBaseId",
    PolicyDocument = policyDocument
};
```

Golang:

```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"

var policyDocument interface{}

cfnKnowledgeBasePolicyProps := &CfnKnowledgeBasePolicyProps{
	KnowledgeBaseId: jsii.String("knowledgeBaseId"),
	PolicyDocument: policyDocument,
}
```

## Properties

- `knowledgeBaseId`: string (required) — The unique identifier of the knowledge base.

- `policyDocument`: any (required) — The IAM policy document defining access permissions for the knowledge base.
