Show / Hide Table of Contents

Class CfnBucket.LambdaConfigurationProperty

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

Inheritance
System.Object
CfnBucket.LambdaConfigurationProperty
Implements
CfnBucket.ILambdaConfigurationProperty
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public class LambdaConfigurationProperty : Object, CfnBucket.ILambdaConfigurationProperty
Syntax (vb)
Public Class LambdaConfigurationProperty
    Inherits Object
    Implements CfnBucket.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

Constructors

LambdaConfigurationProperty()

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()

public LambdaConfigurationProperty()

Properties

Event

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

public string Event { get; set; }
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.

public object Filter { get; set; }
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.

public string Function { get; set; }
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

Implements

CfnBucket.ILambdaConfigurationProperty
Back to top Generated by DocFX