DeleteApplicationCommand

Deletes an Amazon Web Services Migration Hub Refactor Spaces application. Before you can delete an application, you must first delete any services or routes within the application.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { MigrationHubRefactorSpacesClient, DeleteApplicationCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import
// const { MigrationHubRefactorSpacesClient, DeleteApplicationCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import
const client = new MigrationHubRefactorSpacesClient(config);
const input = { // DeleteApplicationRequest
  EnvironmentIdentifier: "STRING_VALUE", // required
  ApplicationIdentifier: "STRING_VALUE", // required
};
const command = new DeleteApplicationCommand(input);
const response = await client.send(command);
// { // DeleteApplicationResponse
//   Name: "STRING_VALUE",
//   Arn: "STRING_VALUE",
//   ApplicationId: "STRING_VALUE",
//   EnvironmentId: "STRING_VALUE",
//   State: "STRING_VALUE",
//   LastUpdatedTime: new Date("TIMESTAMP"),
// };

DeleteApplicationCommand Input

See DeleteApplicationCommandInput for more details

Parameter
Type
Description
ApplicationIdentifier
Required
string | undefined

The ID of the application.

EnvironmentIdentifier
Required
string | undefined

The ID of the environment.

DeleteApplicationCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
ApplicationId
string | undefined

The ID of the application.

Arn
string | undefined

The Amazon Resource Name (ARN) of the application.

EnvironmentId
string | undefined

The unique identifier of the application’s environment.

LastUpdatedTime
Date | undefined

A timestamp that indicates when the environment was last updated.

Name
string | undefined

The name of the application.

State
ApplicationState | undefined

The current state of the application.

Throws

Name
Fault
Details
AccessDeniedException
client

The user does not have sufficient access to perform this action.

ConflictException
client

Updating or deleting a resource can cause an inconsistent state.

InternalServerException
server

An unexpected error occurred while processing the request.

ResourceNotFoundException
client

The request references a resource that does not exist.

ThrottlingException
client

Request was denied because the request was throttled.

ValidationException
client

The input does not satisfy the constraints specified by an Amazon Web Service.

MigrationHubRefactorSpacesServiceException
Base exception class for all service exceptions from MigrationHubRefactorSpaces service.