UNPKG

@aws-sdk/client-s3-control

Version:

AWS SDK for JavaScript S3 Control Client for Node.js, Browser and React Native

93 lines (92 loc) 4.44 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { DeleteAccessPointRequest } from "../models/models_0"; import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteAccessPointCommand}. */ export interface DeleteAccessPointCommandInput extends DeleteAccessPointRequest { } /** * @public * * The output of {@link DeleteAccessPointCommand}. */ export interface DeleteAccessPointCommandOutput extends __MetadataBearer { } declare const DeleteAccessPointCommand_base: { new (input: DeleteAccessPointCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAccessPointCommandInput, DeleteAccessPointCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (__0_0: DeleteAccessPointCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAccessPointCommandInput, DeleteAccessPointCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <note> * <p>This operation is not supported by directory buckets.</p> * </note> * <p>Deletes the specified access point.</p> * <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPoint.html#API_control_DeleteAccessPoint_Examples">Examples</a> section.</p> * <p>The following actions are related to <code>DeleteAccessPoint</code>:</p> * <ul> * <li> * <p> * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateAccessPoint.html">CreateAccessPoint</a> * </p> * </li> * <li> * <p> * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPoint.html">GetAccessPoint</a> * </p> * </li> * <li> * <p> * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPoints.html">ListAccessPoints</a> * </p> * </li> * </ul> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { S3ControlClient, DeleteAccessPointCommand } from "@aws-sdk/client-s3-control"; // ES Modules import * // const { S3ControlClient, DeleteAccessPointCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import * const client = new S3ControlClient(config); * const input = { // DeleteAccessPointRequest * AccountId: "STRING_VALUE", * Name: "STRING_VALUE", // required * }; * const command = new DeleteAccessPointCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteAccessPointCommandInput - {@link DeleteAccessPointCommandInput} * @returns {@link DeleteAccessPointCommandOutput} * @see {@link DeleteAccessPointCommandInput} for command's `input` shape. * @see {@link DeleteAccessPointCommandOutput} for command's `response` shape. * @see {@link S3ControlClientResolvedConfig | config} for S3ControlClient's `config` shape. * * @throws {@link S3ControlServiceException} * <p>Base exception class for all service exceptions from S3Control service.</p> * * @public */ export declare class DeleteAccessPointCommand extends DeleteAccessPointCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteAccessPointRequest; output: {}; }; sdk: { input: DeleteAccessPointCommandInput; output: DeleteAccessPointCommandOutput; }; }; }