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

com.pulumi.aws.iam.kotlin.inputs.RoleInlinePolicyArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.iam.kotlin.inputs

import com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property name Name of the role policy.
 * @property policy Policy document as a JSON formatted string.
 */
public data class RoleInlinePolicyArgs(
    public val name: Output? = null,
    public val policy: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs =
        com.pulumi.aws.iam.inputs.RoleInlinePolicyArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .policy(policy?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RoleInlinePolicyArgs].
 */
@PulumiTagMarker
public class RoleInlinePolicyArgsBuilder internal constructor() {
    private var name: Output? = null

    private var policy: Output? = null

    /**
     * @param value Name of the role policy.
     */
    @JvmName("ntkmtoigcpjlwumi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Policy document as a JSON formatted string.
     */
    @JvmName("gbjxdsqypyujmgap")
    public suspend fun policy(`value`: Output) {
        this.policy = value
    }

    /**
     * @param value Name of the role policy.
     */
    @JvmName("cydyiosqgnudnujd")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Policy document as a JSON formatted string.
     */
    @JvmName("vswjkcrnyfoisjxb")
    public suspend fun policy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policy = mapped
    }

    internal fun build(): RoleInlinePolicyArgs = RoleInlinePolicyArgs(
        name = name,
        policy = policy,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy