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

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

package com.pulumi.gcp.accesscontextmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterSpecIngressPolicyIngressFromSourceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property accessLevel An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
 * @property resource A Google Cloud resource that is allowed to ingress the perimeter.
 * Requests from these resources will be allowed to access perimeter data.
 * Currently only projects are allowed. Format `projects/{project_number}`
 * The project may be in any Google Cloud organization, not just the
 * organization that the perimeter is defined in. `*` is not allowed, the case
 * of allowing all Google Cloud resources only is not supported.
 */
public data class ServicePerimeterSpecIngressPolicyIngressFromSourceArgs(
    public val accessLevel: Output? = null,
    public val resource: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterSpecIngressPolicyIngressFromSourceArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterSpecIngressPolicyIngressFromSourceArgs.builder()
            .accessLevel(accessLevel?.applyValue({ args0 -> args0 }))
            .resource(resource?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServicePerimeterSpecIngressPolicyIngressFromSourceArgs].
 */
@PulumiTagMarker
public class ServicePerimeterSpecIngressPolicyIngressFromSourceArgsBuilder internal constructor() {
    private var accessLevel: Output? = null

    private var resource: Output? = null

    /**
     * @param value An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
     */
    @JvmName("ypajjnybhipbdvrv")
    public suspend fun accessLevel(`value`: Output) {
        this.accessLevel = value
    }

    /**
     * @param value A Google Cloud resource that is allowed to ingress the perimeter.
     * Requests from these resources will be allowed to access perimeter data.
     * Currently only projects are allowed. Format `projects/{project_number}`
     * The project may be in any Google Cloud organization, not just the
     * organization that the perimeter is defined in. `*` is not allowed, the case
     * of allowing all Google Cloud resources only is not supported.
     */
    @JvmName("jmtmrydjmpekltoj")
    public suspend fun resource(`value`: Output) {
        this.resource = value
    }

    /**
     * @param value An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
     */
    @JvmName("mbigqsxdmxsnyxxb")
    public suspend fun accessLevel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessLevel = mapped
    }

    /**
     * @param value A Google Cloud resource that is allowed to ingress the perimeter.
     * Requests from these resources will be allowed to access perimeter data.
     * Currently only projects are allowed. Format `projects/{project_number}`
     * The project may be in any Google Cloud organization, not just the
     * organization that the perimeter is defined in. `*` is not allowed, the case
     * of allowing all Google Cloud resources only is not supported.
     */
    @JvmName("wfruutolkeiidyka")
    public suspend fun resource(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resource = mapped
    }

    internal fun build(): ServicePerimeterSpecIngressPolicyIngressFromSourceArgs =
        ServicePerimeterSpecIngressPolicyIngressFromSourceArgs(
            accessLevel = accessLevel,
            resource = resource,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy