import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListModelsRequest, ListModelsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListModelsCommand}. */ export interface ListModelsCommandInput extends ListModelsRequest { } /** * @public * * The output of {@link ListModelsCommand}. */ export interface ListModelsCommandOutput extends ListModelsResponse, __MetadataBearer { } declare const ListModelsCommand_base: { new (input: ListModelsCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListModelsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Lists the models available to an Amazon Q in Connect assistant in the assistant's Amazon Web Services Region. The available models are determined by the region of the specified assistant.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { QConnectClient, ListModelsCommand } from "@aws-sdk/client-qconnect"; // ES Modules import * // const { QConnectClient, ListModelsCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import * // import type { QConnectClientConfig } from "@aws-sdk/client-qconnect"; * const config = {}; // type is QConnectClientConfig * const client = new QConnectClient(config); * const input = { // ListModelsRequest * assistantId: "STRING_VALUE", // required * aiPromptType: "STRING_VALUE", * modelLifecycle: "STRING_VALUE", * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new ListModelsCommand(input); * const response = await client.send(command); * // { // ListModelsResponse * // modelSummaries: [ // ModelSummaryList // required * // { // ModelSummary * // modelId: "STRING_VALUE", // required * // displayName: "STRING_VALUE", // required * // crossRegionStatus: "STRING_VALUE", * // supportsPromptCaching: true || false, * // supportedAIPromptTypes: [ // AIPromptTypeList * // "STRING_VALUE", * // ], * // modelLifecycle: "STRING_VALUE", * // legacyTimestamp: new Date("TIMESTAMP"), * // endOfLifeTimestamp: new Date("TIMESTAMP"), * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListModelsCommandInput - {@link ListModelsCommandInput} * @returns {@link ListModelsCommandOutput} * @see {@link ListModelsCommandInput} for command's `input` shape. * @see {@link ListModelsCommandOutput} for command's `response` shape. * @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link ConflictException} (client fault) *

The request could not be processed because of conflict in the current state of the resource. For example, if you're using a Create API (such as CreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource does not exist.

* * @throws {@link ThrottlingException} (client fault) *

The throttling limit has been exceeded.

* * @throws {@link UnauthorizedException} (client fault) *

You do not have permission to perform this action.

* * @throws {@link ValidationException} (client fault) *

The input fails to satisfy the constraints specified by a service.

* * @throws {@link QConnectServiceException} *

Base exception class for all service exceptions from QConnect service.

* * * @public */ export declare class ListModelsCommand extends ListModelsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListModelsRequest; output: ListModelsResponse; }; sdk: { input: ListModelsCommandInput; output: ListModelsCommandOutput; }; }; }