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

com.pulumi.awsnative.securitylake.kotlin.SubscriberNotification.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.securitylake.kotlin

import com.pulumi.awsnative.securitylake.kotlin.outputs.SubscriberNotificationNotificationConfiguration
import com.pulumi.awsnative.securitylake.kotlin.outputs.SubscriberNotificationNotificationConfiguration.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

/**
 * Builder for [SubscriberNotification].
 */
@PulumiTagMarker
public class SubscriberNotificationResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: SubscriberNotificationArgs = SubscriberNotificationArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend SubscriberNotificationArgsBuilder.() -> Unit) {
        val builder = SubscriberNotificationArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): SubscriberNotification {
        val builtJavaResource =
            com.pulumi.awsnative.securitylake.SubscriberNotification(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return SubscriberNotification(builtJavaResource)
    }
}

/**
 * Resource Type definition for AWS::SecurityLake::SubscriberNotification
 */
public class SubscriberNotification internal constructor(
    override val javaResource: com.pulumi.awsnative.securitylake.SubscriberNotification,
) : KotlinCustomResource(javaResource, SubscriberNotificationMapper) {
    /**
     * Specify the configurations you want to use for subscriber notification. The subscriber is notified when new data is written to the data lake for sources that the subscriber consumes in Security Lake .
     */
    public val notificationConfiguration: Output
        get() = javaResource.notificationConfiguration().applyValue({ args0 ->
            args0.let({ args0 ->
                toKotlin(args0)
            })
        })

    /**
     * The ARN for the subscriber
     */
    public val subscriberArn: Output
        get() = javaResource.subscriberArn().applyValue({ args0 -> args0 })

    /**
     * The endpoint the subscriber should listen to for notifications
     */
    public val subscriberEndpoint: Output
        get() = javaResource.subscriberEndpoint().applyValue({ args0 -> args0 })
}

public object SubscriberNotificationMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.securitylake.SubscriberNotification::class == javaResource::class

    override fun map(javaResource: Resource): SubscriberNotification =
        SubscriberNotification(
            javaResource as
                com.pulumi.awsnative.securitylake.SubscriberNotification,
        )
}

/**
 * @see [SubscriberNotification].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [SubscriberNotification].
 */
public suspend fun subscriberNotification(
    name: String,
    block: suspend SubscriberNotificationResourceBuilder.() -> Unit,
): SubscriberNotification {
    val builder = SubscriberNotificationResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [SubscriberNotification].
 * @param name The _unique_ name of the resulting resource.
 */
public fun subscriberNotification(name: String): SubscriberNotification {
    val builder = SubscriberNotificationResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy