Skip to content
v2.275.0

S3DataSourceConfigurationProperty Struct ​

The configuration information to connect to Amazon S3 as your data source.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const s3DataSourceConfigurationProperty: bedrock.CfnDataSource.S3DataSourceConfigurationProperty = {
  bucketArn: 'bucketArn',

  // the properties below are optional
  bucketOwnerAccountId: 'bucketOwnerAccountId',
  inclusionPrefixes: ['inclusionPrefixes'],
};

Properties ​

bucketArnstringbucket_arnstrbucketArnStringBucketArnstringBucketArn*stringrequired#
The Amazon Resource Name (ARN) of the S3 bucket that contains your data.
bucketOwnerAccountIdoptionalstringbucket_owner_account_idoptionalstrbucketOwnerAccountIdoptionalStringBucketOwnerAccountIdoptionalstringBucketOwnerAccountIdoptional*string#
The account ID for the owner of the S3 bucket.
inclusionPrefixesoptionalstring[]inclusion_prefixesoptionaltyping.List[str]inclusionPrefixesoptionalList<String>InclusionPrefixesoptionalstring[]InclusionPrefixesoptional*[]*string#
A list of S3 prefixes to include certain files or content.
notes

This field is an array with a maximum of one item, which can contain a string that has a maximum length of 300 characters. For more information, see Organizing objects using prefixes .