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

com.pulumi.gcp.networksecurity.kotlin.inputs.AuthzPolicyHttpRuleFromNotSourceResourceArgs.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networksecurity.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleFromNotSourceResourceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property iamServiceAccount An IAM service account to match against the source service account of the VM sending the request.
 * Structure is documented below.
 * @property tagValueIdSet A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request.
 * Structure is documented below.
 */
public data class AuthzPolicyHttpRuleFromNotSourceResourceArgs(
    public val iamServiceAccount: Output? = null,
    public val tagValueIdSet: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleFromNotSourceResourceArgs =
        com.pulumi.gcp.networksecurity.inputs.AuthzPolicyHttpRuleFromNotSourceResourceArgs.builder()
            .iamServiceAccount(iamServiceAccount?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tagValueIdSet(tagValueIdSet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AuthzPolicyHttpRuleFromNotSourceResourceArgs].
 */
@PulumiTagMarker
public class AuthzPolicyHttpRuleFromNotSourceResourceArgsBuilder internal constructor() {
    private var iamServiceAccount:
        Output? = null

    private var tagValueIdSet: Output? =
        null

    /**
     * @param value An IAM service account to match against the source service account of the VM sending the request.
     * Structure is documented below.
     */
    @JvmName("qytlitnowwpxswfo")
    public suspend fun iamServiceAccount(`value`: Output) {
        this.iamServiceAccount = value
    }

    /**
     * @param value A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request.
     * Structure is documented below.
     */
    @JvmName("lrsmkvqibrsvkuin")
    public suspend fun tagValueIdSet(`value`: Output) {
        this.tagValueIdSet = value
    }

    /**
     * @param value An IAM service account to match against the source service account of the VM sending the request.
     * Structure is documented below.
     */
    @JvmName("avxcwkdrjbhwspqg")
    public suspend fun iamServiceAccount(`value`: AuthzPolicyHttpRuleFromNotSourceResourceIamServiceAccountArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iamServiceAccount = mapped
    }

    /**
     * @param argument An IAM service account to match against the source service account of the VM sending the request.
     * Structure is documented below.
     */
    @JvmName("usnypdxmodcxhrmf")
    public suspend fun iamServiceAccount(argument: suspend AuthzPolicyHttpRuleFromNotSourceResourceIamServiceAccountArgsBuilder.() -> Unit) {
        val toBeMapped =
            AuthzPolicyHttpRuleFromNotSourceResourceIamServiceAccountArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.iamServiceAccount = mapped
    }

    /**
     * @param value A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request.
     * Structure is documented below.
     */
    @JvmName("plisdoodmwetolbf")
    public suspend fun tagValueIdSet(`value`: AuthzPolicyHttpRuleFromNotSourceResourceTagValueIdSetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagValueIdSet = mapped
    }

    /**
     * @param argument A list of resource tag value permanent IDs to match against the resource manager tags value associated with the source VM of a request.
     * Structure is documented below.
     */
    @JvmName("yhojjxfcvchsgvkr")
    public suspend fun tagValueIdSet(argument: suspend AuthzPolicyHttpRuleFromNotSourceResourceTagValueIdSetArgsBuilder.() -> Unit) {
        val toBeMapped =
            AuthzPolicyHttpRuleFromNotSourceResourceTagValueIdSetArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.tagValueIdSet = mapped
    }

    internal fun build(): AuthzPolicyHttpRuleFromNotSourceResourceArgs =
        AuthzPolicyHttpRuleFromNotSourceResourceArgs(
            iamServiceAccount = iamServiceAccount,
            tagValueIdSet = tagValueIdSet,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy