import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { BatchGetEffectiveLifecyclePolicyRequest, BatchGetEffectiveLifecyclePolicyResponse } from "../models/models_0"; import type { OpenSearchServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchServerlessClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link BatchGetEffectiveLifecyclePolicyCommand}. */ export interface BatchGetEffectiveLifecyclePolicyCommandInput extends BatchGetEffectiveLifecyclePolicyRequest { } /** * @public * * The output of {@link BatchGetEffectiveLifecyclePolicyCommand}. */ export interface BatchGetEffectiveLifecyclePolicyCommandOutput extends BatchGetEffectiveLifecyclePolicyResponse, __MetadataBearer { } declare const BatchGetEffectiveLifecyclePolicyCommand_base: { new (input: BatchGetEffectiveLifecyclePolicyCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: BatchGetEffectiveLifecyclePolicyCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns a list of successful and failed retrievals for the OpenSearch Serverless indexes. For more information, see Viewing data lifecycle policies.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchServerlessClient, BatchGetEffectiveLifecyclePolicyCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import * // const { OpenSearchServerlessClient, BatchGetEffectiveLifecyclePolicyCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import * // import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless"; * const config = {}; // type is OpenSearchServerlessClientConfig * const client = new OpenSearchServerlessClient(config); * const input = { // BatchGetEffectiveLifecyclePolicyRequest * resourceIdentifiers: [ // LifecyclePolicyResourceIdentifiers // required * { // LifecyclePolicyResourceIdentifier * type: "STRING_VALUE", // required * resource: "STRING_VALUE", // required * }, * ], * }; * const command = new BatchGetEffectiveLifecyclePolicyCommand(input); * const response = await client.send(command); * // { // BatchGetEffectiveLifecyclePolicyResponse * // effectiveLifecyclePolicyDetails: [ // EffectiveLifecyclePolicyDetails * // { // EffectiveLifecyclePolicyDetail * // type: "STRING_VALUE", * // resource: "STRING_VALUE", * // policyName: "STRING_VALUE", * // resourceType: "STRING_VALUE", * // retentionPeriod: "STRING_VALUE", * // noMinRetentionPeriod: true || false, * // }, * // ], * // effectiveLifecyclePolicyErrorDetails: [ // EffectiveLifecyclePolicyErrorDetails * // { // EffectiveLifecyclePolicyErrorDetail * // type: "STRING_VALUE", * // resource: "STRING_VALUE", * // errorMessage: "STRING_VALUE", * // errorCode: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param BatchGetEffectiveLifecyclePolicyCommandInput - {@link BatchGetEffectiveLifecyclePolicyCommandInput} * @returns {@link BatchGetEffectiveLifecyclePolicyCommandOutput} * @see {@link BatchGetEffectiveLifecyclePolicyCommandInput} for command's `input` shape. * @see {@link BatchGetEffectiveLifecyclePolicyCommandOutput} for command's `response` shape. * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

Thrown when an error internal to the service occurs while processing a request.

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

Thrown when the HTTP request contains invalid input or is missing required input.

* * @throws {@link OpenSearchServerlessServiceException} *

Base exception class for all service exceptions from OpenSearchServerless service.

* * * @public */ export declare class BatchGetEffectiveLifecyclePolicyCommand extends BatchGetEffectiveLifecyclePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: BatchGetEffectiveLifecyclePolicyRequest; output: BatchGetEffectiveLifecyclePolicyResponse; }; sdk: { input: BatchGetEffectiveLifecyclePolicyCommandInput; output: BatchGetEffectiveLifecyclePolicyCommandOutput; }; }; }