@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:53.349Z") public class CfnAssistantAssociation extends CfnResource implements IInspectable
Specifies an association between an Amazon Connect Wisdom assistant and another resource. Currently, the only supported association is with a knowledge base. An assistant can have only a single association.
Example:
// 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.*; CfnAssistantAssociation cfnAssistantAssociation = CfnAssistantAssociation.Builder.create(this, "MyCfnAssistantAssociation") .assistantId("assistantId") .association(AssociationDataProperty.builder() .knowledgeBaseId("knowledgeBaseId") .build()) .associationType("associationType") // the properties below are optional .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static interface |
CfnAssistantAssociation.AssociationDataProperty
A union type that currently has a single argument, which is the knowledge base ID.
|
static class |
CfnAssistantAssociation.Builder
A fluent builder for
CfnAssistantAssociation . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnAssistantAssociation(Construct scope,
java.lang.String id,
CfnAssistantAssociationProps props)
Create a new `AWS::Wisdom::AssistantAssociation`.
|
protected |
CfnAssistantAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAssistantAssociation(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAssistantId()
The identifier of the Wisdom assistant.
|
java.lang.Object |
getAssociation()
The identifier of the associated resource.
|
java.lang.String |
getAssociationType()
The type of association.
|
java.lang.String |
getAttrAssistantArn()
The Amazon Resource Name (ARN) of the Wisdom assistant.
|
java.lang.String |
getAttrAssistantAssociationArn()
The Amazon Resource Name (ARN) of the assistant association.
|
java.lang.String |
getAttrAssistantAssociationId()
The ID of the association.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
TagManager |
getTags()
The tags used to organize, track, or control access for this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAssistantId(java.lang.String value)
The identifier of the Wisdom assistant.
|
void |
setAssociation(CfnAssistantAssociation.AssociationDataProperty value)
The identifier of the associated resource.
|
void |
setAssociation(IResolvable value)
The identifier of the associated resource.
|
void |
setAssociationType(java.lang.String value)
The type of association.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnAssistantAssociation(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAssistantAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnAssistantAssociation(Construct scope, java.lang.String id, CfnAssistantAssociationProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrAssistantArn()
public java.lang.String getAttrAssistantAssociationArn()
public java.lang.String getAttrAssistantAssociationId()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getAssistantId()
public void setAssistantId(java.lang.String value)
public java.lang.Object getAssociation()
public void setAssociation(IResolvable value)
public void setAssociation(CfnAssistantAssociation.AssociationDataProperty value)
public java.lang.String getAssociationType()
public void setAssociationType(java.lang.String value)