@aws-sdk/client-s3-control
Version:
AWS SDK for JavaScript S3 Control Client for Node.js, Browser and React Native
90 lines (89 loc) • 4.42 kB
TypeScript
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import { GetAccessPointPolicyForObjectLambdaRequest, GetAccessPointPolicyForObjectLambdaResult } from "../models/models_0";
import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link GetAccessPointPolicyForObjectLambdaCommand}.
*/
export interface GetAccessPointPolicyForObjectLambdaCommandInput extends GetAccessPointPolicyForObjectLambdaRequest {
}
/**
* @public
*
* The output of {@link GetAccessPointPolicyForObjectLambdaCommand}.
*/
export interface GetAccessPointPolicyForObjectLambdaCommandOutput extends GetAccessPointPolicyForObjectLambdaResult, __MetadataBearer {
}
declare const GetAccessPointPolicyForObjectLambdaCommand_base: {
new (input: GetAccessPointPolicyForObjectLambdaCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccessPointPolicyForObjectLambdaCommandInput, GetAccessPointPolicyForObjectLambdaCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (__0_0: GetAccessPointPolicyForObjectLambdaCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccessPointPolicyForObjectLambdaCommandInput, GetAccessPointPolicyForObjectLambdaCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <note>
* <p>This operation is not supported by directory buckets.</p>
* </note>
* <p>Returns the resource policy for an Object Lambda Access Point.</p>
* <p>The following actions are related to
* <code>GetAccessPointPolicyForObjectLambda</code>:</p>
* <ul>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointPolicyForObjectLambda.html">DeleteAccessPointPolicyForObjectLambda</a>
* </p>
* </li>
* <li>
* <p>
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_PutAccessPointPolicyForObjectLambda.html">PutAccessPointPolicyForObjectLambda</a>
* </p>
* </li>
* </ul>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { S3ControlClient, GetAccessPointPolicyForObjectLambdaCommand } from "@aws-sdk/client-s3-control"; // ES Modules import
* // const { S3ControlClient, GetAccessPointPolicyForObjectLambdaCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import
* const client = new S3ControlClient(config);
* const input = { // GetAccessPointPolicyForObjectLambdaRequest
* AccountId: "STRING_VALUE",
* Name: "STRING_VALUE", // required
* };
* const command = new GetAccessPointPolicyForObjectLambdaCommand(input);
* const response = await client.send(command);
* // { // GetAccessPointPolicyForObjectLambdaResult
* // Policy: "STRING_VALUE",
* // };
*
* ```
*
* @param GetAccessPointPolicyForObjectLambdaCommandInput - {@link GetAccessPointPolicyForObjectLambdaCommandInput}
* @returns {@link GetAccessPointPolicyForObjectLambdaCommandOutput}
* @see {@link GetAccessPointPolicyForObjectLambdaCommandInput} for command's `input` shape.
* @see {@link GetAccessPointPolicyForObjectLambdaCommandOutput} 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 GetAccessPointPolicyForObjectLambdaCommand extends GetAccessPointPolicyForObjectLambdaCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetAccessPointPolicyForObjectLambdaRequest;
output: GetAccessPointPolicyForObjectLambdaResult;
};
sdk: {
input: GetAccessPointPolicyForObjectLambdaCommandInput;
output: GetAccessPointPolicyForObjectLambdaCommandOutput;
};
};
}