Try AWS Native preview for resources not in the classic version.
aws.bedrock.AgentKnowledgeBase
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Resource for managing an AWS Agents for Amazon Bedrock Knowledge Base.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.bedrock.AgentKnowledgeBase("example", {
name: "example",
roleArn: exampleAwsIamRole.arn,
knowledgeBaseConfiguration: {
vectorKnowledgeBaseConfiguration: {
embeddingModelArn: "arn:aws:bedrock:us-west-2::foundation-model/amazon.titan-embed-text-v1",
},
type: "VECTOR",
},
storageConfiguration: {
type: "OPENSEARCH_SERVERLESS",
opensearchServerlessConfiguration: {
collectionArn: "arn:aws:aoss:us-west-2:123456789012:collection/142bezjddq707i5stcrf",
vectorIndexName: "bedrock-knowledge-base-default-index",
fieldMapping: {
vectorField: "bedrock-knowledge-base-default-vector",
textField: "AMAZON_BEDROCK_TEXT_CHUNK",
metadataField: "AMAZON_BEDROCK_METADATA",
},
},
},
});
import pulumi
import pulumi_aws as aws
example = aws.bedrock.AgentKnowledgeBase("example",
name="example",
role_arn=example_aws_iam_role["arn"],
knowledge_base_configuration={
"vectorKnowledgeBaseConfiguration": {
"embeddingModelArn": "arn:aws:bedrock:us-west-2::foundation-model/amazon.titan-embed-text-v1",
},
"type": "VECTOR",
},
storage_configuration={
"type": "OPENSEARCH_SERVERLESS",
"opensearchServerlessConfiguration": {
"collectionArn": "arn:aws:aoss:us-west-2:123456789012:collection/142bezjddq707i5stcrf",
"vectorIndexName": "bedrock-knowledge-base-default-index",
"fieldMapping": {
"vectorField": "bedrock-knowledge-base-default-vector",
"textField": "AMAZON_BEDROCK_TEXT_CHUNK",
"metadataField": "AMAZON_BEDROCK_METADATA",
},
},
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentKnowledgeBase(ctx, "example", &bedrock.AgentKnowledgeBaseArgs{
Name: pulumi.String("example"),
RoleArn: pulumi.Any(exampleAwsIamRole.Arn),
KnowledgeBaseConfiguration: &bedrock.AgentKnowledgeBaseKnowledgeBaseConfigurationArgs{
VectorKnowledgeBaseConfiguration: &bedrock.AgentKnowledgeBaseKnowledgeBaseConfigurationVectorKnowledgeBaseConfigurationArgs{
EmbeddingModelArn: pulumi.String("arn:aws:bedrock:us-west-2::foundation-model/amazon.titan-embed-text-v1"),
},
Type: pulumi.String("VECTOR"),
},
StorageConfiguration: &bedrock.AgentKnowledgeBaseStorageConfigurationArgs{
Type: pulumi.String("OPENSEARCH_SERVERLESS"),
OpensearchServerlessConfiguration: &bedrock.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs{
CollectionArn: pulumi.String("arn:aws:aoss:us-west-2:123456789012:collection/142bezjddq707i5stcrf"),
VectorIndexName: pulumi.String("bedrock-knowledge-base-default-index"),
FieldMapping: &bedrock.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgs{
VectorField: pulumi.String("bedrock-knowledge-base-default-vector"),
TextField: pulumi.String("AMAZON_BEDROCK_TEXT_CHUNK"),
MetadataField: pulumi.String("AMAZON_BEDROCK_METADATA"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Bedrock.AgentKnowledgeBase("example", new()
{
Name = "example",
RoleArn = exampleAwsIamRole.Arn,
KnowledgeBaseConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseKnowledgeBaseConfigurationArgs
{
VectorKnowledgeBaseConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseKnowledgeBaseConfigurationVectorKnowledgeBaseConfigurationArgs
{
EmbeddingModelArn = "arn:aws:bedrock:us-west-2::foundation-model/amazon.titan-embed-text-v1",
},
Type = "VECTOR",
},
StorageConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationArgs
{
Type = "OPENSEARCH_SERVERLESS",
OpensearchServerlessConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs
{
CollectionArn = "arn:aws:aoss:us-west-2:123456789012:collection/142bezjddq707i5stcrf",
VectorIndexName = "bedrock-knowledge-base-default-index",
FieldMapping = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgs
{
VectorField = "bedrock-knowledge-base-default-vector",
TextField = "AMAZON_BEDROCK_TEXT_CHUNK",
MetadataField = "AMAZON_BEDROCK_METADATA",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentKnowledgeBase;
import com.pulumi.aws.bedrock.AgentKnowledgeBaseArgs;
import com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseKnowledgeBaseConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseKnowledgeBaseConfigurationVectorKnowledgeBaseConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AgentKnowledgeBase("example", AgentKnowledgeBaseArgs.builder()
.name("example")
.roleArn(exampleAwsIamRole.arn())
.knowledgeBaseConfiguration(AgentKnowledgeBaseKnowledgeBaseConfigurationArgs.builder()
.vectorKnowledgeBaseConfiguration(AgentKnowledgeBaseKnowledgeBaseConfigurationVectorKnowledgeBaseConfigurationArgs.builder()
.embeddingModelArn("arn:aws:bedrock:us-west-2::foundation-model/amazon.titan-embed-text-v1")
.build())
.type("VECTOR")
.build())
.storageConfiguration(AgentKnowledgeBaseStorageConfigurationArgs.builder()
.type("OPENSEARCH_SERVERLESS")
.opensearchServerlessConfiguration(AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs.builder()
.collectionArn("arn:aws:aoss:us-west-2:123456789012:collection/142bezjddq707i5stcrf")
.vectorIndexName("bedrock-knowledge-base-default-index")
.fieldMapping(AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgs.builder()
.vectorField("bedrock-knowledge-base-default-vector")
.textField("AMAZON_BEDROCK_TEXT_CHUNK")
.metadataField("AMAZON_BEDROCK_METADATA")
.build())
.build())
.build())
.build());
}
}
resources:
example:
type: aws:bedrock:AgentKnowledgeBase
properties:
name: example
roleArn: ${exampleAwsIamRole.arn}
knowledgeBaseConfiguration:
vectorKnowledgeBaseConfiguration:
embeddingModelArn: arn:aws:bedrock:us-west-2::foundation-model/amazon.titan-embed-text-v1
type: VECTOR
storageConfiguration:
type: OPENSEARCH_SERVERLESS
opensearchServerlessConfiguration:
collectionArn: arn:aws:aoss:us-west-2:123456789012:collection/142bezjddq707i5stcrf
vectorIndexName: bedrock-knowledge-base-default-index
fieldMapping:
vectorField: bedrock-knowledge-base-default-vector
textField: AMAZON_BEDROCK_TEXT_CHUNK
metadataField: AMAZON_BEDROCK_METADATA
Create AgentKnowledgeBase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AgentKnowledgeBase(name: string, args: AgentKnowledgeBaseArgs, opts?: CustomResourceOptions);
@overload
def AgentKnowledgeBase(resource_name: str,
args: AgentKnowledgeBaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AgentKnowledgeBase(resource_name: str,
opts: Optional[ResourceOptions] = None,
role_arn: Optional[str] = None,
description: Optional[str] = None,
knowledge_base_configuration: Optional[AgentKnowledgeBaseKnowledgeBaseConfigurationArgs] = None,
name: Optional[str] = None,
storage_configuration: Optional[AgentKnowledgeBaseStorageConfigurationArgs] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[AgentKnowledgeBaseTimeoutsArgs] = None)
func NewAgentKnowledgeBase(ctx *Context, name string, args AgentKnowledgeBaseArgs, opts ...ResourceOption) (*AgentKnowledgeBase, error)
public AgentKnowledgeBase(string name, AgentKnowledgeBaseArgs args, CustomResourceOptions? opts = null)
public AgentKnowledgeBase(String name, AgentKnowledgeBaseArgs args)
public AgentKnowledgeBase(String name, AgentKnowledgeBaseArgs args, CustomResourceOptions options)
type: aws:bedrock:AgentKnowledgeBase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AgentKnowledgeBaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AgentKnowledgeBaseArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AgentKnowledgeBaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgentKnowledgeBaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AgentKnowledgeBaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var agentKnowledgeBaseResource = new Aws.Bedrock.AgentKnowledgeBase("agentKnowledgeBaseResource", new()
{
RoleArn = "string",
Description = "string",
KnowledgeBaseConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseKnowledgeBaseConfigurationArgs
{
Type = "string",
VectorKnowledgeBaseConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseKnowledgeBaseConfigurationVectorKnowledgeBaseConfigurationArgs
{
EmbeddingModelArn = "string",
},
},
Name = "string",
StorageConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationArgs
{
Type = "string",
OpensearchServerlessConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs
{
CollectionArn = "string",
VectorIndexName = "string",
FieldMapping = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgs
{
MetadataField = "string",
TextField = "string",
VectorField = "string",
},
},
PineconeConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs
{
ConnectionString = "string",
CredentialsSecretArn = "string",
FieldMapping = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationPineconeConfigurationFieldMappingArgs
{
MetadataField = "string",
TextField = "string",
},
Namespace = "string",
},
RdsConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs
{
CredentialsSecretArn = "string",
DatabaseName = "string",
ResourceArn = "string",
TableName = "string",
FieldMapping = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationRdsConfigurationFieldMappingArgs
{
MetadataField = "string",
PrimaryKeyField = "string",
TextField = "string",
VectorField = "string",
},
},
RedisEnterpriseCloudConfiguration = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationRedisEnterpriseCloudConfigurationArgs
{
CredentialsSecretArn = "string",
Endpoint = "string",
VectorIndexName = "string",
FieldMapping = new Aws.Bedrock.Inputs.AgentKnowledgeBaseStorageConfigurationRedisEnterpriseCloudConfigurationFieldMappingArgs
{
MetadataField = "string",
TextField = "string",
VectorField = "string",
},
},
},
Tags =
{
{ "string", "string" },
},
Timeouts = new Aws.Bedrock.Inputs.AgentKnowledgeBaseTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := bedrock.NewAgentKnowledgeBase(ctx, "agentKnowledgeBaseResource", &bedrock.AgentKnowledgeBaseArgs{
RoleArn: pulumi.String("string"),
Description: pulumi.String("string"),
KnowledgeBaseConfiguration: &bedrock.AgentKnowledgeBaseKnowledgeBaseConfigurationArgs{
Type: pulumi.String("string"),
VectorKnowledgeBaseConfiguration: &bedrock.AgentKnowledgeBaseKnowledgeBaseConfigurationVectorKnowledgeBaseConfigurationArgs{
EmbeddingModelArn: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
StorageConfiguration: &bedrock.AgentKnowledgeBaseStorageConfigurationArgs{
Type: pulumi.String("string"),
OpensearchServerlessConfiguration: &bedrock.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs{
CollectionArn: pulumi.String("string"),
VectorIndexName: pulumi.String("string"),
FieldMapping: &bedrock.AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgs{
MetadataField: pulumi.String("string"),
TextField: pulumi.String("string"),
VectorField: pulumi.String("string"),
},
},
PineconeConfiguration: &bedrock.AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs{
ConnectionString: pulumi.String("string"),
CredentialsSecretArn: pulumi.String("string"),
FieldMapping: &bedrock.AgentKnowledgeBaseStorageConfigurationPineconeConfigurationFieldMappingArgs{
MetadataField: pulumi.String("string"),
TextField: pulumi.String("string"),
},
Namespace: pulumi.String("string"),
},
RdsConfiguration: &bedrock.AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs{
CredentialsSecretArn: pulumi.String("string"),
DatabaseName: pulumi.String("string"),
ResourceArn: pulumi.String("string"),
TableName: pulumi.String("string"),
FieldMapping: &bedrock.AgentKnowledgeBaseStorageConfigurationRdsConfigurationFieldMappingArgs{
MetadataField: pulumi.String("string"),
PrimaryKeyField: pulumi.String("string"),
TextField: pulumi.String("string"),
VectorField: pulumi.String("string"),
},
},
RedisEnterpriseCloudConfiguration: &bedrock.AgentKnowledgeBaseStorageConfigurationRedisEnterpriseCloudConfigurationArgs{
CredentialsSecretArn: pulumi.String("string"),
Endpoint: pulumi.String("string"),
VectorIndexName: pulumi.String("string"),
FieldMapping: &bedrock.AgentKnowledgeBaseStorageConfigurationRedisEnterpriseCloudConfigurationFieldMappingArgs{
MetadataField: pulumi.String("string"),
TextField: pulumi.String("string"),
VectorField: pulumi.String("string"),
},
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &bedrock.AgentKnowledgeBaseTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var agentKnowledgeBaseResource = new AgentKnowledgeBase("agentKnowledgeBaseResource", AgentKnowledgeBaseArgs.builder()
.roleArn("string")
.description("string")
.knowledgeBaseConfiguration(AgentKnowledgeBaseKnowledgeBaseConfigurationArgs.builder()
.type("string")
.vectorKnowledgeBaseConfiguration(AgentKnowledgeBaseKnowledgeBaseConfigurationVectorKnowledgeBaseConfigurationArgs.builder()
.embeddingModelArn("string")
.build())
.build())
.name("string")
.storageConfiguration(AgentKnowledgeBaseStorageConfigurationArgs.builder()
.type("string")
.opensearchServerlessConfiguration(AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs.builder()
.collectionArn("string")
.vectorIndexName("string")
.fieldMapping(AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgs.builder()
.metadataField("string")
.textField("string")
.vectorField("string")
.build())
.build())
.pineconeConfiguration(AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs.builder()
.connectionString("string")
.credentialsSecretArn("string")
.fieldMapping(AgentKnowledgeBaseStorageConfigurationPineconeConfigurationFieldMappingArgs.builder()
.metadataField("string")
.textField("string")
.build())
.namespace("string")
.build())
.rdsConfiguration(AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs.builder()
.credentialsSecretArn("string")
.databaseName("string")
.resourceArn("string")
.tableName("string")
.fieldMapping(AgentKnowledgeBaseStorageConfigurationRdsConfigurationFieldMappingArgs.builder()
.metadataField("string")
.primaryKeyField("string")
.textField("string")
.vectorField("string")
.build())
.build())
.redisEnterpriseCloudConfiguration(AgentKnowledgeBaseStorageConfigurationRedisEnterpriseCloudConfigurationArgs.builder()
.credentialsSecretArn("string")
.endpoint("string")
.vectorIndexName("string")
.fieldMapping(AgentKnowledgeBaseStorageConfigurationRedisEnterpriseCloudConfigurationFieldMappingArgs.builder()
.metadataField("string")
.textField("string")
.vectorField("string")
.build())
.build())
.build())
.tags(Map.of("string", "string"))
.timeouts(AgentKnowledgeBaseTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
agent_knowledge_base_resource = aws.bedrock.AgentKnowledgeBase("agentKnowledgeBaseResource",
role_arn="string",
description="string",
knowledge_base_configuration={
"type": "string",
"vectorKnowledgeBaseConfiguration": {
"embeddingModelArn": "string",
},
},
name="string",
storage_configuration={
"type": "string",
"opensearchServerlessConfiguration": {
"collectionArn": "string",
"vectorIndexName": "string",
"fieldMapping": {
"metadataField": "string",
"textField": "string",
"vectorField": "string",
},
},
"pineconeConfiguration": {
"connectionString": "string",
"credentialsSecretArn": "string",
"fieldMapping": {
"metadataField": "string",
"textField": "string",
},
"namespace": "string",
},
"rdsConfiguration": {
"credentialsSecretArn": "string",
"databaseName": "string",
"resourceArn": "string",
"tableName": "string",
"fieldMapping": {
"metadataField": "string",
"primaryKeyField": "string",
"textField": "string",
"vectorField": "string",
},
},
"redisEnterpriseCloudConfiguration": {
"credentialsSecretArn": "string",
"endpoint": "string",
"vectorIndexName": "string",
"fieldMapping": {
"metadataField": "string",
"textField": "string",
"vectorField": "string",
},
},
},
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const agentKnowledgeBaseResource = new aws.bedrock.AgentKnowledgeBase("agentKnowledgeBaseResource", {
roleArn: "string",
description: "string",
knowledgeBaseConfiguration: {
type: "string",
vectorKnowledgeBaseConfiguration: {
embeddingModelArn: "string",
},
},
name: "string",
storageConfiguration: {
type: "string",
opensearchServerlessConfiguration: {
collectionArn: "string",
vectorIndexName: "string",
fieldMapping: {
metadataField: "string",
textField: "string",
vectorField: "string",
},
},
pineconeConfiguration: {
connectionString: "string",
credentialsSecretArn: "string",
fieldMapping: {
metadataField: "string",
textField: "string",
},
namespace: "string",
},
rdsConfiguration: {
credentialsSecretArn: "string",
databaseName: "string",
resourceArn: "string",
tableName: "string",
fieldMapping: {
metadataField: "string",
primaryKeyField: "string",
textField: "string",
vectorField: "string",
},
},
redisEnterpriseCloudConfiguration: {
credentialsSecretArn: "string",
endpoint: "string",
vectorIndexName: "string",
fieldMapping: {
metadataField: "string",
textField: "string",
vectorField: "string",
},
},
},
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: aws:bedrock:AgentKnowledgeBase
properties:
description: string
knowledgeBaseConfiguration:
type: string
vectorKnowledgeBaseConfiguration:
embeddingModelArn: string
name: string
roleArn: string
storageConfiguration:
opensearchServerlessConfiguration:
collectionArn: string
fieldMapping:
metadataField: string
textField: string
vectorField: string
vectorIndexName: string
pineconeConfiguration:
connectionString: string
credentialsSecretArn: string
fieldMapping:
metadataField: string
textField: string
namespace: string
rdsConfiguration:
credentialsSecretArn: string
databaseName: string
fieldMapping:
metadataField: string
primaryKeyField: string
textField: string
vectorField: string
resourceArn: string
tableName: string
redisEnterpriseCloudConfiguration:
credentialsSecretArn: string
endpoint: string
fieldMapping:
metadataField: string
textField: string
vectorField: string
vectorIndexName: string
type: string
tags:
string: string
timeouts:
create: string
delete: string
update: string
AgentKnowledgeBase Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AgentKnowledgeBase resource accepts the following input properties:
- Role
Arn string - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- Description string
- Description of the knowledge base.
- Knowledge
Base AgentConfiguration Knowledge Base Knowledge Base Configuration - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - Name string
- Name of the knowledge base.
- Storage
Configuration AgentKnowledge Base Storage Configuration Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- Dictionary<string, string>
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Agent
Knowledge Base Timeouts
- Role
Arn string - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- Description string
- Description of the knowledge base.
- Knowledge
Base AgentConfiguration Knowledge Base Knowledge Base Configuration Args - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - Name string
- Name of the knowledge base.
- Storage
Configuration AgentKnowledge Base Storage Configuration Args Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- map[string]string
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Agent
Knowledge Base Timeouts Args
- role
Arn String - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- description String
- Description of the knowledge base.
- knowledge
Base AgentConfiguration Knowledge Base Knowledge Base Configuration - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - name String
- Name of the knowledge base.
- storage
Configuration AgentKnowledge Base Storage Configuration Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- Map<String,String>
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agent
Knowledge Base Timeouts
- role
Arn string - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- description string
- Description of the knowledge base.
- knowledge
Base AgentConfiguration Knowledge Base Knowledge Base Configuration - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - name string
- Name of the knowledge base.
- storage
Configuration AgentKnowledge Base Storage Configuration Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- {[key: string]: string}
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agent
Knowledge Base Timeouts
- role_
arn str - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- description str
- Description of the knowledge base.
- knowledge_
base_ Agentconfiguration Knowledge Base Knowledge Base Configuration Args - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - name str
- Name of the knowledge base.
- storage_
configuration AgentKnowledge Base Storage Configuration Args Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- Mapping[str, str]
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agent
Knowledge Base Timeouts Args
- role
Arn String - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- description String
- Description of the knowledge base.
- knowledge
Base Property MapConfiguration - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - name String
- Name of the knowledge base.
- storage
Configuration Property Map Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- Map<String>
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AgentKnowledgeBase resource produces the following output properties:
- Arn string
- ARN of the knowledge base.
- Created
At string - Time at which the knowledge base was created.
- Failure
Reasons List<string> - Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Updated
At string - Time at which the knowledge base was last updated.
- Arn string
- ARN of the knowledge base.
- Created
At string - Time at which the knowledge base was created.
- Failure
Reasons []string - Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Updated
At string - Time at which the knowledge base was last updated.
- arn String
- ARN of the knowledge base.
- created
At String - Time at which the knowledge base was created.
- failure
Reasons List<String> - id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - updated
At String - Time at which the knowledge base was last updated.
- arn string
- ARN of the knowledge base.
- created
At string - Time at which the knowledge base was created.
- failure
Reasons string[] - id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - updated
At string - Time at which the knowledge base was last updated.
- arn str
- ARN of the knowledge base.
- created_
at str - Time at which the knowledge base was created.
- failure_
reasons Sequence[str] - id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - updated_
at str - Time at which the knowledge base was last updated.
- arn String
- ARN of the knowledge base.
- created
At String - Time at which the knowledge base was created.
- failure
Reasons List<String> - id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - updated
At String - Time at which the knowledge base was last updated.
Look up Existing AgentKnowledgeBase Resource
Get an existing AgentKnowledgeBase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AgentKnowledgeBaseState, opts?: CustomResourceOptions): AgentKnowledgeBase
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
failure_reasons: Optional[Sequence[str]] = None,
knowledge_base_configuration: Optional[AgentKnowledgeBaseKnowledgeBaseConfigurationArgs] = None,
name: Optional[str] = None,
role_arn: Optional[str] = None,
storage_configuration: Optional[AgentKnowledgeBaseStorageConfigurationArgs] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
timeouts: Optional[AgentKnowledgeBaseTimeoutsArgs] = None,
updated_at: Optional[str] = None) -> AgentKnowledgeBase
func GetAgentKnowledgeBase(ctx *Context, name string, id IDInput, state *AgentKnowledgeBaseState, opts ...ResourceOption) (*AgentKnowledgeBase, error)
public static AgentKnowledgeBase Get(string name, Input<string> id, AgentKnowledgeBaseState? state, CustomResourceOptions? opts = null)
public static AgentKnowledgeBase get(String name, Output<String> id, AgentKnowledgeBaseState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the knowledge base.
- Created
At string - Time at which the knowledge base was created.
- Description string
- Description of the knowledge base.
- Failure
Reasons List<string> - Knowledge
Base AgentConfiguration Knowledge Base Knowledge Base Configuration - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - Name string
- Name of the knowledge base.
- Role
Arn string - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- Storage
Configuration AgentKnowledge Base Storage Configuration Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- Dictionary<string, string>
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Timeouts
Agent
Knowledge Base Timeouts - Updated
At string - Time at which the knowledge base was last updated.
- Arn string
- ARN of the knowledge base.
- Created
At string - Time at which the knowledge base was created.
- Description string
- Description of the knowledge base.
- Failure
Reasons []string - Knowledge
Base AgentConfiguration Knowledge Base Knowledge Base Configuration Args - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - Name string
- Name of the knowledge base.
- Role
Arn string - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- Storage
Configuration AgentKnowledge Base Storage Configuration Args Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- map[string]string
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Timeouts
Agent
Knowledge Base Timeouts Args - Updated
At string - Time at which the knowledge base was last updated.
- arn String
- ARN of the knowledge base.
- created
At String - Time at which the knowledge base was created.
- description String
- Description of the knowledge base.
- failure
Reasons List<String> - knowledge
Base AgentConfiguration Knowledge Base Knowledge Base Configuration - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - name String
- Name of the knowledge base.
- role
Arn String - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- storage
Configuration AgentKnowledge Base Storage Configuration Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- Map<String,String>
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - timeouts
Agent
Knowledge Base Timeouts - updated
At String - Time at which the knowledge base was last updated.
- arn string
- ARN of the knowledge base.
- created
At string - Time at which the knowledge base was created.
- description string
- Description of the knowledge base.
- failure
Reasons string[] - knowledge
Base AgentConfiguration Knowledge Base Knowledge Base Configuration - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - name string
- Name of the knowledge base.
- role
Arn string - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- storage
Configuration AgentKnowledge Base Storage Configuration Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- {[key: string]: string}
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - timeouts
Agent
Knowledge Base Timeouts - updated
At string - Time at which the knowledge base was last updated.
- arn str
- ARN of the knowledge base.
- created_
at str - Time at which the knowledge base was created.
- description str
- Description of the knowledge base.
- failure_
reasons Sequence[str] - knowledge_
base_ Agentconfiguration Knowledge Base Knowledge Base Configuration Args - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - name str
- Name of the knowledge base.
- role_
arn str - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- storage_
configuration AgentKnowledge Base Storage Configuration Args Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- Mapping[str, str]
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - timeouts
Agent
Knowledge Base Timeouts Args - updated_
at str - Time at which the knowledge base was last updated.
- arn String
- ARN of the knowledge base.
- created
At String - Time at which the knowledge base was created.
- description String
- Description of the knowledge base.
- failure
Reasons List<String> - knowledge
Base Property MapConfiguration - Details about the embeddings configuration of the knowledge base. See
knowledge_base_configuration
block for details. - name String
- Name of the knowledge base.
- role
Arn String - ARN of the IAM role with permissions to invoke API operations on the knowledge base.
- storage
Configuration Property Map Details about the storage configuration of the knowledge base. See
storage_configuration
block for details.The following arguments are optional:
- Map<String>
- Map of tags assigned to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - timeouts Property Map
- updated
At String - Time at which the knowledge base was last updated.
Supporting Types
AgentKnowledgeBaseKnowledgeBaseConfiguration, AgentKnowledgeBaseKnowledgeBaseConfigurationArgs
- Type string
- Type of data that the data source is converted into for the knowledge base. Valid Values:
VECTOR
. - Vector
Knowledge AgentBase Configuration Knowledge Base Knowledge Base Configuration Vector Knowledge Base Configuration - Details about the embeddings model that'sused to convert the data source. See
vector_knowledge_base_configuration
block for details.
- Type string
- Type of data that the data source is converted into for the knowledge base. Valid Values:
VECTOR
. - Vector
Knowledge AgentBase Configuration Knowledge Base Knowledge Base Configuration Vector Knowledge Base Configuration - Details about the embeddings model that'sused to convert the data source. See
vector_knowledge_base_configuration
block for details.
- type String
- Type of data that the data source is converted into for the knowledge base. Valid Values:
VECTOR
. - vector
Knowledge AgentBase Configuration Knowledge Base Knowledge Base Configuration Vector Knowledge Base Configuration - Details about the embeddings model that'sused to convert the data source. See
vector_knowledge_base_configuration
block for details.
- type string
- Type of data that the data source is converted into for the knowledge base. Valid Values:
VECTOR
. - vector
Knowledge AgentBase Configuration Knowledge Base Knowledge Base Configuration Vector Knowledge Base Configuration - Details about the embeddings model that'sused to convert the data source. See
vector_knowledge_base_configuration
block for details.
- type str
- Type of data that the data source is converted into for the knowledge base. Valid Values:
VECTOR
. - vector_
knowledge_ Agentbase_ configuration Knowledge Base Knowledge Base Configuration Vector Knowledge Base Configuration - Details about the embeddings model that'sused to convert the data source. See
vector_knowledge_base_configuration
block for details.
- type String
- Type of data that the data source is converted into for the knowledge base. Valid Values:
VECTOR
. - vector
Knowledge Property MapBase Configuration - Details about the embeddings model that'sused to convert the data source. See
vector_knowledge_base_configuration
block for details.
AgentKnowledgeBaseKnowledgeBaseConfigurationVectorKnowledgeBaseConfiguration, AgentKnowledgeBaseKnowledgeBaseConfigurationVectorKnowledgeBaseConfigurationArgs
- Embedding
Model stringArn - ARN of the model used to create vector embeddings for the knowledge base.
- Embedding
Model stringArn - ARN of the model used to create vector embeddings for the knowledge base.
- embedding
Model StringArn - ARN of the model used to create vector embeddings for the knowledge base.
- embedding
Model stringArn - ARN of the model used to create vector embeddings for the knowledge base.
- embedding_
model_ strarn - ARN of the model used to create vector embeddings for the knowledge base.
- embedding
Model StringArn - ARN of the model used to create vector embeddings for the knowledge base.
AgentKnowledgeBaseStorageConfiguration, AgentKnowledgeBaseStorageConfigurationArgs
- Type string
- Vector store service in which the knowledge base is stored. Valid Values:
OPENSEARCH_SERVERLESS
,PINECONE
,REDIS_ENTERPRISE_CLOUD
,RDS
. - Opensearch
Serverless AgentConfiguration Knowledge Base Storage Configuration Opensearch Serverless Configuration - The storage configuration of the knowledge base in Amazon OpenSearch Service. See
opensearch_serverless_configuration
block for details. - Pinecone
Configuration AgentKnowledge Base Storage Configuration Pinecone Configuration - The storage configuration of the knowledge base in Pinecone. See
pinecone_configuration
block for details. - Rds
Configuration AgentKnowledge Base Storage Configuration Rds Configuration - Details about the storage configuration of the knowledge base in Amazon RDS. For more information, see Create a vector index in Amazon RDS. See
rds_configuration
block for details. - Redis
Enterprise AgentCloud Configuration Knowledge Base Storage Configuration Redis Enterprise Cloud Configuration - The storage configuration of the knowledge base in Redis Enterprise Cloud. See
redis_enterprise_cloud_configuration
block for details.
- Type string
- Vector store service in which the knowledge base is stored. Valid Values:
OPENSEARCH_SERVERLESS
,PINECONE
,REDIS_ENTERPRISE_CLOUD
,RDS
. - Opensearch
Serverless AgentConfiguration Knowledge Base Storage Configuration Opensearch Serverless Configuration - The storage configuration of the knowledge base in Amazon OpenSearch Service. See
opensearch_serverless_configuration
block for details. - Pinecone
Configuration AgentKnowledge Base Storage Configuration Pinecone Configuration - The storage configuration of the knowledge base in Pinecone. See
pinecone_configuration
block for details. - Rds
Configuration AgentKnowledge Base Storage Configuration Rds Configuration - Details about the storage configuration of the knowledge base in Amazon RDS. For more information, see Create a vector index in Amazon RDS. See
rds_configuration
block for details. - Redis
Enterprise AgentCloud Configuration Knowledge Base Storage Configuration Redis Enterprise Cloud Configuration - The storage configuration of the knowledge base in Redis Enterprise Cloud. See
redis_enterprise_cloud_configuration
block for details.
- type String
- Vector store service in which the knowledge base is stored. Valid Values:
OPENSEARCH_SERVERLESS
,PINECONE
,REDIS_ENTERPRISE_CLOUD
,RDS
. - opensearch
Serverless AgentConfiguration Knowledge Base Storage Configuration Opensearch Serverless Configuration - The storage configuration of the knowledge base in Amazon OpenSearch Service. See
opensearch_serverless_configuration
block for details. - pinecone
Configuration AgentKnowledge Base Storage Configuration Pinecone Configuration - The storage configuration of the knowledge base in Pinecone. See
pinecone_configuration
block for details. - rds
Configuration AgentKnowledge Base Storage Configuration Rds Configuration - Details about the storage configuration of the knowledge base in Amazon RDS. For more information, see Create a vector index in Amazon RDS. See
rds_configuration
block for details. - redis
Enterprise AgentCloud Configuration Knowledge Base Storage Configuration Redis Enterprise Cloud Configuration - The storage configuration of the knowledge base in Redis Enterprise Cloud. See
redis_enterprise_cloud_configuration
block for details.
- type string
- Vector store service in which the knowledge base is stored. Valid Values:
OPENSEARCH_SERVERLESS
,PINECONE
,REDIS_ENTERPRISE_CLOUD
,RDS
. - opensearch
Serverless AgentConfiguration Knowledge Base Storage Configuration Opensearch Serverless Configuration - The storage configuration of the knowledge base in Amazon OpenSearch Service. See
opensearch_serverless_configuration
block for details. - pinecone
Configuration AgentKnowledge Base Storage Configuration Pinecone Configuration - The storage configuration of the knowledge base in Pinecone. See
pinecone_configuration
block for details. - rds
Configuration AgentKnowledge Base Storage Configuration Rds Configuration - Details about the storage configuration of the knowledge base in Amazon RDS. For more information, see Create a vector index in Amazon RDS. See
rds_configuration
block for details. - redis
Enterprise AgentCloud Configuration Knowledge Base Storage Configuration Redis Enterprise Cloud Configuration - The storage configuration of the knowledge base in Redis Enterprise Cloud. See
redis_enterprise_cloud_configuration
block for details.
- type str
- Vector store service in which the knowledge base is stored. Valid Values:
OPENSEARCH_SERVERLESS
,PINECONE
,REDIS_ENTERPRISE_CLOUD
,RDS
. - opensearch_
serverless_ Agentconfiguration Knowledge Base Storage Configuration Opensearch Serverless Configuration - The storage configuration of the knowledge base in Amazon OpenSearch Service. See
opensearch_serverless_configuration
block for details. - pinecone_
configuration AgentKnowledge Base Storage Configuration Pinecone Configuration - The storage configuration of the knowledge base in Pinecone. See
pinecone_configuration
block for details. - rds_
configuration AgentKnowledge Base Storage Configuration Rds Configuration - Details about the storage configuration of the knowledge base in Amazon RDS. For more information, see Create a vector index in Amazon RDS. See
rds_configuration
block for details. - redis_
enterprise_ Agentcloud_ configuration Knowledge Base Storage Configuration Redis Enterprise Cloud Configuration - The storage configuration of the knowledge base in Redis Enterprise Cloud. See
redis_enterprise_cloud_configuration
block for details.
- type String
- Vector store service in which the knowledge base is stored. Valid Values:
OPENSEARCH_SERVERLESS
,PINECONE
,REDIS_ENTERPRISE_CLOUD
,RDS
. - opensearch
Serverless Property MapConfiguration - The storage configuration of the knowledge base in Amazon OpenSearch Service. See
opensearch_serverless_configuration
block for details. - pinecone
Configuration Property Map - The storage configuration of the knowledge base in Pinecone. See
pinecone_configuration
block for details. - rds
Configuration Property Map - Details about the storage configuration of the knowledge base in Amazon RDS. For more information, see Create a vector index in Amazon RDS. See
rds_configuration
block for details. - redis
Enterprise Property MapCloud Configuration - The storage configuration of the knowledge base in Redis Enterprise Cloud. See
redis_enterprise_cloud_configuration
block for details.
AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfiguration, AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationArgs
- Collection
Arn string - ARN of the OpenSearch Service vector store.
- Vector
Index stringName - Name of the vector store.
- Field
Mapping AgentKnowledge Base Storage Configuration Opensearch Serverless Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- Collection
Arn string - ARN of the OpenSearch Service vector store.
- Vector
Index stringName - Name of the vector store.
- Field
Mapping AgentKnowledge Base Storage Configuration Opensearch Serverless Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- collection
Arn String - ARN of the OpenSearch Service vector store.
- vector
Index StringName - Name of the vector store.
- field
Mapping AgentKnowledge Base Storage Configuration Opensearch Serverless Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- collection
Arn string - ARN of the OpenSearch Service vector store.
- vector
Index stringName - Name of the vector store.
- field
Mapping AgentKnowledge Base Storage Configuration Opensearch Serverless Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- collection_
arn str - ARN of the OpenSearch Service vector store.
- vector_
index_ strname - Name of the vector store.
- field_
mapping AgentKnowledge Base Storage Configuration Opensearch Serverless Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- collection
Arn String - ARN of the OpenSearch Service vector store.
- vector
Index StringName - Name of the vector store.
- field
Mapping Property Map - The names of the fields to which to map information about the vector store. This block supports the following arguments:
AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMapping, AgentKnowledgeBaseStorageConfigurationOpensearchServerlessConfigurationFieldMappingArgs
- Metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- Text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- Vector
Field string - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- Metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- Text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- Vector
Field string - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata
Field String - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text
Field String - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector
Field String - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector
Field string - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata_
field str - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text_
field str - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector_
field str - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata
Field String - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text
Field String - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector
Field String - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
AgentKnowledgeBaseStorageConfigurationPineconeConfiguration, AgentKnowledgeBaseStorageConfigurationPineconeConfigurationArgs
- Connection
String string - Endpoint URL for your index management page.
- Credentials
Secret stringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
- Field
Mapping AgentKnowledge Base Storage Configuration Pinecone Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- Namespace string
- Namespace to be used to write new data to your database.
- Connection
String string - Endpoint URL for your index management page.
- Credentials
Secret stringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
- Field
Mapping AgentKnowledge Base Storage Configuration Pinecone Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- Namespace string
- Namespace to be used to write new data to your database.
- connection
String String - Endpoint URL for your index management page.
- credentials
Secret StringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
- field
Mapping AgentKnowledge Base Storage Configuration Pinecone Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- namespace String
- Namespace to be used to write new data to your database.
- connection
String string - Endpoint URL for your index management page.
- credentials
Secret stringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
- field
Mapping AgentKnowledge Base Storage Configuration Pinecone Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- namespace string
- Namespace to be used to write new data to your database.
- connection_
string str - Endpoint URL for your index management page.
- credentials_
secret_ strarn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
- field_
mapping AgentKnowledge Base Storage Configuration Pinecone Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- namespace str
- Namespace to be used to write new data to your database.
- connection
String String - Endpoint URL for your index management page.
- credentials
Secret StringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Pinecone API key.
- field
Mapping Property Map - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- namespace String
- Namespace to be used to write new data to your database.
AgentKnowledgeBaseStorageConfigurationPineconeConfigurationFieldMapping, AgentKnowledgeBaseStorageConfigurationPineconeConfigurationFieldMappingArgs
- Metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- Text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- Metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- Text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- metadata
Field String - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text
Field String - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- metadata_
field str - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text_
field str - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- metadata
Field String - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text
Field String - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
AgentKnowledgeBaseStorageConfigurationRdsConfiguration, AgentKnowledgeBaseStorageConfigurationRdsConfigurationArgs
- Credentials
Secret stringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
- Database
Name string - Name of your Amazon RDS database.
- Resource
Arn string - ARN of the vector store.
- Table
Name string - Name of the table in the database.
- Field
Mapping AgentKnowledge Base Storage Configuration Rds Configuration Field Mapping - Names of the fields to which to map information about the vector store. This block supports the following arguments:
- Credentials
Secret stringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
- Database
Name string - Name of your Amazon RDS database.
- Resource
Arn string - ARN of the vector store.
- Table
Name string - Name of the table in the database.
- Field
Mapping AgentKnowledge Base Storage Configuration Rds Configuration Field Mapping - Names of the fields to which to map information about the vector store. This block supports the following arguments:
- credentials
Secret StringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
- database
Name String - Name of your Amazon RDS database.
- resource
Arn String - ARN of the vector store.
- table
Name String - Name of the table in the database.
- field
Mapping AgentKnowledge Base Storage Configuration Rds Configuration Field Mapping - Names of the fields to which to map information about the vector store. This block supports the following arguments:
- credentials
Secret stringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
- database
Name string - Name of your Amazon RDS database.
- resource
Arn string - ARN of the vector store.
- table
Name string - Name of the table in the database.
- field
Mapping AgentKnowledge Base Storage Configuration Rds Configuration Field Mapping - Names of the fields to which to map information about the vector store. This block supports the following arguments:
- credentials_
secret_ strarn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
- database_
name str - Name of your Amazon RDS database.
- resource_
arn str - ARN of the vector store.
- table_
name str - Name of the table in the database.
- field_
mapping AgentKnowledge Base Storage Configuration Rds Configuration Field Mapping - Names of the fields to which to map information about the vector store. This block supports the following arguments:
- credentials
Secret StringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Amazon RDS database.
- database
Name String - Name of your Amazon RDS database.
- resource
Arn String - ARN of the vector store.
- table
Name String - Name of the table in the database.
- field
Mapping Property Map - Names of the fields to which to map information about the vector store. This block supports the following arguments:
AgentKnowledgeBaseStorageConfigurationRdsConfigurationFieldMapping, AgentKnowledgeBaseStorageConfigurationRdsConfigurationFieldMappingArgs
- Metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- Primary
Key stringField - Name of the field in which Amazon Bedrock stores the ID for each entry.
- Text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- Vector
Field string - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- Metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- Primary
Key stringField - Name of the field in which Amazon Bedrock stores the ID for each entry.
- Text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- Vector
Field string - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata
Field String - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- primary
Key StringField - Name of the field in which Amazon Bedrock stores the ID for each entry.
- text
Field String - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector
Field String - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- primary
Key stringField - Name of the field in which Amazon Bedrock stores the ID for each entry.
- text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector
Field string - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata_
field str - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- primary_
key_ strfield - Name of the field in which Amazon Bedrock stores the ID for each entry.
- text_
field str - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector_
field str - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata
Field String - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- primary
Key StringField - Name of the field in which Amazon Bedrock stores the ID for each entry.
- text
Field String - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector
Field String - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
AgentKnowledgeBaseStorageConfigurationRedisEnterpriseCloudConfiguration, AgentKnowledgeBaseStorageConfigurationRedisEnterpriseCloudConfigurationArgs
- Credentials
Secret stringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Redis Enterprise Cloud database.
- Endpoint string
- Endpoint URL of the Redis Enterprise Cloud database.
- Vector
Index stringName - Name of the vector index.
- Field
Mapping AgentKnowledge Base Storage Configuration Redis Enterprise Cloud Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- Credentials
Secret stringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Redis Enterprise Cloud database.
- Endpoint string
- Endpoint URL of the Redis Enterprise Cloud database.
- Vector
Index stringName - Name of the vector index.
- Field
Mapping AgentKnowledge Base Storage Configuration Redis Enterprise Cloud Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- credentials
Secret StringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Redis Enterprise Cloud database.
- endpoint String
- Endpoint URL of the Redis Enterprise Cloud database.
- vector
Index StringName - Name of the vector index.
- field
Mapping AgentKnowledge Base Storage Configuration Redis Enterprise Cloud Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- credentials
Secret stringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Redis Enterprise Cloud database.
- endpoint string
- Endpoint URL of the Redis Enterprise Cloud database.
- vector
Index stringName - Name of the vector index.
- field
Mapping AgentKnowledge Base Storage Configuration Redis Enterprise Cloud Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- credentials_
secret_ strarn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Redis Enterprise Cloud database.
- endpoint str
- Endpoint URL of the Redis Enterprise Cloud database.
- vector_
index_ strname - Name of the vector index.
- field_
mapping AgentKnowledge Base Storage Configuration Redis Enterprise Cloud Configuration Field Mapping - The names of the fields to which to map information about the vector store. This block supports the following arguments:
- credentials
Secret StringArn - ARN of the secret that you created in AWS Secrets Manager that is linked to your Redis Enterprise Cloud database.
- endpoint String
- Endpoint URL of the Redis Enterprise Cloud database.
- vector
Index StringName - Name of the vector index.
- field
Mapping Property Map - The names of the fields to which to map information about the vector store. This block supports the following arguments:
AgentKnowledgeBaseStorageConfigurationRedisEnterpriseCloudConfigurationFieldMapping, AgentKnowledgeBaseStorageConfigurationRedisEnterpriseCloudConfigurationFieldMappingArgs
- Metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- Text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- Vector
Field string - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- Metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- Text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- Vector
Field string - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata
Field String - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text
Field String - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector
Field String - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata
Field string - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text
Field string - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector
Field string - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata_
field str - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text_
field str - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector_
field str - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
- metadata
Field String - Name of the field in which Amazon Bedrock stores metadata about the vector store.
- text
Field String - Name of the field in which Amazon Bedrock stores the raw text from your data. The text is split according to the chunking strategy you choose.
- vector
Field String - Name of the field in which Amazon Bedrock stores the vector embeddings for your data sources.
AgentKnowledgeBaseTimeouts, AgentKnowledgeBaseTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Using pulumi import
, import Agents for Amazon Bedrock Knowledge Base using the knowledge base ID. For example:
$ pulumi import aws:bedrock/agentKnowledgeBase:AgentKnowledgeBase example EMDPPAYPZI
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.