AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws-native.bedrock.DataSource
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi
Definition of AWS::Bedrock::DataSource Resource Type
Create DataSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataSource(name: string, args: DataSourceArgs, opts?: CustomResourceOptions);
@overload
def DataSource(resource_name: str,
args: DataSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DataSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_source_configuration: Optional[DataSourceConfigurationArgs] = None,
knowledge_base_id: Optional[str] = None,
data_deletion_policy: Optional[DataSourceDataDeletionPolicy] = None,
description: Optional[str] = None,
name: Optional[str] = None,
server_side_encryption_configuration: Optional[DataSourceServerSideEncryptionConfigurationArgs] = None,
vector_ingestion_configuration: Optional[DataSourceVectorIngestionConfigurationArgs] = None)
func NewDataSource(ctx *Context, name string, args DataSourceArgs, opts ...ResourceOption) (*DataSource, error)
public DataSource(string name, DataSourceArgs args, CustomResourceOptions? opts = null)
public DataSource(String name, DataSourceArgs args)
public DataSource(String name, DataSourceArgs args, CustomResourceOptions options)
type: aws-native:bedrock:DataSource
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 DataSourceArgs
- 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 DataSourceArgs
- 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 DataSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataSourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DataSource 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 DataSource resource accepts the following input properties:
- Data
Source Pulumi.Configuration Aws Native. Bedrock. Inputs. Data Source Configuration - Contains details about how the data source is stored.
- Knowledge
Base stringId - The unique identifier of the knowledge base to which to add the data source.
- Data
Deletion Pulumi.Policy Aws Native. Bedrock. Data Source Data Deletion Policy - The data deletion policy for a data source.
- Description string
- Description of the Resource.
- Name string
- The name of the data source.
- Server
Side Pulumi.Encryption Configuration Aws Native. Bedrock. Inputs. Data Source Server Side Encryption Configuration - Contains details about the configuration of the server-side encryption.
- Vector
Ingestion Pulumi.Configuration Aws Native. Bedrock. Inputs. Data Source Vector Ingestion Configuration - Contains details about how to ingest the documents in the data source.
- Data
Source DataConfiguration Source Configuration Args - Contains details about how the data source is stored.
- Knowledge
Base stringId - The unique identifier of the knowledge base to which to add the data source.
- Data
Deletion DataPolicy Source Data Deletion Policy - The data deletion policy for a data source.
- Description string
- Description of the Resource.
- Name string
- The name of the data source.
- Server
Side DataEncryption Configuration Source Server Side Encryption Configuration Args - Contains details about the configuration of the server-side encryption.
- Vector
Ingestion DataConfiguration Source Vector Ingestion Configuration Args - Contains details about how to ingest the documents in the data source.
- data
Source DataConfiguration Source Configuration - Contains details about how the data source is stored.
- knowledge
Base StringId - The unique identifier of the knowledge base to which to add the data source.
- data
Deletion DataPolicy Source Data Deletion Policy - The data deletion policy for a data source.
- description String
- Description of the Resource.
- name String
- The name of the data source.
- server
Side DataEncryption Configuration Source Server Side Encryption Configuration - Contains details about the configuration of the server-side encryption.
- vector
Ingestion DataConfiguration Source Vector Ingestion Configuration - Contains details about how to ingest the documents in the data source.
- data
Source DataConfiguration Source Configuration - Contains details about how the data source is stored.
- knowledge
Base stringId - The unique identifier of the knowledge base to which to add the data source.
- data
Deletion DataPolicy Source Data Deletion Policy - The data deletion policy for a data source.
- description string
- Description of the Resource.
- name string
- The name of the data source.
- server
Side DataEncryption Configuration Source Server Side Encryption Configuration - Contains details about the configuration of the server-side encryption.
- vector
Ingestion DataConfiguration Source Vector Ingestion Configuration - Contains details about how to ingest the documents in the data source.
- data_
source_ Dataconfiguration Source Configuration Args - Contains details about how the data source is stored.
- knowledge_
base_ strid - The unique identifier of the knowledge base to which to add the data source.
- data_
deletion_ Datapolicy Source Data Deletion Policy - The data deletion policy for a data source.
- description str
- Description of the Resource.
- name str
- The name of the data source.
- server_
side_ Dataencryption_ configuration Source Server Side Encryption Configuration Args - Contains details about the configuration of the server-side encryption.
- vector_
ingestion_ Dataconfiguration Source Vector Ingestion Configuration Args - Contains details about how to ingest the documents in the data source.
- data
Source Property MapConfiguration - Contains details about how the data source is stored.
- knowledge
Base StringId - The unique identifier of the knowledge base to which to add the data source.
- data
Deletion "RETAIN" | "DELETE"Policy - The data deletion policy for a data source.
- description String
- Description of the Resource.
- name String
- The name of the data source.
- server
Side Property MapEncryption Configuration - Contains details about the configuration of the server-side encryption.
- vector
Ingestion Property MapConfiguration - Contains details about how to ingest the documents in the data source.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataSource resource produces the following output properties:
- Created
At string - The time at which the data source was created.
- Data
Source stringId - Identifier for a resource.
- Data
Source Pulumi.Status Aws Native. Bedrock. Data Source Status - The status of the data source. The following statuses are possible:
- Available – The data source has been created and is ready for ingestion into the knowledge base.
- Deleting – The data source is being deleted.
- Failure
Reasons List<string> - The details of the failure reasons related to the data source.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - The time at which the knowledge base was last updated.
- Created
At string - The time at which the data source was created.
- Data
Source stringId - Identifier for a resource.
- Data
Source DataStatus Source Status - The status of the data source. The following statuses are possible:
- Available – The data source has been created and is ready for ingestion into the knowledge base.
- Deleting – The data source is being deleted.
- Failure
Reasons []string - The details of the failure reasons related to the data source.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - The time at which the knowledge base was last updated.
- created
At String - The time at which the data source was created.
- data
Source StringId - Identifier for a resource.
- data
Source DataStatus Source Status - The status of the data source. The following statuses are possible:
- Available – The data source has been created and is ready for ingestion into the knowledge base.
- Deleting – The data source is being deleted.
- failure
Reasons List<String> - The details of the failure reasons related to the data source.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - The time at which the knowledge base was last updated.
- created
At string - The time at which the data source was created.
- data
Source stringId - Identifier for a resource.
- data
Source DataStatus Source Status - The status of the data source. The following statuses are possible:
- Available – The data source has been created and is ready for ingestion into the knowledge base.
- Deleting – The data source is being deleted.
- failure
Reasons string[] - The details of the failure reasons related to the data source.
- id string
- The provider-assigned unique ID for this managed resource.
- updated
At string - The time at which the knowledge base was last updated.
- created_
at str - The time at which the data source was created.
- data_
source_ strid - Identifier for a resource.
- data_
source_ Datastatus Source Status - The status of the data source. The following statuses are possible:
- Available – The data source has been created and is ready for ingestion into the knowledge base.
- Deleting – The data source is being deleted.
- failure_
reasons Sequence[str] - The details of the failure reasons related to the data source.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - The time at which the knowledge base was last updated.
- created
At String - The time at which the data source was created.
- data
Source StringId - Identifier for a resource.
- data
Source "AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL"Status - The status of the data source. The following statuses are possible:
- Available – The data source has been created and is ready for ingestion into the knowledge base.
- Deleting – The data source is being deleted.
- failure
Reasons List<String> - The details of the failure reasons related to the data source.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - The time at which the knowledge base was last updated.
Supporting Types
DataSourceChunkingConfiguration, DataSourceChunkingConfigurationArgs
- Chunking
Strategy Pulumi.Aws Native. Bedrock. Data Source Chunking Strategy - Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for
NONE
, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.FIXED_SIZE
– Amazon Bedrock splits your source data into chunks of the approximate size that you set in thefixedSizeChunkingConfiguration
.NONE
– Amazon Bedrock treats each file as one chunk. If you choose this option, you may want to pre-process your documents by splitting them into separate files.
- Fixed
Size Pulumi.Chunking Configuration Aws Native. Bedrock. Inputs. Data Source Fixed Size Chunking Configuration - Configurations for when you choose fixed-size chunking. If you set the
chunkingStrategy
asNONE
, exclude this field.
- Chunking
Strategy DataSource Chunking Strategy - Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for
NONE
, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.FIXED_SIZE
– Amazon Bedrock splits your source data into chunks of the approximate size that you set in thefixedSizeChunkingConfiguration
.NONE
– Amazon Bedrock treats each file as one chunk. If you choose this option, you may want to pre-process your documents by splitting them into separate files.
- Fixed
Size DataChunking Configuration Source Fixed Size Chunking Configuration - Configurations for when you choose fixed-size chunking. If you set the
chunkingStrategy
asNONE
, exclude this field.
- chunking
Strategy DataSource Chunking Strategy - Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for
NONE
, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.FIXED_SIZE
– Amazon Bedrock splits your source data into chunks of the approximate size that you set in thefixedSizeChunkingConfiguration
.NONE
– Amazon Bedrock treats each file as one chunk. If you choose this option, you may want to pre-process your documents by splitting them into separate files.
- fixed
Size DataChunking Configuration Source Fixed Size Chunking Configuration - Configurations for when you choose fixed-size chunking. If you set the
chunkingStrategy
asNONE
, exclude this field.
- chunking
Strategy DataSource Chunking Strategy - Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for
NONE
, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.FIXED_SIZE
– Amazon Bedrock splits your source data into chunks of the approximate size that you set in thefixedSizeChunkingConfiguration
.NONE
– Amazon Bedrock treats each file as one chunk. If you choose this option, you may want to pre-process your documents by splitting them into separate files.
- fixed
Size DataChunking Configuration Source Fixed Size Chunking Configuration - Configurations for when you choose fixed-size chunking. If you set the
chunkingStrategy
asNONE
, exclude this field.
- chunking_
strategy DataSource Chunking Strategy - Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for
NONE
, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.FIXED_SIZE
– Amazon Bedrock splits your source data into chunks of the approximate size that you set in thefixedSizeChunkingConfiguration
.NONE
– Amazon Bedrock treats each file as one chunk. If you choose this option, you may want to pre-process your documents by splitting them into separate files.
- fixed_
size_ Datachunking_ configuration Source Fixed Size Chunking Configuration - Configurations for when you choose fixed-size chunking. If you set the
chunkingStrategy
asNONE
, exclude this field.
- chunking
Strategy "FIXED_SIZE" | "NONE" - Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for
NONE
, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.FIXED_SIZE
– Amazon Bedrock splits your source data into chunks of the approximate size that you set in thefixedSizeChunkingConfiguration
.NONE
– Amazon Bedrock treats each file as one chunk. If you choose this option, you may want to pre-process your documents by splitting them into separate files.
- fixed
Size Property MapChunking Configuration - Configurations for when you choose fixed-size chunking. If you set the
chunkingStrategy
asNONE
, exclude this field.
DataSourceChunkingStrategy, DataSourceChunkingStrategyArgs
- Fixed
Size - FIXED_SIZE
- None
- NONE
- Data
Source Chunking Strategy Fixed Size - FIXED_SIZE
- Data
Source Chunking Strategy None - NONE
- Fixed
Size - FIXED_SIZE
- None
- NONE
- Fixed
Size - FIXED_SIZE
- None
- NONE
- FIXED_SIZE
- FIXED_SIZE
- NONE
- NONE
- "FIXED_SIZE"
- FIXED_SIZE
- "NONE"
- NONE
DataSourceConfiguration, DataSourceConfigurationArgs
- S3Configuration
Pulumi.
Aws Native. Bedrock. Inputs. Data Source S3Data Source Configuration - Contains details about the configuration of the S3 object containing the data source.
- Type
Pulumi.
Aws Native. Bedrock. Data Source Type - The type of storage for the data source.
- S3Configuration
Data
Source S3Data Source Configuration - Contains details about the configuration of the S3 object containing the data source.
- Type
Data
Source Type - The type of storage for the data source.
- s3Configuration
Data
Source S3Data Source Configuration - Contains details about the configuration of the S3 object containing the data source.
- type
Data
Source Type - The type of storage for the data source.
- s3Configuration
Data
Source S3Data Source Configuration - Contains details about the configuration of the S3 object containing the data source.
- type
Data
Source Type - The type of storage for the data source.
- s3_
configuration DataSource S3Data Source Configuration - Contains details about the configuration of the S3 object containing the data source.
- type
Data
Source Type - The type of storage for the data source.
- s3Configuration Property Map
- Contains details about the configuration of the S3 object containing the data source.
- type "S3"
- The type of storage for the data source.
DataSourceDataDeletionPolicy, DataSourceDataDeletionPolicyArgs
- Retain
- RETAIN
- Delete
- DELETE
- Data
Source Data Deletion Policy Retain - RETAIN
- Data
Source Data Deletion Policy Delete - DELETE
- Retain
- RETAIN
- Delete
- DELETE
- Retain
- RETAIN
- Delete
- DELETE
- RETAIN
- RETAIN
- DELETE
- DELETE
- "RETAIN"
- RETAIN
- "DELETE"
- DELETE
DataSourceFixedSizeChunkingConfiguration, DataSourceFixedSizeChunkingConfigurationArgs
- Max
Tokens int - The maximum number of tokens to include in a chunk.
- Overlap
Percentage int - The percentage of overlap between adjacent chunks of a data source.
- Max
Tokens int - The maximum number of tokens to include in a chunk.
- Overlap
Percentage int - The percentage of overlap between adjacent chunks of a data source.
- max
Tokens Integer - The maximum number of tokens to include in a chunk.
- overlap
Percentage Integer - The percentage of overlap between adjacent chunks of a data source.
- max
Tokens number - The maximum number of tokens to include in a chunk.
- overlap
Percentage number - The percentage of overlap between adjacent chunks of a data source.
- max_
tokens int - The maximum number of tokens to include in a chunk.
- overlap_
percentage int - The percentage of overlap between adjacent chunks of a data source.
- max
Tokens Number - The maximum number of tokens to include in a chunk.
- overlap
Percentage Number - The percentage of overlap between adjacent chunks of a data source.
DataSourceS3DataSourceConfiguration, DataSourceS3DataSourceConfigurationArgs
- Bucket
Arn string - The ARN of the bucket that contains the data source.
- Bucket
Owner stringAccount Id - The account ID for the owner of the S3 bucket.
- Inclusion
Prefixes List<string> - A list of S3 prefixes that define the object containing the data sources.
- Bucket
Arn string - The ARN of the bucket that contains the data source.
- Bucket
Owner stringAccount Id - The account ID for the owner of the S3 bucket.
- Inclusion
Prefixes []string - A list of S3 prefixes that define the object containing the data sources.
- bucket
Arn String - The ARN of the bucket that contains the data source.
- bucket
Owner StringAccount Id - The account ID for the owner of the S3 bucket.
- inclusion
Prefixes List<String> - A list of S3 prefixes that define the object containing the data sources.
- bucket
Arn string - The ARN of the bucket that contains the data source.
- bucket
Owner stringAccount Id - The account ID for the owner of the S3 bucket.
- inclusion
Prefixes string[] - A list of S3 prefixes that define the object containing the data sources.
- bucket_
arn str - The ARN of the bucket that contains the data source.
- bucket_
owner_ straccount_ id - The account ID for the owner of the S3 bucket.
- inclusion_
prefixes Sequence[str] - A list of S3 prefixes that define the object containing the data sources.
- bucket
Arn String - The ARN of the bucket that contains the data source.
- bucket
Owner StringAccount Id - The account ID for the owner of the S3 bucket.
- inclusion
Prefixes List<String> - A list of S3 prefixes that define the object containing the data sources.
DataSourceServerSideEncryptionConfiguration, DataSourceServerSideEncryptionConfigurationArgs
- Kms
Key stringArn - The ARN of the AWS KMS key used to encrypt the resource.
- Kms
Key stringArn - The ARN of the AWS KMS key used to encrypt the resource.
- kms
Key StringArn - The ARN of the AWS KMS key used to encrypt the resource.
- kms
Key stringArn - The ARN of the AWS KMS key used to encrypt the resource.
- kms_
key_ strarn - The ARN of the AWS KMS key used to encrypt the resource.
- kms
Key StringArn - The ARN of the AWS KMS key used to encrypt the resource.
DataSourceStatus, DataSourceStatusArgs
- Available
- AVAILABLE
- Deleting
- DELETING
- Delete
Unsuccessful - DELETE_UNSUCCESSFUL
- Data
Source Status Available - AVAILABLE
- Data
Source Status Deleting - DELETING
- Data
Source Status Delete Unsuccessful - DELETE_UNSUCCESSFUL
- Available
- AVAILABLE
- Deleting
- DELETING
- Delete
Unsuccessful - DELETE_UNSUCCESSFUL
- Available
- AVAILABLE
- Deleting
- DELETING
- Delete
Unsuccessful - DELETE_UNSUCCESSFUL
- AVAILABLE
- AVAILABLE
- DELETING
- DELETING
- DELETE_UNSUCCESSFUL
- DELETE_UNSUCCESSFUL
- "AVAILABLE"
- AVAILABLE
- "DELETING"
- DELETING
- "DELETE_UNSUCCESSFUL"
- DELETE_UNSUCCESSFUL
DataSourceType, DataSourceTypeArgs
- S3
- S3
- Data
Source Type S3 - S3
- S3
- S3
- S3
- S3
- S3
- S3
- "S3"
- S3
DataSourceVectorIngestionConfiguration, DataSourceVectorIngestionConfigurationArgs
- Chunking
Configuration Pulumi.Aws Native. Bedrock. Inputs. Data Source 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.
- Chunking
Configuration DataSource 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.
- chunking
Configuration DataSource 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.
- chunking
Configuration DataSource 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.
- chunking_
configuration DataSource 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.
- 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.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi