
com.pulumi.gcp.container.kotlin.inputs.AwsClusterControlPlaneAwsServicesAuthenticationArgs.kt Maven / Gradle / Ivy
@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("fxfbtlrctomouagq")
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("gqursuutjugaifmt")
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("cctsngrcinuoaaai")
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("oufiqgqymlrpqmah")
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 - 2025 Weber Informatics LLC | Privacy Policy