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

com.pulumi.awsnative.budgets.kotlin.outputs.GetBudgetsActionResult.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.budgets.kotlin.outputs

import com.pulumi.awsnative.budgets.kotlin.enums.BudgetsActionApprovalModel
import com.pulumi.awsnative.budgets.kotlin.enums.BudgetsActionNotificationType
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property actionId A system-generated universally unique identifier (UUID) for the action.
 * @property actionThreshold The trigger threshold of the action.
 * @property approvalModel This specifies if the action needs manual or automatic approval.
 * @property definition Specifies all of the type-specific parameters.
 * @property executionRoleArn The role passed for action execution and reversion. Roles and actions must be in the same account.
 * @property notificationType The type of a notification.
 * @property resourceTags An optional list of tags to associate with the specified budget action. Each tag consists of a key and a value, and each key must be unique for the resource.
 * @property subscribers A list of subscribers.
 */
public data class GetBudgetsActionResult(
    public val actionId: String? = null,
    public val actionThreshold: BudgetsActionActionThreshold? = null,
    public val approvalModel: BudgetsActionApprovalModel? = null,
    public val definition: BudgetsActionDefinition? = null,
    public val executionRoleArn: String? = null,
    public val notificationType: BudgetsActionNotificationType? = null,
    public val resourceTags: List? = null,
    public val subscribers: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.budgets.outputs.GetBudgetsActionResult): GetBudgetsActionResult = GetBudgetsActionResult(
            actionId = javaType.actionId().map({ args0 -> args0 }).orElse(null),
            actionThreshold = javaType.actionThreshold().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.budgets.kotlin.outputs.BudgetsActionActionThreshold.Companion.toKotlin(args0)
                })
            }).orElse(null),
            approvalModel = javaType.approvalModel().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.budgets.kotlin.enums.BudgetsActionApprovalModel.Companion.toKotlin(args0)
                })
            }).orElse(null),
            definition = javaType.definition().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.budgets.kotlin.outputs.BudgetsActionDefinition.Companion.toKotlin(args0)
                })
            }).orElse(null),
            executionRoleArn = javaType.executionRoleArn().map({ args0 -> args0 }).orElse(null),
            notificationType = javaType.notificationType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.budgets.kotlin.enums.BudgetsActionNotificationType.Companion.toKotlin(args0)
                })
            }).orElse(null),
            resourceTags = javaType.resourceTags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
            subscribers = javaType.subscribers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.budgets.kotlin.outputs.BudgetsActionSubscriber.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy