AssociationDataProperty Struct
A union type that currently has a single argument, which is the knowledge base ID.
| 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 associationDataProperty: wisdom.CfnAssistantAssociation.AssociationDataProperty = {
externalBedrockKnowledgeBaseConfig: {
accessRoleArn: 'accessRoleArn',
bedrockKnowledgeBaseArn: 'bedrockKnowledgeBaseArn',
},
knowledgeBaseId: 'knowledgeBaseId',
};
python
# 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
association_data_property = wisdom.CfnAssistantAssociation.AssociationDataProperty(
external_bedrock_knowledge_base_config=wisdom.CfnAssistantAssociation.ExternalBedrockKnowledgeBaseConfigProperty(
access_role_arn="accessRoleArn",
bedrock_knowledge_base_arn="bedrockKnowledgeBaseArn"
),
knowledge_base_id="knowledgeBaseId"
)
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.*;
AssociationDataProperty associationDataProperty = AssociationDataProperty.builder()
.externalBedrockKnowledgeBaseConfig(ExternalBedrockKnowledgeBaseConfigProperty.builder()
.accessRoleArn("accessRoleArn")
.bedrockKnowledgeBaseArn("bedrockKnowledgeBaseArn")
.build())
.knowledgeBaseId("knowledgeBaseId")
.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 associationDataProperty = new AssociationDataProperty {
ExternalBedrockKnowledgeBaseConfig = new ExternalBedrockKnowledgeBaseConfigProperty {
AccessRoleArn = "accessRoleArn",
BedrockKnowledgeBaseArn = "bedrockKnowledgeBaseArn"
},
KnowledgeBaseId = "knowledgeBaseId"
};
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"
associationDataProperty := &AssociationDataProperty{
ExternalBedrockKnowledgeBaseConfig: &ExternalBedrockKnowledgeBaseConfigProperty{
AccessRoleArn: jsii.String("accessRoleArn"),
BedrockKnowledgeBaseArn: jsii.String("bedrockKnowledgeBaseArn"),
},
KnowledgeBaseId: jsii.String("knowledgeBaseId"),
}
Properties
externalBedrockKnowledgeBaseConfigoptionalIResolvable | CfnAssistantAssociation.external_bedrock_knowledge_base_configoptionaltyping.Union[IResolvable, ExternalBedrockKnowledgeBaseConfigProperty]externalBedrockKnowledgeBaseConfigoptionalIResolvableExternalBedrockKnowledgeBaseConfigoptionalIResolvableExternalBedrockKnowledgeBaseConfigoptionalinterface{} #knowledgeBaseIdoptionalstringknowledge_base_idoptionalstrknowledgeBaseIdoptionalStringKnowledgeBaseIdoptionalstringKnowledgeBaseIdoptional*string #The identifier of the knowledge base.