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

com.pulumi.aws.iot.kotlin.inputs.TopicRuleErrorActionCloudwatchLogsArgs.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.iot.kotlin.inputs

import com.pulumi.aws.iot.inputs.TopicRuleErrorActionCloudwatchLogsArgs.builder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property batchMode The payload that contains a JSON array of records will be sent to CloudWatch via a batch call.
 * @property logGroupName The CloudWatch log group name.
 * @property roleArn The IAM role ARN that allows access to the CloudWatch alarm.
 */
public data class TopicRuleErrorActionCloudwatchLogsArgs(
    public val batchMode: Output? = null,
    public val logGroupName: Output,
    public val roleArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iot.inputs.TopicRuleErrorActionCloudwatchLogsArgs =
        com.pulumi.aws.iot.inputs.TopicRuleErrorActionCloudwatchLogsArgs.builder()
            .batchMode(batchMode?.applyValue({ args0 -> args0 }))
            .logGroupName(logGroupName.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicRuleErrorActionCloudwatchLogsArgs].
 */
@PulumiTagMarker
public class TopicRuleErrorActionCloudwatchLogsArgsBuilder internal constructor() {
    private var batchMode: Output? = null

    private var logGroupName: Output? = null

    private var roleArn: Output? = null

    /**
     * @param value The payload that contains a JSON array of records will be sent to CloudWatch via a batch call.
     */
    @JvmName("rxsusvkwabqjpooi")
    public suspend fun batchMode(`value`: Output) {
        this.batchMode = value
    }

    /**
     * @param value The CloudWatch log group name.
     */
    @JvmName("ocpabfkbiydrwdwy")
    public suspend fun logGroupName(`value`: Output) {
        this.logGroupName = value
    }

    /**
     * @param value The IAM role ARN that allows access to the CloudWatch alarm.
     */
    @JvmName("lslepuumwhithahb")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The payload that contains a JSON array of records will be sent to CloudWatch via a batch call.
     */
    @JvmName("bumauulyhlwljcqc")
    public suspend fun batchMode(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchMode = mapped
    }

    /**
     * @param value The CloudWatch log group name.
     */
    @JvmName("xntogqeduqddesoa")
    public suspend fun logGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.logGroupName = mapped
    }

    /**
     * @param value The IAM role ARN that allows access to the CloudWatch alarm.
     */
    @JvmName("slfmebmrsyvebhlm")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): TopicRuleErrorActionCloudwatchLogsArgs =
        TopicRuleErrorActionCloudwatchLogsArgs(
            batchMode = batchMode,
            logGroupName = logGroupName ?: throw PulumiNullFieldException("logGroupName"),
            roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy