Skip to content

Instantly share code, notes, and snippets.

@OksanaH
Created Jun 14, 2021
Embed
What would you like to do?
S3ObjectLambdaStack.cs
var objectLambdaAccessPoint = new S3ObjectLambdaCfnAccessPoint(this, "S3ObjectLambdaAccessPoint", new S3ObjectLambdaCfnAccessPointProps
{
Name = "transformxml",
ObjectLambdaConfiguration = new S3ObjectLambdaCfnAccessPoint.ObjectLambdaConfigurationProperty()
{
CloudWatchMetricsEnabled = true,
SupportingAccessPoint = supportingAccessPoint,
TransformationConfigurations = new object[]
{
new S3ObjectLambdaCfnAccessPoint.TransformationConfigurationProperty()
{
Actions = new string[] { "GetObject" },
ContentTransformation = new Dictionary<string, object>()
{
{
"AwsLambda", new Dictionary<string, string>()
{
{"FunctionArn", function.FunctionArn }
}
}
}
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment