CfnAssistantProps Struct
Properties for defining a CfnAssistant.
| Source |
|---|
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 cfnAssistantProps: wisdom.CfnAssistantProps = {
name: 'name',
type: 'type',
// the properties below are optional
description: 'description',
serverSideEncryptionConfiguration: {
kmsKeyId: 'kmsKeyId',
},
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_assistant_props = wisdom.CfnAssistantProps(
name="name",
type="type",
# the properties below are optional
description="description",
server_side_encryption_configuration=wisdom.CfnAssistant.ServerSideEncryptionConfigurationProperty(
kms_key_id="kmsKeyId"
),
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.*;
CfnAssistantProps cfnAssistantProps = CfnAssistantProps.builder()
.name("name")
.type("type")
// the properties below are optional
.description("description")
.serverSideEncryptionConfiguration(ServerSideEncryptionConfigurationProperty.builder()
.kmsKeyId("kmsKeyId")
.build())
.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 cfnAssistantProps = new CfnAssistantProps {
Name = "name",
Type = "type",
// the properties below are optional
Description = "description",
ServerSideEncryptionConfiguration = new ServerSideEncryptionConfigurationProperty {
KmsKeyId = "kmsKeyId"
},
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"
cfnAssistantProps := &CfnAssistantProps{
Name: jsii.String("name"),
Type: jsii.String("type"),
// the properties below are optional
Description: jsii.String("description"),
ServerSideEncryptionConfiguration: &ServerSideEncryptionConfigurationProperty{
KmsKeyId: jsii.String("kmsKeyId"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the assistant.
The name of the assistant.
serverSideEncryptionConfigurationoptionalIResolvable | CfnAssistant.server_side_encryption_configurationoptionaltyping.Union[IResolvable, ServerSideEncryptionConfigurationProperty]serverSideEncryptionConfigurationoptionalIResolvableServerSideEncryptionConfigurationoptionalIResolvableServerSideEncryptionConfigurationoptionalinterface{} #The configuration information for the customer managed key used for encryption.
notes
The customer managed key must have a policy that allows kms:CreateGrant and kms:DescribeKey permissions to the IAM identity using the key to invoke Wisdom. To use Wisdom with chat, the key policy must also allow kms:Decrypt , kms:GenerateDataKey* , and kms:DescribeKey permissions to the connect.amazonaws.com service principal. For more information about setting up a customer managed key for Wisdom, see Enable Connect Customer Wisdom for your instance .
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The tags used to organize, track, or control access for this resource.
The type of assistant.