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

com.pulumi.awsnative.arczonalshift.kotlin.ArczonalshiftFunctions.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.arczonalshift.kotlin

import com.pulumi.awsnative.arczonalshift.ArczonalshiftFunctions.getZonalAutoshiftConfigurationPlain
import com.pulumi.awsnative.arczonalshift.kotlin.inputs.GetZonalAutoshiftConfigurationPlainArgs
import com.pulumi.awsnative.arczonalshift.kotlin.inputs.GetZonalAutoshiftConfigurationPlainArgsBuilder
import com.pulumi.awsnative.arczonalshift.kotlin.outputs.GetZonalAutoshiftConfigurationResult
import com.pulumi.awsnative.arczonalshift.kotlin.outputs.GetZonalAutoshiftConfigurationResult.Companion.toKotlin
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit

public object ArczonalshiftFunctions {
    /**
     * Definition of AWS::ARCZonalShift::ZonalAutoshiftConfiguration Resource Type
     * @param argument null
     * @return null
     */
    public suspend fun getZonalAutoshiftConfiguration(argument: GetZonalAutoshiftConfigurationPlainArgs): GetZonalAutoshiftConfigurationResult =
        toKotlin(getZonalAutoshiftConfigurationPlain(argument.toJava()).await())

    /**
     * @see [getZonalAutoshiftConfiguration].
     * @param resourceIdentifier The identifier for the resource that AWS shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
     * At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
     * @return null
     */
    public suspend fun getZonalAutoshiftConfiguration(resourceIdentifier: String): GetZonalAutoshiftConfigurationResult {
        val argument = GetZonalAutoshiftConfigurationPlainArgs(
            resourceIdentifier = resourceIdentifier,
        )
        return toKotlin(getZonalAutoshiftConfigurationPlain(argument.toJava()).await())
    }

    /**
     * @see [getZonalAutoshiftConfiguration].
     * @param argument Builder for [com.pulumi.awsnative.arczonalshift.kotlin.inputs.GetZonalAutoshiftConfigurationPlainArgs].
     * @return null
     */
    public suspend fun getZonalAutoshiftConfiguration(argument: suspend GetZonalAutoshiftConfigurationPlainArgsBuilder.() -> Unit): GetZonalAutoshiftConfigurationResult {
        val builder = GetZonalAutoshiftConfigurationPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return toKotlin(getZonalAutoshiftConfigurationPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy