Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Deletes an Amazon Web Services Migration Hub Refactor Spaces service.

Example

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

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

Param

DeleteServiceCommandInput

Returns

DeleteServiceCommandOutput

See

Throws

AccessDeniedException (client fault)

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

Throws

ConflictException (client fault)

Updating or deleting a resource can cause an inconsistent state.

Throws

InternalServerException (server fault)

An unexpected error occurred while processing the request.

Throws

ResourceNotFoundException (client fault)

The request references a resource that does not exist.

Throws

ThrottlingException (client fault)

Request was denied because the request was throttled.

Throws

ValidationException (client fault)

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

Throws

MigrationHubRefactorSpacesServiceException

Base exception class for all service exceptions from MigrationHubRefactorSpaces service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods