CfnAssistantAssociationProps Struct
Properties for defining a CfnAssistantAssociation.
| 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 cfnAssistantAssociationProps: wisdom.CfnAssistantAssociationProps = {
assistantId: 'assistantId',
association: {
externalBedrockKnowledgeBaseConfig: {
accessRoleArn: 'accessRoleArn',
bedrockKnowledgeBaseArn: 'bedrockKnowledgeBaseArn',
},
knowledgeBaseId: 'knowledgeBaseId',
},
associationType: 'associationType',
// the properties below are optional
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_association_props = wisdom.CfnAssistantAssociationProps(
assistant_id="assistantId",
association=wisdom.CfnAssistantAssociation.AssociationDataProperty(
external_bedrock_knowledge_base_config=wisdom.CfnAssistantAssociation.ExternalBedrockKnowledgeBaseConfigProperty(
access_role_arn="accessRoleArn",
bedrock_knowledge_base_arn="bedrockKnowledgeBaseArn"
),
knowledge_base_id="knowledgeBaseId"
),
association_type="associationType",
# the properties below are optional
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.*;
CfnAssistantAssociationProps cfnAssistantAssociationProps = CfnAssistantAssociationProps.builder()
.assistantId("assistantId")
.association(AssociationDataProperty.builder()
.externalBedrockKnowledgeBaseConfig(ExternalBedrockKnowledgeBaseConfigProperty.builder()
.accessRoleArn("accessRoleArn")
.bedrockKnowledgeBaseArn("bedrockKnowledgeBaseArn")
.build())
.knowledgeBaseId("knowledgeBaseId")
.build())
.associationType("associationType")
// the properties below are optional
.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 cfnAssistantAssociationProps = new CfnAssistantAssociationProps {
AssistantId = "assistantId",
Association = new AssociationDataProperty {
ExternalBedrockKnowledgeBaseConfig = new ExternalBedrockKnowledgeBaseConfigProperty {
AccessRoleArn = "accessRoleArn",
BedrockKnowledgeBaseArn = "bedrockKnowledgeBaseArn"
},
KnowledgeBaseId = "knowledgeBaseId"
},
AssociationType = "associationType",
// the properties below are optional
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"
cfnAssistantAssociationProps := &CfnAssistantAssociationProps{
AssistantId: jsii.String("assistantId"),
Association: &AssociationDataProperty{
ExternalBedrockKnowledgeBaseConfig: &ExternalBedrockKnowledgeBaseConfigProperty{
AccessRoleArn: jsii.String("accessRoleArn"),
BedrockKnowledgeBaseArn: jsii.String("bedrockKnowledgeBaseArn"),
},
KnowledgeBaseId: jsii.String("knowledgeBaseId"),
},
AssociationType: jsii.String("associationType"),
// the properties below are optional
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
The identifier of the Wisdom assistant.
associationIResolvable | CfnAssistantAssociation.associationtyping.Union[IResolvable, AssociationDataProperty]associationIResolvableAssociationIResolvableAssociationinterface{} required #The identifier of the associated resource.
associationTypestringassociation_typestrassociationTypeStringAssociationTypestringAssociationType*string required #The type of association.