Skip to content
v2.278.0

CfnKnowledgeBasePolicyProps Struct ​

Properties for defining a CfnKnowledgeBasePolicy.

Example ​

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
# 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
// 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();
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
};
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 ​

knowledgeBaseIdstringknowledge_base_idstrknowledgeBaseIdStringKnowledgeBaseIdstringKnowledgeBaseId*string required #
The unique identifier of the knowledge base.
policyDocumentanypolicy_documentAnypolicyDocumentObjectPolicyDocumentobjectPolicyDocumentinterface{} required #
The IAM policy document defining access permissions for the knowledge base.