All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.s3.kotlin.outputs.BucketLambdaConfiguration.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.s3.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * Describes the LAMlong functions to invoke and the events for which to invoke them.
 * @property event The Amazon S3 bucket event for which to invoke the LAMlong function. For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide*.
 * @property filter The filtering rules that determine which objects invoke the AWS Lambda function. 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.
 * @property function The Amazon Resource Name (ARN) of the LAMlong function that Amazon S3 invokes when the specified event type occurs.
 */
public data class BucketLambdaConfiguration(
    public val event: String,
    public val filter: BucketNotificationFilter? = null,
    public val function: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.s3.outputs.BucketLambdaConfiguration): BucketLambdaConfiguration = BucketLambdaConfiguration(
            event = javaType.event(),
            filter = javaType.filter().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.s3.kotlin.outputs.BucketNotificationFilter.Companion.toKotlin(args0)
                })
            }).orElse(null),
            function = javaType.function(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy