Class CfnKnowledgeBasePolicy

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IKnowledgeBasePolicyRef, IEnvironmentAware, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-08-10T14:50:58.018Z") @Stability(Stable) public class CfnKnowledgeBasePolicy extends CfnResource implements IInspectable, IKnowledgeBasePolicyRef
Definition of AWS::Bedrock::KnowledgeBasePolicy Resource Type.

Example:

 // 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;
 CfnKnowledgeBasePolicy cfnKnowledgeBasePolicy = CfnKnowledgeBasePolicy.Builder.create(this, "MyCfnKnowledgeBasePolicy")
         .knowledgeBaseId("knowledgeBaseId")
         .policyDocument(policyDocument)
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnKnowledgeBasePolicy

      protected CfnKnowledgeBasePolicy(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnKnowledgeBasePolicy

      protected CfnKnowledgeBasePolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnKnowledgeBasePolicy

      @Stability(Stable) public CfnKnowledgeBasePolicy(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnKnowledgeBasePolicyProps props)
      Create a new AWS::Bedrock::KnowledgeBasePolicy.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • isCfnKnowledgeBasePolicy

      @Stability(Stable) @NotNull public static Boolean isCfnKnowledgeBasePolicy(@NotNull Object x)
      Checks whether the given object is a CfnKnowledgeBasePolicy.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrRevisionId

      @Stability(Stable) @NotNull public String getAttrRevisionId()
      The revision identifier for the policy, used for optimistic concurrency control.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getKnowledgeBasePolicyRef

      @Stability(Stable) @NotNull public KnowledgeBasePolicyReference getKnowledgeBasePolicyRef()
      A reference to a KnowledgeBasePolicy resource.
      Specified by:
      getKnowledgeBasePolicyRef in interface IKnowledgeBasePolicyRef
    • getKnowledgeBaseId

      @Stability(Stable) @NotNull public String getKnowledgeBaseId()
      The unique identifier of the knowledge base.
    • setKnowledgeBaseId

      @Stability(Stable) public void setKnowledgeBaseId(@NotNull String value)
      The unique identifier of the knowledge base.
    • getPolicyDocument

      @Stability(Stable) @NotNull public Object getPolicyDocument()
      The IAM policy document defining access permissions for the knowledge base.
    • setPolicyDocument

      @Stability(Stable) public void setPolicyDocument(@NotNull Object value)
      The IAM policy document defining access permissions for the knowledge base.