aws.bedrock.AgentDataSource
Explore with Pulumi AI
Resource for managing an AWS Agents for Amazon Bedrock Data Source.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.bedrock.AgentDataSource("example", {
knowledgeBaseId: "EMDPPAYPZI",
name: "example",
dataSourceConfiguration: {
type: "S3",
s3Configuration: {
bucketArn: "arn:aws:s3:::example-bucket",
},
},
});
import pulumi
import pulumi_aws as aws
example = aws.bedrock.AgentDataSource("example",
knowledge_base_id="EMDPPAYPZI",
name="example",
data_source_configuration={
"type": "S3",
"s3_configuration": {
"bucket_arn": "arn:aws:s3:::example-bucket",
},
})
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.NewAgentDataSource(ctx, "example", &bedrock.AgentDataSourceArgs{
KnowledgeBaseId: pulumi.String("EMDPPAYPZI"),
Name: pulumi.String("example"),
DataSourceConfiguration: &bedrock.AgentDataSourceDataSourceConfigurationArgs{
Type: pulumi.String("S3"),
S3Configuration: &bedrock.AgentDataSourceDataSourceConfigurationS3ConfigurationArgs{
BucketArn: pulumi.String("arn:aws:s3:::example-bucket"),
},
},
})
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.AgentDataSource("example", new()
{
KnowledgeBaseId = "EMDPPAYPZI",
Name = "example",
DataSourceConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceDataSourceConfigurationArgs
{
Type = "S3",
S3Configuration = new Aws.Bedrock.Inputs.AgentDataSourceDataSourceConfigurationS3ConfigurationArgs
{
BucketArn = "arn:aws:s3:::example-bucket",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentDataSource;
import com.pulumi.aws.bedrock.AgentDataSourceArgs;
import com.pulumi.aws.bedrock.inputs.AgentDataSourceDataSourceConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentDataSourceDataSourceConfigurationS3ConfigurationArgs;
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 AgentDataSource("example", AgentDataSourceArgs.builder()
.knowledgeBaseId("EMDPPAYPZI")
.name("example")
.dataSourceConfiguration(AgentDataSourceDataSourceConfigurationArgs.builder()
.type("S3")
.s3Configuration(AgentDataSourceDataSourceConfigurationS3ConfigurationArgs.builder()
.bucketArn("arn:aws:s3:::example-bucket")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:bedrock:AgentDataSource
properties:
knowledgeBaseId: EMDPPAYPZI
name: example
dataSourceConfiguration:
type: S3
s3Configuration:
bucketArn: arn:aws:s3:::example-bucket
Create AgentDataSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AgentDataSource(name: string, args: AgentDataSourceArgs, opts?: CustomResourceOptions);
@overload
def AgentDataSource(resource_name: str,
args: AgentDataSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AgentDataSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
knowledge_base_id: Optional[str] = None,
data_deletion_policy: Optional[str] = None,
data_source_configuration: Optional[AgentDataSourceDataSourceConfigurationArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
server_side_encryption_configuration: Optional[AgentDataSourceServerSideEncryptionConfigurationArgs] = None,
timeouts: Optional[AgentDataSourceTimeoutsArgs] = None,
vector_ingestion_configuration: Optional[AgentDataSourceVectorIngestionConfigurationArgs] = None)
func NewAgentDataSource(ctx *Context, name string, args AgentDataSourceArgs, opts ...ResourceOption) (*AgentDataSource, error)
public AgentDataSource(string name, AgentDataSourceArgs args, CustomResourceOptions? opts = null)
public AgentDataSource(String name, AgentDataSourceArgs args)
public AgentDataSource(String name, AgentDataSourceArgs args, CustomResourceOptions options)
type: aws:bedrock:AgentDataSource
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 AgentDataSourceArgs
- 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 AgentDataSourceArgs
- 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 AgentDataSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgentDataSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AgentDataSourceArgs
- 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 agentDataSourceResource = new Aws.Bedrock.AgentDataSource("agentDataSourceResource", new()
{
KnowledgeBaseId = "string",
DataDeletionPolicy = "string",
DataSourceConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceDataSourceConfigurationArgs
{
Type = "string",
S3Configuration = new Aws.Bedrock.Inputs.AgentDataSourceDataSourceConfigurationS3ConfigurationArgs
{
BucketArn = "string",
BucketOwnerAccountId = "string",
InclusionPrefixes = new[]
{
"string",
},
},
},
Description = "string",
Name = "string",
ServerSideEncryptionConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceServerSideEncryptionConfigurationArgs
{
KmsKeyArn = "string",
},
Timeouts = new Aws.Bedrock.Inputs.AgentDataSourceTimeoutsArgs
{
Create = "string",
Delete = "string",
},
VectorIngestionConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationArgs
{
ChunkingConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs
{
ChunkingStrategy = "string",
FixedSizeChunkingConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationArgs
{
MaxTokens = 0,
OverlapPercentage = 0,
},
HierarchicalChunkingConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs
{
LevelConfigurations = new[]
{
new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArgs
{
MaxTokens = 0,
},
},
OverlapTokens = 0,
},
SemanticChunkingConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs
{
BreakpointPercentileThreshold = 0,
BufferSize = 0,
MaxToken = 0,
},
},
CustomTransformationConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationArgs
{
IntermediateStorage = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageArgs
{
S3Location = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageS3LocationArgs
{
Uri = "string",
},
},
Transformation = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationArgs
{
StepToApply = "string",
TransformationFunction = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionArgs
{
TransformationLambdaConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionTransformationLambdaConfigurationArgs
{
LambdaArn = "string",
},
},
},
},
ParsingConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationParsingConfigurationArgs
{
ParsingStrategy = "string",
BedrockFoundationModelConfiguration = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs
{
ModelArn = "string",
ParsingPrompt = new Aws.Bedrock.Inputs.AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptArgs
{
ParsingPromptString = "string",
},
},
},
},
});
example, err := bedrock.NewAgentDataSource(ctx, "agentDataSourceResource", &bedrock.AgentDataSourceArgs{
KnowledgeBaseId: pulumi.String("string"),
DataDeletionPolicy: pulumi.String("string"),
DataSourceConfiguration: &bedrock.AgentDataSourceDataSourceConfigurationArgs{
Type: pulumi.String("string"),
S3Configuration: &bedrock.AgentDataSourceDataSourceConfigurationS3ConfigurationArgs{
BucketArn: pulumi.String("string"),
BucketOwnerAccountId: pulumi.String("string"),
InclusionPrefixes: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
ServerSideEncryptionConfiguration: &bedrock.AgentDataSourceServerSideEncryptionConfigurationArgs{
KmsKeyArn: pulumi.String("string"),
},
Timeouts: &bedrock.AgentDataSourceTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VectorIngestionConfiguration: &bedrock.AgentDataSourceVectorIngestionConfigurationArgs{
ChunkingConfiguration: &bedrock.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs{
ChunkingStrategy: pulumi.String("string"),
FixedSizeChunkingConfiguration: &bedrock.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationArgs{
MaxTokens: pulumi.Int(0),
OverlapPercentage: pulumi.Int(0),
},
HierarchicalChunkingConfiguration: &bedrock.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs{
LevelConfigurations: bedrock.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArray{
&bedrock.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArgs{
MaxTokens: pulumi.Float64(0),
},
},
OverlapTokens: pulumi.Float64(0),
},
SemanticChunkingConfiguration: &bedrock.AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs{
BreakpointPercentileThreshold: pulumi.Float64(0),
BufferSize: pulumi.Float64(0),
MaxToken: pulumi.Float64(0),
},
},
CustomTransformationConfiguration: &bedrock.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationArgs{
IntermediateStorage: &bedrock.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageArgs{
S3Location: &bedrock.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageS3LocationArgs{
Uri: pulumi.String("string"),
},
},
Transformation: &bedrock.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationArgs{
StepToApply: pulumi.String("string"),
TransformationFunction: &bedrock.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionArgs{
TransformationLambdaConfiguration: &bedrock.AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionTransformationLambdaConfigurationArgs{
LambdaArn: pulumi.String("string"),
},
},
},
},
ParsingConfiguration: &bedrock.AgentDataSourceVectorIngestionConfigurationParsingConfigurationArgs{
ParsingStrategy: pulumi.String("string"),
BedrockFoundationModelConfiguration: &bedrock.AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs{
ModelArn: pulumi.String("string"),
ParsingPrompt: &bedrock.AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptArgs{
ParsingPromptString: pulumi.String("string"),
},
},
},
},
})
var agentDataSourceResource = new AgentDataSource("agentDataSourceResource", AgentDataSourceArgs.builder()
.knowledgeBaseId("string")
.dataDeletionPolicy("string")
.dataSourceConfiguration(AgentDataSourceDataSourceConfigurationArgs.builder()
.type("string")
.s3Configuration(AgentDataSourceDataSourceConfigurationS3ConfigurationArgs.builder()
.bucketArn("string")
.bucketOwnerAccountId("string")
.inclusionPrefixes("string")
.build())
.build())
.description("string")
.name("string")
.serverSideEncryptionConfiguration(AgentDataSourceServerSideEncryptionConfigurationArgs.builder()
.kmsKeyArn("string")
.build())
.timeouts(AgentDataSourceTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.vectorIngestionConfiguration(AgentDataSourceVectorIngestionConfigurationArgs.builder()
.chunkingConfiguration(AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs.builder()
.chunkingStrategy("string")
.fixedSizeChunkingConfiguration(AgentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationArgs.builder()
.maxTokens(0)
.overlapPercentage(0)
.build())
.hierarchicalChunkingConfiguration(AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs.builder()
.levelConfigurations(AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArgs.builder()
.maxTokens(0)
.build())
.overlapTokens(0)
.build())
.semanticChunkingConfiguration(AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs.builder()
.breakpointPercentileThreshold(0)
.bufferSize(0)
.maxToken(0)
.build())
.build())
.customTransformationConfiguration(AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationArgs.builder()
.intermediateStorage(AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageArgs.builder()
.s3Location(AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageS3LocationArgs.builder()
.uri("string")
.build())
.build())
.transformation(AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationArgs.builder()
.stepToApply("string")
.transformationFunction(AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionArgs.builder()
.transformationLambdaConfiguration(AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionTransformationLambdaConfigurationArgs.builder()
.lambdaArn("string")
.build())
.build())
.build())
.build())
.parsingConfiguration(AgentDataSourceVectorIngestionConfigurationParsingConfigurationArgs.builder()
.parsingStrategy("string")
.bedrockFoundationModelConfiguration(AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs.builder()
.modelArn("string")
.parsingPrompt(AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptArgs.builder()
.parsingPromptString("string")
.build())
.build())
.build())
.build())
.build());
agent_data_source_resource = aws.bedrock.AgentDataSource("agentDataSourceResource",
knowledge_base_id="string",
data_deletion_policy="string",
data_source_configuration={
"type": "string",
"s3_configuration": {
"bucket_arn": "string",
"bucket_owner_account_id": "string",
"inclusion_prefixes": ["string"],
},
},
description="string",
name="string",
server_side_encryption_configuration={
"kms_key_arn": "string",
},
timeouts={
"create": "string",
"delete": "string",
},
vector_ingestion_configuration={
"chunking_configuration": {
"chunking_strategy": "string",
"fixed_size_chunking_configuration": {
"max_tokens": 0,
"overlap_percentage": 0,
},
"hierarchical_chunking_configuration": {
"level_configurations": [{
"max_tokens": 0,
}],
"overlap_tokens": 0,
},
"semantic_chunking_configuration": {
"breakpoint_percentile_threshold": 0,
"buffer_size": 0,
"max_token": 0,
},
},
"custom_transformation_configuration": {
"intermediate_storage": {
"s3_location": {
"uri": "string",
},
},
"transformation": {
"step_to_apply": "string",
"transformation_function": {
"transformation_lambda_configuration": {
"lambda_arn": "string",
},
},
},
},
"parsing_configuration": {
"parsing_strategy": "string",
"bedrock_foundation_model_configuration": {
"model_arn": "string",
"parsing_prompt": {
"parsing_prompt_string": "string",
},
},
},
})
const agentDataSourceResource = new aws.bedrock.AgentDataSource("agentDataSourceResource", {
knowledgeBaseId: "string",
dataDeletionPolicy: "string",
dataSourceConfiguration: {
type: "string",
s3Configuration: {
bucketArn: "string",
bucketOwnerAccountId: "string",
inclusionPrefixes: ["string"],
},
},
description: "string",
name: "string",
serverSideEncryptionConfiguration: {
kmsKeyArn: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
vectorIngestionConfiguration: {
chunkingConfiguration: {
chunkingStrategy: "string",
fixedSizeChunkingConfiguration: {
maxTokens: 0,
overlapPercentage: 0,
},
hierarchicalChunkingConfiguration: {
levelConfigurations: [{
maxTokens: 0,
}],
overlapTokens: 0,
},
semanticChunkingConfiguration: {
breakpointPercentileThreshold: 0,
bufferSize: 0,
maxToken: 0,
},
},
customTransformationConfiguration: {
intermediateStorage: {
s3Location: {
uri: "string",
},
},
transformation: {
stepToApply: "string",
transformationFunction: {
transformationLambdaConfiguration: {
lambdaArn: "string",
},
},
},
},
parsingConfiguration: {
parsingStrategy: "string",
bedrockFoundationModelConfiguration: {
modelArn: "string",
parsingPrompt: {
parsingPromptString: "string",
},
},
},
},
});
type: aws:bedrock:AgentDataSource
properties:
dataDeletionPolicy: string
dataSourceConfiguration:
s3Configuration:
bucketArn: string
bucketOwnerAccountId: string
inclusionPrefixes:
- string
type: string
description: string
knowledgeBaseId: string
name: string
serverSideEncryptionConfiguration:
kmsKeyArn: string
timeouts:
create: string
delete: string
vectorIngestionConfiguration:
chunkingConfiguration:
chunkingStrategy: string
fixedSizeChunkingConfiguration:
maxTokens: 0
overlapPercentage: 0
hierarchicalChunkingConfiguration:
levelConfigurations:
- maxTokens: 0
overlapTokens: 0
semanticChunkingConfiguration:
breakpointPercentileThreshold: 0
bufferSize: 0
maxToken: 0
customTransformationConfiguration:
intermediateStorage:
s3Location:
uri: string
transformation:
stepToApply: string
transformationFunction:
transformationLambdaConfiguration:
lambdaArn: string
parsingConfiguration:
bedrockFoundationModelConfiguration:
modelArn: string
parsingPrompt:
parsingPromptString: string
parsingStrategy: string
AgentDataSource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AgentDataSource resource accepts the following input properties:
- Knowledge
Base stringId - Unique identifier of the knowledge base to which the data source belongs.
- Data
Deletion stringPolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - Data
Source AgentConfiguration Data Source Data Source Configuration - Details about how the data source is stored. See
data_source_configuration
block for details. - Description string
- Description of the data source.
- Name string
Name of the data source.
The following arguments are optional:
- Server
Side AgentEncryption Configuration Data Source Server Side Encryption Configuration - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - Timeouts
Agent
Data Source Timeouts - Vector
Ingestion AgentConfiguration Data Source Vector Ingestion Configuration - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
- Knowledge
Base stringId - Unique identifier of the knowledge base to which the data source belongs.
- Data
Deletion stringPolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - Data
Source AgentConfiguration Data Source Data Source Configuration Args - Details about how the data source is stored. See
data_source_configuration
block for details. - Description string
- Description of the data source.
- Name string
Name of the data source.
The following arguments are optional:
- Server
Side AgentEncryption Configuration Data Source Server Side Encryption Configuration Args - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - Timeouts
Agent
Data Source Timeouts Args - Vector
Ingestion AgentConfiguration Data Source Vector Ingestion Configuration Args - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
- knowledge
Base StringId - Unique identifier of the knowledge base to which the data source belongs.
- data
Deletion StringPolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - data
Source AgentConfiguration Data Source Data Source Configuration - Details about how the data source is stored. See
data_source_configuration
block for details. - description String
- Description of the data source.
- name String
Name of the data source.
The following arguments are optional:
- server
Side AgentEncryption Configuration Data Source Server Side Encryption Configuration - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - timeouts
Agent
Data Source Timeouts - vector
Ingestion AgentConfiguration Data Source Vector Ingestion Configuration - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
- knowledge
Base stringId - Unique identifier of the knowledge base to which the data source belongs.
- data
Deletion stringPolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - data
Source AgentConfiguration Data Source Data Source Configuration - Details about how the data source is stored. See
data_source_configuration
block for details. - description string
- Description of the data source.
- name string
Name of the data source.
The following arguments are optional:
- server
Side AgentEncryption Configuration Data Source Server Side Encryption Configuration - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - timeouts
Agent
Data Source Timeouts - vector
Ingestion AgentConfiguration Data Source Vector Ingestion Configuration - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
- knowledge_
base_ strid - Unique identifier of the knowledge base to which the data source belongs.
- data_
deletion_ strpolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - data_
source_ Agentconfiguration Data Source Data Source Configuration Args - Details about how the data source is stored. See
data_source_configuration
block for details. - description str
- Description of the data source.
- name str
Name of the data source.
The following arguments are optional:
- server_
side_ Agentencryption_ configuration Data Source Server Side Encryption Configuration Args - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - timeouts
Agent
Data Source Timeouts Args - vector_
ingestion_ Agentconfiguration Data Source Vector Ingestion Configuration Args - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
- knowledge
Base StringId - Unique identifier of the knowledge base to which the data source belongs.
- data
Deletion StringPolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - data
Source Property MapConfiguration - Details about how the data source is stored. See
data_source_configuration
block for details. - description String
- Description of the data source.
- name String
Name of the data source.
The following arguments are optional:
- server
Side Property MapEncryption Configuration - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - timeouts Property Map
- vector
Ingestion Property MapConfiguration - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
Outputs
All input properties are implicitly available as output properties. Additionally, the AgentDataSource resource produces the following output properties:
- Data
Source stringId - Unique identifier of the data source.
- Id string
- The provider-assigned unique ID for this managed resource.
- Data
Source stringId - Unique identifier of the data source.
- Id string
- The provider-assigned unique ID for this managed resource.
- data
Source StringId - Unique identifier of the data source.
- id String
- The provider-assigned unique ID for this managed resource.
- data
Source stringId - Unique identifier of the data source.
- id string
- The provider-assigned unique ID for this managed resource.
- data_
source_ strid - Unique identifier of the data source.
- id str
- The provider-assigned unique ID for this managed resource.
- data
Source StringId - Unique identifier of the data source.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AgentDataSource Resource
Get an existing AgentDataSource 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?: AgentDataSourceState, opts?: CustomResourceOptions): AgentDataSource
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_deletion_policy: Optional[str] = None,
data_source_configuration: Optional[AgentDataSourceDataSourceConfigurationArgs] = None,
data_source_id: Optional[str] = None,
description: Optional[str] = None,
knowledge_base_id: Optional[str] = None,
name: Optional[str] = None,
server_side_encryption_configuration: Optional[AgentDataSourceServerSideEncryptionConfigurationArgs] = None,
timeouts: Optional[AgentDataSourceTimeoutsArgs] = None,
vector_ingestion_configuration: Optional[AgentDataSourceVectorIngestionConfigurationArgs] = None) -> AgentDataSource
func GetAgentDataSource(ctx *Context, name string, id IDInput, state *AgentDataSourceState, opts ...ResourceOption) (*AgentDataSource, error)
public static AgentDataSource Get(string name, Input<string> id, AgentDataSourceState? state, CustomResourceOptions? opts = null)
public static AgentDataSource get(String name, Output<String> id, AgentDataSourceState 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.
- Data
Deletion stringPolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - Data
Source AgentConfiguration Data Source Data Source Configuration - Details about how the data source is stored. See
data_source_configuration
block for details. - Data
Source stringId - Unique identifier of the data source.
- Description string
- Description of the data source.
- Knowledge
Base stringId - Unique identifier of the knowledge base to which the data source belongs.
- Name string
Name of the data source.
The following arguments are optional:
- Server
Side AgentEncryption Configuration Data Source Server Side Encryption Configuration - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - Timeouts
Agent
Data Source Timeouts - Vector
Ingestion AgentConfiguration Data Source Vector Ingestion Configuration - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
- Data
Deletion stringPolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - Data
Source AgentConfiguration Data Source Data Source Configuration Args - Details about how the data source is stored. See
data_source_configuration
block for details. - Data
Source stringId - Unique identifier of the data source.
- Description string
- Description of the data source.
- Knowledge
Base stringId - Unique identifier of the knowledge base to which the data source belongs.
- Name string
Name of the data source.
The following arguments are optional:
- Server
Side AgentEncryption Configuration Data Source Server Side Encryption Configuration Args - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - Timeouts
Agent
Data Source Timeouts Args - Vector
Ingestion AgentConfiguration Data Source Vector Ingestion Configuration Args - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
- data
Deletion StringPolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - data
Source AgentConfiguration Data Source Data Source Configuration - Details about how the data source is stored. See
data_source_configuration
block for details. - data
Source StringId - Unique identifier of the data source.
- description String
- Description of the data source.
- knowledge
Base StringId - Unique identifier of the knowledge base to which the data source belongs.
- name String
Name of the data source.
The following arguments are optional:
- server
Side AgentEncryption Configuration Data Source Server Side Encryption Configuration - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - timeouts
Agent
Data Source Timeouts - vector
Ingestion AgentConfiguration Data Source Vector Ingestion Configuration - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
- data
Deletion stringPolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - data
Source AgentConfiguration Data Source Data Source Configuration - Details about how the data source is stored. See
data_source_configuration
block for details. - data
Source stringId - Unique identifier of the data source.
- description string
- Description of the data source.
- knowledge
Base stringId - Unique identifier of the knowledge base to which the data source belongs.
- name string
Name of the data source.
The following arguments are optional:
- server
Side AgentEncryption Configuration Data Source Server Side Encryption Configuration - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - timeouts
Agent
Data Source Timeouts - vector
Ingestion AgentConfiguration Data Source Vector Ingestion Configuration - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
- data_
deletion_ strpolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - data_
source_ Agentconfiguration Data Source Data Source Configuration Args - Details about how the data source is stored. See
data_source_configuration
block for details. - data_
source_ strid - Unique identifier of the data source.
- description str
- Description of the data source.
- knowledge_
base_ strid - Unique identifier of the knowledge base to which the data source belongs.
- name str
Name of the data source.
The following arguments are optional:
- server_
side_ Agentencryption_ configuration Data Source Server Side Encryption Configuration Args - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - timeouts
Agent
Data Source Timeouts Args - vector_
ingestion_ Agentconfiguration Data Source Vector Ingestion Configuration Args - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
- data
Deletion StringPolicy - Data deletion policy for a data source. Valid values:
RETAIN
,DELETE
. - data
Source Property MapConfiguration - Details about how the data source is stored. See
data_source_configuration
block for details. - data
Source StringId - Unique identifier of the data source.
- description String
- Description of the data source.
- knowledge
Base StringId - Unique identifier of the knowledge base to which the data source belongs.
- name String
Name of the data source.
The following arguments are optional:
- server
Side Property MapEncryption Configuration - Details about the configuration of the server-side encryption. See
server_side_encryption_configuration
block for details. - timeouts Property Map
- vector
Ingestion Property MapConfiguration - Details about the configuration of the server-side encryption. See
vector_ingestion_configuration
block for details.
Supporting Types
AgentDataSourceDataSourceConfiguration, AgentDataSourceDataSourceConfigurationArgs
- Type string
- Type of storage for the data source. Valid values:
S3
. - S3Configuration
Agent
Data Source Data Source Configuration S3Configuration - Details about the configuration of the S3 object containing the data source. See
s3_data_source_configuration
block for details.
- Type string
- Type of storage for the data source. Valid values:
S3
. - S3Configuration
Agent
Data Source Data Source Configuration S3Configuration - Details about the configuration of the S3 object containing the data source. See
s3_data_source_configuration
block for details.
- type String
- Type of storage for the data source. Valid values:
S3
. - s3Configuration
Agent
Data Source Data Source Configuration S3Configuration - Details about the configuration of the S3 object containing the data source. See
s3_data_source_configuration
block for details.
- type string
- Type of storage for the data source. Valid values:
S3
. - s3Configuration
Agent
Data Source Data Source Configuration S3Configuration - Details about the configuration of the S3 object containing the data source. See
s3_data_source_configuration
block for details.
- type str
- Type of storage for the data source. Valid values:
S3
. - s3_
configuration AgentData Source Data Source Configuration S3Configuration - Details about the configuration of the S3 object containing the data source. See
s3_data_source_configuration
block for details.
- type String
- Type of storage for the data source. Valid values:
S3
. - s3Configuration Property Map
- Details about the configuration of the S3 object containing the data source. See
s3_data_source_configuration
block for details.
AgentDataSourceDataSourceConfigurationS3Configuration, AgentDataSourceDataSourceConfigurationS3ConfigurationArgs
- Bucket
Arn string - ARN of the bucket that contains the data source.
- Bucket
Owner stringAccount Id - Bucket account owner ID for the S3 bucket.
- Inclusion
Prefixes List<string> - List of S3 prefixes that define the object containing the data sources. For more information, see Organizing objects using prefixes.
- Bucket
Arn string - ARN of the bucket that contains the data source.
- Bucket
Owner stringAccount Id - Bucket account owner ID for the S3 bucket.
- Inclusion
Prefixes []string - List of S3 prefixes that define the object containing the data sources. For more information, see Organizing objects using prefixes.
- bucket
Arn String - ARN of the bucket that contains the data source.
- bucket
Owner StringAccount Id - Bucket account owner ID for the S3 bucket.
- inclusion
Prefixes List<String> - List of S3 prefixes that define the object containing the data sources. For more information, see Organizing objects using prefixes.
- bucket
Arn string - ARN of the bucket that contains the data source.
- bucket
Owner stringAccount Id - Bucket account owner ID for the S3 bucket.
- inclusion
Prefixes string[] - List of S3 prefixes that define the object containing the data sources. For more information, see Organizing objects using prefixes.
- bucket_
arn str - ARN of the bucket that contains the data source.
- bucket_
owner_ straccount_ id - Bucket account owner ID for the S3 bucket.
- inclusion_
prefixes Sequence[str] - List of S3 prefixes that define the object containing the data sources. For more information, see Organizing objects using prefixes.
- bucket
Arn String - ARN of the bucket that contains the data source.
- bucket
Owner StringAccount Id - Bucket account owner ID for the S3 bucket.
- inclusion
Prefixes List<String> - List of S3 prefixes that define the object containing the data sources. For more information, see Organizing objects using prefixes.
AgentDataSourceServerSideEncryptionConfiguration, AgentDataSourceServerSideEncryptionConfigurationArgs
- Kms
Key stringArn - ARN of the AWS KMS key used to encrypt the resource.
- Kms
Key stringArn - ARN of the AWS KMS key used to encrypt the resource.
- kms
Key StringArn - ARN of the AWS KMS key used to encrypt the resource.
- kms
Key stringArn - ARN of the AWS KMS key used to encrypt the resource.
- kms_
key_ strarn - ARN of the AWS KMS key used to encrypt the resource.
- kms
Key StringArn - ARN of the AWS KMS key used to encrypt the resource.
AgentDataSourceTimeouts, AgentDataSourceTimeoutsArgs
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
AgentDataSourceVectorIngestionConfiguration, AgentDataSourceVectorIngestionConfigurationArgs
- Chunking
Configuration AgentData Source Vector Ingestion Configuration Chunking Configuration - Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. See
chunking_configuration
block for details. - Custom
Transformation AgentConfiguration Data Source Vector Ingestion Configuration Custom Transformation Configuration - Configuration for custom transformation of data source documents.
- Parsing
Configuration AgentData Source Vector Ingestion Configuration Parsing Configuration - Configuration for custom parsing of data source documents. See
parsing_configuration
block for details.
- Chunking
Configuration AgentData Source Vector Ingestion Configuration Chunking Configuration - Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. See
chunking_configuration
block for details. - Custom
Transformation AgentConfiguration Data Source Vector Ingestion Configuration Custom Transformation Configuration - Configuration for custom transformation of data source documents.
- Parsing
Configuration AgentData Source Vector Ingestion Configuration Parsing Configuration - Configuration for custom parsing of data source documents. See
parsing_configuration
block for details.
- chunking
Configuration AgentData Source Vector Ingestion Configuration Chunking Configuration - Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. See
chunking_configuration
block for details. - custom
Transformation AgentConfiguration Data Source Vector Ingestion Configuration Custom Transformation Configuration - Configuration for custom transformation of data source documents.
- parsing
Configuration AgentData Source Vector Ingestion Configuration Parsing Configuration - Configuration for custom parsing of data source documents. See
parsing_configuration
block for details.
- chunking
Configuration AgentData Source Vector Ingestion Configuration Chunking Configuration - Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. See
chunking_configuration
block for details. - custom
Transformation AgentConfiguration Data Source Vector Ingestion Configuration Custom Transformation Configuration - Configuration for custom transformation of data source documents.
- parsing
Configuration AgentData Source Vector Ingestion Configuration Parsing Configuration - Configuration for custom parsing of data source documents. See
parsing_configuration
block for details.
- chunking_
configuration AgentData Source Vector Ingestion Configuration Chunking Configuration - Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. See
chunking_configuration
block for details. - custom_
transformation_ Agentconfiguration Data Source Vector Ingestion Configuration Custom Transformation Configuration - Configuration for custom transformation of data source documents.
- parsing_
configuration AgentData Source Vector Ingestion Configuration Parsing Configuration - Configuration for custom parsing of data source documents. See
parsing_configuration
block for details.
- chunking
Configuration Property Map - Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. See
chunking_configuration
block for details. - custom
Transformation Property MapConfiguration - Configuration for custom transformation of data source documents.
- parsing
Configuration Property Map - Configuration for custom parsing of data source documents. See
parsing_configuration
block for details.
AgentDataSourceVectorIngestionConfigurationChunkingConfiguration, AgentDataSourceVectorIngestionConfigurationChunkingConfigurationArgs
- Chunking
Strategy string - Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values:
FIXED_SIZE
,HIERARCHICAL
,SEMANTIC
,NONE
. - Fixed
Size AgentChunking Configuration Data Source Vector Ingestion Configuration Chunking Configuration Fixed Size Chunking Configuration - Configurations for when you choose fixed-size chunking. Requires chunking_strategy as
FIXED_SIZE
. Seefixed_size_chunking_configuration
for details. - Hierarchical
Chunking AgentConfiguration Data Source Vector Ingestion Configuration Chunking Configuration Hierarchical Chunking Configuration - Configurations for when you choose hierarchical chunking. Requires chunking_strategy as
HIERARCHICAL
. Seehierarchical_chunking_configuration
for details. - Semantic
Chunking AgentConfiguration Data Source Vector Ingestion Configuration Chunking Configuration Semantic Chunking Configuration - Configurations for when you choose semantic chunking. Requires chunking_strategy as
SEMANTIC
. Seesemantic_chunking_configuration
for details.
- Chunking
Strategy string - Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values:
FIXED_SIZE
,HIERARCHICAL
,SEMANTIC
,NONE
. - Fixed
Size AgentChunking Configuration Data Source Vector Ingestion Configuration Chunking Configuration Fixed Size Chunking Configuration - Configurations for when you choose fixed-size chunking. Requires chunking_strategy as
FIXED_SIZE
. Seefixed_size_chunking_configuration
for details. - Hierarchical
Chunking AgentConfiguration Data Source Vector Ingestion Configuration Chunking Configuration Hierarchical Chunking Configuration - Configurations for when you choose hierarchical chunking. Requires chunking_strategy as
HIERARCHICAL
. Seehierarchical_chunking_configuration
for details. - Semantic
Chunking AgentConfiguration Data Source Vector Ingestion Configuration Chunking Configuration Semantic Chunking Configuration - Configurations for when you choose semantic chunking. Requires chunking_strategy as
SEMANTIC
. Seesemantic_chunking_configuration
for details.
- chunking
Strategy String - Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values:
FIXED_SIZE
,HIERARCHICAL
,SEMANTIC
,NONE
. - fixed
Size AgentChunking Configuration Data Source Vector Ingestion Configuration Chunking Configuration Fixed Size Chunking Configuration - Configurations for when you choose fixed-size chunking. Requires chunking_strategy as
FIXED_SIZE
. Seefixed_size_chunking_configuration
for details. - hierarchical
Chunking AgentConfiguration Data Source Vector Ingestion Configuration Chunking Configuration Hierarchical Chunking Configuration - Configurations for when you choose hierarchical chunking. Requires chunking_strategy as
HIERARCHICAL
. Seehierarchical_chunking_configuration
for details. - semantic
Chunking AgentConfiguration Data Source Vector Ingestion Configuration Chunking Configuration Semantic Chunking Configuration - Configurations for when you choose semantic chunking. Requires chunking_strategy as
SEMANTIC
. Seesemantic_chunking_configuration
for details.
- chunking
Strategy string - Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values:
FIXED_SIZE
,HIERARCHICAL
,SEMANTIC
,NONE
. - fixed
Size AgentChunking Configuration Data Source Vector Ingestion Configuration Chunking Configuration Fixed Size Chunking Configuration - Configurations for when you choose fixed-size chunking. Requires chunking_strategy as
FIXED_SIZE
. Seefixed_size_chunking_configuration
for details. - hierarchical
Chunking AgentConfiguration Data Source Vector Ingestion Configuration Chunking Configuration Hierarchical Chunking Configuration - Configurations for when you choose hierarchical chunking. Requires chunking_strategy as
HIERARCHICAL
. Seehierarchical_chunking_configuration
for details. - semantic
Chunking AgentConfiguration Data Source Vector Ingestion Configuration Chunking Configuration Semantic Chunking Configuration - Configurations for when you choose semantic chunking. Requires chunking_strategy as
SEMANTIC
. Seesemantic_chunking_configuration
for details.
- chunking_
strategy str - Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values:
FIXED_SIZE
,HIERARCHICAL
,SEMANTIC
,NONE
. - fixed_
size_ Agentchunking_ configuration Data Source Vector Ingestion Configuration Chunking Configuration Fixed Size Chunking Configuration - Configurations for when you choose fixed-size chunking. Requires chunking_strategy as
FIXED_SIZE
. Seefixed_size_chunking_configuration
for details. - hierarchical_
chunking_ Agentconfiguration Data Source Vector Ingestion Configuration Chunking Configuration Hierarchical Chunking Configuration - Configurations for when you choose hierarchical chunking. Requires chunking_strategy as
HIERARCHICAL
. Seehierarchical_chunking_configuration
for details. - semantic_
chunking_ Agentconfiguration Data Source Vector Ingestion Configuration Chunking Configuration Semantic Chunking Configuration - Configurations for when you choose semantic chunking. Requires chunking_strategy as
SEMANTIC
. Seesemantic_chunking_configuration
for details.
- chunking
Strategy String - Option for chunking your source data, either in fixed-sized chunks or as one chunk. Valid values:
FIXED_SIZE
,HIERARCHICAL
,SEMANTIC
,NONE
. - fixed
Size Property MapChunking Configuration - Configurations for when you choose fixed-size chunking. Requires chunking_strategy as
FIXED_SIZE
. Seefixed_size_chunking_configuration
for details. - hierarchical
Chunking Property MapConfiguration - Configurations for when you choose hierarchical chunking. Requires chunking_strategy as
HIERARCHICAL
. Seehierarchical_chunking_configuration
for details. - semantic
Chunking Property MapConfiguration - Configurations for when you choose semantic chunking. Requires chunking_strategy as
SEMANTIC
. Seesemantic_chunking_configuration
for details.
AgentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfiguration, AgentDataSourceVectorIngestionConfigurationChunkingConfigurationFixedSizeChunkingConfigurationArgs
- Max
Tokens int - Maximum number of tokens to include in a chunk.
- Overlap
Percentage int - Percentage of overlap between adjacent chunks of a data source.
- Max
Tokens int - Maximum number of tokens to include in a chunk.
- Overlap
Percentage int - Percentage of overlap between adjacent chunks of a data source.
- max
Tokens Integer - Maximum number of tokens to include in a chunk.
- overlap
Percentage Integer - Percentage of overlap between adjacent chunks of a data source.
- max
Tokens number - Maximum number of tokens to include in a chunk.
- overlap
Percentage number - Percentage of overlap between adjacent chunks of a data source.
- max_
tokens int - Maximum number of tokens to include in a chunk.
- overlap_
percentage int - Percentage of overlap between adjacent chunks of a data source.
- max
Tokens Number - Maximum number of tokens to include in a chunk.
- overlap
Percentage Number - Percentage of overlap between adjacent chunks of a data source.
AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfiguration, AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationArgs
- Level
Configurations List<AgentData Source Vector Ingestion Configuration Chunking Configuration Hierarchical Chunking Configuration Level Configuration> - Maximum number of tokens to include in a chunk. Must contain two
level_configurations
. Seelevel_configurations
for details. - Overlap
Tokens double - The number of tokens to repeat across chunks in the same layer.
- Level
Configurations []AgentData Source Vector Ingestion Configuration Chunking Configuration Hierarchical Chunking Configuration Level Configuration - Maximum number of tokens to include in a chunk. Must contain two
level_configurations
. Seelevel_configurations
for details. - Overlap
Tokens float64 - The number of tokens to repeat across chunks in the same layer.
- level
Configurations List<AgentData Source Vector Ingestion Configuration Chunking Configuration Hierarchical Chunking Configuration Level Configuration> - Maximum number of tokens to include in a chunk. Must contain two
level_configurations
. Seelevel_configurations
for details. - overlap
Tokens Double - The number of tokens to repeat across chunks in the same layer.
- level
Configurations AgentData Source Vector Ingestion Configuration Chunking Configuration Hierarchical Chunking Configuration Level Configuration[] - Maximum number of tokens to include in a chunk. Must contain two
level_configurations
. Seelevel_configurations
for details. - overlap
Tokens number - The number of tokens to repeat across chunks in the same layer.
- level_
configurations Sequence[AgentData Source Vector Ingestion Configuration Chunking Configuration Hierarchical Chunking Configuration Level Configuration] - Maximum number of tokens to include in a chunk. Must contain two
level_configurations
. Seelevel_configurations
for details. - overlap_
tokens float - The number of tokens to repeat across chunks in the same layer.
- level
Configurations List<Property Map> - Maximum number of tokens to include in a chunk. Must contain two
level_configurations
. Seelevel_configurations
for details. - overlap
Tokens Number - The number of tokens to repeat across chunks in the same layer.
AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfiguration, AgentDataSourceVectorIngestionConfigurationChunkingConfigurationHierarchicalChunkingConfigurationLevelConfigurationArgs
- Max
Tokens double - The maximum number of tokens that a chunk can contain in this layer.
- Max
Tokens float64 - The maximum number of tokens that a chunk can contain in this layer.
- max
Tokens Double - The maximum number of tokens that a chunk can contain in this layer.
- max
Tokens number - The maximum number of tokens that a chunk can contain in this layer.
- max_
tokens float - The maximum number of tokens that a chunk can contain in this layer.
- max
Tokens Number - The maximum number of tokens that a chunk can contain in this layer.
AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfiguration, AgentDataSourceVectorIngestionConfigurationChunkingConfigurationSemanticChunkingConfigurationArgs
- Breakpoint
Percentile doubleThreshold - The dissimilarity threshold for splitting chunks.
- Buffer
Size double - The buffer size.
- Max
Token double - The maximum number of tokens a chunk can contain.
- Breakpoint
Percentile float64Threshold - The dissimilarity threshold for splitting chunks.
- Buffer
Size float64 - The buffer size.
- Max
Token float64 - The maximum number of tokens a chunk can contain.
- breakpoint
Percentile DoubleThreshold - The dissimilarity threshold for splitting chunks.
- buffer
Size Double - The buffer size.
- max
Token Double - The maximum number of tokens a chunk can contain.
- breakpoint
Percentile numberThreshold - The dissimilarity threshold for splitting chunks.
- buffer
Size number - The buffer size.
- max
Token number - The maximum number of tokens a chunk can contain.
- breakpoint_
percentile_ floatthreshold - The dissimilarity threshold for splitting chunks.
- buffer_
size float - The buffer size.
- max_
token float - The maximum number of tokens a chunk can contain.
- breakpoint
Percentile NumberThreshold - The dissimilarity threshold for splitting chunks.
- buffer
Size Number - The buffer size.
- max
Token Number - The maximum number of tokens a chunk can contain.
AgentDataSourceVectorIngestionConfigurationCustomTransformationConfiguration, AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationArgs
- intermediate
Storage Property Map - The intermediate storage for custom transformation.
- transformation Property Map
AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorage, AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageArgs
- S3Location
Agent
Data Source Vector Ingestion Configuration Custom Transformation Configuration Intermediate Storage S3Location - Configuration block for intermedia S3 storage.
- S3Location
Agent
Data Source Vector Ingestion Configuration Custom Transformation Configuration Intermediate Storage S3Location - Configuration block for intermedia S3 storage.
- s3Location
Agent
Data Source Vector Ingestion Configuration Custom Transformation Configuration Intermediate Storage S3Location - Configuration block for intermedia S3 storage.
- s3Location
Agent
Data Source Vector Ingestion Configuration Custom Transformation Configuration Intermediate Storage S3Location - Configuration block for intermedia S3 storage.
- s3_
location AgentData Source Vector Ingestion Configuration Custom Transformation Configuration Intermediate Storage S3Location - Configuration block for intermedia S3 storage.
- s3Location Property Map
- Configuration block for intermedia S3 storage.
AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageS3Location, AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationIntermediateStorageS3LocationArgs
- Uri string
- S3 URI for intermediate storage.
- Uri string
- S3 URI for intermediate storage.
- uri String
- S3 URI for intermediate storage.
- uri string
- S3 URI for intermediate storage.
- uri str
- S3 URI for intermediate storage.
- uri String
- S3 URI for intermediate storage.
AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformation, AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationArgs
- Step
To stringApply - Currently only
POST_CHUNKING
is supported. - Transformation
Function AgentData Source Vector Ingestion Configuration Custom Transformation Configuration Transformation Transformation Function - The configuration of transformation function.
- Step
To stringApply - Currently only
POST_CHUNKING
is supported. - Transformation
Function AgentData Source Vector Ingestion Configuration Custom Transformation Configuration Transformation Transformation Function - The configuration of transformation function.
- step
To StringApply - Currently only
POST_CHUNKING
is supported. - transformation
Function AgentData Source Vector Ingestion Configuration Custom Transformation Configuration Transformation Transformation Function - The configuration of transformation function.
- step
To stringApply - Currently only
POST_CHUNKING
is supported. - transformation
Function AgentData Source Vector Ingestion Configuration Custom Transformation Configuration Transformation Transformation Function - The configuration of transformation function.
- step_
to_ strapply - Currently only
POST_CHUNKING
is supported. - transformation_
function AgentData Source Vector Ingestion Configuration Custom Transformation Configuration Transformation Transformation Function - The configuration of transformation function.
- step
To StringApply - Currently only
POST_CHUNKING
is supported. - transformation
Function Property Map - The configuration of transformation function.
AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunction, AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionArgs
- Transformation
Lambda AgentConfiguration Data Source Vector Ingestion Configuration Custom Transformation Configuration Transformation Transformation Function Transformation Lambda Configuration - The lambda configuration for custom transformation.
- Transformation
Lambda AgentConfiguration Data Source Vector Ingestion Configuration Custom Transformation Configuration Transformation Transformation Function Transformation Lambda Configuration - The lambda configuration for custom transformation.
- transformation
Lambda AgentConfiguration Data Source Vector Ingestion Configuration Custom Transformation Configuration Transformation Transformation Function Transformation Lambda Configuration - The lambda configuration for custom transformation.
- transformation
Lambda AgentConfiguration Data Source Vector Ingestion Configuration Custom Transformation Configuration Transformation Transformation Function Transformation Lambda Configuration - The lambda configuration for custom transformation.
- transformation_
lambda_ Agentconfiguration Data Source Vector Ingestion Configuration Custom Transformation Configuration Transformation Transformation Function Transformation Lambda Configuration - The lambda configuration for custom transformation.
- transformation
Lambda Property MapConfiguration - The lambda configuration for custom transformation.
AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionTransformationLambdaConfiguration, AgentDataSourceVectorIngestionConfigurationCustomTransformationConfigurationTransformationTransformationFunctionTransformationLambdaConfigurationArgs
- Lambda
Arn string - The ARN of the lambda to use for custom transformation.
- Lambda
Arn string - The ARN of the lambda to use for custom transformation.
- lambda
Arn String - The ARN of the lambda to use for custom transformation.
- lambda
Arn string - The ARN of the lambda to use for custom transformation.
- lambda_
arn str - The ARN of the lambda to use for custom transformation.
- lambda
Arn String - The ARN of the lambda to use for custom transformation.
AgentDataSourceVectorIngestionConfigurationParsingConfiguration, AgentDataSourceVectorIngestionConfigurationParsingConfigurationArgs
- Parsing
Strategy string - Currently only
BEDROCK_FOUNDATION_MODEL
is supported - Bedrock
Foundation AgentModel Configuration Data Source Vector Ingestion Configuration Parsing Configuration Bedrock Foundation Model Configuration - Settings for a foundation model used to parse documents in a data source. See
bedrock_foundation_model_configuration
block for details.
- Parsing
Strategy string - Currently only
BEDROCK_FOUNDATION_MODEL
is supported - Bedrock
Foundation AgentModel Configuration Data Source Vector Ingestion Configuration Parsing Configuration Bedrock Foundation Model Configuration - Settings for a foundation model used to parse documents in a data source. See
bedrock_foundation_model_configuration
block for details.
- parsing
Strategy String - Currently only
BEDROCK_FOUNDATION_MODEL
is supported - bedrock
Foundation AgentModel Configuration Data Source Vector Ingestion Configuration Parsing Configuration Bedrock Foundation Model Configuration - Settings for a foundation model used to parse documents in a data source. See
bedrock_foundation_model_configuration
block for details.
- parsing
Strategy string - Currently only
BEDROCK_FOUNDATION_MODEL
is supported - bedrock
Foundation AgentModel Configuration Data Source Vector Ingestion Configuration Parsing Configuration Bedrock Foundation Model Configuration - Settings for a foundation model used to parse documents in a data source. See
bedrock_foundation_model_configuration
block for details.
- parsing_
strategy str - Currently only
BEDROCK_FOUNDATION_MODEL
is supported - bedrock_
foundation_ Agentmodel_ configuration Data Source Vector Ingestion Configuration Parsing Configuration Bedrock Foundation Model Configuration - Settings for a foundation model used to parse documents in a data source. See
bedrock_foundation_model_configuration
block for details.
- parsing
Strategy String - Currently only
BEDROCK_FOUNDATION_MODEL
is supported - bedrock
Foundation Property MapModel Configuration - Settings for a foundation model used to parse documents in a data source. See
bedrock_foundation_model_configuration
block for details.
AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfiguration, AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationArgs
- Model
Arn string - The ARN of the model used to parse documents
- Parsing
Prompt AgentData Source Vector Ingestion Configuration Parsing Configuration Bedrock Foundation Model Configuration Parsing Prompt - Instructions for interpreting the contents of the document. See
parsing_prompt
block for details.
- Model
Arn string - The ARN of the model used to parse documents
- Parsing
Prompt AgentData Source Vector Ingestion Configuration Parsing Configuration Bedrock Foundation Model Configuration Parsing Prompt - Instructions for interpreting the contents of the document. See
parsing_prompt
block for details.
- model
Arn String - The ARN of the model used to parse documents
- parsing
Prompt AgentData Source Vector Ingestion Configuration Parsing Configuration Bedrock Foundation Model Configuration Parsing Prompt - Instructions for interpreting the contents of the document. See
parsing_prompt
block for details.
- model
Arn string - The ARN of the model used to parse documents
- parsing
Prompt AgentData Source Vector Ingestion Configuration Parsing Configuration Bedrock Foundation Model Configuration Parsing Prompt - Instructions for interpreting the contents of the document. See
parsing_prompt
block for details.
- model_
arn str - The ARN of the model used to parse documents
- parsing_
prompt AgentData Source Vector Ingestion Configuration Parsing Configuration Bedrock Foundation Model Configuration Parsing Prompt - Instructions for interpreting the contents of the document. See
parsing_prompt
block for details.
- model
Arn String - The ARN of the model used to parse documents
- parsing
Prompt Property Map - Instructions for interpreting the contents of the document. See
parsing_prompt
block for details.
AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPrompt, AgentDataSourceVectorIngestionConfigurationParsingConfigurationBedrockFoundationModelConfigurationParsingPromptArgs
- Parsing
Prompt stringString - Instructions for interpreting the contents of the document.
- Parsing
Prompt stringString - Instructions for interpreting the contents of the document.
- parsing
Prompt StringString - Instructions for interpreting the contents of the document.
- parsing
Prompt stringString - Instructions for interpreting the contents of the document.
- parsing_
prompt_ strstring - Instructions for interpreting the contents of the document.
- parsing
Prompt StringString - Instructions for interpreting the contents of the document.
Import
Using pulumi import
, import Agents for Amazon Bedrock Data Source using the data source ID and the knowledge base ID. For example:
$ pulumi import aws:bedrock/agentDataSource:AgentDataSource example GWCMFMQF6T,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.