com.pulumi.gcp.bigquery.kotlin.inputs.ConnectionAwsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.bigquery.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigquery.inputs.ConnectionAwsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property accessRole Authentication using Google owned service account to assume into customer's AWS IAM Role.
* Structure is documented below.
*/
public data class ConnectionAwsArgs(
public val accessRole: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.bigquery.inputs.ConnectionAwsArgs =
com.pulumi.gcp.bigquery.inputs.ConnectionAwsArgs.builder()
.accessRole(accessRole.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ConnectionAwsArgs].
*/
@PulumiTagMarker
public class ConnectionAwsArgsBuilder internal constructor() {
private var accessRole: Output? = null
/**
* @param value Authentication using Google owned service account to assume into customer's AWS IAM Role.
* Structure is documented below.
*/
@JvmName("ybswklaovtfcwgui")
public suspend fun accessRole(`value`: Output) {
this.accessRole = value
}
/**
* @param value Authentication using Google owned service account to assume into customer's AWS IAM Role.
* Structure is documented below.
*/
@JvmName("dhqufqvkbtxnsrdd")
public suspend fun accessRole(`value`: ConnectionAwsAccessRoleArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.accessRole = mapped
}
/**
* @param argument Authentication using Google owned service account to assume into customer's AWS IAM Role.
* Structure is documented below.
*/
@JvmName("vimhiyhhfiddwvta")
public suspend fun accessRole(argument: suspend ConnectionAwsAccessRoleArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionAwsAccessRoleArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.accessRole = mapped
}
internal fun build(): ConnectionAwsArgs = ConnectionAwsArgs(
accessRole = accessRole ?: throw PulumiNullFieldException("accessRole"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy