CfnRetrieverProps Struct
Properties for defining a CfnRetriever.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_qbusiness as qbusiness } from 'aws-cdk-lib';
const cfnRetrieverProps: qbusiness.CfnRetrieverProps = {
applicationId: 'applicationId',
configuration: {
kendraIndexConfiguration: {
indexId: 'indexId',
},
nativeIndexConfiguration: {
indexId: 'indexId',
},
},
displayName: 'displayName',
type: 'type',
// the properties below are optional
roleArn: 'roleArn',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_qbusiness as qbusiness
cfn_retriever_props = qbusiness.CfnRetrieverProps(
application_id="applicationId",
configuration=qbusiness.CfnRetriever.RetrieverConfigurationProperty(
kendra_index_configuration=qbusiness.CfnRetriever.KendraIndexConfigurationProperty(
index_id="indexId"
),
native_index_configuration=qbusiness.CfnRetriever.NativeIndexConfigurationProperty(
index_id="indexId"
)
),
display_name="displayName",
type="type",
# the properties below are optional
role_arn="roleArn",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.qbusiness.*;
CfnRetrieverProps cfnRetrieverProps = CfnRetrieverProps.builder()
.applicationId("applicationId")
.configuration(RetrieverConfigurationProperty.builder()
.kendraIndexConfiguration(KendraIndexConfigurationProperty.builder()
.indexId("indexId")
.build())
.nativeIndexConfiguration(NativeIndexConfigurationProperty.builder()
.indexId("indexId")
.build())
.build())
.displayName("displayName")
.type("type")
// the properties below are optional
.roleArn("roleArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QBusiness;
var cfnRetrieverProps = new CfnRetrieverProps {
ApplicationId = "applicationId",
Configuration = new RetrieverConfigurationProperty {
KendraIndexConfiguration = new KendraIndexConfigurationProperty {
IndexId = "indexId"
},
NativeIndexConfiguration = new NativeIndexConfigurationProperty {
IndexId = "indexId"
}
},
DisplayName = "displayName",
Type = "type",
// the properties below are optional
RoleArn = "roleArn",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnRetrieverProps := &CfnRetrieverProps{
ApplicationId: jsii.String("applicationId"),
Configuration: &RetrieverConfigurationProperty{
KendraIndexConfiguration: &KendraIndexConfigurationProperty{
IndexId: jsii.String("indexId"),
},
NativeIndexConfiguration: &NativeIndexConfigurationProperty{
IndexId: jsii.String("indexId"),
},
},
DisplayName: jsii.String("displayName"),
Type: jsii.String("type"),
// the properties below are optional
RoleArn: jsii.String("roleArn"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
applicationIdstringapplication_idstrapplicationIdStringApplicationIdstringApplicationId*string required #The identifier of the Amazon Q Business application using the retriever.
configurationIResolvable | CfnRetriever.configurationtyping.Union[IResolvable, RetrieverConfigurationProperty]configurationIResolvableConfigurationIResolvableConfigurationinterface{} required #Provides information on how the retriever used for your Amazon Q Business application is configured.
The name of your retriever.
roleArnoptionalstringrole_arnoptionalstrroleArnoptionalStringRoleArnoptionalstringRoleArnoptional*string #The ARN of an IAM role used by Amazon Q Business to access the basic authentication credentials stored in a Secrets Manager secret.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #A list of key-value pairs that identify or categorize the retriever.
You can also use tags to help control access to the retriever. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + -
The type of your retriever.