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

com.pulumi.googlenative.billingbudgets.v1beta1.kotlin.inputs.GoogleCloudBillingBudgetsV1beta1AllUpdatesRuleArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.billingbudgets.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.billingbudgets.v1beta1.inputs.GoogleCloudBillingBudgetsV1beta1AllUpdatesRuleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * AllUpdatesRule defines notifications that are sent based on budget spend and thresholds.
 * @property disableDefaultIamRecipients Optional. When set to true, disables default notifications sent when a threshold is exceeded. Default notifications are sent to those with Billing Account Administrator and Billing Account User IAM roles for the target account.
 * @property monitoringNotificationChannels Optional. Targets to send notifications to when a threshold is exceeded. This is in addition to default recipients who have billing account IAM roles. The value is the full REST resource name of a monitoring notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`. A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients for more details.
 * @property pubsubTopic Optional. The name of the Pub/Sub topic where budget related messages will be published, in the form `projects/{project_id}/topics/{topic_id}`. Updates are sent at regular intervals to the topic. The topic needs to be created before the budget is created; see https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications for more details. Caller is expected to have `pubsub.topics.setIamPolicy` permission on the topic when it's set for a budget, otherwise, the API call will fail with PERMISSION_DENIED. See https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#permissions_required_for_this_task for more details on Pub/Sub roles and permissions.
 * @property schemaVersion Optional. Required when AllUpdatesRule.pubsub_topic is set. The schema version of the notification sent to AllUpdatesRule.pubsub_topic. Only "1.0" is accepted. It represents the JSON schema as defined in https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
 */
public data class GoogleCloudBillingBudgetsV1beta1AllUpdatesRuleArgs(
    public val disableDefaultIamRecipients: Output? = null,
    public val monitoringNotificationChannels: Output>? = null,
    public val pubsubTopic: Output? = null,
    public val schemaVersion: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.billingbudgets.v1beta1.inputs.GoogleCloudBillingBudgetsV1beta1AllUpdatesRuleArgs =
        com.pulumi.googlenative.billingbudgets.v1beta1.inputs.GoogleCloudBillingBudgetsV1beta1AllUpdatesRuleArgs.builder()
            .disableDefaultIamRecipients(disableDefaultIamRecipients?.applyValue({ args0 -> args0 }))
            .monitoringNotificationChannels(
                monitoringNotificationChannels?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .pubsubTopic(pubsubTopic?.applyValue({ args0 -> args0 }))
            .schemaVersion(schemaVersion?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GoogleCloudBillingBudgetsV1beta1AllUpdatesRuleArgs].
 */
@PulumiTagMarker
public class GoogleCloudBillingBudgetsV1beta1AllUpdatesRuleArgsBuilder internal constructor() {
    private var disableDefaultIamRecipients: Output? = null

    private var monitoringNotificationChannels: Output>? = null

    private var pubsubTopic: Output? = null

    private var schemaVersion: Output? = null

    /**
     * @param value Optional. When set to true, disables default notifications sent when a threshold is exceeded. Default notifications are sent to those with Billing Account Administrator and Billing Account User IAM roles for the target account.
     */
    @JvmName("gtqvqcjpohgdbodk")
    public suspend fun disableDefaultIamRecipients(`value`: Output) {
        this.disableDefaultIamRecipients = value
    }

    /**
     * @param value Optional. Targets to send notifications to when a threshold is exceeded. This is in addition to default recipients who have billing account IAM roles. The value is the full REST resource name of a monitoring notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`. A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients for more details.
     */
    @JvmName("dibieveaihrqvhlr")
    public suspend fun monitoringNotificationChannels(`value`: Output>) {
        this.monitoringNotificationChannels = value
    }

    @JvmName("nbejdwofbsorqrmp")
    public suspend fun monitoringNotificationChannels(vararg values: Output) {
        this.monitoringNotificationChannels = Output.all(values.asList())
    }

    /**
     * @param values Optional. Targets to send notifications to when a threshold is exceeded. This is in addition to default recipients who have billing account IAM roles. The value is the full REST resource name of a monitoring notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`. A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients for more details.
     */
    @JvmName("uelgprhfffbrksxc")
    public suspend fun monitoringNotificationChannels(values: List>) {
        this.monitoringNotificationChannels = Output.all(values)
    }

    /**
     * @param value Optional. The name of the Pub/Sub topic where budget related messages will be published, in the form `projects/{project_id}/topics/{topic_id}`. Updates are sent at regular intervals to the topic. The topic needs to be created before the budget is created; see https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications for more details. Caller is expected to have `pubsub.topics.setIamPolicy` permission on the topic when it's set for a budget, otherwise, the API call will fail with PERMISSION_DENIED. See https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#permissions_required_for_this_task for more details on Pub/Sub roles and permissions.
     */
    @JvmName("ykeglnjptdiypvuk")
    public suspend fun pubsubTopic(`value`: Output) {
        this.pubsubTopic = value
    }

    /**
     * @param value Optional. Required when AllUpdatesRule.pubsub_topic is set. The schema version of the notification sent to AllUpdatesRule.pubsub_topic. Only "1.0" is accepted. It represents the JSON schema as defined in https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
     */
    @JvmName("oucrnapbkngocghd")
    public suspend fun schemaVersion(`value`: Output) {
        this.schemaVersion = value
    }

    /**
     * @param value Optional. When set to true, disables default notifications sent when a threshold is exceeded. Default notifications are sent to those with Billing Account Administrator and Billing Account User IAM roles for the target account.
     */
    @JvmName("ipggmunxjwtoaqih")
    public suspend fun disableDefaultIamRecipients(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disableDefaultIamRecipients = mapped
    }

    /**
     * @param value Optional. Targets to send notifications to when a threshold is exceeded. This is in addition to default recipients who have billing account IAM roles. The value is the full REST resource name of a monitoring notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`. A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients for more details.
     */
    @JvmName("eivckhnsrkabopfi")
    public suspend fun monitoringNotificationChannels(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitoringNotificationChannels = mapped
    }

    /**
     * @param values Optional. Targets to send notifications to when a threshold is exceeded. This is in addition to default recipients who have billing account IAM roles. The value is the full REST resource name of a monitoring notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`. A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients for more details.
     */
    @JvmName("cxwooapmfvsfxexc")
    public suspend fun monitoringNotificationChannels(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.monitoringNotificationChannels = mapped
    }

    /**
     * @param value Optional. The name of the Pub/Sub topic where budget related messages will be published, in the form `projects/{project_id}/topics/{topic_id}`. Updates are sent at regular intervals to the topic. The topic needs to be created before the budget is created; see https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications for more details. Caller is expected to have `pubsub.topics.setIamPolicy` permission on the topic when it's set for a budget, otherwise, the API call will fail with PERMISSION_DENIED. See https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#permissions_required_for_this_task for more details on Pub/Sub roles and permissions.
     */
    @JvmName("nnbkeipidgydqmdj")
    public suspend fun pubsubTopic(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pubsubTopic = mapped
    }

    /**
     * @param value Optional. Required when AllUpdatesRule.pubsub_topic is set. The schema version of the notification sent to AllUpdatesRule.pubsub_topic. Only "1.0" is accepted. It represents the JSON schema as defined in https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.
     */
    @JvmName("tlxqyrrprpejjrbe")
    public suspend fun schemaVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemaVersion = mapped
    }

    internal fun build(): GoogleCloudBillingBudgetsV1beta1AllUpdatesRuleArgs =
        GoogleCloudBillingBudgetsV1beta1AllUpdatesRuleArgs(
            disableDefaultIamRecipients = disableDefaultIamRecipients,
            monitoringNotificationChannels = monitoringNotificationChannels,
            pubsubTopic = pubsubTopic,
            schemaVersion = schemaVersion,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy