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

com.pulumi.awsnative.backupgateway.kotlin.BackupgatewayFunctions.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.backupgateway.kotlin

import com.pulumi.awsnative.backupgateway.BackupgatewayFunctions.getHypervisorPlain
import com.pulumi.awsnative.backupgateway.kotlin.inputs.GetHypervisorPlainArgs
import com.pulumi.awsnative.backupgateway.kotlin.inputs.GetHypervisorPlainArgsBuilder
import com.pulumi.awsnative.backupgateway.kotlin.outputs.GetHypervisorResult
import com.pulumi.awsnative.backupgateway.kotlin.outputs.GetHypervisorResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object BackupgatewayFunctions {
    /**
     * Definition of AWS::BackupGateway::Hypervisor Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getHypervisor(argument: GetHypervisorPlainArgs): GetHypervisorResult =
        toKotlin(getHypervisorPlain(argument.toJava()).await())

    /**
     * @see [getHypervisor].
     * @param hypervisorArn Returns `HypervisorArn` , an Amazon Resource Name (ARN) that uniquely identifies a Hypervisor. For example: `arn:aws:backup-gateway:us-east-1:123456789012:hypervisor/hype-1234D67D`
     * @return null
     */
    public suspend fun getHypervisor(hypervisorArn: String): GetHypervisorResult {
        val argument = GetHypervisorPlainArgs(
            hypervisorArn = hypervisorArn,
        )
        return toKotlin(getHypervisorPlain(argument.toJava()).await())
    }

    /**
     * @see [getHypervisor].
     * @param argument Builder for [com.pulumi.awsnative.backupgateway.kotlin.inputs.GetHypervisorPlainArgs].
     * @return null
     */
    public suspend fun getHypervisor(argument: suspend GetHypervisorPlainArgsBuilder.() -> Unit): GetHypervisorResult {
        val builder = GetHypervisorPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getHypervisorPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy