Amazon.CDK.AWS.S3ObjectLambda.Alpha 2.277.0-alpha.0

Prefix Reserved
This is a prerelease version of Amazon.CDK.AWS.S3ObjectLambda.Alpha.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Amazon.CDK.AWS.S3ObjectLambda.Alpha --version 2.277.0-alpha.0
                    
NuGet\Install-Package Amazon.CDK.AWS.S3ObjectLambda.Alpha -Version 2.277.0-alpha.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Amazon.CDK.AWS.S3ObjectLambda.Alpha" Version="2.277.0-alpha.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Amazon.CDK.AWS.S3ObjectLambda.Alpha" Version="2.277.0-alpha.0" />
                    
Directory.Packages.props
<PackageReference Include="Amazon.CDK.AWS.S3ObjectLambda.Alpha" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Amazon.CDK.AWS.S3ObjectLambda.Alpha --version 2.277.0-alpha.0
                    
#r "nuget: Amazon.CDK.AWS.S3ObjectLambda.Alpha, 2.277.0-alpha.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Amazon.CDK.AWS.S3ObjectLambda.Alpha@2.277.0-alpha.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Amazon.CDK.AWS.S3ObjectLambda.Alpha&version=2.277.0-alpha.0&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Amazon.CDK.AWS.S3ObjectLambda.Alpha&version=2.277.0-alpha.0&prerelease
                    
Install as a Cake Tool

AWS::S3ObjectLambda Construct Library


cdk-constructs: Experimental

The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.


This construct library allows you to define S3 object lambda access points.

using Amazon.CDK.AWS.Lambda;
using Amazon.CDK.AWS.S3;
using Amazon.CDK.AWS.S3ObjectLambda.Alpha;
using Amazon.CDK;

var stack = new Stack();
var bucket = new Bucket(stack, "MyBucket");
var handler = new Function(stack, "MyFunction", new FunctionProps {
    Runtime = Runtime.NODEJS_LATEST,
    Handler = "index.handler",
    Code = Code.FromAsset("lambda.zip")
});
new AccessPoint(stack, "MyObjectLambda", new AccessPointProps {
    Bucket = bucket,
    Handler = handler,
    AccessPointName = "my-access-point",
    Payload = new Dictionary<string, object> {
        { "prop", "value" }
    }
});

Handling range and part number requests

Lambdas are currently limited to only transforming GetObject requests. However, they can additionally support GetObject-Range and GetObject-PartNumber requests, which needs to be specified in the access point configuration:

using Amazon.CDK.AWS.Lambda;
using Amazon.CDK.AWS.S3;
using Amazon.CDK.AWS.S3ObjectLambda.Alpha;
using Amazon.CDK;

var stack = new Stack();
var bucket = new Bucket(stack, "MyBucket");
var handler = new Function(stack, "MyFunction", new FunctionProps {
    Runtime = Runtime.NODEJS_LATEST,
    Handler = "index.handler",
    Code = Code.FromAsset("lambda.zip")
});
new AccessPoint(stack, "MyObjectLambda", new AccessPointProps {
    Bucket = bucket,
    Handler = handler,
    AccessPointName = "my-access-point",
    SupportsGetObjectRange = true,
    SupportsGetObjectPartNumber = true
});

Pass additional data to Lambda function

You can specify an additional object that provides supplemental data to the Lambda function used to transform objects. The data is delivered as a JSON payload to the Lambda:

using Amazon.CDK.AWS.Lambda;
using Amazon.CDK.AWS.S3;
using Amazon.CDK.AWS.S3ObjectLambda.Alpha;
using Amazon.CDK;

var stack = new Stack();
var bucket = new Bucket(stack, "MyBucket");
var handler = new Function(stack, "MyFunction", new FunctionProps {
    Runtime = Runtime.NODEJS_LATEST,
    Handler = "index.handler",
    Code = Code.FromAsset("lambda.zip")
});
new AccessPoint(stack, "MyObjectLambda", new AccessPointProps {
    Bucket = bucket,
    Handler = handler,
    AccessPointName = "my-access-point",
    Payload = new Dictionary<string, object> {
        { "prop", "value" }
    }
});

Accessing the S3 AccessPoint ARN

If you need access to the s3 accesspoint, you can get its ARN like so:

using Amazon.CDK.AWS.S3ObjectLambda.Alpha;

AccessPoint accessPoint;
var s3AccessPointArn = accessPoint.S3AccessPointArn;

This is only supported for AccessPoints created in the stack - currently you're unable to get the S3 AccessPoint ARN for imported AccessPoints. To do that you'd have to know the S3 bucket name beforehand.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.278.0-alpha.0 58 11/20/2026
2.277.0-alpha.0 69 11/13/2026
2.276.0-alpha.0 68 11/10/2026
2.275.0-alpha.0 77 10/26/2026
2.274.0-alpha.0 74 10/20/2026
2.273.0-alpha.0 78 10/8/2026
2.272.0-alpha.0 94 9/30/2026
2.271.0-alpha.0 73 9/25/2026
2.270.0-alpha.0 76 9/17/2026
2.269.0-alpha.0 91 9/10/2026
2.268.0-alpha.0 90 9/2/2026
2.267.0-alpha.0 93 8/27/2026
2.266.0-alpha.0 90 8/19/2026
2.265.0-alpha.0 96 8/13/2026
2.264.0-alpha.0 85 8/10/2026
2.263.0-alpha.0 88 7/31/2026
2.262.2-alpha.0 85 7/29/2026
2.262.1-alpha.0 85 7/24/2026
2.262.0-alpha.0 93 7/22/2026
2.261.0-alpha.0 101 7/2/2026
Loading failed