import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeImageAssociationsRequest, DescribeImageAssociationsResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeImageAssociationsCommand}. */ export interface DescribeImageAssociationsCommandInput extends DescribeImageAssociationsRequest { } /** * @public * * The output of {@link DescribeImageAssociationsCommand}. */ export interface DescribeImageAssociationsCommandOutput extends DescribeImageAssociationsResult, __MetadataBearer { } declare const DescribeImageAssociationsCommand_base: { new (input: DescribeImageAssociationsCommandInput): import("@smithy/core/client").CommandImpl; new (input: DescribeImageAssociationsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Describes the associations between the applications and the specified image.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkSpacesClient, DescribeImageAssociationsCommand } from "@aws-sdk/client-workspaces"; // ES Modules import * // const { WorkSpacesClient, DescribeImageAssociationsCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import * // import type { WorkSpacesClientConfig } from "@aws-sdk/client-workspaces"; * const config = {}; // type is WorkSpacesClientConfig * const client = new WorkSpacesClient(config); * const input = { // DescribeImageAssociationsRequest * ImageId: "STRING_VALUE", // required * AssociatedResourceTypes: [ // ImageAssociatedResourceTypeList // required * "APPLICATION", * ], * }; * const command = new DescribeImageAssociationsCommand(input); * const response = await client.send(command); * // { // DescribeImageAssociationsResult * // Associations: [ // ImageResourceAssociationList * // { // ImageResourceAssociation * // AssociatedResourceId: "STRING_VALUE", * // AssociatedResourceType: "APPLICATION", * // Created: new Date("TIMESTAMP"), * // LastUpdatedTime: new Date("TIMESTAMP"), * // ImageId: "STRING_VALUE", * // State: "PENDING_INSTALL" || "PENDING_INSTALL_DEPLOYMENT" || "PENDING_UNINSTALL" || "PENDING_UNINSTALL_DEPLOYMENT" || "INSTALLING" || "UNINSTALLING" || "ERROR" || "COMPLETED" || "REMOVED", * // StateReason: { // AssociationStateReason * // ErrorCode: "ValidationError.InsufficientDiskSpace" || "ValidationError.InsufficientMemory" || "ValidationError.UnsupportedOperatingSystem" || "DeploymentError.InternalServerError" || "DeploymentError.WorkspaceUnreachable" || "ValidationError.ApplicationOldVersionExists", * // ErrorMessage: "STRING_VALUE", * // }, * // }, * // ], * // }; * * ``` * * @param DescribeImageAssociationsCommandInput - {@link DescribeImageAssociationsCommandInput} * @returns {@link DescribeImageAssociationsCommandOutput} * @see {@link DescribeImageAssociationsCommandInput} for command's `input` shape. * @see {@link DescribeImageAssociationsCommandOutput} for command's `response` shape. * @see {@link WorkSpacesClientResolvedConfig | config} for WorkSpacesClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

The user is not authorized to access a resource.

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

One or more parameter values are not valid.

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

This operation is not supported.

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

The resource could not be found.

* * @throws {@link WorkSpacesServiceException} *

Base exception class for all service exceptions from WorkSpaces service.

* * * @public */ export declare class DescribeImageAssociationsCommand extends DescribeImageAssociationsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeImageAssociationsRequest; output: DescribeImageAssociationsResult; }; sdk: { input: DescribeImageAssociationsCommandInput; output: DescribeImageAssociationsCommandOutput; }; }; }