import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateAssessmentTargetRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateAssessmentTargetCommand}. */ export interface UpdateAssessmentTargetCommandInput extends UpdateAssessmentTargetRequest { } /** * @public * * The output of {@link UpdateAssessmentTargetCommand}. */ export interface UpdateAssessmentTargetCommandOutput extends __MetadataBearer { } declare const UpdateAssessmentTargetCommand_base: { new (input: UpdateAssessmentTargetCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateAssessmentTargetCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates the assessment target that is specified by the ARN of the assessment * target.

*

If resourceGroupArn is not specified, all EC2 instances in the current AWS account * and region are included in the assessment target.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { InspectorClient, UpdateAssessmentTargetCommand } from "@aws-sdk/client-inspector"; // ES Modules import * // const { InspectorClient, UpdateAssessmentTargetCommand } = 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 = { // UpdateAssessmentTargetRequest * assessmentTargetArn: "STRING_VALUE", // required * assessmentTargetName: "STRING_VALUE", // required * resourceGroupArn: "STRING_VALUE", * }; * const command = new UpdateAssessmentTargetCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UpdateAssessmentTargetCommandInput - {@link UpdateAssessmentTargetCommandInput} * @returns {@link UpdateAssessmentTargetCommandOutput} * @see {@link UpdateAssessmentTargetCommandInput} for command's `input` shape. * @see {@link UpdateAssessmentTargetCommandOutput} 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 Update assessment target * ```javascript * // Updates the assessment target that is specified by the ARN of the assessment target. * const input = { * assessmentTargetArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX", * assessmentTargetName: "Example", * resourceGroupArn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-yNbgL5Pt" * }; * const command = new UpdateAssessmentTargetCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class UpdateAssessmentTargetCommand extends UpdateAssessmentTargetCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateAssessmentTargetRequest; output: {}; }; sdk: { input: UpdateAssessmentTargetCommandInput; output: UpdateAssessmentTargetCommandOutput; }; }; }