@aws-sdk/client-s3-control
Version:
AWS SDK for JavaScript S3 Control Client for Node.js, Browser and React Native
114 lines (113 loc) • 5.21 kB
TypeScript
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { GetAccessPointRequest, GetAccessPointResult } from "../models/models_0";
import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetAccessPointCommand}.
*/
export interface GetAccessPointCommandInput extends GetAccessPointRequest {
}
/**
* @public
*
* The output of {@link GetAccessPointCommand}.
*/
export interface GetAccessPointCommandOutput extends GetAccessPointResult, __MetadataBearer {
}
declare const GetAccessPointCommand_base: {
new (input: GetAccessPointCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccessPointCommandInput, GetAccessPointCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (__0_0: GetAccessPointCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccessPointCommandInput, GetAccessPointCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <note>
* <p>This operation is not supported by directory buckets.</p>
* </note>
* <p>Returns configuration information about the specified access point.</p>
* <p></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_GetAccessPoint.html#API_control_GetAccessPoint_Examples">Examples</a> section.</p>
* <p>The following actions are related to <code>GetAccessPoint</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_DeleteAccessPoint.html">DeleteAccessPoint</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, GetAccessPointCommand } from "@aws-sdk/client-s3-control"; // ES Modules import
* // const { S3ControlClient, GetAccessPointCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import
* const client = new S3ControlClient(config);
* const input = { // GetAccessPointRequest
* AccountId: "STRING_VALUE",
* Name: "STRING_VALUE", // required
* };
* const command = new GetAccessPointCommand(input);
* const response = await client.send(command);
* // { // GetAccessPointResult
* // Name: "STRING_VALUE",
* // Bucket: "STRING_VALUE",
* // NetworkOrigin: "Internet" || "VPC",
* // VpcConfiguration: { // VpcConfiguration
* // VpcId: "STRING_VALUE", // required
* // },
* // PublicAccessBlockConfiguration: { // PublicAccessBlockConfiguration
* // BlockPublicAcls: true || false,
* // IgnorePublicAcls: true || false,
* // BlockPublicPolicy: true || false,
* // RestrictPublicBuckets: true || false,
* // },
* // CreationDate: new Date("TIMESTAMP"),
* // Alias: "STRING_VALUE",
* // AccessPointArn: "STRING_VALUE",
* // Endpoints: { // Endpoints
* // "<keys>": "STRING_VALUE",
* // },
* // BucketAccountId: "STRING_VALUE",
* // };
*
* ```
*
* @param GetAccessPointCommandInput - {@link GetAccessPointCommandInput}
* @returns {@link GetAccessPointCommandOutput}
* @see {@link GetAccessPointCommandInput} for command's `input` shape.
* @see {@link GetAccessPointCommandOutput} 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 GetAccessPointCommand extends GetAccessPointCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetAccessPointRequest;
output: GetAccessPointResult;
};
sdk: {
input: GetAccessPointCommandInput;
output: GetAccessPointCommandOutput;
};
};
}