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

com.pulumi.awsnative.rolesanywhere.kotlin.ProfileArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.rolesanywhere.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.rolesanywhere.ProfileArgs.builder
import com.pulumi.awsnative.rolesanywhere.kotlin.inputs.ProfileAttributeMappingArgs
import com.pulumi.awsnative.rolesanywhere.kotlin.inputs.ProfileAttributeMappingArgsBuilder
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.Boolean
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::RolesAnywhere::Profile Resource Type
 * @property attributeMappings A mapping applied to the authenticating end-entity certificate.
 * @property durationSeconds The number of seconds vended session credentials will be valid for
 * @property enabled The enabled status of the resource.
 * @property managedPolicyArns A list of managed policy ARNs. Managed policies identified by this list will be applied to the vended session credentials.
 * @property name The customer specified name of the resource.
 * @property requireInstanceProperties Specifies whether instance properties are required in CreateSession requests with this profile.
 * @property roleArns A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.
 * @property sessionPolicy A session policy that will applied to the trust boundary of the vended session credentials.
 * @property tags A list of Tags.
 */
public data class ProfileArgs(
    public val attributeMappings: Output>? = null,
    public val durationSeconds: Output? = null,
    public val enabled: Output? = null,
    public val managedPolicyArns: Output>? = null,
    public val name: Output? = null,
    public val requireInstanceProperties: Output? = null,
    public val roleArns: Output>? = null,
    public val sessionPolicy: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.rolesanywhere.ProfileArgs =
        com.pulumi.awsnative.rolesanywhere.ProfileArgs.builder()
            .attributeMappings(
                attributeMappings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .durationSeconds(durationSeconds?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .managedPolicyArns(managedPolicyArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .requireInstanceProperties(requireInstanceProperties?.applyValue({ args0 -> args0 }))
            .roleArns(roleArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sessionPolicy(sessionPolicy?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ProfileArgs].
 */
@PulumiTagMarker
public class ProfileArgsBuilder internal constructor() {
    private var attributeMappings: Output>? = null

    private var durationSeconds: Output? = null

    private var enabled: Output? = null

    private var managedPolicyArns: Output>? = null

    private var name: Output? = null

    private var requireInstanceProperties: Output? = null

    private var roleArns: Output>? = null

    private var sessionPolicy: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A mapping applied to the authenticating end-entity certificate.
     */
    @JvmName("wucrxjcxfddjqqvr")
    public suspend fun attributeMappings(`value`: Output>) {
        this.attributeMappings = value
    }

    @JvmName("dseepgwhuhutgukp")
    public suspend fun attributeMappings(vararg values: Output) {
        this.attributeMappings = Output.all(values.asList())
    }

    /**
     * @param values A mapping applied to the authenticating end-entity certificate.
     */
    @JvmName("rvynpttlbxxmeebl")
    public suspend fun attributeMappings(values: List>) {
        this.attributeMappings = Output.all(values)
    }

    /**
     * @param value The number of seconds vended session credentials will be valid for
     */
    @JvmName("uwmhmyhlverrrkwu")
    public suspend fun durationSeconds(`value`: Output) {
        this.durationSeconds = value
    }

    /**
     * @param value The enabled status of the resource.
     */
    @JvmName("sykfevxntptcxuid")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value A list of managed policy ARNs. Managed policies identified by this list will be applied to the vended session credentials.
     */
    @JvmName("lydbpxlcilbtvjof")
    public suspend fun managedPolicyArns(`value`: Output>) {
        this.managedPolicyArns = value
    }

    @JvmName("qyjbjovufebnnjtn")
    public suspend fun managedPolicyArns(vararg values: Output) {
        this.managedPolicyArns = Output.all(values.asList())
    }

    /**
     * @param values A list of managed policy ARNs. Managed policies identified by this list will be applied to the vended session credentials.
     */
    @JvmName("csrpwwshypklkoto")
    public suspend fun managedPolicyArns(values: List>) {
        this.managedPolicyArns = Output.all(values)
    }

    /**
     * @param value The customer specified name of the resource.
     */
    @JvmName("xeswvnrigsdfxoxn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies whether instance properties are required in CreateSession requests with this profile.
     */
    @JvmName("wmldykvatmgabxen")
    public suspend fun requireInstanceProperties(`value`: Output) {
        this.requireInstanceProperties = value
    }

    /**
     * @param value A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.
     */
    @JvmName("erikicirlydwmuxa")
    public suspend fun roleArns(`value`: Output>) {
        this.roleArns = value
    }

    @JvmName("jtulrbtobeommrjv")
    public suspend fun roleArns(vararg values: Output) {
        this.roleArns = Output.all(values.asList())
    }

    /**
     * @param values A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.
     */
    @JvmName("ucpmosmpsukguyxp")
    public suspend fun roleArns(values: List>) {
        this.roleArns = Output.all(values)
    }

    /**
     * @param value A session policy that will applied to the trust boundary of the vended session credentials.
     */
    @JvmName("tiajdotgmruefxru")
    public suspend fun sessionPolicy(`value`: Output) {
        this.sessionPolicy = value
    }

    /**
     * @param value A list of Tags.
     */
    @JvmName("anakejfdydlaylia")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("jqbnlgehoidetvlr")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values A list of Tags.
     */
    @JvmName("fvuvchpciprjiepa")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A mapping applied to the authenticating end-entity certificate.
     */
    @JvmName("tngheoelyxdsupkg")
    public suspend fun attributeMappings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributeMappings = mapped
    }

    /**
     * @param argument A mapping applied to the authenticating end-entity certificate.
     */
    @JvmName("xwvpxgsbhkceyrnk")
    public suspend fun attributeMappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ProfileAttributeMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.attributeMappings = mapped
    }

    /**
     * @param argument A mapping applied to the authenticating end-entity certificate.
     */
    @JvmName("gvsfenwnesameufs")
    public suspend fun attributeMappings(vararg argument: suspend ProfileAttributeMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ProfileAttributeMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.attributeMappings = mapped
    }

    /**
     * @param argument A mapping applied to the authenticating end-entity certificate.
     */
    @JvmName("vpfoqpwwjfljjbfu")
    public suspend fun attributeMappings(argument: suspend ProfileAttributeMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ProfileAttributeMappingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.attributeMappings = mapped
    }

    /**
     * @param values A mapping applied to the authenticating end-entity certificate.
     */
    @JvmName("ykoerjdvqqfckaxx")
    public suspend fun attributeMappings(vararg values: ProfileAttributeMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributeMappings = mapped
    }

    /**
     * @param value The number of seconds vended session credentials will be valid for
     */
    @JvmName("slidcmkxflqettgy")
    public suspend fun durationSeconds(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.durationSeconds = mapped
    }

    /**
     * @param value The enabled status of the resource.
     */
    @JvmName("ywgeinbdalfhjfpm")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value A list of managed policy ARNs. Managed policies identified by this list will be applied to the vended session credentials.
     */
    @JvmName("mtnixsjtnjuwssfn")
    public suspend fun managedPolicyArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedPolicyArns = mapped
    }

    /**
     * @param values A list of managed policy ARNs. Managed policies identified by this list will be applied to the vended session credentials.
     */
    @JvmName("ybiynapdjjgiskin")
    public suspend fun managedPolicyArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.managedPolicyArns = mapped
    }

    /**
     * @param value The customer specified name of the resource.
     */
    @JvmName("xhbxgmutdxjdphbr")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies whether instance properties are required in CreateSession requests with this profile.
     */
    @JvmName("prdusnbajqoivhmv")
    public suspend fun requireInstanceProperties(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireInstanceProperties = mapped
    }

    /**
     * @param value A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.
     */
    @JvmName("uftmfkmecrtvmjvj")
    public suspend fun roleArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArns = mapped
    }

    /**
     * @param values A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.
     */
    @JvmName("duntpsjvboamsgky")
    public suspend fun roleArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArns = mapped
    }

    /**
     * @param value A session policy that will applied to the trust boundary of the vended session credentials.
     */
    @JvmName("kiaofknxnenamqdx")
    public suspend fun sessionPolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sessionPolicy = mapped
    }

    /**
     * @param value A list of Tags.
     */
    @JvmName("cxddhhogjohmjgup")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of Tags.
     */
    @JvmName("pfautbvcffwcdksf")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of Tags.
     */
    @JvmName("ytgfwdqrbbyfryow")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of Tags.
     */
    @JvmName("jiqwpmoqcelddcnm")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of Tags.
     */
    @JvmName("jxlpyyjghyhqnbwo")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ProfileArgs = ProfileArgs(
        attributeMappings = attributeMappings,
        durationSeconds = durationSeconds,
        enabled = enabled,
        managedPolicyArns = managedPolicyArns,
        name = name,
        requireInstanceProperties = requireInstanceProperties,
        roleArns = roleArns,
        sessionPolicy = sessionPolicy,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy