import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateAnswerInput, UpdateAnswerOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateAnswerCommand}. */ export interface UpdateAnswerCommandInput extends UpdateAnswerInput { } /** * @public * * The output of {@link UpdateAnswerCommand}. */ export interface UpdateAnswerCommandOutput extends UpdateAnswerOutput, __MetadataBearer { } declare const UpdateAnswerCommand_base: { new (input: UpdateAnswerCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateAnswerCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Update the answer to a specific question in a workload review.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WellArchitectedClient, UpdateAnswerCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import * // const { WellArchitectedClient, UpdateAnswerCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import * // import type { WellArchitectedClientConfig } from "@aws-sdk/client-wellarchitected"; * const config = {}; // type is WellArchitectedClientConfig * const client = new WellArchitectedClient(config); * const input = { // UpdateAnswerInput * WorkloadId: "STRING_VALUE", // required * LensAlias: "STRING_VALUE", // required * QuestionId: "STRING_VALUE", // required * SelectedChoices: [ // SelectedChoices * "STRING_VALUE", * ], * ChoiceUpdates: { // ChoiceUpdates * "": { // ChoiceUpdate * Status: "SELECTED" || "NOT_APPLICABLE" || "UNSELECTED", // required * Reason: "OUT_OF_SCOPE" || "BUSINESS_PRIORITIES" || "ARCHITECTURE_CONSTRAINTS" || "OTHER" || "NONE", * Notes: "STRING_VALUE", * }, * }, * Notes: "STRING_VALUE", * IsApplicable: true || false, * Reason: "OUT_OF_SCOPE" || "BUSINESS_PRIORITIES" || "ARCHITECTURE_CONSTRAINTS" || "OTHER" || "NONE", * }; * const command = new UpdateAnswerCommand(input); * const response = await client.send(command); * // { // UpdateAnswerOutput * // WorkloadId: "STRING_VALUE", * // LensAlias: "STRING_VALUE", * // LensArn: "STRING_VALUE", * // Answer: { // Answer * // QuestionId: "STRING_VALUE", * // PillarId: "STRING_VALUE", * // QuestionTitle: "STRING_VALUE", * // QuestionDescription: "STRING_VALUE", * // ImprovementPlanUrl: "STRING_VALUE", * // HelpfulResourceUrl: "STRING_VALUE", * // HelpfulResourceDisplayText: "STRING_VALUE", * // Choices: [ // Choices * // { // Choice * // ChoiceId: "STRING_VALUE", * // Title: "STRING_VALUE", * // Description: "STRING_VALUE", * // HelpfulResource: { // ChoiceContent * // DisplayText: "STRING_VALUE", * // Url: "STRING_VALUE", * // }, * // ImprovementPlan: { * // DisplayText: "STRING_VALUE", * // Url: "STRING_VALUE", * // }, * // AdditionalResources: [ // AdditionalResourcesList * // { // AdditionalResources * // Type: "HELPFUL_RESOURCE" || "IMPROVEMENT_PLAN", * // Content: [ // Urls * // { * // DisplayText: "STRING_VALUE", * // Url: "STRING_VALUE", * // }, * // ], * // }, * // ], * // }, * // ], * // SelectedChoices: [ // SelectedChoices * // "STRING_VALUE", * // ], * // ChoiceAnswers: [ // ChoiceAnswers * // { // ChoiceAnswer * // ChoiceId: "STRING_VALUE", * // Status: "SELECTED" || "NOT_APPLICABLE" || "UNSELECTED", * // Reason: "OUT_OF_SCOPE" || "BUSINESS_PRIORITIES" || "ARCHITECTURE_CONSTRAINTS" || "OTHER" || "NONE", * // Notes: "STRING_VALUE", * // }, * // ], * // IsApplicable: true || false, * // Risk: "UNANSWERED" || "HIGH" || "MEDIUM" || "NONE" || "NOT_APPLICABLE", * // Notes: "STRING_VALUE", * // Reason: "OUT_OF_SCOPE" || "BUSINESS_PRIORITIES" || "ARCHITECTURE_CONSTRAINTS" || "OTHER" || "NONE", * // JiraConfiguration: { // JiraConfiguration * // JiraIssueUrl: "STRING_VALUE", * // LastSyncedTime: new Date("TIMESTAMP"), * // }, * // }, * // }; * * ``` * * @param UpdateAnswerCommandInput - {@link UpdateAnswerCommandInput} * @returns {@link UpdateAnswerCommandOutput} * @see {@link UpdateAnswerCommandInput} for command's `input` shape. * @see {@link UpdateAnswerCommandOutput} for command's `response` shape. * @see {@link WellArchitectedClientResolvedConfig | config} for WellArchitectedClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

User does not have sufficient access to perform this action.

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

The resource has already been processed, was deleted, or is too large.

* * @throws {@link InternalServerException} (server fault) *

There is a problem with the Well-Architected Tool API service.

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

The requested resource was not found.

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

Request was denied due to request throttling.

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

The user input is not valid.

* * @throws {@link WellArchitectedServiceException} *

Base exception class for all service exceptions from WellArchitected service.

* * * @public */ export declare class UpdateAnswerCommand extends UpdateAnswerCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateAnswerInput; output: UpdateAnswerOutput; }; sdk: { input: UpdateAnswerCommandInput; output: UpdateAnswerCommandOutput; }; }; }