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 { GetImportRequest, GetImportResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetImportCommand}. */ export interface GetImportCommandInput extends GetImportRequest { } /** * @public * * The output of {@link GetImportCommand}. */ export interface GetImportCommandOutput extends GetImportResponse, __MetadataBearer { } declare const GetImportCommand_base: { new (input: GetImportCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetImportCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns information about a specific import.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, GetImportCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, GetImportCommand } = 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 = { // GetImportRequest * ImportId: "STRING_VALUE", // required * }; * const command = new GetImportCommand(input); * const response = await client.send(command); * // { // GetImportResponse * // ImportId: "STRING_VALUE", * // Destinations: [ // ImportDestinations * // "STRING_VALUE", * // ], * // ImportSource: { // ImportSource * // S3: { // S3ImportSource * // S3LocationUri: "STRING_VALUE", // required * // S3BucketRegion: "STRING_VALUE", // required * // S3BucketAccessRoleArn: "STRING_VALUE", // required * // }, * // }, * // StartEventTime: new Date("TIMESTAMP"), * // EndEventTime: new Date("TIMESTAMP"), * // ImportStatus: "INITIALIZING" || "IN_PROGRESS" || "FAILED" || "STOPPED" || "COMPLETED", * // CreatedTimestamp: new Date("TIMESTAMP"), * // UpdatedTimestamp: new Date("TIMESTAMP"), * // ImportStatistics: { // ImportStatistics * // PrefixesFound: Number("long"), * // PrefixesCompleted: Number("long"), * // FilesCompleted: Number("long"), * // EventsCompleted: Number("long"), * // FailedEntries: Number("long"), * // }, * // }; * * ``` * * @param GetImportCommandInput - {@link GetImportCommandInput} * @returns {@link GetImportCommandOutput} * @see {@link GetImportCommandInput} for command's `input` shape. * @see {@link GetImportCommandOutput} 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 GetImportCommand extends GetImportCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetImportRequest; output: GetImportResponse; }; sdk: { input: GetImportCommandInput; output: GetImportCommandOutput; }; }; }