import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AddDraftAppVersionResourceMappingsRequest, AddDraftAppVersionResourceMappingsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AddDraftAppVersionResourceMappingsCommand}. */ export interface AddDraftAppVersionResourceMappingsCommandInput extends AddDraftAppVersionResourceMappingsRequest { } /** * @public * * The output of {@link AddDraftAppVersionResourceMappingsCommand}. */ export interface AddDraftAppVersionResourceMappingsCommandOutput extends AddDraftAppVersionResourceMappingsResponse, __MetadataBearer { } declare const AddDraftAppVersionResourceMappingsCommand_base: { new (input: AddDraftAppVersionResourceMappingsCommandInput): import("@smithy/core/client").CommandImpl; new (input: AddDraftAppVersionResourceMappingsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Adds the source of resource-maps to the draft version of an application. During * assessment, Resilience Hub will use these resource-maps to resolve the latest physical * ID for each resource in the application template. For more information about different types * of resources supported by Resilience Hub and how to add them in your application, see * Step * 2: How is your application managed? in the Resilience Hub User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ResiliencehubClient, AddDraftAppVersionResourceMappingsCommand } from "@aws-sdk/client-resiliencehub"; // ES Modules import * // const { ResiliencehubClient, AddDraftAppVersionResourceMappingsCommand } = require("@aws-sdk/client-resiliencehub"); // CommonJS import * // import type { ResiliencehubClientConfig } from "@aws-sdk/client-resiliencehub"; * const config = {}; // type is ResiliencehubClientConfig * const client = new ResiliencehubClient(config); * const input = { // AddDraftAppVersionResourceMappingsRequest * appArn: "STRING_VALUE", // required * resourceMappings: [ // ResourceMappingList // required * { // ResourceMapping * resourceName: "STRING_VALUE", * logicalStackName: "STRING_VALUE", * appRegistryAppName: "STRING_VALUE", * resourceGroupName: "STRING_VALUE", * mappingType: "CfnStack" || "Resource" || "AppRegistryApp" || "ResourceGroup" || "Terraform" || "EKS", // required * physicalResourceId: { // PhysicalResourceId * identifier: "STRING_VALUE", // required * type: "Arn" || "Native", // required * awsRegion: "STRING_VALUE", * awsAccountId: "STRING_VALUE", * }, * terraformSourceName: "STRING_VALUE", * eksSourceName: "STRING_VALUE", * }, * ], * }; * const command = new AddDraftAppVersionResourceMappingsCommand(input); * const response = await client.send(command); * // { // AddDraftAppVersionResourceMappingsResponse * // appArn: "STRING_VALUE", // required * // appVersion: "STRING_VALUE", // required * // resourceMappings: [ // ResourceMappingList // required * // { // ResourceMapping * // resourceName: "STRING_VALUE", * // logicalStackName: "STRING_VALUE", * // appRegistryAppName: "STRING_VALUE", * // resourceGroupName: "STRING_VALUE", * // mappingType: "CfnStack" || "Resource" || "AppRegistryApp" || "ResourceGroup" || "Terraform" || "EKS", // required * // physicalResourceId: { // PhysicalResourceId * // identifier: "STRING_VALUE", // required * // type: "Arn" || "Native", // required * // awsRegion: "STRING_VALUE", * // awsAccountId: "STRING_VALUE", * // }, * // terraformSourceName: "STRING_VALUE", * // eksSourceName: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param AddDraftAppVersionResourceMappingsCommandInput - {@link AddDraftAppVersionResourceMappingsCommandInput} * @returns {@link AddDraftAppVersionResourceMappingsCommandOutput} * @see {@link AddDraftAppVersionResourceMappingsCommandInput} for command's `input` shape. * @see {@link AddDraftAppVersionResourceMappingsCommandOutput} for command's `response` shape. * @see {@link ResiliencehubClientResolvedConfig | config} for ResiliencehubClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have permissions to perform the requested operation. The user or role that is * making the request must have at least one IAM permissions policy attached that grants the * required permissions.

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

This exception occurs when a conflict with a previous successful write is detected. This generally occurs * when the previous write did not have time to propagate to the host serving the current * request. A retry (with appropriate backoff logic) is the recommended response to this * exception.

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

This exception occurs when there is an internal failure in the Resilience Hub * service.

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

This exception occurs when the specified resource could not be found.

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

This exception occurs when you have exceeded your service quota. To perform the requested action, remove some of the * relevant resources, or use Service Quotas to request a service quota increase.

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

This exception occurs when you have exceeded the limit on the number of requests per second.

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

This exception occurs when a request is not valid.

* * @throws {@link ResiliencehubServiceException} *

Base exception class for all service exceptions from Resiliencehub service.

* * * @public */ export declare class AddDraftAppVersionResourceMappingsCommand extends AddDraftAppVersionResourceMappingsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AddDraftAppVersionResourceMappingsRequest; output: AddDraftAppVersionResourceMappingsResponse; }; sdk: { input: AddDraftAppVersionResourceMappingsCommandInput; output: AddDraftAppVersionResourceMappingsCommandOutput; }; }; }