GetAccessPointPolicyForObjectLambdaCommand

This operation is not supported by directory buckets.

Returns the resource policy for an Object Lambda Access Point.

The following actions are related to GetAccessPointPolicyForObjectLambda:

Example Syntax

Use a bare-bones client and the command you need to make an API call.

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",
// };

GetAccessPointPolicyForObjectLambdaCommand Input

Parameter
Type
Description
Name
Required
string | undefined

The name of the Object Lambda Access Point.

AccountId
string | undefined

The account ID for the account that owns the specified Object Lambda Access Point.

GetAccessPointPolicyForObjectLambdaCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
Policy
string | undefined

Object Lambda Access Point resource policy document.

Throws

Name
Fault
Details
S3ControlServiceException
Base exception class for all service exceptions from S3Control service.