- 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.
DeleteResourcePolicyCommand
Delete the resource-based policy attached to the specified registry.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { SchemasClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-schemas"; // ES Modules import
// const { SchemasClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
const client = new SchemasClient(config);
const input = { // DeleteResourcePolicyRequest
RegistryName: "STRING_VALUE",
};
const command = new DeleteResourcePolicyCommand(input);
const response = await client.send(command);
// {};
DeleteResourcePolicyCommand Input
See DeleteResourcePolicyCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
RegistryName | string | undefined | The name of the registry. |
DeleteResourcePolicyCommand Output
See DeleteResourcePolicyCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
BadRequestException | client | |
ForbiddenException | client | |
InternalServerErrorException | server | |
NotFoundException | client | |
ServiceUnavailableException | server | |
UnauthorizedException | client | |
SchemasServiceException | Base exception class for all service exceptions from Schemas service. |