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

com.pulumi.awsnative.iot.kotlin.inputs.MitigationActionEnableIoTLoggingParamsArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.inputs

import com.pulumi.awsnative.iot.inputs.MitigationActionEnableIoTLoggingParamsArgs.builder
import com.pulumi.awsnative.iot.kotlin.enums.MitigationActionEnableIoTLoggingParamsLogLevel
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Parameters to define a mitigation action that enables AWS IoT logging at a specified level of detail.
 * @property logLevel  Specifies which types of information are logged.
 * @property roleArnForLogging  The ARN of the IAM role used for logging.
 */
public data class MitigationActionEnableIoTLoggingParamsArgs(
    public val logLevel: Output,
    public val roleArnForLogging: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.MitigationActionEnableIoTLoggingParamsArgs = com.pulumi.awsnative.iot.inputs.MitigationActionEnableIoTLoggingParamsArgs.builder()
        .logLevel(logLevel.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .roleArnForLogging(roleArnForLogging.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MitigationActionEnableIoTLoggingParamsArgs].
 */
@PulumiTagMarker
public class MitigationActionEnableIoTLoggingParamsArgsBuilder internal constructor() {
    private var logLevel: Output? = null

    private var roleArnForLogging: Output? = null

    /**
     * @param value  Specifies which types of information are logged.
     */
    @JvmName("utcphernskxkvrkx")
    public suspend fun logLevel(`value`: Output) {
        this.logLevel = value
    }

    /**
     * @param value  The ARN of the IAM role used for logging.
     */
    @JvmName("jjdkoafybegomvos")
    public suspend fun roleArnForLogging(`value`: Output) {
        this.roleArnForLogging = value
    }

    /**
     * @param value  Specifies which types of information are logged.
     */
    @JvmName("qqhxrybnmttvttxq")
    public suspend fun logLevel(`value`: MitigationActionEnableIoTLoggingParamsLogLevel) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logLevel = mapped
    }

    /**
     * @param value  The ARN of the IAM role used for logging.
     */
    @JvmName("cxiivocskjxmemym")
    public suspend fun roleArnForLogging(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArnForLogging = mapped
    }

    internal fun build(): MitigationActionEnableIoTLoggingParamsArgs =
        MitigationActionEnableIoTLoggingParamsArgs(
            logLevel = logLevel ?: throw PulumiNullFieldException("logLevel"),
            roleArnForLogging = roleArnForLogging ?: throw PulumiNullFieldException("roleArnForLogging"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy