- 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.
DeleteShareCommand
Deletes a resource share. If you are the resource owner, the subscriber will no longer have access to the shared resource. If you are the subscriber, this operation deletes your access to the share.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { OmicsClient, DeleteShareCommand } from "@aws-sdk/client-omics"; // ES Modules import
// const { OmicsClient, DeleteShareCommand } = require("@aws-sdk/client-omics"); // CommonJS import
const client = new OmicsClient(config);
const input = { // DeleteShareRequest
shareId: "STRING_VALUE", // required
};
const command = new DeleteShareCommand(input);
const response = await client.send(command);
// { // DeleteShareResponse
// status: "STRING_VALUE",
// };
DeleteShareCommand Input
See DeleteShareCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
shareId Required | string | undefined | The ID for the resource share to be deleted. |
DeleteShareCommand Output
See DeleteShareCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
status | ShareStatus | undefined | The status of the share being deleted. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | You do not have sufficient access to perform this action. |
ConflictException | client | The request cannot be applied to the target resource in its current state. |
InternalServerException | server | An unexpected error occurred. Try the request again. |
ResourceNotFoundException | client | The target resource was not found in the current Region. |
ServiceQuotaExceededException | client | The request exceeds a service quota. |
ThrottlingException | client | The request was denied due to request throttling. |
ValidationException | client | The input fails to satisfy the constraints specified by an AWS service. |
OmicsServiceException | Base exception class for all service exceptions from Omics service. |