1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. bedrock
  6. getKnowledgeBasePolicy

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Definition of AWS::Bedrock::KnowledgeBasePolicy Resource Type

    Using getKnowledgeBasePolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getKnowledgeBasePolicy(args: GetKnowledgeBasePolicyArgs, opts?: InvokeOptions): Promise<GetKnowledgeBasePolicyResult>
    function getKnowledgeBasePolicyOutput(args: GetKnowledgeBasePolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetKnowledgeBasePolicyResult>
    def get_knowledge_base_policy(knowledge_base_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetKnowledgeBasePolicyResult
    def get_knowledge_base_policy_output(knowledge_base_id: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetKnowledgeBasePolicyResult]
    func LookupKnowledgeBasePolicy(ctx *Context, args *LookupKnowledgeBasePolicyArgs, opts ...InvokeOption) (*LookupKnowledgeBasePolicyResult, error)
    func LookupKnowledgeBasePolicyOutput(ctx *Context, args *LookupKnowledgeBasePolicyOutputArgs, opts ...InvokeOption) LookupKnowledgeBasePolicyResultOutput

    > Note: This function is named LookupKnowledgeBasePolicy in the Go SDK.

    public static class GetKnowledgeBasePolicy 
    {
        public static Task<GetKnowledgeBasePolicyResult> InvokeAsync(GetKnowledgeBasePolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetKnowledgeBasePolicyResult> Invoke(GetKnowledgeBasePolicyInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetKnowledgeBasePolicyResult> Invoke(GetKnowledgeBasePolicyInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetKnowledgeBasePolicyResult> getKnowledgeBasePolicy(GetKnowledgeBasePolicyArgs args, InvokeOptions options)
    public static Output<GetKnowledgeBasePolicyResult> getKnowledgeBasePolicy(GetKnowledgeBasePolicyArgs args, InvokeOptions options)
    public static Output<GetKnowledgeBasePolicyResult> getKnowledgeBasePolicy(GetKnowledgeBasePolicyArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:bedrock:getKnowledgeBasePolicy
      arguments:
        # arguments dictionary
    data "aws-native_bedrock_get_knowledge_base_policy" "name" {
        # arguments
    }

    The following arguments are supported:

    KnowledgeBaseId string
    The unique identifier of the knowledge base
    KnowledgeBaseId string
    The unique identifier of the knowledge base
    knowledge_base_id string
    The unique identifier of the knowledge base
    knowledgeBaseId String
    The unique identifier of the knowledge base
    knowledgeBaseId string
    The unique identifier of the knowledge base
    knowledge_base_id str
    The unique identifier of the knowledge base
    knowledgeBaseId String
    The unique identifier of the knowledge base

    getKnowledgeBasePolicy Result

    The following output properties are available:

    PolicyDocument object

    The IAM policy document defining access permissions for the knowledge base

    Search the CloudFormation User Guide for AWS::Bedrock::KnowledgeBasePolicy for more information about the expected schema for this property.

    RevisionId string
    The revision identifier for the policy, used for optimistic concurrency control
    PolicyDocument interface{}

    The IAM policy document defining access permissions for the knowledge base

    Search the CloudFormation User Guide for AWS::Bedrock::KnowledgeBasePolicy for more information about the expected schema for this property.

    RevisionId string
    The revision identifier for the policy, used for optimistic concurrency control
    policy_document any

    The IAM policy document defining access permissions for the knowledge base

    Search the CloudFormation User Guide for AWS::Bedrock::KnowledgeBasePolicy for more information about the expected schema for this property.

    revision_id string
    The revision identifier for the policy, used for optimistic concurrency control
    policyDocument Object

    The IAM policy document defining access permissions for the knowledge base

    Search the CloudFormation User Guide for AWS::Bedrock::KnowledgeBasePolicy for more information about the expected schema for this property.

    revisionId String
    The revision identifier for the policy, used for optimistic concurrency control
    policyDocument any

    The IAM policy document defining access permissions for the knowledge base

    Search the CloudFormation User Guide for AWS::Bedrock::KnowledgeBasePolicy for more information about the expected schema for this property.

    revisionId string
    The revision identifier for the policy, used for optimistic concurrency control
    policy_document Any

    The IAM policy document defining access permissions for the knowledge base

    Search the CloudFormation User Guide for AWS::Bedrock::KnowledgeBasePolicy for more information about the expected schema for this property.

    revision_id str
    The revision identifier for the policy, used for optimistic concurrency control
    policyDocument Any

    The IAM policy document defining access permissions for the knowledge base

    Search the CloudFormation User Guide for AWS::Bedrock::KnowledgeBasePolicy for more information about the expected schema for this property.

    revisionId String
    The revision identifier for the policy, used for optimistic concurrency control

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial