- 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.
DeleteSpaceCommand
Deletes an AWS re:Post Private private re:Post.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { RepostspaceClient, DeleteSpaceCommand } from "@aws-sdk/client-repostspace"; // ES Modules import
// const { RepostspaceClient, DeleteSpaceCommand } = require("@aws-sdk/client-repostspace"); // CommonJS import
const client = new RepostspaceClient(config);
const input = { // DeleteSpaceInput
spaceId: "STRING_VALUE", // required
};
const command = new DeleteSpaceCommand(input);
const response = await client.send(command);
// {};
DeleteSpaceCommand Input
See DeleteSpaceCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
spaceId Required | string | undefined | The unique ID of the private re:Post. |
DeleteSpaceCommand Output
See DeleteSpaceCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | User does not have sufficient access to perform this action. |
InternalServerException | server | Unexpected error during processing of request. |
ResourceNotFoundException | client | Request references a resource which does not exist. |
ThrottlingException | client | Request was denied due to request throttling. |
ValidationException | client | The input fails to satisfy the constraints specified by an AWS service. |
RepostspaceServiceException | Base exception class for all service exceptions from Repostspace service. |