com.pulumi.gcp.container.kotlin.inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs.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.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property roleArn The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.
* @property roleSessionName Optional. An identifier for the assumed role session. When unspecified, it defaults to `multicloud-service-agent`.
*/
public data class AwsClusterControlPlaneAwsServicesAuthenticationArgs(
public val roleArn: Output,
public val roleSessionName: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs =
com.pulumi.gcp.container.inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs.builder()
.roleArn(roleArn.applyValue({ args0 -> args0 }))
.roleSessionName(roleSessionName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AwsClusterControlPlaneAwsServicesAuthenticationArgs].
*/
@PulumiTagMarker
public class AwsClusterControlPlaneAwsServicesAuthenticationArgsBuilder internal constructor() {
private var roleArn: Output? = null
private var roleSessionName: Output? = null
/**
* @param value The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.
*/
@JvmName("hwmilkixgxlwsboc")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value Optional. An identifier for the assumed role session. When unspecified, it defaults to `multicloud-service-agent`.
*/
@JvmName("axexhdsafkuumuiu")
public suspend fun roleSessionName(`value`: Output) {
this.roleSessionName = value
}
/**
* @param value The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS resources on your account.
*/
@JvmName("sqbdohfatfwumlda")
public suspend fun roleArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.roleArn = mapped
}
/**
* @param value Optional. An identifier for the assumed role session. When unspecified, it defaults to `multicloud-service-agent`.
*/
@JvmName("qdrtwyknuitkvasu")
public suspend fun roleSessionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.roleSessionName = mapped
}
internal fun build(): AwsClusterControlPlaneAwsServicesAuthenticationArgs =
AwsClusterControlPlaneAwsServicesAuthenticationArgs(
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
roleSessionName = roleSessionName,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy