Class CfnDataSourceMixinProps
Properties for CfnDataSourcePropsMixin.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.QBusiness.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnDataSourceMixinProps : ICfnDataSourceMixinProps
Syntax (vb)
Public Class CfnDataSourceMixinProps Implements ICfnDataSourceMixinProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-datasource.html
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.Mixins.Preview.AWS.QBusiness.Mixins;
var configuration;
var cfnDataSourceMixinProps = new CfnDataSourceMixinProps {
ApplicationId = "applicationId",
Configuration = configuration,
Description = "description",
DisplayName = "displayName",
DocumentEnrichmentConfiguration = new DocumentEnrichmentConfigurationProperty {
InlineConfigurations = new [] { new InlineDocumentEnrichmentConfigurationProperty {
Condition = new DocumentAttributeConditionProperty {
Key = "key",
Operator = "operator",
Value = new DocumentAttributeValueProperty {
DateValue = "dateValue",
LongValue = 123,
StringListValue = new [] { "stringListValue" },
StringValue = "stringValue"
}
},
DocumentContentOperator = "documentContentOperator",
Target = new DocumentAttributeTargetProperty {
AttributeValueOperator = "attributeValueOperator",
Key = "key",
Value = new DocumentAttributeValueProperty {
DateValue = "dateValue",
LongValue = 123,
StringListValue = new [] { "stringListValue" },
StringValue = "stringValue"
}
}
} },
PostExtractionHookConfiguration = new HookConfigurationProperty {
InvocationCondition = new DocumentAttributeConditionProperty {
Key = "key",
Operator = "operator",
Value = new DocumentAttributeValueProperty {
DateValue = "dateValue",
LongValue = 123,
StringListValue = new [] { "stringListValue" },
StringValue = "stringValue"
}
},
LambdaArn = "lambdaArn",
RoleArn = "roleArn",
S3BucketName = "s3BucketName"
},
PreExtractionHookConfiguration = new HookConfigurationProperty {
InvocationCondition = new DocumentAttributeConditionProperty {
Key = "key",
Operator = "operator",
Value = new DocumentAttributeValueProperty {
DateValue = "dateValue",
LongValue = 123,
StringListValue = new [] { "stringListValue" },
StringValue = "stringValue"
}
},
LambdaArn = "lambdaArn",
RoleArn = "roleArn",
S3BucketName = "s3BucketName"
}
},
IndexId = "indexId",
MediaExtractionConfiguration = new MediaExtractionConfigurationProperty {
AudioExtractionConfiguration = new AudioExtractionConfigurationProperty {
AudioExtractionStatus = "audioExtractionStatus"
},
ImageExtractionConfiguration = new ImageExtractionConfigurationProperty {
ImageExtractionStatus = "imageExtractionStatus"
},
VideoExtractionConfiguration = new VideoExtractionConfigurationProperty {
VideoExtractionStatus = "videoExtractionStatus"
}
},
RoleArn = "roleArn",
SyncSchedule = "syncSchedule",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcConfiguration = new DataSourceVpcConfigurationProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
SubnetIds = new [] { "subnetIds" }
}
};
Synopsis
Constructors
| CfnDataSourceMixinProps() | Properties for CfnDataSourcePropsMixin. |
Properties
| ApplicationId | The identifier of the Amazon Q Business application the data source will be attached to. |
| Configuration | Use this property to specify a JSON or YAML schema with configuration properties specific to your data source connector to connect your data source repository to Amazon Q Business . |
| Description | A description for the data source connector. |
| DisplayName | The name of the Amazon Q Business data source. |
| DocumentEnrichmentConfiguration | Provides the configuration information for altering document metadata and content during the document ingestion process. |
| IndexId | The identifier of the index the data source is attached to. |
| MediaExtractionConfiguration | The configuration for extracting information from media in documents. |
| RoleArn | The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. |
| SyncSchedule | Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index. |
| Tags | A list of key-value pairs that identify or categorize the data source connector. |
| VpcConfiguration | Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source. |
Constructors
CfnDataSourceMixinProps()
Properties for CfnDataSourcePropsMixin.
public CfnDataSourceMixinProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-qbusiness-datasource.html
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.Mixins.Preview.AWS.QBusiness.Mixins;
var configuration;
var cfnDataSourceMixinProps = new CfnDataSourceMixinProps {
ApplicationId = "applicationId",
Configuration = configuration,
Description = "description",
DisplayName = "displayName",
DocumentEnrichmentConfiguration = new DocumentEnrichmentConfigurationProperty {
InlineConfigurations = new [] { new InlineDocumentEnrichmentConfigurationProperty {
Condition = new DocumentAttributeConditionProperty {
Key = "key",
Operator = "operator",
Value = new DocumentAttributeValueProperty {
DateValue = "dateValue",
LongValue = 123,
StringListValue = new [] { "stringListValue" },
StringValue = "stringValue"
}
},
DocumentContentOperator = "documentContentOperator",
Target = new DocumentAttributeTargetProperty {
AttributeValueOperator = "attributeValueOperator",
Key = "key",
Value = new DocumentAttributeValueProperty {
DateValue = "dateValue",
LongValue = 123,
StringListValue = new [] { "stringListValue" },
StringValue = "stringValue"
}
}
} },
PostExtractionHookConfiguration = new HookConfigurationProperty {
InvocationCondition = new DocumentAttributeConditionProperty {
Key = "key",
Operator = "operator",
Value = new DocumentAttributeValueProperty {
DateValue = "dateValue",
LongValue = 123,
StringListValue = new [] { "stringListValue" },
StringValue = "stringValue"
}
},
LambdaArn = "lambdaArn",
RoleArn = "roleArn",
S3BucketName = "s3BucketName"
},
PreExtractionHookConfiguration = new HookConfigurationProperty {
InvocationCondition = new DocumentAttributeConditionProperty {
Key = "key",
Operator = "operator",
Value = new DocumentAttributeValueProperty {
DateValue = "dateValue",
LongValue = 123,
StringListValue = new [] { "stringListValue" },
StringValue = "stringValue"
}
},
LambdaArn = "lambdaArn",
RoleArn = "roleArn",
S3BucketName = "s3BucketName"
}
},
IndexId = "indexId",
MediaExtractionConfiguration = new MediaExtractionConfigurationProperty {
AudioExtractionConfiguration = new AudioExtractionConfigurationProperty {
AudioExtractionStatus = "audioExtractionStatus"
},
ImageExtractionConfiguration = new ImageExtractionConfigurationProperty {
ImageExtractionStatus = "imageExtractionStatus"
},
VideoExtractionConfiguration = new VideoExtractionConfigurationProperty {
VideoExtractionStatus = "videoExtractionStatus"
}
},
RoleArn = "roleArn",
SyncSchedule = "syncSchedule",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcConfiguration = new DataSourceVpcConfigurationProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
SubnetIds = new [] { "subnetIds" }
}
};
Properties
ApplicationId
The identifier of the Amazon Q Business application the data source will be attached to.
public string? ApplicationId { get; set; }
Property Value
Remarks
Configuration
Use this property to specify a JSON or YAML schema with configuration properties specific to your data source connector to connect your data source repository to Amazon Q Business .
public object? Configuration { get; set; }
Property Value
Remarks
You must use the JSON or YAML schema provided by Amazon Q .
The following links have the configuration properties and schemas for AWS CloudFormation for the following connectors:
Similarly, you can find configuration templates and properties for your specific data source using the following steps:
Description
A description for the data source connector.
public string? Description { get; set; }
Property Value
Remarks
DisplayName
The name of the Amazon Q Business data source.
public string? DisplayName { get; set; }
Property Value
Remarks
DocumentEnrichmentConfiguration
Provides the configuration information for altering document metadata and content during the document ingestion process.
public object? DocumentEnrichmentConfiguration { get; set; }
Property Value
Remarks
For more information, see Custom document enrichment .
Type union: either IResolvable or CfnDataSourcePropsMixin.IDocumentEnrichmentConfigurationProperty
IndexId
The identifier of the index the data source is attached to.
public string? IndexId { get; set; }
Property Value
Remarks
MediaExtractionConfiguration
The configuration for extracting information from media in documents.
public object? MediaExtractionConfiguration { get; set; }
Property Value
Remarks
RoleArn
The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.
public string? RoleArn { get; set; }
Property Value
Remarks
This field is required for all connector types except custom connectors, where it is optional.
SyncSchedule
Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index.
public string? SyncSchedule { get; set; }
Property Value
Remarks
If you don't set a schedule, Amazon Q Business won't periodically update the index.
Specify a cron- format schedule string or an empty string to indicate that the index is updated on demand. You can't specify the Schedule parameter when the Type parameter is set to CUSTOM . If you do, you receive a ValidationException exception.
Tags
A list of key-value pairs that identify or categorize the data source connector.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + -
: .
VpcConfiguration
Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.
public object? VpcConfiguration { get; set; }
Property Value
Remarks
For more information, see Using Amazon VPC with Amazon Q Business connectors .
Type union: either IResolvable or CfnDataSourcePropsMixin.IDataSourceVpcConfigurationProperty