import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeDataRepositoryTasksRequest, DescribeDataRepositoryTasksResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeDataRepositoryTasksCommand}. */ export interface DescribeDataRepositoryTasksCommandInput extends DescribeDataRepositoryTasksRequest { } /** * @public * * The output of {@link DescribeDataRepositoryTasksCommand}. */ export interface DescribeDataRepositoryTasksCommandOutput extends DescribeDataRepositoryTasksResponse, __MetadataBearer { } declare const DescribeDataRepositoryTasksCommand_base: { new (input: DescribeDataRepositoryTasksCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [DescribeDataRepositoryTasksCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns the description of specific Amazon FSx for Lustre or Amazon File Cache data repository tasks, if * one or more TaskIds values are provided in the request, or if filters are used in the request. * You can use filters to narrow the response to include just tasks for specific file systems or caches, * or tasks in a specific lifecycle state. Otherwise, it returns all data repository tasks owned * by your Amazon Web Services account in the Amazon Web Services Region of the endpoint that you're calling.

*

When retrieving all tasks, you can paginate the response by using the optional MaxResults * parameter to limit the number of tasks returned in a response. If more tasks remain, * a NextToken value is returned in the response. In this case, send a later * request with the NextToken request parameter set to the value of * NextToken from the last response.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { FSxClient, DescribeDataRepositoryTasksCommand } from "@aws-sdk/client-fsx"; // ES Modules import * // const { FSxClient, DescribeDataRepositoryTasksCommand } = require("@aws-sdk/client-fsx"); // CommonJS import * // import type { FSxClientConfig } from "@aws-sdk/client-fsx"; * const config = {}; // type is FSxClientConfig * const client = new FSxClient(config); * const input = { // DescribeDataRepositoryTasksRequest * TaskIds: [ // TaskIds * "STRING_VALUE", * ], * Filters: [ // DataRepositoryTaskFilters * { // DataRepositoryTaskFilter * Name: "file-system-id" || "task-lifecycle" || "data-repository-association-id" || "file-cache-id", * Values: [ // DataRepositoryTaskFilterValues * "STRING_VALUE", * ], * }, * ], * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new DescribeDataRepositoryTasksCommand(input); * const response = await client.send(command); * // { // DescribeDataRepositoryTasksResponse * // DataRepositoryTasks: [ // DataRepositoryTasks * // { // DataRepositoryTask * // TaskId: "STRING_VALUE", // required * // Lifecycle: "PENDING" || "EXECUTING" || "FAILED" || "SUCCEEDED" || "CANCELED" || "CANCELING", // required * // Type: "EXPORT_TO_REPOSITORY" || "IMPORT_METADATA_FROM_REPOSITORY" || "RELEASE_DATA_FROM_FILESYSTEM" || "AUTO_RELEASE_DATA", // required * // CreationTime: new Date("TIMESTAMP"), // required * // StartTime: new Date("TIMESTAMP"), * // EndTime: new Date("TIMESTAMP"), * // ResourceARN: "STRING_VALUE", * // Tags: [ // Tags * // { // Tag * // Key: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // }, * // ], * // FileSystemId: "STRING_VALUE", * // Paths: [ // DataRepositoryTaskPaths * // "STRING_VALUE", * // ], * // FailureDetails: { // DataRepositoryTaskFailureDetails * // Message: "STRING_VALUE", * // }, * // Status: { // DataRepositoryTaskStatus * // TotalCount: Number("long"), * // SucceededCount: Number("long"), * // FailedCount: Number("long"), * // LastUpdatedTime: new Date("TIMESTAMP"), * // ReleasedCapacity: Number("long"), * // }, * // Report: { // CompletionReport * // Enabled: true || false, // required * // Path: "STRING_VALUE", * // Format: "REPORT_CSV_20191124", * // Scope: "FAILED_FILES_ONLY", * // }, * // CapacityToRelease: Number("long"), * // FileCacheId: "STRING_VALUE", * // ReleaseConfiguration: { // ReleaseConfiguration * // DurationSinceLastAccess: { // DurationSinceLastAccess * // Unit: "DAYS", * // Value: Number("long"), * // }, * // }, * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeDataRepositoryTasksCommandInput - {@link DescribeDataRepositoryTasksCommandInput} * @returns {@link DescribeDataRepositoryTasksCommandOutput} * @see {@link DescribeDataRepositoryTasksCommandInput} for command's `input` shape. * @see {@link DescribeDataRepositoryTasksCommandOutput} for command's `response` shape. * @see {@link FSxClientResolvedConfig | config} for FSxClient's `config` shape. * * @throws {@link BadRequest} (client fault) *

A generic error indicating a failure with a client request.

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

The data repository task or tasks you specified could not be found.

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

No Amazon FSx file systems were found based upon supplied parameters.

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

A generic error indicating a server-side failure.

* * @throws {@link FSxServiceException} *

Base exception class for all service exceptions from FSx service.

* * * @public */ export declare class DescribeDataRepositoryTasksCommand extends DescribeDataRepositoryTasksCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeDataRepositoryTasksRequest; output: DescribeDataRepositoryTasksResponse; }; sdk: { input: DescribeDataRepositoryTasksCommandInput; output: DescribeDataRepositoryTasksCommandOutput; }; }; }