import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ImagebuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ImagebuilderClient"; import type { GetImagePolicyRequest, GetImagePolicyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetImagePolicyCommand}. */ export interface GetImagePolicyCommandInput extends GetImagePolicyRequest { } /** * @public * * The output of {@link GetImagePolicyCommand}. */ export interface GetImagePolicyCommandOutput extends GetImagePolicyResponse, __MetadataBearer { } declare const GetImagePolicyCommand_base: { new (input: GetImagePolicyCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetImagePolicyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Gets an image policy.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ImagebuilderClient, GetImagePolicyCommand } from "@aws-sdk/client-imagebuilder"; // ES Modules import * // const { ImagebuilderClient, GetImagePolicyCommand } = require("@aws-sdk/client-imagebuilder"); // CommonJS import * // import type { ImagebuilderClientConfig } from "@aws-sdk/client-imagebuilder"; * const config = {}; // type is ImagebuilderClientConfig * const client = new ImagebuilderClient(config); * const input = { // GetImagePolicyRequest * imageArn: "STRING_VALUE", // required * }; * const command = new GetImagePolicyCommand(input); * const response = await client.send(command); * // { // GetImagePolicyResponse * // requestId: "STRING_VALUE", * // policy: "STRING_VALUE", * // }; * * ``` * * @param GetImagePolicyCommandInput - {@link GetImagePolicyCommandInput} * @returns {@link GetImagePolicyCommandOutput} * @see {@link GetImagePolicyCommandInput} for command's `input` shape. * @see {@link GetImagePolicyCommandOutput} for command's `response` shape. * @see {@link ImagebuilderClientResolvedConfig | config} for ImagebuilderClient's `config` shape. * * @throws {@link CallRateLimitExceededException} (client fault) *

You have exceeded the permitted request rate for the specific operation.

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

You are not authorized to perform the requested operation.

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

You have requested an action that that the service doesn't support.

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

At least one of the resources referenced by your request does not exist.

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

This exception is thrown when the service encounters an unrecoverable * exception.

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

The service is unable to process your request at this time.

* * @throws {@link ImagebuilderServiceException} *

Base exception class for all service exceptions from Imagebuilder service.

* * * @public */ export declare class GetImagePolicyCommand extends GetImagePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetImagePolicyRequest; output: GetImagePolicyResponse; }; sdk: { input: GetImagePolicyCommandInput; output: GetImagePolicyCommandOutput; }; }; }