- 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
Deletes the resource policy set for the environment.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { MigrationHubRefactorSpacesClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import
// const { MigrationHubRefactorSpacesClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import
const client = new MigrationHubRefactorSpacesClient(config);
const input = { // DeleteResourcePolicyRequest
Identifier: "STRING_VALUE", // required
};
const command = new DeleteResourcePolicyCommand(input);
const response = await client.send(command);
// {};
DeleteResourcePolicyCommand Input
See DeleteResourcePolicyCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
Identifier Required | string | undefined | Amazon Resource Name (ARN) of the resource associated with the policy. |
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 |
---|---|---|
AccessDeniedException | client | The user does not have sufficient access to perform this action. |
InternalServerException | server | An unexpected error occurred while processing the request. |
ResourceNotFoundException | client | The request references a resource that does not exist. |
ThrottlingException | client | Request was denied because the request was throttled. |
ValidationException | client | The input does not satisfy the constraints specified by an Amazon Web Service. |
MigrationHubRefactorSpacesServiceException | Base exception class for all service exceptions from MigrationHubRefactorSpaces service. |