com.pulumi.awsnative.iot.kotlin.RoleAliasArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iot.kotlin
import com.pulumi.awsnative.iot.RoleAliasArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Use the AWS::IoT::RoleAlias resource to declare an AWS IoT RoleAlias.
* @property credentialDurationSeconds The number of seconds for which the credential is valid.
* @property roleAlias The role alias.
* @property roleArn The role ARN.
* @property tags An array of key-value pairs to apply to this resource.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*/
public data class RoleAliasArgs(
public val credentialDurationSeconds: Output? = null,
public val roleAlias: Output? = null,
public val roleArn: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.RoleAliasArgs =
com.pulumi.awsnative.iot.RoleAliasArgs.builder()
.credentialDurationSeconds(credentialDurationSeconds?.applyValue({ args0 -> args0 }))
.roleAlias(roleAlias?.applyValue({ args0 -> args0 }))
.roleArn(roleArn?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [RoleAliasArgs].
*/
@PulumiTagMarker
public class RoleAliasArgsBuilder internal constructor() {
private var credentialDurationSeconds: Output? = null
private var roleAlias: Output? = null
private var roleArn: Output? = null
private var tags: Output>? = null
/**
* @param value The number of seconds for which the credential is valid.
*/
@JvmName("qmppohdfruuhvpvl")
public suspend fun credentialDurationSeconds(`value`: Output) {
this.credentialDurationSeconds = value
}
/**
* @param value The role alias.
*/
@JvmName("mqanrrcdbckvjtcu")
public suspend fun roleAlias(`value`: Output) {
this.roleAlias = value
}
/**
* @param value The role ARN.
*/
@JvmName("piuuoldkafnndobp")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value An array of key-value pairs to apply to this resource.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*/
@JvmName("yerwxwxopgigosni")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("vevpdtmdpqkhnyit")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values An array of key-value pairs to apply to this resource.
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*/
@JvmName("llcrvtvmenqrldml")
public suspend fun tags(values: List