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

com.pulumi.aws.securitylake.kotlin.inputs.SubscriberSourceArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.securitylake.kotlin.inputs

import com.pulumi.aws.securitylake.inputs.SubscriberSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property awsLogSourceResource Amazon Security Lake supports log and event collection for natively supported AWS services. See `aws_log_source_resource` Block below.
 * @property customLogSourceResource Amazon Security Lake supports custom source types. See `custom_log_source_resource` Block below.
 */
public data class SubscriberSourceArgs(
    public val awsLogSourceResource: Output? = null,
    public val customLogSourceResource: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.securitylake.inputs.SubscriberSourceArgs =
        com.pulumi.aws.securitylake.inputs.SubscriberSourceArgs.builder()
            .awsLogSourceResource(
                awsLogSourceResource?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .customLogSourceResource(
                customLogSourceResource?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [SubscriberSourceArgs].
 */
@PulumiTagMarker
public class SubscriberSourceArgsBuilder internal constructor() {
    private var awsLogSourceResource: Output? = null

    private var customLogSourceResource: Output? = null

    /**
     * @param value Amazon Security Lake supports log and event collection for natively supported AWS services. See `aws_log_source_resource` Block below.
     */
    @JvmName("jepfdurlbwrkhltw")
    public suspend fun awsLogSourceResource(`value`: Output) {
        this.awsLogSourceResource = value
    }

    /**
     * @param value Amazon Security Lake supports custom source types. See `custom_log_source_resource` Block below.
     */
    @JvmName("xxetoattxcxbtmae")
    public suspend fun customLogSourceResource(`value`: Output) {
        this.customLogSourceResource = value
    }

    /**
     * @param value Amazon Security Lake supports log and event collection for natively supported AWS services. See `aws_log_source_resource` Block below.
     */
    @JvmName("saccqdlecolbgpvt")
    public suspend fun awsLogSourceResource(`value`: SubscriberSourceAwsLogSourceResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsLogSourceResource = mapped
    }

    /**
     * @param argument Amazon Security Lake supports log and event collection for natively supported AWS services. See `aws_log_source_resource` Block below.
     */
    @JvmName("jhsdskllvfiqpkkc")
    public suspend fun awsLogSourceResource(argument: suspend SubscriberSourceAwsLogSourceResourceArgsBuilder.() -> Unit) {
        val toBeMapped = SubscriberSourceAwsLogSourceResourceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.awsLogSourceResource = mapped
    }

    /**
     * @param value Amazon Security Lake supports custom source types. See `custom_log_source_resource` Block below.
     */
    @JvmName("playoemplytnrpqf")
    public suspend fun customLogSourceResource(`value`: SubscriberSourceCustomLogSourceResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customLogSourceResource = mapped
    }

    /**
     * @param argument Amazon Security Lake supports custom source types. See `custom_log_source_resource` Block below.
     */
    @JvmName("volxkrhaewqqbkvd")
    public suspend fun customLogSourceResource(argument: suspend SubscriberSourceCustomLogSourceResourceArgsBuilder.() -> Unit) {
        val toBeMapped = SubscriberSourceCustomLogSourceResourceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.customLogSourceResource = mapped
    }

    internal fun build(): SubscriberSourceArgs = SubscriberSourceArgs(
        awsLogSourceResource = awsLogSourceResource,
        customLogSourceResource = customLogSourceResource,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy