Show / Hide Table of Contents

Interface CfnBucket.ILambdaConfigurationProperty

Describes the AWS Lambda functions to invoke and the events for which to invoke them.

Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public interface ILambdaConfigurationProperty
Syntax (vb)
Public Interface ILambdaConfigurationProperty
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-lambdaconfig.html

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;

LambdaConfigurationProperty 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

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.

Properties

Event

The Amazon S3 bucket event for which to invoke the AWS Lambda function.

string Event { get; }
Property Value

System.String

Remarks

For more information, see Supported Event Types in the Amazon S3 User Guide .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-lambdaconfig.html#cfn-s3-bucket-notificationconfig-lambdaconfig-event

Filter

The filtering rules that determine which objects invoke the AWS Lambda function.

virtual object Filter { get; }
Property Value

System.Object

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-lambdaconfig.html#cfn-s3-bucket-notificationconfig-lambdaconfig-filter

Function

The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs.

string Function { get; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfig-lambdaconfig.html#cfn-s3-bucket-notificationconfig-lambdaconfig-function

Back to top Generated by DocFX