- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
GetAssistantAssociationCommand
Retrieves information about an assistant association.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { QConnectClient, GetAssistantAssociationCommand } from "@aws-sdk/client-qconnect"; // ES Modules import
// const { QConnectClient, GetAssistantAssociationCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import
const client = new QConnectClient(config);
const input = { // GetAssistantAssociationRequest
assistantAssociationId: "STRING_VALUE", // required
assistantId: "STRING_VALUE", // required
};
const command = new GetAssistantAssociationCommand(input);
const response = await client.send(command);
// { // GetAssistantAssociationResponse
// assistantAssociation: { // AssistantAssociationData
// assistantAssociationId: "STRING_VALUE", // required
// assistantAssociationArn: "STRING_VALUE", // required
// assistantId: "STRING_VALUE", // required
// assistantArn: "STRING_VALUE", // required
// associationType: "STRING_VALUE", // required
// associationData: { // AssistantAssociationOutputData Union: only one key present
// knowledgeBaseAssociation: { // KnowledgeBaseAssociationData
// knowledgeBaseId: "STRING_VALUE",
// knowledgeBaseArn: "STRING_VALUE",
// },
// },
// tags: { // Tags
// "<keys>": "STRING_VALUE",
// },
// },
// };
GetAssistantAssociationCommand Input
See GetAssistantAssociationCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
assistantAssociationId Required | string | undefined | The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN. |
assistantId Required | string | undefined | The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN. |
GetAssistantAssociationCommand Output
See GetAssistantAssociationCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
assistantAssociation | AssistantAssociationData | undefined | The assistant association. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | You do not have sufficient access to perform this action. |
ResourceNotFoundException | client | The specified resource does not exist. |
ValidationException | client | The input fails to satisfy the constraints specified by a service. |
QConnectServiceException | Base exception class for all service exceptions from QConnect service. |