Class CfnBucket.LambdaConfigurationProperty
Describes the AWS Lambda functions to invoke and the events for which to invoke them.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnBucket.LambdaConfigurationProperty : CfnBucket.ILambdaConfigurationProperty
Syntax (vb)
Public Class CfnBucket.LambdaConfigurationProperty Implements CfnBucket.ILambdaConfigurationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var lambdaConfigurationProperty = new LambdaConfigurationProperty {
Event = "event",
Function = "function",
// the properties below are optional
Filter = new NotificationFilterProperty {
S3Key = new S3KeyFilterProperty {
Rules = new [] { new FilterRuleProperty {
Name = "name",
Value = "value"
} }
}
}
};
Synopsis
Constructors
| LambdaConfigurationProperty() | Describes the AWS Lambda functions to invoke and the events for which to invoke them. |
Properties
| Event | The Amazon S3 bucket event for which to invoke the AWS Lambda function. |
| Filter | The filtering rules that determine which objects invoke the AWS Lambda function. |
| Function | The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs. |
Constructors
LambdaConfigurationProperty()
Describes the AWS Lambda functions to invoke and the events for which to invoke them.
public LambdaConfigurationProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;
var lambdaConfigurationProperty = new LambdaConfigurationProperty {
Event = "event",
Function = "function",
// the properties below are optional
Filter = new NotificationFilterProperty {
S3Key = new S3KeyFilterProperty {
Rules = new [] { new FilterRuleProperty {
Name = "name",
Value = "value"
} }
}
}
};
Properties
Event
The Amazon S3 bucket event for which to invoke the AWS Lambda function.
public string Event { get; set; }
Property Value
Remarks
For more information, see Supported Event Types in the Amazon S3 User Guide .
Filter
The filtering rules that determine which objects invoke the AWS Lambda function.
public object? Filter { get; set; }
Property Value
Remarks
For example, you can create a filter so that only image files with a .jpg extension invoke the function when they are added to the Amazon S3 bucket.
Type union: either IResolvable or CfnBucket.INotificationFilterProperty
Function
The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs.
public string Function { get; set; }