Skip to content

Instantly share code, notes, and snippets.

@OksanaH
Created June 14, 2021 21:31
Show Gist options
  • Save OksanaH/555be7506ed33ac5e05e48ed664639b7 to your computer and use it in GitHub Desktop.
Save OksanaH/555be7506ed33ac5e05e48ed664639b7 to your computer and use it in GitHub Desktop.
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