import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AssociatePackagesRequest, AssociatePackagesResponse } from "../models/models_0"; import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AssociatePackagesCommand}. */ export interface AssociatePackagesCommandInput extends AssociatePackagesRequest { } /** * @public * * The output of {@link AssociatePackagesCommand}. */ export interface AssociatePackagesCommandOutput extends AssociatePackagesResponse, __MetadataBearer { } declare const AssociatePackagesCommand_base: { new (input: AssociatePackagesCommandInput): import("@smithy/core/client").CommandImpl; new (input: AssociatePackagesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Operation in the Amazon OpenSearch Service API for associating multiple packages with * a domain simultaneously.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, AssociatePackagesCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, AssociatePackagesCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch"; * const config = {}; // type is OpenSearchClientConfig * const client = new OpenSearchClient(config); * const input = { // AssociatePackagesRequest * PackageList: [ // PackageDetailsForAssociationList // required * { // PackageDetailsForAssociation * PackageID: "STRING_VALUE", // required * PrerequisitePackageIDList: [ // PackageIDList * "STRING_VALUE", * ], * AssociationConfiguration: { // PackageAssociationConfiguration * KeyStoreAccessOption: { // KeyStoreAccessOption * KeyAccessRoleArn: "STRING_VALUE", * KeyStoreAccessEnabled: true || false, // required * }, * }, * }, * ], * DomainName: "STRING_VALUE", // required * }; * const command = new AssociatePackagesCommand(input); * const response = await client.send(command); * // { // AssociatePackagesResponse * // DomainPackageDetailsList: [ // DomainPackageDetailsList * // { // DomainPackageDetails * // PackageID: "STRING_VALUE", * // PackageName: "STRING_VALUE", * // PackageType: "TXT-DICTIONARY" || "ZIP-PLUGIN" || "PACKAGE-LICENSE" || "PACKAGE-CONFIG", * // LastUpdated: new Date("TIMESTAMP"), * // DomainName: "STRING_VALUE", * // DomainPackageStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ACTIVE" || "DISSOCIATING" || "DISSOCIATION_FAILED", * // PackageVersion: "STRING_VALUE", * // PrerequisitePackageIDList: [ // PackageIDList * // "STRING_VALUE", * // ], * // ReferencePath: "STRING_VALUE", * // ErrorDetails: { // ErrorDetails * // ErrorType: "STRING_VALUE", * // ErrorMessage: "STRING_VALUE", * // }, * // AssociationConfiguration: { // PackageAssociationConfiguration * // KeyStoreAccessOption: { // KeyStoreAccessOption * // KeyAccessRoleArn: "STRING_VALUE", * // KeyStoreAccessEnabled: true || false, // required * // }, * // }, * // }, * // ], * // }; * * ``` * * @param AssociatePackagesCommandInput - {@link AssociatePackagesCommandInput} * @returns {@link AssociatePackagesCommandOutput} * @see {@link AssociatePackagesCommandInput} for command's `input` shape. * @see {@link AssociatePackagesCommandOutput} for command's `response` shape. * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape. * * @throws {@link BaseException} (client fault) *

An error occurred while processing the request.

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

An error occurred because the client attempts to remove a resource that is currently in use.

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

An error occured because the client wanted to access an unsupported operation.

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

Request processing failed because of an unknown error, exception, or internal failure.

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

An exception for accessing or deleting a resource that doesn't exist.

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

An exception for accessing or deleting a resource that doesn't exist.

* * @throws {@link OpenSearchServiceException} *

Base exception class for all service exceptions from OpenSearch service.

* * * @public */ export declare class AssociatePackagesCommand extends AssociatePackagesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociatePackagesRequest; output: AssociatePackagesResponse; }; sdk: { input: AssociatePackagesCommandInput; output: AssociatePackagesCommandOutput; }; }; }