UNPKG

@aws-sdk/client-s3-control

Version:

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

80 lines (79 loc) 3.82 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { GetAccessPointPolicyStatusRequest, GetAccessPointPolicyStatusResult } from "../models/models_0"; import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetAccessPointPolicyStatusCommand}. */ export interface GetAccessPointPolicyStatusCommandInput extends GetAccessPointPolicyStatusRequest { } /** * @public * * The output of {@link GetAccessPointPolicyStatusCommand}. */ export interface GetAccessPointPolicyStatusCommandOutput extends GetAccessPointPolicyStatusResult, __MetadataBearer { } declare const GetAccessPointPolicyStatusCommand_base: { new (input: GetAccessPointPolicyStatusCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccessPointPolicyStatusCommandInput, GetAccessPointPolicyStatusCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (__0_0: GetAccessPointPolicyStatusCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccessPointPolicyStatusCommandInput, GetAccessPointPolicyStatusCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <note> * <p>This operation is not supported by directory buckets.</p> * </note> * <p>Indicates whether the specified access point currently has a policy that allows public access. * For more information about public access through access points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html">Managing Data Access with Amazon S3 * access points</a> in the <i>Amazon S3 User Guide</i>.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { S3ControlClient, GetAccessPointPolicyStatusCommand } from "@aws-sdk/client-s3-control"; // ES Modules import * // const { S3ControlClient, GetAccessPointPolicyStatusCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import * const client = new S3ControlClient(config); * const input = { // GetAccessPointPolicyStatusRequest * AccountId: "STRING_VALUE", * Name: "STRING_VALUE", // required * }; * const command = new GetAccessPointPolicyStatusCommand(input); * const response = await client.send(command); * // { // GetAccessPointPolicyStatusResult * // PolicyStatus: { // PolicyStatus * // IsPublic: true || false, * // }, * // }; * * ``` * * @param GetAccessPointPolicyStatusCommandInput - {@link GetAccessPointPolicyStatusCommandInput} * @returns {@link GetAccessPointPolicyStatusCommandOutput} * @see {@link GetAccessPointPolicyStatusCommandInput} for command's `input` shape. * @see {@link GetAccessPointPolicyStatusCommandOutput} 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 GetAccessPointPolicyStatusCommand extends GetAccessPointPolicyStatusCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetAccessPointPolicyStatusRequest; output: GetAccessPointPolicyStatusResult; }; sdk: { input: GetAccessPointPolicyStatusCommandInput; output: GetAccessPointPolicyStatusCommandOutput; }; }; }