Class CfnDataSource
Properties with
__Update requires: Replacement__can result in the creation of a new data source and deletion of the old one.
Inherited Members
Namespace: Amazon.CDK.AWS.Bedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDataSource : CfnResource, IInspectable, IDataSourceRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnDataSource Inherits CfnResource Implements IInspectable, IDataSourceRef, IConstruct, IDependable, IEnvironmentAware
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var cfnDataSource = new CfnDataSource(this, "MyCfnDataSource", new CfnDataSourceProps {
DataSourceConfiguration = new DataSourceConfigurationProperty {
Type = "type",
// the properties below are optional
ConfluenceConfiguration = new ConfluenceDataSourceConfigurationProperty {
SourceConfiguration = new ConfluenceSourceConfigurationProperty {
AuthType = "authType",
CredentialsSecretArn = "credentialsSecretArn",
HostType = "hostType",
HostUrl = "hostUrl"
},
// the properties below are optional
CrawlerConfiguration = new ConfluenceCrawlerConfigurationProperty {
FilterConfiguration = new CrawlFilterConfigurationProperty {
Type = "type",
// the properties below are optional
PatternObjectFilter = new PatternObjectFilterConfigurationProperty {
Filters = new [] { new PatternObjectFilterProperty {
ObjectType = "objectType",
// the properties below are optional
ExclusionFilters = new [] { "exclusionFilters" },
InclusionFilters = new [] { "inclusionFilters" }
} }
}
}
}
},
S3Configuration = new S3DataSourceConfigurationProperty {
BucketArn = "bucketArn",
// the properties below are optional
BucketOwnerAccountId = "bucketOwnerAccountId",
InclusionPrefixes = new [] { "inclusionPrefixes" }
},
SalesforceConfiguration = new SalesforceDataSourceConfigurationProperty {
SourceConfiguration = new SalesforceSourceConfigurationProperty {
AuthType = "authType",
CredentialsSecretArn = "credentialsSecretArn",
HostUrl = "hostUrl"
},
// the properties below are optional
CrawlerConfiguration = new SalesforceCrawlerConfigurationProperty {
FilterConfiguration = new CrawlFilterConfigurationProperty {
Type = "type",
// the properties below are optional
PatternObjectFilter = new PatternObjectFilterConfigurationProperty {
Filters = new [] { new PatternObjectFilterProperty {
ObjectType = "objectType",
// the properties below are optional
ExclusionFilters = new [] { "exclusionFilters" },
InclusionFilters = new [] { "inclusionFilters" }
} }
}
}
}
},
SharePointConfiguration = new SharePointDataSourceConfigurationProperty {
SourceConfiguration = new SharePointSourceConfigurationProperty {
AuthType = "authType",
CredentialsSecretArn = "credentialsSecretArn",
Domain = "domain",
HostType = "hostType",
SiteUrls = new [] { "siteUrls" },
// the properties below are optional
TenantId = "tenantId"
},
// the properties below are optional
CrawlerConfiguration = new SharePointCrawlerConfigurationProperty {
FilterConfiguration = new CrawlFilterConfigurationProperty {
Type = "type",
// the properties below are optional
PatternObjectFilter = new PatternObjectFilterConfigurationProperty {
Filters = new [] { new PatternObjectFilterProperty {
ObjectType = "objectType",
// the properties below are optional
ExclusionFilters = new [] { "exclusionFilters" },
InclusionFilters = new [] { "inclusionFilters" }
} }
}
}
}
},
WebConfiguration = new WebDataSourceConfigurationProperty {
SourceConfiguration = new WebSourceConfigurationProperty {
UrlConfiguration = new UrlConfigurationProperty {
SeedUrls = new [] { new SeedUrlProperty {
Url = "url"
} }
}
},
// the properties below are optional
CrawlerConfiguration = new WebCrawlerConfigurationProperty {
CrawlerLimits = new WebCrawlerLimitsProperty {
MaxPages = 123,
RateLimit = 123
},
ExclusionFilters = new [] { "exclusionFilters" },
InclusionFilters = new [] { "inclusionFilters" },
Scope = "scope",
UserAgent = "userAgent",
UserAgentHeader = "userAgentHeader"
}
}
},
KnowledgeBaseId = "knowledgeBaseId",
Name = "name",
// the properties below are optional
DataDeletionPolicy = "dataDeletionPolicy",
Description = "description",
ServerSideEncryptionConfiguration = new ServerSideEncryptionConfigurationProperty {
KmsKeyArn = "kmsKeyArn"
},
VectorIngestionConfiguration = new VectorIngestionConfigurationProperty {
ChunkingConfiguration = new ChunkingConfigurationProperty {
ChunkingStrategy = "chunkingStrategy",
// the properties below are optional
FixedSizeChunkingConfiguration = new FixedSizeChunkingConfigurationProperty {
MaxTokens = 123,
OverlapPercentage = 123
},
HierarchicalChunkingConfiguration = new HierarchicalChunkingConfigurationProperty {
LevelConfigurations = new [] { new HierarchicalChunkingLevelConfigurationProperty {
MaxTokens = 123
} },
OverlapTokens = 123
},
SemanticChunkingConfiguration = new SemanticChunkingConfigurationProperty {
BreakpointPercentileThreshold = 123,
BufferSize = 123,
MaxTokens = 123
}
},
ContextEnrichmentConfiguration = new ContextEnrichmentConfigurationProperty {
Type = "type",
// the properties below are optional
BedrockFoundationModelConfiguration = new BedrockFoundationModelContextEnrichmentConfigurationProperty {
EnrichmentStrategyConfiguration = new EnrichmentStrategyConfigurationProperty {
Method = "method"
},
ModelArn = "modelArn"
}
},
CustomTransformationConfiguration = new CustomTransformationConfigurationProperty {
IntermediateStorage = new IntermediateStorageProperty {
S3Location = new S3LocationProperty {
Uri = "uri"
}
},
Transformations = new [] { new TransformationProperty {
StepToApply = "stepToApply",
TransformationFunction = new TransformationFunctionProperty {
TransformationLambdaConfiguration = new TransformationLambdaConfigurationProperty {
LambdaArn = "lambdaArn"
}
}
} }
},
ParsingConfiguration = new ParsingConfigurationProperty {
ParsingStrategy = "parsingStrategy",
// the properties below are optional
BedrockDataAutomationConfiguration = new BedrockDataAutomationConfigurationProperty {
ParsingModality = "parsingModality"
},
BedrockFoundationModelConfiguration = new BedrockFoundationModelConfigurationProperty {
ModelArn = "modelArn",
// the properties below are optional
ParsingModality = "parsingModality",
ParsingPrompt = new ParsingPromptProperty {
ParsingPromptText = "parsingPromptText"
}
}
}
}
});
Synopsis
Constructors
| CfnDataSource(Construct, string, ICfnDataSourceProps) | Create a new |
Properties
| AttrCreatedAt | The time at which the data source was created. |
| AttrDataSourceConfigurationWebConfigurationCrawlerConfigurationUserAgentHeader | A string used for identifying the crawler or bot when it accesses a web server. |
| AttrDataSourceId | The unique identifier of the data source. |
| AttrDataSourceStatus | The status of the data source. The following statuses are possible:. |
| AttrFailureReasons | The detailed reasons on the failure to delete a data source. |
| AttrUpdatedAt | The time at which the data source was last updated. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | Properties with |
| CfnPropertyNames | Properties with |
| DataDeletionPolicy | The data deletion policy for the data source. |
| DataSourceConfiguration | The connection configuration for the data source. |
| DataSourceRef | A reference to a DataSource resource. |
| Description | The description of the data source. |
| KnowledgeBaseId | The unique identifier of the knowledge base to which the data source belongs. |
| Name | The name of the data source. |
| ServerSideEncryptionConfiguration | Contains details about the configuration of the server-side encryption. |
| VectorIngestionConfiguration | Contains details about how to ingest the documents in the data source. |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnDataSource(object) | Checks whether the given object is a CfnDataSource. |
| RenderProperties(IDictionary<string, object>) | Properties with |
Constructors
CfnDataSource(Construct, string, ICfnDataSourceProps)
Create a new AWS::Bedrock::DataSource.
public CfnDataSource(Construct scope, string id, ICfnDataSourceProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnDataSourceProps
Resource properties.
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
Properties
AttrCreatedAt
The time at which the data source was created.
public virtual string AttrCreatedAt { get; }
Property Value
Remarks
CloudformationAttribute: CreatedAt
AttrDataSourceConfigurationWebConfigurationCrawlerConfigurationUserAgentHeader
A string used for identifying the crawler or bot when it accesses a web server.
public virtual string AttrDataSourceConfigurationWebConfigurationCrawlerConfigurationUserAgentHeader { get; }
Property Value
Remarks
The user agent header value consists of the bedrockbot , UUID, and a user agent suffix for your crawler (if one is provided). By default, it is set to bedrockbot_UUID . You can optionally append a custom suffix to bedrockbot_UUID to allowlist a specific user agent permitted to access your source URLs.
CloudformationAttribute: DataSourceConfiguration.WebConfiguration.CrawlerConfiguration.UserAgentHeader
AttrDataSourceId
The unique identifier of the data source.
public virtual string AttrDataSourceId { get; }
Property Value
Remarks
CloudformationAttribute: DataSourceId
AttrDataSourceStatus
The status of the data source. The following statuses are possible:.
public virtual string AttrDataSourceStatus { get; }
Property Value
Remarks
CloudformationAttribute: DataSourceStatus
AttrFailureReasons
The detailed reasons on the failure to delete a data source.
public virtual string[] AttrFailureReasons { get; }
Property Value
string[]
Remarks
CloudformationAttribute: FailureReasons
AttrUpdatedAt
The time at which the data source was last updated.
public virtual string AttrUpdatedAt { get; }
Property Value
Remarks
CloudformationAttribute: UpdatedAt
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
CfnProperties
Properties with
__Update requires: Replacement__can result in the creation of a new data source and deletion of the old one.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
CfnPropertyNames
Properties with
__Update requires: Replacement__can result in the creation of a new data source and deletion of the old one.
protected override IDictionary<string, string> CfnPropertyNames { get; }
Property Value
Overrides
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
DataDeletionPolicy
The data deletion policy for the data source.
public virtual string? DataDeletionPolicy { get; set; }
Property Value
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
DataSourceConfiguration
The connection configuration for the data source.
public virtual object DataSourceConfiguration { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnDataSource.IDataSourceConfigurationProperty
DataSourceRef
A reference to a DataSource resource.
public virtual IDataSourceReference DataSourceRef { get; }
Property Value
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
Description
The description of the data source.
public virtual string? Description { get; set; }
Property Value
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
KnowledgeBaseId
The unique identifier of the knowledge base to which the data source belongs.
public virtual string KnowledgeBaseId { get; set; }
Property Value
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
Name
The name of the data source.
public virtual string Name { get; set; }
Property Value
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
ServerSideEncryptionConfiguration
Contains details about the configuration of the server-side encryption.
public virtual object? ServerSideEncryptionConfiguration { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnDataSource.IServerSideEncryptionConfigurationProperty
VectorIngestionConfiguration
Contains details about how to ingest the documents in the data source.
public virtual object? VectorIngestionConfiguration { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnDataSource.IVectorIngestionConfigurationProperty
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
IsCfnDataSource(object)
Checks whether the given object is a CfnDataSource.
public static bool IsCfnDataSource(object x)
Parameters
- x object
Returns
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Properties with
__Update requires: Replacement__can result in the creation of a new data source and deletion of the old one.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
This can happen if you also change the Name of the data source.
Specifies a data source as a resource in a top-level template. Minimally, you must specify the following properties:
For more information about setting up data sources in Amazon Bedrock , see Set up a data source for your knowledge base .
See the Properties section below for descriptions of both the required and optional properties.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-datasource.html
CloudformationResource: AWS::Bedrock::DataSource
ExampleMetadata: fixture=_generated