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

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

package com.pulumi.awsnative.iotsitewise.kotlin

import com.pulumi.awsnative.iotsitewise.AccessPolicyArgs.builder
import com.pulumi.awsnative.iotsitewise.kotlin.inputs.AccessPolicyIdentityArgs
import com.pulumi.awsnative.iotsitewise.kotlin.inputs.AccessPolicyIdentityArgsBuilder
import com.pulumi.awsnative.iotsitewise.kotlin.inputs.AccessPolicyResourceArgs
import com.pulumi.awsnative.iotsitewise.kotlin.inputs.AccessPolicyResourceArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::IoTSiteWise::AccessPolicy
 * @property accessPolicyIdentity The identity for this access policy. Choose either a user or a group but not both.
 * @property accessPolicyPermission The permission level for this access policy. Valid values are ADMINISTRATOR or VIEWER.
 * @property accessPolicyResource The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.
 */
public data class AccessPolicyArgs(
    public val accessPolicyIdentity: Output? = null,
    public val accessPolicyPermission: Output? = null,
    public val accessPolicyResource: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotsitewise.AccessPolicyArgs =
        com.pulumi.awsnative.iotsitewise.AccessPolicyArgs.builder()
            .accessPolicyIdentity(
                accessPolicyIdentity?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .accessPolicyPermission(accessPolicyPermission?.applyValue({ args0 -> args0 }))
            .accessPolicyResource(
                accessPolicyResource?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [AccessPolicyArgs].
 */
@PulumiTagMarker
public class AccessPolicyArgsBuilder internal constructor() {
    private var accessPolicyIdentity: Output? = null

    private var accessPolicyPermission: Output? = null

    private var accessPolicyResource: Output? = null

    /**
     * @param value The identity for this access policy. Choose either a user or a group but not both.
     */
    @JvmName("awukwfdumauslwye")
    public suspend fun accessPolicyIdentity(`value`: Output) {
        this.accessPolicyIdentity = value
    }

    /**
     * @param value The permission level for this access policy. Valid values are ADMINISTRATOR or VIEWER.
     */
    @JvmName("btrqxyjthkpgbvmc")
    public suspend fun accessPolicyPermission(`value`: Output) {
        this.accessPolicyPermission = value
    }

    /**
     * @param value The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.
     */
    @JvmName("vanjkfubwrniedry")
    public suspend fun accessPolicyResource(`value`: Output) {
        this.accessPolicyResource = value
    }

    /**
     * @param value The identity for this access policy. Choose either a user or a group but not both.
     */
    @JvmName("rqoffldqksfniftf")
    public suspend fun accessPolicyIdentity(`value`: AccessPolicyIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessPolicyIdentity = mapped
    }

    /**
     * @param argument The identity for this access policy. Choose either a user or a group but not both.
     */
    @JvmName("rkbkcchblrnbcewv")
    public suspend fun accessPolicyIdentity(argument: suspend AccessPolicyIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = AccessPolicyIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.accessPolicyIdentity = mapped
    }

    /**
     * @param value The permission level for this access policy. Valid values are ADMINISTRATOR or VIEWER.
     */
    @JvmName("ujfvjelochhomavx")
    public suspend fun accessPolicyPermission(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessPolicyPermission = mapped
    }

    /**
     * @param value The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.
     */
    @JvmName("relmsltnvsdurlik")
    public suspend fun accessPolicyResource(`value`: AccessPolicyResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessPolicyResource = mapped
    }

    /**
     * @param argument The AWS IoT SiteWise Monitor resource for this access policy. Choose either portal or project but not both.
     */
    @JvmName("msafaocyjhkjpxki")
    public suspend fun accessPolicyResource(argument: suspend AccessPolicyResourceArgsBuilder.() -> Unit) {
        val toBeMapped = AccessPolicyResourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.accessPolicyResource = mapped
    }

    internal fun build(): AccessPolicyArgs = AccessPolicyArgs(
        accessPolicyIdentity = accessPolicyIdentity,
        accessPolicyPermission = accessPolicyPermission,
        accessPolicyResource = accessPolicyResource,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy