- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DeleteCapabilityCommand
Deletes the specified capability. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { B2biClient, DeleteCapabilityCommand } from "@aws-sdk/client-b2bi"; // ES Modules import
// const { B2biClient, DeleteCapabilityCommand } = require("@aws-sdk/client-b2bi"); // CommonJS import
const client = new B2biClient(config);
const input = { // DeleteCapabilityRequest
capabilityId: "STRING_VALUE", // required
};
const command = new DeleteCapabilityCommand(input);
const response = await client.send(command);
// {};
Example Usage
DeleteCapabilityCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
capabilityId Required | string | undefined | Specifies a system-assigned unique identifier for the capability. |
DeleteCapabilityCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | You do not have sufficient access to perform this action. |
ConflictException | client | A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources. |
InternalServerException | server | This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service. |
ResourceNotFoundException | client | Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call. |
ThrottlingException | client | The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions. |
ValidationException | client | Occurs when a B2BI object cannot be validated against a request from another object. |
B2biServiceException | Base exception class for all service exceptions from B2bi service. |