import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { StopAssessmentRunRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link StopAssessmentRunCommand}. */ export interface StopAssessmentRunCommandInput extends StopAssessmentRunRequest { } /** * @public * * The output of {@link StopAssessmentRunCommand}. */ export interface StopAssessmentRunCommandOutput extends __MetadataBearer { } declare const StopAssessmentRunCommand_base: { new (input: StopAssessmentRunCommandInput): import("@smithy/core/client").CommandImpl; new (input: StopAssessmentRunCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Stops the assessment run that is specified by the ARN of the assessment * run.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { InspectorClient, StopAssessmentRunCommand } from "@aws-sdk/client-inspector"; // ES Modules import * // const { InspectorClient, StopAssessmentRunCommand } = require("@aws-sdk/client-inspector"); // CommonJS import * // import type { InspectorClientConfig } from "@aws-sdk/client-inspector"; * const config = {}; // type is InspectorClientConfig * const client = new InspectorClient(config); * const input = { // StopAssessmentRunRequest * assessmentRunArn: "STRING_VALUE", // required * stopAction: "START_EVALUATION" || "SKIP_EVALUATION", * }; * const command = new StopAssessmentRunCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param StopAssessmentRunCommandInput - {@link StopAssessmentRunCommandInput} * @returns {@link StopAssessmentRunCommandOutput} * @see {@link StopAssessmentRunCommandInput} for command's `input` shape. * @see {@link StopAssessmentRunCommandOutput} for command's `response` shape. * @see {@link InspectorClientResolvedConfig | config} for InspectorClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have required permissions to access the requested resource.

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

Internal server error.

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

The request was rejected because an invalid or out-of-range value was supplied for an * input parameter.

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

The request was rejected because it referenced an entity that does not exist. The * error code describes the entity.

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

The serice is temporary unavailable.

* * @throws {@link InspectorServiceException} *

Base exception class for all service exceptions from Inspector service.

* * * @example Stop assessment run * ```javascript * // Stops the assessment run that is specified by the ARN of the assessment run. * const input = { * assessmentRunArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe" * }; * const command = new StopAssessmentRunCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class StopAssessmentRunCommand extends StopAssessmentRunCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StopAssessmentRunRequest; output: {}; }; sdk: { input: StopAssessmentRunCommandInput; output: StopAssessmentRunCommandOutput; }; }; }