import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient"; import type { DeleteRepositoryPermissionsPolicyRequest, DeleteRepositoryPermissionsPolicyResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteRepositoryPermissionsPolicyCommand}. */ export interface DeleteRepositoryPermissionsPolicyCommandInput extends DeleteRepositoryPermissionsPolicyRequest { } /** * @public * * The output of {@link DeleteRepositoryPermissionsPolicyCommand}. */ export interface DeleteRepositoryPermissionsPolicyCommandOutput extends DeleteRepositoryPermissionsPolicyResult, __MetadataBearer { } declare const DeleteRepositoryPermissionsPolicyCommand_base: { new (input: DeleteRepositoryPermissionsPolicyCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteRepositoryPermissionsPolicyCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

* Deletes the resource policy that is set on a repository. After a resource policy is deleted, the * permissions allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be immediate. *

* *

* Use DeleteRepositoryPermissionsPolicy with caution. After a policy is deleted, Amazon Web Services users, roles, and accounts lose permissions to perform * the repository actions granted by the deleted policy. *

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeartifactClient, DeleteRepositoryPermissionsPolicyCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import * // const { CodeartifactClient, DeleteRepositoryPermissionsPolicyCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import * // import type { CodeartifactClientConfig } from "@aws-sdk/client-codeartifact"; * const config = {}; // type is CodeartifactClientConfig * const client = new CodeartifactClient(config); * const input = { // DeleteRepositoryPermissionsPolicyRequest * domain: "STRING_VALUE", // required * domainOwner: "STRING_VALUE", * repository: "STRING_VALUE", // required * policyRevision: "STRING_VALUE", * }; * const command = new DeleteRepositoryPermissionsPolicyCommand(input); * const response = await client.send(command); * // { // DeleteRepositoryPermissionsPolicyResult * // policy: { // ResourcePolicy * // resourceArn: "STRING_VALUE", * // revision: "STRING_VALUE", * // document: "STRING_VALUE", * // }, * // }; * * ``` * * @param DeleteRepositoryPermissionsPolicyCommandInput - {@link DeleteRepositoryPermissionsPolicyCommandInput} * @returns {@link DeleteRepositoryPermissionsPolicyCommandOutput} * @see {@link DeleteRepositoryPermissionsPolicyCommandInput} for command's `input` shape. * @see {@link DeleteRepositoryPermissionsPolicyCommandOutput} for command's `response` shape. * @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

* The operation did not succeed because of an unauthorized access attempt. *

* * @throws {@link ConflictException} (client fault) *

* The operation did not succeed because prerequisites are not met. *

* * @throws {@link InternalServerException} (server fault) *

The operation did not succeed because of an error that occurred inside CodeArtifact.

* * @throws {@link ResourceNotFoundException} (client fault) *

* The operation did not succeed because the resource requested is not found in the service. *

* * @throws {@link ThrottlingException} (client fault) *

* The operation did not succeed because too many requests are sent to the service. *

* * @throws {@link ValidationException} (client fault) *

* The operation did not succeed because a parameter in the request was sent with an invalid value. *

* * @throws {@link CodeartifactServiceException} *

Base exception class for all service exceptions from Codeartifact service.

* * * @public */ export declare class DeleteRepositoryPermissionsPolicyCommand extends DeleteRepositoryPermissionsPolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteRepositoryPermissionsPolicyRequest; output: DeleteRepositoryPermissionsPolicyResult; }; sdk: { input: DeleteRepositoryPermissionsPolicyCommandInput; output: DeleteRepositoryPermissionsPolicyCommandOutput; }; }; }