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 { UpdateLifecyclePolicyRequest, UpdateLifecyclePolicyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateLifecyclePolicyCommand}. */ export interface UpdateLifecyclePolicyCommandInput extends UpdateLifecyclePolicyRequest { } /** * @public * * The output of {@link UpdateLifecyclePolicyCommand}. */ export interface UpdateLifecyclePolicyCommandOutput extends UpdateLifecyclePolicyResponse, __MetadataBearer { } declare const UpdateLifecyclePolicyCommand_base: { new (input: UpdateLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateLifecyclePolicyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Update the specified lifecycle policy.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ImagebuilderClient, UpdateLifecyclePolicyCommand } from "@aws-sdk/client-imagebuilder"; // ES Modules import * // const { ImagebuilderClient, UpdateLifecyclePolicyCommand } = 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 = { // UpdateLifecyclePolicyRequest * lifecyclePolicyArn: "STRING_VALUE", // required * description: "STRING_VALUE", * status: "DISABLED" || "ENABLED", * executionRole: "STRING_VALUE", // required * resourceType: "AMI_IMAGE" || "CONTAINER_IMAGE", // required * policyDetails: [ // LifecyclePolicyDetails // required * { // LifecyclePolicyDetail * action: { // LifecyclePolicyDetailAction * type: "DELETE" || "DEPRECATE" || "DISABLE", // required * includeResources: { // LifecyclePolicyDetailActionIncludeResources * amis: true || false, * snapshots: true || false, * containers: true || false, * }, * }, * filter: { // LifecyclePolicyDetailFilter * type: "AGE" || "COUNT", // required * value: Number("int"), // required * unit: "DAYS" || "WEEKS" || "MONTHS" || "YEARS", * retainAtLeast: Number("int"), * }, * exclusionRules: { // LifecyclePolicyDetailExclusionRules * tagMap: { // TagMap * "": "STRING_VALUE", * }, * amis: { // LifecyclePolicyDetailExclusionRulesAmis * isPublic: true || false, * regions: [ // StringList * "STRING_VALUE", * ], * sharedAccounts: [ // AccountList * "STRING_VALUE", * ], * lastLaunched: { // LifecyclePolicyDetailExclusionRulesAmisLastLaunched * value: Number("int"), // required * unit: "DAYS" || "WEEKS" || "MONTHS" || "YEARS", // required * }, * tagMap: { * "": "STRING_VALUE", * }, * }, * }, * }, * ], * resourceSelection: { // LifecyclePolicyResourceSelection * recipes: [ // LifecyclePolicyResourceSelectionRecipes * { // LifecyclePolicyResourceSelectionRecipe * name: "STRING_VALUE", // required * semanticVersion: "STRING_VALUE", // required * }, * ], * tagMap: "", * }, * clientToken: "STRING_VALUE", // required * }; * const command = new UpdateLifecyclePolicyCommand(input); * const response = await client.send(command); * // { // UpdateLifecyclePolicyResponse * // lifecyclePolicyArn: "STRING_VALUE", * // }; * * ``` * * @param UpdateLifecyclePolicyCommandInput - {@link UpdateLifecyclePolicyCommandInput} * @returns {@link UpdateLifecyclePolicyCommandOutput} * @see {@link UpdateLifecyclePolicyCommandInput} for command's `input` shape. * @see {@link UpdateLifecyclePolicyCommandOutput} 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 ClientException} (client fault) *

These errors are usually caused by a client action, such as using an action or * resource on behalf of a user that doesn't have permissions to use the action or * resource, or specifying an invalid resource identifier.

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

You are not authorized to perform the requested operation.

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

You have specified a client token for an operation using parameter values that differ * from a previous request that used the same client token.

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

You have specified two or more mutually exclusive parameters. Review the error message * for details.

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

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

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

The resource that you are trying to operate on is currently in use. Review the message * details and retry later.

* * @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 UpdateLifecyclePolicyCommand extends UpdateLifecyclePolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateLifecyclePolicyRequest; output: UpdateLifecyclePolicyResponse; }; sdk: { input: UpdateLifecyclePolicyCommandInput; output: UpdateLifecyclePolicyCommandOutput; }; }; }