import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateAssessmentTargetRequest, CreateAssessmentTargetResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateAssessmentTargetCommand}. */ export interface CreateAssessmentTargetCommandInput extends CreateAssessmentTargetRequest { } /** * @public * * The output of {@link CreateAssessmentTargetCommand}. */ export interface CreateAssessmentTargetCommandOutput extends CreateAssessmentTargetResponse, __MetadataBearer { } declare const CreateAssessmentTargetCommand_base: { new (input: CreateAssessmentTargetCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateAssessmentTargetCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a new assessment target using the ARN of the resource group that is generated * by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 * instances in the current AWS account and region are included in the assessment target. If * the service-linked role isn’t already registered, this action also creates and * registers a service-linked role to grant Amazon Inspector access to AWS Services needed to * perform security assessments. You can create up to 50 assessment targets per AWS account. * You can run up to 500 concurrent agents per AWS account. For more information, see * Amazon Inspector Assessment Targets.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { InspectorClient, CreateAssessmentTargetCommand } from "@aws-sdk/client-inspector"; // ES Modules import * // const { InspectorClient, CreateAssessmentTargetCommand } = 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 = { // CreateAssessmentTargetRequest * assessmentTargetName: "STRING_VALUE", // required * resourceGroupArn: "STRING_VALUE", * }; * const command = new CreateAssessmentTargetCommand(input); * const response = await client.send(command); * // { // CreateAssessmentTargetResponse * // assessmentTargetArn: "STRING_VALUE", // required * // }; * * ``` * * @param CreateAssessmentTargetCommandInput - {@link CreateAssessmentTargetCommandInput} * @returns {@link CreateAssessmentTargetCommandOutput} * @see {@link CreateAssessmentTargetCommandInput} for command's `input` shape. * @see {@link CreateAssessmentTargetCommandOutput} 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 InvalidCrossAccountRoleException} (client fault) *

Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 * instances during the assessment run.

* * @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 LimitExceededException} (client fault) *

The request was rejected because it attempted to create resources beyond the current * AWS account limits. The error code describes the limit exceeded.

* * @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 Create assessment target * ```javascript * // Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. * const input = { * assessmentTargetName: "ExampleAssessmentTarget", * resourceGroupArn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv" * }; * const command = new CreateAssessmentTargetCommand(input); * const response = await client.send(command); * /* response is * { * assessmentTargetArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX" * } * *\/ * ``` * * @public */ export declare class CreateAssessmentTargetCommand extends CreateAssessmentTargetCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateAssessmentTargetRequest; output: CreateAssessmentTargetResponse; }; sdk: { input: CreateAssessmentTargetCommandInput; output: CreateAssessmentTargetCommandOutput; }; }; }