/S3ObjectLambdaStack.cs Secret
Created
June 14, 2021 21:31
Star
You must be signed in to star a gist
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