com.pulumi.awsnative.backupgateway.kotlin.BackupgatewayFunctions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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())
}
}