Class CfnAssistantProps.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.CfnAssistantProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssistantProps>
- Enclosing interface:
CfnAssistantProps
@Stability(Stable)
public static final class CfnAssistantProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAssistantProps>
A builder for
CfnAssistantProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnAssistantProps.getDescription()
Sets the value ofCfnAssistantProps.getName()
serverSideEncryptionConfiguration
(IResolvable serverSideEncryptionConfiguration) Sets the value ofCfnAssistantProps.getServerSideEncryptionConfiguration()
serverSideEncryptionConfiguration
(CfnAssistant.ServerSideEncryptionConfigurationProperty serverSideEncryptionConfiguration) Sets the value ofCfnAssistantProps.getServerSideEncryptionConfiguration()
Sets the value ofCfnAssistantProps.getTags()
Sets the value ofCfnAssistantProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnAssistantProps.getName()
- Parameters:
name
- The name of the assistant. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnAssistantProps.getType()
- Parameters:
type
- The type of assistant. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnAssistantProps.getDescription()
- Parameters:
description
- The description of the assistant.- Returns:
this
-
serverSideEncryptionConfiguration
@Stability(Stable) public CfnAssistantProps.Builder serverSideEncryptionConfiguration(IResolvable serverSideEncryptionConfiguration) Sets the value ofCfnAssistantProps.getServerSideEncryptionConfiguration()
- Parameters:
serverSideEncryptionConfiguration
- The configuration information for the customer managed key used for encryption. The customer managed key must have a policy that allowskms:CreateGrant
andkms:DescribeKey
permissions to the IAM identity using the key to invoke Wisdom. To use Wisdom with chat, the key policy must also allowkms:Decrypt
,kms:GenerateDataKey*
, andkms:DescribeKey
permissions to theconnect.amazonaws.com
service principal. For more information about setting up a customer managed key for Wisdom, see Enable Amazon Connect Wisdom for your instance .- Returns:
this
-
serverSideEncryptionConfiguration
@Stability(Stable) public CfnAssistantProps.Builder serverSideEncryptionConfiguration(CfnAssistant.ServerSideEncryptionConfigurationProperty serverSideEncryptionConfiguration) Sets the value ofCfnAssistantProps.getServerSideEncryptionConfiguration()
- Parameters:
serverSideEncryptionConfiguration
- The configuration information for the customer managed key used for encryption. The customer managed key must have a policy that allowskms:CreateGrant
andkms:DescribeKey
permissions to the IAM identity using the key to invoke Wisdom. To use Wisdom with chat, the key policy must also allowkms:Decrypt
,kms:GenerateDataKey*
, andkms:DescribeKey
permissions to theconnect.amazonaws.com
service principal. For more information about setting up a customer managed key for Wisdom, see Enable Amazon Connect Wisdom for your instance .- Returns:
this
-
tags
Sets the value ofCfnAssistantProps.getTags()
- Parameters:
tags
- The tags used to organize, track, or control access for this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssistantProps>
- Returns:
- a new instance of
CfnAssistantProps
- Throws:
NullPointerException
- if any required attribute was not provided
-