CfnQuickResponseProps Struct
Properties for defining a CfnQuickResponse.
| 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_wisdom as wisdom } from 'aws-cdk-lib';
const cfnQuickResponseProps: wisdom.CfnQuickResponseProps = {
content: {
content: 'content',
},
knowledgeBaseArn: 'knowledgeBaseArn',
name: 'name',
// the properties below are optional
channels: ['channels'],
contentType: 'contentType',
description: 'description',
groupingConfiguration: {
criteria: 'criteria',
values: ['values'],
},
isActive: false,
language: 'language',
shortcutKey: 'shortcutKey',
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_wisdom as wisdom
cfn_quick_response_props = wisdom.CfnQuickResponseProps(
content=wisdom.CfnQuickResponse.QuickResponseContentProviderProperty(
content="content"
),
knowledge_base_arn="knowledgeBaseArn",
name="name",
# the properties below are optional
channels=["channels"],
content_type="contentType",
description="description",
grouping_configuration=wisdom.CfnQuickResponse.GroupingConfigurationProperty(
criteria="criteria",
values=["values"]
),
is_active=False,
language="language",
shortcut_key="shortcutKey",
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.wisdom.*;
CfnQuickResponseProps cfnQuickResponseProps = CfnQuickResponseProps.builder()
.content(QuickResponseContentProviderProperty.builder()
.content("content")
.build())
.knowledgeBaseArn("knowledgeBaseArn")
.name("name")
// the properties below are optional
.channels(List.of("channels"))
.contentType("contentType")
.description("description")
.groupingConfiguration(GroupingConfigurationProperty.builder()
.criteria("criteria")
.values(List.of("values"))
.build())
.isActive(false)
.language("language")
.shortcutKey("shortcutKey")
.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.Wisdom;
var cfnQuickResponseProps = new CfnQuickResponseProps {
Content = new QuickResponseContentProviderProperty {
Content = "content"
},
KnowledgeBaseArn = "knowledgeBaseArn",
Name = "name",
// the properties below are optional
Channels = new [] { "channels" },
ContentType = "contentType",
Description = "description",
GroupingConfiguration = new GroupingConfigurationProperty {
Criteria = "criteria",
Values = new [] { "values" }
},
IsActive = false,
Language = "language",
ShortcutKey = "shortcutKey",
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"
cfnQuickResponseProps := &CfnQuickResponseProps{
Content: &QuickResponseContentProviderProperty{
Content: jsii.String("content"),
},
KnowledgeBaseArn: jsii.String("knowledgeBaseArn"),
Name: jsii.String("name"),
// the properties below are optional
Channels: []*string{
jsii.String("channels"),
},
ContentType: jsii.String("contentType"),
Description: jsii.String("description"),
GroupingConfiguration: &GroupingConfigurationProperty{
Criteria: jsii.String("criteria"),
Values: []*string{
jsii.String("values"),
},
},
IsActive: jsii.Boolean(false),
Language: jsii.String("language"),
ShortcutKey: jsii.String("shortcutKey"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
channelsoptionalstring[]channelsoptionaltyping.List[str]channelsoptionalList<String>Channelsoptionalstring[]Channelsoptional*[]*string #The Amazon Connect contact channels this quick response applies to.
The supported contact channel types include Chat .
contentIResolvable | CfnQuickResponse.contenttyping.Union[IResolvable, QuickResponseContentProviderProperty]contentIResolvableContentIResolvableContentinterface{} required #The content of the quick response.
contentTypeoptionalstringcontent_typeoptionalstrcontentTypeoptionalStringContentTypeoptionalstringContentTypeoptional*string #The media type of the quick response content.
- Use
application/x.quickresponse;format=plainfor quick response written in plain text. - Use
application/x.quickresponse;format=markdownfor quick response written in richtext.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the quick response.
groupingConfigurationoptionalIResolvable | CfnQuickResponse.grouping_configurationoptionaltyping.Union[IResolvable, GroupingConfigurationProperty]groupingConfigurationoptionalIResolvableGroupingConfigurationoptionalIResolvableGroupingConfigurationoptionalinterface{} #The configuration information of the user groups that the quick response is accessible to.
isActiveoptionalboolean | IResolvableis_activeoptionaltyping.Union[bool, IResolvable]isActiveoptionalBooleanIsActiveoptionalboolIsActiveoptionalinterface{} #Whether the quick response is active.
knowledgeBaseArnstringknowledge_base_arnstrknowledgeBaseArnStringKnowledgeBaseArnstringKnowledgeBaseArn*string required #The Amazon Resource Name (ARN) of the knowledge base.
languageoptionalstringlanguageoptionalstrlanguageoptionalStringLanguageoptionalstringLanguageoptional*string #The language code value for the language in which the quick response is written.
The supported language codes include de_DE , en_US , es_ES , fr_FR , id_ID , it_IT , ja_JP , ko_KR , pt_BR , zh_CN , zh_TW
The name of the quick response.
shortcutKeyoptionalstringshortcut_keyoptionalstrshortcutKeyoptionalStringShortcutKeyoptionalstringShortcutKeyoptional*string #The shortcut key of the quick response.
The value should be unique across the knowledge base.