import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeleteAppVersionResourceRequest, DeleteAppVersionResourceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DeleteAppVersionResourceCommand}. */ export interface DeleteAppVersionResourceCommandInput extends DeleteAppVersionResourceRequest { } /** * @public * * The output of {@link DeleteAppVersionResourceCommand}. */ export interface DeleteAppVersionResourceCommandOutput extends DeleteAppVersionResourceResponse, __MetadataBearer { } declare const DeleteAppVersionResourceCommand_base: { new (input: DeleteAppVersionResourceCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeleteAppVersionResourceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Deletes a resource from the Resilience Hub application.

* *
    *
  • *

    You can only delete a manually added resource. To exclude non-manually added * resources, use the UpdateAppVersionResource API.

    *
  • *
  • *

    This action has no effect outside Resilience Hub.

    *
  • *
  • *

    This API updates the Resilience Hub application draft version. To use this * resource for running resiliency assessments, you must publish the Resilience Hub * application using the PublishAppVersion API.

    *
  • *
*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ResiliencehubClient, DeleteAppVersionResourceCommand } from "@aws-sdk/client-resiliencehub"; // ES Modules import * // const { ResiliencehubClient, DeleteAppVersionResourceCommand } = 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 = { // DeleteAppVersionResourceRequest * appArn: "STRING_VALUE", // required * resourceName: "STRING_VALUE", * logicalResourceId: { // LogicalResourceId * identifier: "STRING_VALUE", // required * logicalStackName: "STRING_VALUE", * resourceGroupName: "STRING_VALUE", * terraformSourceName: "STRING_VALUE", * eksSourceName: "STRING_VALUE", * }, * physicalResourceId: "STRING_VALUE", * awsRegion: "STRING_VALUE", * awsAccountId: "STRING_VALUE", * clientToken: "STRING_VALUE", * }; * const command = new DeleteAppVersionResourceCommand(input); * const response = await client.send(command); * // { // DeleteAppVersionResourceResponse * // appArn: "STRING_VALUE", // required * // appVersion: "STRING_VALUE", // required * // physicalResource: { // PhysicalResource * // resourceName: "STRING_VALUE", * // logicalResourceId: { // LogicalResourceId * // identifier: "STRING_VALUE", // required * // logicalStackName: "STRING_VALUE", * // resourceGroupName: "STRING_VALUE", * // terraformSourceName: "STRING_VALUE", * // eksSourceName: "STRING_VALUE", * // }, * // physicalResourceId: { // PhysicalResourceId * // identifier: "STRING_VALUE", // required * // type: "Arn" || "Native", // required * // awsRegion: "STRING_VALUE", * // awsAccountId: "STRING_VALUE", * // }, * // resourceType: "STRING_VALUE", // required * // appComponents: [ // AppComponentList * // { // AppComponent * // name: "STRING_VALUE", // required * // type: "STRING_VALUE", // required * // id: "STRING_VALUE", * // additionalInfo: { // AdditionalInfoMap * // "": [ // AdditionalInfoValueList * // "STRING_VALUE", * // ], * // }, * // }, * // ], * // additionalInfo: { * // "": [ * // "STRING_VALUE", * // ], * // }, * // excluded: true || false, * // sourceType: "AppTemplate" || "Discovered", * // parentResourceName: "STRING_VALUE", * // }, * // }; * * ``` * * @param DeleteAppVersionResourceCommandInput - {@link DeleteAppVersionResourceCommandInput} * @returns {@link DeleteAppVersionResourceCommandOutput} * @see {@link DeleteAppVersionResourceCommandInput} for command's `input` shape. * @see {@link DeleteAppVersionResourceCommandOutput} 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 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 DeleteAppVersionResourceCommand extends DeleteAppVersionResourceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteAppVersionResourceRequest; output: DeleteAppVersionResourceResponse; }; sdk: { input: DeleteAppVersionResourceCommandInput; output: DeleteAppVersionResourceCommandOutput; }; }; }