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

com.pulumi.awsnative.ssmincidents.kotlin.inputs.ResponsePlanPagerDutyConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ssmincidents.kotlin.inputs

import com.pulumi.awsnative.ssmincidents.inputs.ResponsePlanPagerDutyConfigurationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The pagerDuty configuration to use when starting the incident.
 * @property name The name of the pagerDuty configuration.
 * @property pagerDutyIncidentConfiguration Details about the PagerDuty service associated with the configuration.
 * @property secretId The AWS secrets manager secretId storing the pagerDuty token.
 */
public data class ResponsePlanPagerDutyConfigurationArgs(
    public val name: Output,
    public val pagerDutyIncidentConfiguration: Output,
    public val secretId: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssmincidents.inputs.ResponsePlanPagerDutyConfigurationArgs =
        com.pulumi.awsnative.ssmincidents.inputs.ResponsePlanPagerDutyConfigurationArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .pagerDutyIncidentConfiguration(
                pagerDutyIncidentConfiguration.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .secretId(secretId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResponsePlanPagerDutyConfigurationArgs].
 */
@PulumiTagMarker
public class ResponsePlanPagerDutyConfigurationArgsBuilder internal constructor() {
    private var name: Output? = null

    private var pagerDutyIncidentConfiguration:
        Output? = null

    private var secretId: Output? = null

    /**
     * @param value The name of the pagerDuty configuration.
     */
    @JvmName("ftytunopqsfbeekh")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Details about the PagerDuty service associated with the configuration.
     */
    @JvmName("wtcldaneldhybyqc")
    public suspend fun pagerDutyIncidentConfiguration(`value`: Output) {
        this.pagerDutyIncidentConfiguration = value
    }

    /**
     * @param value The AWS secrets manager secretId storing the pagerDuty token.
     */
    @JvmName("mpdkepeqjfilpfxf")
    public suspend fun secretId(`value`: Output) {
        this.secretId = value
    }

    /**
     * @param value The name of the pagerDuty configuration.
     */
    @JvmName("vvotgjhkqkqgvlqw")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Details about the PagerDuty service associated with the configuration.
     */
    @JvmName("ekcklfvpwymoeyca")
    public suspend fun pagerDutyIncidentConfiguration(`value`: ResponsePlanPagerDutyIncidentConfigurationArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pagerDutyIncidentConfiguration = mapped
    }

    /**
     * @param argument Details about the PagerDuty service associated with the configuration.
     */
    @JvmName("areqnusiljqowpjw")
    public suspend fun pagerDutyIncidentConfiguration(argument: suspend ResponsePlanPagerDutyIncidentConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ResponsePlanPagerDutyIncidentConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.pagerDutyIncidentConfiguration = mapped
    }

    /**
     * @param value The AWS secrets manager secretId storing the pagerDuty token.
     */
    @JvmName("vuddihqkvwyetbgs")
    public suspend fun secretId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretId = mapped
    }

    internal fun build(): ResponsePlanPagerDutyConfigurationArgs =
        ResponsePlanPagerDutyConfigurationArgs(
            name = name ?: throw PulumiNullFieldException("name"),
            pagerDutyIncidentConfiguration = pagerDutyIncidentConfiguration ?: throw
                PulumiNullFieldException("pagerDutyIncidentConfiguration"),
            secretId = secretId ?: throw PulumiNullFieldException("secretId"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy