1. Packages
  2. AWS Native
  3. API Docs
  4. bedrock
  5. DataSource

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

aws-native.bedrock.DataSource

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 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.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const dataSourceResource = new aws_native.bedrock.DataSource("dataSourceResource", {
        dataSourceConfiguration: {
            s3Configuration: {
                bucketArn: "string",
                bucketOwnerAccountId: "string",
                inclusionPrefixes: ["string"],
            },
            type: aws_native.bedrock.DataSourceType.S3,
        },
        knowledgeBaseId: "string",
        dataDeletionPolicy: aws_native.bedrock.DataSourceDataDeletionPolicy.Retain,
        description: "string",
        name: "string",
        serverSideEncryptionConfiguration: {
            kmsKeyArn: "string",
        },
        vectorIngestionConfiguration: {
            chunkingConfiguration: {
                chunkingStrategy: aws_native.bedrock.DataSourceChunkingStrategy.FixedSize,
                fixedSizeChunkingConfiguration: {
                    maxTokens: 0,
                    overlapPercentage: 0,
                },
            },
        },
    });
    
    Coming soon!
    

    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:

    dataSourceConfiguration Property Map
    knowledgeBaseId String
    The unique identifier of the knowledge base to which to add the data source.
    dataDeletionPolicy "RETAIN" | "DELETE"
    description String
    Description of the Resource.
    name String
    The name of the data source.
    serverSideEncryptionConfiguration Property Map
    vectorIngestionConfiguration Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DataSource resource produces the following output properties:

    CreatedAt string
    The time at which the data source was created.
    DataSourceId string
    Identifier for a resource.
    DataSourceStatus Pulumi.AwsNative.Bedrock.DataSourceStatus
    FailureReasons List<string>
    The details of the failure reasons related to the data source.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The time at which the knowledge base was last updated.
    CreatedAt string
    The time at which the data source was created.
    DataSourceId string
    Identifier for a resource.
    DataSourceStatus DataSourceStatus
    FailureReasons []string
    The details of the failure reasons related to the data source.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The time at which the knowledge base was last updated.
    createdAt String
    The time at which the data source was created.
    dataSourceId String
    Identifier for a resource.
    dataSourceStatus DataSourceStatus
    failureReasons List<String>
    The details of the failure reasons related to the data source.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The time at which the knowledge base was last updated.
    createdAt string
    The time at which the data source was created.
    dataSourceId string
    Identifier for a resource.
    dataSourceStatus DataSourceStatus
    failureReasons string[]
    The details of the failure reasons related to the data source.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt 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_id str
    Identifier for a resource.
    data_source_status DataSourceStatus
    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.
    createdAt String
    The time at which the data source was created.
    dataSourceId String
    Identifier for a resource.
    dataSourceStatus "AVAILABLE" | "DELETING" | "DELETE_UNSUCCESSFUL"
    failureReasons List<String>
    The details of the failure reasons related to the data source.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The time at which the knowledge base was last updated.

    Supporting Types

    DataSourceChunkingConfiguration, DataSourceChunkingConfigurationArgs

    DataSourceChunkingStrategy, DataSourceChunkingStrategyArgs

    FixedSize
    FIXED_SIZE
    None
    NONE
    DataSourceChunkingStrategyFixedSize
    FIXED_SIZE
    DataSourceChunkingStrategyNone
    NONE
    FixedSize
    FIXED_SIZE
    None
    NONE
    FixedSize
    FIXED_SIZE
    None
    NONE
    FIXED_SIZE
    FIXED_SIZE
    NONE
    NONE
    "FIXED_SIZE"
    FIXED_SIZE
    "NONE"
    NONE

    DataSourceConfiguration, DataSourceConfigurationArgs

    DataSourceDataDeletionPolicy, DataSourceDataDeletionPolicyArgs

    Retain
    RETAIN
    Delete
    DELETE
    DataSourceDataDeletionPolicyRetain
    RETAIN
    DataSourceDataDeletionPolicyDelete
    DELETE
    Retain
    RETAIN
    Delete
    DELETE
    Retain
    RETAIN
    Delete
    DELETE
    RETAIN
    RETAIN
    DELETE
    DELETE
    "RETAIN"
    RETAIN
    "DELETE"
    DELETE

    DataSourceFixedSizeChunkingConfiguration, DataSourceFixedSizeChunkingConfigurationArgs

    MaxTokens int
    The maximum number of tokens to include in a chunk.
    OverlapPercentage int
    The percentage of overlap between adjacent chunks of a data source.
    MaxTokens int
    The maximum number of tokens to include in a chunk.
    OverlapPercentage int
    The percentage of overlap between adjacent chunks of a data source.
    maxTokens Integer
    The maximum number of tokens to include in a chunk.
    overlapPercentage Integer
    The percentage of overlap between adjacent chunks of a data source.
    maxTokens number
    The maximum number of tokens to include in a chunk.
    overlapPercentage 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.
    maxTokens Number
    The maximum number of tokens to include in a chunk.
    overlapPercentage Number
    The percentage of overlap between adjacent chunks of a data source.

    DataSourceS3DataSourceConfiguration, DataSourceS3DataSourceConfigurationArgs

    BucketArn string
    The ARN of the bucket that contains the data source.
    BucketOwnerAccountId string
    The account ID for the owner of the S3 bucket.
    InclusionPrefixes List<string>
    A list of S3 prefixes that define the object containing the data sources.
    BucketArn string
    The ARN of the bucket that contains the data source.
    BucketOwnerAccountId string
    The account ID for the owner of the S3 bucket.
    InclusionPrefixes []string
    A list of S3 prefixes that define the object containing the data sources.
    bucketArn String
    The ARN of the bucket that contains the data source.
    bucketOwnerAccountId String
    The account ID for the owner of the S3 bucket.
    inclusionPrefixes List<String>
    A list of S3 prefixes that define the object containing the data sources.
    bucketArn string
    The ARN of the bucket that contains the data source.
    bucketOwnerAccountId string
    The account ID for the owner of the S3 bucket.
    inclusionPrefixes 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_account_id str
    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.
    bucketArn String
    The ARN of the bucket that contains the data source.
    bucketOwnerAccountId String
    The account ID for the owner of the S3 bucket.
    inclusionPrefixes List<String>
    A list of S3 prefixes that define the object containing the data sources.

    DataSourceServerSideEncryptionConfiguration, DataSourceServerSideEncryptionConfigurationArgs

    KmsKeyArn string
    The ARN of the AWS KMS key used to encrypt the resource.
    KmsKeyArn string
    The ARN of the AWS KMS key used to encrypt the resource.
    kmsKeyArn String
    The ARN of the AWS KMS key used to encrypt the resource.
    kmsKeyArn string
    The ARN of the AWS KMS key used to encrypt the resource.
    kms_key_arn str
    The ARN of the AWS KMS key used to encrypt the resource.
    kmsKeyArn String
    The ARN of the AWS KMS key used to encrypt the resource.

    DataSourceStatus, DataSourceStatusArgs

    Available
    AVAILABLE
    Deleting
    DELETING
    DeleteUnsuccessful
    DELETE_UNSUCCESSFUL
    DataSourceStatusAvailable
    AVAILABLE
    DataSourceStatusDeleting
    DELETING
    DataSourceStatusDeleteUnsuccessful
    DELETE_UNSUCCESSFUL
    Available
    AVAILABLE
    Deleting
    DELETING
    DeleteUnsuccessful
    DELETE_UNSUCCESSFUL
    Available
    AVAILABLE
    Deleting
    DELETING
    DeleteUnsuccessful
    DELETE_UNSUCCESSFUL
    AVAILABLE
    AVAILABLE
    DELETING
    DELETING
    DELETE_UNSUCCESSFUL
    DELETE_UNSUCCESSFUL
    "AVAILABLE"
    AVAILABLE
    "DELETING"
    DELETING
    "DELETE_UNSUCCESSFUL"
    DELETE_UNSUCCESSFUL

    DataSourceType, DataSourceTypeArgs

    S3
    S3
    DataSourceTypeS3
    S3
    S3
    S3
    S3
    S3
    S3
    S3
    "S3"
    S3

    DataSourceVectorIngestionConfiguration, DataSourceVectorIngestionConfigurationArgs

    Package Details

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

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi