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

com.pulumi.awsnative.synthetics.kotlin.SyntheticsFunctions.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.synthetics.kotlin

import com.pulumi.awsnative.synthetics.SyntheticsFunctions.getCanaryPlain
import com.pulumi.awsnative.synthetics.SyntheticsFunctions.getGroupPlain
import com.pulumi.awsnative.synthetics.kotlin.inputs.GetCanaryPlainArgs
import com.pulumi.awsnative.synthetics.kotlin.inputs.GetCanaryPlainArgsBuilder
import com.pulumi.awsnative.synthetics.kotlin.inputs.GetGroupPlainArgs
import com.pulumi.awsnative.synthetics.kotlin.inputs.GetGroupPlainArgsBuilder
import com.pulumi.awsnative.synthetics.kotlin.outputs.GetCanaryResult
import com.pulumi.awsnative.synthetics.kotlin.outputs.GetGroupResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.awsnative.synthetics.kotlin.outputs.GetCanaryResult.Companion.toKotlin as getCanaryResultToKotlin
import com.pulumi.awsnative.synthetics.kotlin.outputs.GetGroupResult.Companion.toKotlin as getGroupResultToKotlin

public object SyntheticsFunctions {
    /**
     * Resource Type definition for AWS::Synthetics::Canary
     * @param argument null
     * @return null
     */
    public suspend fun getCanary(argument: GetCanaryPlainArgs): GetCanaryResult =
        getCanaryResultToKotlin(getCanaryPlain(argument.toJava()).await())

    /**
     * @see [getCanary].
     * @param name Name of the canary.
     * @return null
     */
    public suspend fun getCanary(name: String): GetCanaryResult {
        val argument = GetCanaryPlainArgs(
            name = name,
        )
        return getCanaryResultToKotlin(getCanaryPlain(argument.toJava()).await())
    }

    /**
     * @see [getCanary].
     * @param argument Builder for [com.pulumi.awsnative.synthetics.kotlin.inputs.GetCanaryPlainArgs].
     * @return null
     */
    public suspend fun getCanary(argument: suspend GetCanaryPlainArgsBuilder.() -> Unit): GetCanaryResult {
        val builder = GetCanaryPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getCanaryResultToKotlin(getCanaryPlain(builtArgument.toJava()).await())
    }

    /**
     * Resource Type definition for AWS::Synthetics::Group
     * @param argument null
     * @return null
     */
    public suspend fun getGroup(argument: GetGroupPlainArgs): GetGroupResult =
        getGroupResultToKotlin(getGroupPlain(argument.toJava()).await())

    /**
     * @see [getGroup].
     * @param name Name of the group.
     * @return null
     */
    public suspend fun getGroup(name: String): GetGroupResult {
        val argument = GetGroupPlainArgs(
            name = name,
        )
        return getGroupResultToKotlin(getGroupPlain(argument.toJava()).await())
    }

    /**
     * @see [getGroup].
     * @param argument Builder for [com.pulumi.awsnative.synthetics.kotlin.inputs.GetGroupPlainArgs].
     * @return null
     */
    public suspend fun getGroup(argument: suspend GetGroupPlainArgsBuilder.() -> Unit): GetGroupResult {
        val builder = GetGroupPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getGroupResultToKotlin(getGroupPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy