import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient"; import type { StopImportRequest, StopImportResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link StopImportCommand}. */ export interface StopImportCommandInput extends StopImportRequest { } /** * @public * * The output of {@link StopImportCommand}. */ export interface StopImportCommandOutput extends StopImportResponse, __MetadataBearer { } declare const StopImportCommand_base: { new (input: StopImportCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: StopImportCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Stops a specified import.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, StopImportCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, StopImportCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import * // import type { CloudTrailClientConfig } from "@aws-sdk/client-cloudtrail"; * const config = {}; // type is CloudTrailClientConfig * const client = new CloudTrailClient(config); * const input = { // StopImportRequest * ImportId: "STRING_VALUE", // required * }; * const command = new StopImportCommand(input); * const response = await client.send(command); * // { // StopImportResponse * // ImportId: "STRING_VALUE", * // ImportSource: { // ImportSource * // S3: { // S3ImportSource * // S3LocationUri: "STRING_VALUE", // required * // S3BucketRegion: "STRING_VALUE", // required * // S3BucketAccessRoleArn: "STRING_VALUE", // required * // }, * // }, * // Destinations: [ // ImportDestinations * // "STRING_VALUE", * // ], * // ImportStatus: "INITIALIZING" || "IN_PROGRESS" || "FAILED" || "STOPPED" || "COMPLETED", * // CreatedTimestamp: new Date("TIMESTAMP"), * // UpdatedTimestamp: new Date("TIMESTAMP"), * // StartEventTime: new Date("TIMESTAMP"), * // EndEventTime: new Date("TIMESTAMP"), * // ImportStatistics: { // ImportStatistics * // PrefixesFound: Number("long"), * // PrefixesCompleted: Number("long"), * // FilesCompleted: Number("long"), * // EventsCompleted: Number("long"), * // FailedEntries: Number("long"), * // }, * // }; * * ``` * * @param StopImportCommandInput - {@link StopImportCommandInput} * @returns {@link StopImportCommandOutput} * @see {@link StopImportCommandInput} for command's `input` shape. * @see {@link StopImportCommandOutput} for command's `response` shape. * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape. * * @throws {@link ImportNotFoundException} (client fault) *

The specified import was not found.

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

The request includes a parameter that is not valid.

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

This exception is thrown when the requested operation is not permitted.

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

This exception is thrown when the requested operation is not supported.

* * @throws {@link CloudTrailServiceException} *

Base exception class for all service exceptions from CloudTrail service.

* * * @public */ export declare class StopImportCommand extends StopImportCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StopImportRequest; output: StopImportResponse; }; sdk: { input: StopImportCommandInput; output: StopImportCommandOutput; }; }; }