- 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.
GetQAppCommand
Retrieves the full details of an Q App, including its definition specifying the cards and flow.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { QAppsClient, GetQAppCommand } from "@aws-sdk/client-qapps"; // ES Modules import
// const { QAppsClient, GetQAppCommand } = require("@aws-sdk/client-qapps"); // CommonJS import
const client = new QAppsClient(config);
const input = { // GetQAppInput
instanceId: "STRING_VALUE", // required
appId: "STRING_VALUE", // required
appVersion: Number("int"),
};
const command = new GetQAppCommand(input);
const response = await client.send(command);
// { // GetQAppOutput
// appId: "STRING_VALUE", // required
// appArn: "STRING_VALUE", // required
// title: "STRING_VALUE", // required
// description: "STRING_VALUE",
// initialPrompt: "STRING_VALUE",
// appVersion: Number("int"), // required
// status: "PUBLISHED" || "DRAFT" || "DELETED", // required
// createdAt: new Date("TIMESTAMP"), // required
// createdBy: "STRING_VALUE", // required
// updatedAt: new Date("TIMESTAMP"), // required
// updatedBy: "STRING_VALUE", // required
// requiredCapabilities: [ // AppRequiredCapabilities
// "FileUpload" || "CreatorMode" || "RetrievalMode" || "PluginMode",
// ],
// appDefinition: { // AppDefinition
// appDefinitionVersion: "STRING_VALUE", // required
// cards: [ // CardModelList // required
// { // Card Union: only one key present
// textInput: { // TextInputCard
// id: "STRING_VALUE", // required
// title: "STRING_VALUE", // required
// dependencies: [ // DependencyList // required
// "STRING_VALUE",
// ],
// type: "text-input" || "q-query" || "file-upload" || "q-plugin" || "form-input", // required
// placeholder: "STRING_VALUE",
// defaultValue: "STRING_VALUE",
// },
// qQuery: { // QQueryCard
// id: "STRING_VALUE", // required
// title: "STRING_VALUE", // required
// dependencies: [ // required
// "STRING_VALUE",
// ],
// type: "text-input" || "q-query" || "file-upload" || "q-plugin" || "form-input", // required
// prompt: "STRING_VALUE", // required
// outputSource: "approved-sources" || "llm", // required
// attributeFilter: { // AttributeFilter
// andAllFilters: [ // AttributeFilters
// {
// andAllFilters: [
// "<AttributeFilter>",
// ],
// orAllFilters: [
// "<AttributeFilter>",
// ],
// notFilter: "<AttributeFilter>",
// equalsTo: { // DocumentAttribute
// name: "STRING_VALUE", // required
// value: { // DocumentAttributeValue Union: only one key present
// stringValue: "STRING_VALUE",
// stringListValue: [ // DocumentAttributeStringListValue
// "STRING_VALUE",
// ],
// longValue: Number("long"),
// dateValue: new Date("TIMESTAMP"),
// },
// },
// containsAll: {
// name: "STRING_VALUE", // required
// value: {// Union: only one key present
// stringValue: "STRING_VALUE",
// stringListValue: [
// "STRING_VALUE",
// ],
// longValue: Number("long"),
// dateValue: new Date("TIMESTAMP"),
// },
// },
// containsAny: {
// name: "STRING_VALUE", // required
// value: {// Union: only one key present
// stringValue: "STRING_VALUE",
// stringListValue: [
// "STRING_VALUE",
// ],
// longValue: Number("long"),
// dateValue: new Date("TIMESTAMP"),
// },
// },
// greaterThan: {
// name: "STRING_VALUE", // required
// value: {// Union: only one key present
// stringValue: "STRING_VALUE",
// stringListValue: [
// "STRING_VALUE",
// ],
// longValue: Number("long"),
// dateValue: new Date("TIMESTAMP"),
// },
// },
// greaterThanOrEquals: {
// name: "STRING_VALUE", // required
// value: {// Union: only one key present
// stringValue: "STRING_VALUE",
// stringListValue: [
// "STRING_VALUE",
// ],
// longValue: Number("long"),
// dateValue: new Date("TIMESTAMP"),
// },
// },
// lessThan: "<DocumentAttribute>",
// lessThanOrEquals: "<DocumentAttribute>",
// },
// ],
// orAllFilters: [
// "<AttributeFilter>",
// ],
// notFilter: "<AttributeFilter>",
// equalsTo: "<DocumentAttribute>",
// containsAll: "<DocumentAttribute>",
// containsAny: "<DocumentAttribute>",
// greaterThan: "<DocumentAttribute>",
// greaterThanOrEquals: "<DocumentAttribute>",
// lessThan: "<DocumentAttribute>",
// lessThanOrEquals: "<DocumentAttribute>",
// },
// memoryReferences: [ // MemoryReferenceList
// "STRING_VALUE",
// ],
// },
// qPlugin: { // QPluginCard
// id: "STRING_VALUE", // required
// title: "STRING_VALUE", // required
// dependencies: [ // required
// "STRING_VALUE",
// ],
// type: "text-input" || "q-query" || "file-upload" || "q-plugin" || "form-input", // required
// prompt: "STRING_VALUE", // required
// pluginType: "SERVICE_NOW" || "SALESFORCE" || "JIRA" || "ZENDESK" || "CUSTOM" || "ASANA" || "ATLASSIAN_CONFLUENCE" || "GOOGLE_CALENDAR" || "JIRA_CLOUD" || "MICROSOFT_EXCHANGE" || "MICROSOFT_TEAMS" || "PAGERDUTY_ADVANCE" || "SALESFORCE_CRM" || "SERVICENOW_NOW_PLATFORM" || "SMARTSHEET" || "ZENDESK_SUITE", // required
// pluginId: "STRING_VALUE", // required
// actionIdentifier: "STRING_VALUE",
// },
// fileUpload: { // FileUploadCard
// id: "STRING_VALUE", // required
// title: "STRING_VALUE", // required
// dependencies: [ // required
// "STRING_VALUE",
// ],
// type: "text-input" || "q-query" || "file-upload" || "q-plugin" || "form-input", // required
// filename: "STRING_VALUE",
// fileId: "STRING_VALUE",
// allowOverride: true || false,
// },
// formInput: { // FormInputCard
// id: "STRING_VALUE", // required
// title: "STRING_VALUE", // required
// dependencies: [ // required
// "STRING_VALUE",
// ],
// type: "text-input" || "q-query" || "file-upload" || "q-plugin" || "form-input", // required
// metadata: { // FormInputCardMetadata
// schema: "DOCUMENT_VALUE", // required
// },
// computeMode: "append" || "replace",
// },
// },
// ],
// canEdit: true || false,
// },
// };
Example Usage
GetQAppCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
appId Required | string | undefined | The unique identifier of the Q App to retrieve. |
instanceId Required | string | undefined | The unique identifier of the Amazon Q Business application environment instance. |
appVersion | number | undefined | The version of the Q App. |
GetQAppCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
appArn Required | string | undefined | The Amazon Resource Name (ARN) of the Q App. |
appDefinition Required | AppDefinition | undefined | The full definition of the Q App, specifying the cards and flow. |
appId Required | string | undefined | The unique identifier of the Q App. |
appVersion Required | number | undefined | The version of the Q App. |
createdAt Required | Date | undefined | The date and time the Q App was created. |
createdBy Required | string | undefined | The user who created the Q App. |
status Required | AppStatus | undefined | The status of the Q App. |
title Required | string | undefined | The title of the Q App. |
updatedAt Required | Date | undefined | The date and time the Q App was last updated. |
updatedBy Required | string | undefined | The user who last updated the Q App. |
description | string | undefined | The description of the Q App. |
initialPrompt | string | undefined | The initial prompt displayed when the Q App is started. |
requiredCapabilities | AppRequiredCapability[] | undefined | The capabilities required to run the Q App, such as file upload or third-party integrations. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | The client is not authorized to perform the requested operation. |
InternalServerException | server | An internal service error occurred while processing the request. |
ResourceNotFoundException | client | The requested resource could not be found. |
ThrottlingException | client | The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later. |
UnauthorizedException | client | The client is not authenticated or authorized to perform the requested operation. |
ValidationException | client | The input failed to satisfy the constraints specified by the service. |
QAppsServiceException | Base exception class for all service exceptions from QApps service. |