UNPKG

@aws-sdk/client-s3-control

Version:

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

120 lines (119 loc) 5.89 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CreateAccessPointForObjectLambdaRequest, CreateAccessPointForObjectLambdaResult } from "../models/models_0"; import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateAccessPointForObjectLambdaCommand}. */ export interface CreateAccessPointForObjectLambdaCommandInput extends CreateAccessPointForObjectLambdaRequest { } /** * @public * * The output of {@link CreateAccessPointForObjectLambdaCommand}. */ export interface CreateAccessPointForObjectLambdaCommandOutput extends CreateAccessPointForObjectLambdaResult, __MetadataBearer { } declare const CreateAccessPointForObjectLambdaCommand_base: { new (input: CreateAccessPointForObjectLambdaCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAccessPointForObjectLambdaCommandInput, CreateAccessPointForObjectLambdaCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (__0_0: CreateAccessPointForObjectLambdaCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAccessPointForObjectLambdaCommandInput, CreateAccessPointForObjectLambdaCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <note> * <p>This operation is not supported by directory buckets.</p> * </note> * <p>Creates an Object Lambda Access Point. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html">Transforming objects with * Object Lambda Access Points</a> in the <i>Amazon S3 User Guide</i>.</p> * <p>The following actions are related to * <code>CreateAccessPointForObjectLambda</code>:</p> * <ul> * <li> * <p> * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_DeleteAccessPointForObjectLambda.html">DeleteAccessPointForObjectLambda</a> * </p> * </li> * <li> * <p> * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPointForObjectLambda.html">GetAccessPointForObjectLambda</a> * </p> * </li> * <li> * <p> * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_ListAccessPointsForObjectLambda.html">ListAccessPointsForObjectLambda</a> * </p> * </li> * </ul> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { S3ControlClient, CreateAccessPointForObjectLambdaCommand } from "@aws-sdk/client-s3-control"; // ES Modules import * // const { S3ControlClient, CreateAccessPointForObjectLambdaCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import * const client = new S3ControlClient(config); * const input = { // CreateAccessPointForObjectLambdaRequest * AccountId: "STRING_VALUE", * Name: "STRING_VALUE", // required * Configuration: { // ObjectLambdaConfiguration * SupportingAccessPoint: "STRING_VALUE", // required * CloudWatchMetricsEnabled: true || false, * AllowedFeatures: [ // ObjectLambdaAllowedFeaturesList * "GetObject-Range" || "GetObject-PartNumber" || "HeadObject-Range" || "HeadObject-PartNumber", * ], * TransformationConfigurations: [ // ObjectLambdaTransformationConfigurationsList // required * { // ObjectLambdaTransformationConfiguration * Actions: [ // ObjectLambdaTransformationConfigurationActionsList // required * "GetObject" || "HeadObject" || "ListObjects" || "ListObjectsV2", * ], * ContentTransformation: { // ObjectLambdaContentTransformation Union: only one key present * AwsLambda: { // AwsLambdaTransformation * FunctionArn: "STRING_VALUE", // required * FunctionPayload: "STRING_VALUE", * }, * }, * }, * ], * }, * }; * const command = new CreateAccessPointForObjectLambdaCommand(input); * const response = await client.send(command); * // { // CreateAccessPointForObjectLambdaResult * // ObjectLambdaAccessPointArn: "STRING_VALUE", * // Alias: { // ObjectLambdaAccessPointAlias * // Value: "STRING_VALUE", * // Status: "PROVISIONING" || "READY", * // }, * // }; * * ``` * * @param CreateAccessPointForObjectLambdaCommandInput - {@link CreateAccessPointForObjectLambdaCommandInput} * @returns {@link CreateAccessPointForObjectLambdaCommandOutput} * @see {@link CreateAccessPointForObjectLambdaCommandInput} for command's `input` shape. * @see {@link CreateAccessPointForObjectLambdaCommandOutput} 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 CreateAccessPointForObjectLambdaCommand extends CreateAccessPointForObjectLambdaCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateAccessPointForObjectLambdaRequest; output: CreateAccessPointForObjectLambdaResult; }; sdk: { input: CreateAccessPointForObjectLambdaCommandInput; output: CreateAccessPointForObjectLambdaCommandOutput; }; }; }