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

com.pulumi.awsnative.sns.kotlin.inputs.TopicLoggingConfigArgs.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.sns.kotlin.inputs

import com.pulumi.awsnative.sns.inputs.TopicLoggingConfigArgs.builder
import com.pulumi.awsnative.sns.kotlin.enums.TopicLoggingConfigProtocol
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

/**
 *
 * @property failureFeedbackRoleArn The IAM role ARN to be used when logging failed message deliveries in Amazon CloudWatch.
 * @property protocol Indicates one of the supported protocols for the Amazon SNS topic.
 * > At least one of the other three `LoggingConfig` properties is recommend along with `Protocol` .
 * @property successFeedbackRoleArn The IAM role ARN to be used when logging successful message deliveries in Amazon CloudWatch.
 * @property successFeedbackSampleRate The percentage of successful message deliveries to be logged in Amazon CloudWatch. Valid percentage values range from 0 to 100.
 */
public data class TopicLoggingConfigArgs(
    public val failureFeedbackRoleArn: Output? = null,
    public val protocol: Output,
    public val successFeedbackRoleArn: Output? = null,
    public val successFeedbackSampleRate: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sns.inputs.TopicLoggingConfigArgs =
        com.pulumi.awsnative.sns.inputs.TopicLoggingConfigArgs.builder()
            .failureFeedbackRoleArn(failureFeedbackRoleArn?.applyValue({ args0 -> args0 }))
            .protocol(protocol.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .successFeedbackRoleArn(successFeedbackRoleArn?.applyValue({ args0 -> args0 }))
            .successFeedbackSampleRate(successFeedbackSampleRate?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicLoggingConfigArgs].
 */
@PulumiTagMarker
public class TopicLoggingConfigArgsBuilder internal constructor() {
    private var failureFeedbackRoleArn: Output? = null

    private var protocol: Output? = null

    private var successFeedbackRoleArn: Output? = null

    private var successFeedbackSampleRate: Output? = null

    /**
     * @param value The IAM role ARN to be used when logging failed message deliveries in Amazon CloudWatch.
     */
    @JvmName("lwntblkjlcmcvoco")
    public suspend fun failureFeedbackRoleArn(`value`: Output) {
        this.failureFeedbackRoleArn = value
    }

    /**
     * @param value Indicates one of the supported protocols for the Amazon SNS topic.
     * > At least one of the other three `LoggingConfig` properties is recommend along with `Protocol` .
     */
    @JvmName("qyiptgntagrvnmky")
    public suspend fun protocol(`value`: Output) {
        this.protocol = value
    }

    /**
     * @param value The IAM role ARN to be used when logging successful message deliveries in Amazon CloudWatch.
     */
    @JvmName("muquckjvvqvapsfe")
    public suspend fun successFeedbackRoleArn(`value`: Output) {
        this.successFeedbackRoleArn = value
    }

    /**
     * @param value The percentage of successful message deliveries to be logged in Amazon CloudWatch. Valid percentage values range from 0 to 100.
     */
    @JvmName("xatnagmsgfgyvaeh")
    public suspend fun successFeedbackSampleRate(`value`: Output) {
        this.successFeedbackSampleRate = value
    }

    /**
     * @param value The IAM role ARN to be used when logging failed message deliveries in Amazon CloudWatch.
     */
    @JvmName("cycnyyibwtxswdgc")
    public suspend fun failureFeedbackRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failureFeedbackRoleArn = mapped
    }

    /**
     * @param value Indicates one of the supported protocols for the Amazon SNS topic.
     * > At least one of the other three `LoggingConfig` properties is recommend along with `Protocol` .
     */
    @JvmName("htgqaoepfrdaucyq")
    public suspend fun protocol(`value`: TopicLoggingConfigProtocol) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    /**
     * @param value The IAM role ARN to be used when logging successful message deliveries in Amazon CloudWatch.
     */
    @JvmName("wxaymaosusdkwwce")
    public suspend fun successFeedbackRoleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.successFeedbackRoleArn = mapped
    }

    /**
     * @param value The percentage of successful message deliveries to be logged in Amazon CloudWatch. Valid percentage values range from 0 to 100.
     */
    @JvmName("xcpsihjsxqhllcud")
    public suspend fun successFeedbackSampleRate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.successFeedbackSampleRate = mapped
    }

    internal fun build(): TopicLoggingConfigArgs = TopicLoggingConfigArgs(
        failureFeedbackRoleArn = failureFeedbackRoleArn,
        protocol = protocol ?: throw PulumiNullFieldException("protocol"),
        successFeedbackRoleArn = successFeedbackRoleArn,
        successFeedbackSampleRate = successFeedbackSampleRate,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy