We are excited to announce our new API Documentation.
Protected
Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
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 importconst 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"),// };
DeleteServiceCommandInput
DeleteServiceCommandOutput
input
response
config
AccessDeniedException (client fault)
The user does not have sufficient access to perform this action.
ConflictException (client fault)
Updating or deleting a resource can cause an inconsistent state.
InternalServerException (server fault)
An unexpected error occurred while processing the request.
ResourceNotFoundException (client fault)
The request references a resource that does not exist.
ThrottlingException (client fault)
Request was denied because the request was throttled.
ValidationException (client fault)
The input does not satisfy the constraints specified by an Amazon Web Service.
MigrationHubRefactorSpacesServiceException
Base exception class for all service exceptions from MigrationHubRefactorSpaces service.
Readonly
Static
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.
Param
DeleteServiceCommandInput
Returns
DeleteServiceCommandOutput
See
input
shape.response
shape.config
shape.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.