-
-
Save OksanaH/555be7506ed33ac5e05e48ed664639b7 to your computer and use it in GitHub Desktop.
S3ObjectLambdaStack.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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