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

com.pulumi.awsnative.ce.kotlin.CeFunctions.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ce.kotlin

import com.pulumi.awsnative.ce.CeFunctions.getAnomalyMonitorPlain
import com.pulumi.awsnative.ce.CeFunctions.getAnomalySubscriptionPlain
import com.pulumi.awsnative.ce.CeFunctions.getCostCategoryPlain
import com.pulumi.awsnative.ce.kotlin.inputs.GetAnomalyMonitorPlainArgs
import com.pulumi.awsnative.ce.kotlin.inputs.GetAnomalyMonitorPlainArgsBuilder
import com.pulumi.awsnative.ce.kotlin.inputs.GetAnomalySubscriptionPlainArgs
import com.pulumi.awsnative.ce.kotlin.inputs.GetAnomalySubscriptionPlainArgsBuilder
import com.pulumi.awsnative.ce.kotlin.inputs.GetCostCategoryPlainArgs
import com.pulumi.awsnative.ce.kotlin.inputs.GetCostCategoryPlainArgsBuilder
import com.pulumi.awsnative.ce.kotlin.outputs.GetAnomalyMonitorResult
import com.pulumi.awsnative.ce.kotlin.outputs.GetAnomalySubscriptionResult
import com.pulumi.awsnative.ce.kotlin.outputs.GetCostCategoryResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.ce.kotlin.outputs.GetAnomalyMonitorResult.Companion.toKotlin as getAnomalyMonitorResultToKotlin
import com.pulumi.awsnative.ce.kotlin.outputs.GetAnomalySubscriptionResult.Companion.toKotlin as getAnomalySubscriptionResultToKotlin
import com.pulumi.awsnative.ce.kotlin.outputs.GetCostCategoryResult.Companion.toKotlin as getCostCategoryResultToKotlin

public object CeFunctions {
    /**
     * AWS Cost Anomaly Detection leverages advanced Machine Learning technologies to identify anomalous spend and root causes, so you can quickly take action. You can use Cost Anomaly Detection by creating monitor.
     * @param argument null
     * @return null
     */
    public suspend fun getAnomalyMonitor(argument: GetAnomalyMonitorPlainArgs): GetAnomalyMonitorResult =
        getAnomalyMonitorResultToKotlin(getAnomalyMonitorPlain(argument.toJava()).await())

    /**
     * @see [getAnomalyMonitor].
     * @param monitorArn The Amazon Resource Name (ARN) value for the monitor.
     * @return null
     */
    public suspend fun getAnomalyMonitor(monitorArn: String): GetAnomalyMonitorResult {
        val argument = GetAnomalyMonitorPlainArgs(
            monitorArn = monitorArn,
        )
        return getAnomalyMonitorResultToKotlin(getAnomalyMonitorPlain(argument.toJava()).await())
    }

    /**
     * @see [getAnomalyMonitor].
     * @param argument Builder for [com.pulumi.awsnative.ce.kotlin.inputs.GetAnomalyMonitorPlainArgs].
     * @return null
     */
    public suspend fun getAnomalyMonitor(argument: suspend GetAnomalyMonitorPlainArgsBuilder.() -> Unit): GetAnomalyMonitorResult {
        val builder = GetAnomalyMonitorPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getAnomalyMonitorResultToKotlin(getAnomalyMonitorPlain(builtArgument.toJava()).await())
    }

    /**
     * AWS Cost Anomaly Detection leverages advanced Machine Learning technologies to identify anomalous spend and root causes, so you can quickly take action. Create subscription to be notified
     * @param argument null
     * @return null
     */
    public suspend fun getAnomalySubscription(argument: GetAnomalySubscriptionPlainArgs): GetAnomalySubscriptionResult =
        getAnomalySubscriptionResultToKotlin(getAnomalySubscriptionPlain(argument.toJava()).await())

    /**
     * @see [getAnomalySubscription].
     * @param subscriptionArn The `AnomalySubscription` Amazon Resource Name (ARN).
     * @return null
     */
    public suspend fun getAnomalySubscription(subscriptionArn: String): GetAnomalySubscriptionResult {
        val argument = GetAnomalySubscriptionPlainArgs(
            subscriptionArn = subscriptionArn,
        )
        return getAnomalySubscriptionResultToKotlin(getAnomalySubscriptionPlain(argument.toJava()).await())
    }

    /**
     * @see [getAnomalySubscription].
     * @param argument Builder for [com.pulumi.awsnative.ce.kotlin.inputs.GetAnomalySubscriptionPlainArgs].
     * @return null
     */
    public suspend fun getAnomalySubscription(argument: suspend GetAnomalySubscriptionPlainArgsBuilder.() -> Unit): GetAnomalySubscriptionResult {
        val builder = GetAnomalySubscriptionPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getAnomalySubscriptionResultToKotlin(getAnomalySubscriptionPlain(builtArgument.toJava()).await())
    }

    /**
     * Cost Category enables you to map your cost and usage into meaningful categories. You can use Cost Category to organize your costs using a rule-based engine.
     * @param argument null
     * @return null
     */
    public suspend fun getCostCategory(argument: GetCostCategoryPlainArgs): GetCostCategoryResult =
        getCostCategoryResultToKotlin(getCostCategoryPlain(argument.toJava()).await())

    /**
     * @see [getCostCategory].
     * @param arn Cost category ARN
     * @return null
     */
    public suspend fun getCostCategory(arn: String): GetCostCategoryResult {
        val argument = GetCostCategoryPlainArgs(
            arn = arn,
        )
        return getCostCategoryResultToKotlin(getCostCategoryPlain(argument.toJava()).await())
    }

    /**
     * @see [getCostCategory].
     * @param argument Builder for [com.pulumi.awsnative.ce.kotlin.inputs.GetCostCategoryPlainArgs].
     * @return null
     */
    public suspend fun getCostCategory(argument: suspend GetCostCategoryPlainArgsBuilder.() -> Unit): GetCostCategoryResult {
        val builder = GetCostCategoryPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getCostCategoryResultToKotlin(getCostCategoryPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy