import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AddArtifactInput, AddArtifactOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AddArtifactCommand}. */ export interface AddArtifactCommandInput extends AddArtifactInput { } /** * @public * * The output of {@link AddArtifactCommand}. */ export interface AddArtifactCommandOutput extends AddArtifactOutput, __MetadataBearer { } declare const AddArtifactCommand_base: { new (input: AddArtifactCommandInput): import("@smithy/core/client").CommandImpl; new (input: AddArtifactCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Uploads an artifact to an agent space. Artifacts provide additional context for security testing, such as architecture diagrams, API specifications, or configuration files.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SecurityAgentClient, AddArtifactCommand } from "@aws-sdk/client-securityagent"; // ES Modules import * // const { SecurityAgentClient, AddArtifactCommand } = require("@aws-sdk/client-securityagent"); // CommonJS import * // import type { SecurityAgentClientConfig } from "@aws-sdk/client-securityagent"; * const config = {}; // type is SecurityAgentClientConfig * const client = new SecurityAgentClient(config); * const input = { // AddArtifactInput * agentSpaceId: "STRING_VALUE", // required * artifactContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required * artifactType: "TXT" || "PNG" || "JPEG" || "MD" || "PDF" || "DOCX" || "DOC" || "JSON" || "YAML", // required * fileName: "STRING_VALUE", // required * }; * const command = new AddArtifactCommand(input); * const response = await client.send(command); * // { // AddArtifactOutput * // artifactId: "STRING_VALUE", // required * // }; * * ``` * * @param AddArtifactCommandInput - {@link AddArtifactCommandInput} * @returns {@link AddArtifactCommandOutput} * @see {@link AddArtifactCommandInput} for command's `input` shape. * @see {@link AddArtifactCommandOutput} for command's `response` shape. * @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

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

An unexpected error occurred during the processing of your request.

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

The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.

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

The request was denied due to request throttling.

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

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

* * @throws {@link SecurityAgentServiceException} *

Base exception class for all service exceptions from SecurityAgent service.

* * * @public */ export declare class AddArtifactCommand extends AddArtifactCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AddArtifactInput; output: AddArtifactOutput; }; sdk: { input: AddArtifactCommandInput; output: AddArtifactCommandOutput; }; }; }