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

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

package com.pulumi.gcp.accesscontextmanager.kotlin

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

/**
 * This resource has been deprecated, please refer to ServicePerimeterIngressPolicy.
 * To get more information about IngressPolicy, see:
 * * [API documentation](https://cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#ingresspolicy)
 * ## Import
 * IngressPolicy can be imported using any of these accepted formats:
 * * `{{ingress_policy_name}}/{{resource}}`
 * When using the `pulumi import` command, IngressPolicy can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:accesscontextmanager/ingressPolicy:IngressPolicy default {{ingress_policy_name}}/{{resource}}
 * ```
 * @property ingressPolicyName The name of the Service Perimeter to add this resource to.
 * - - -
 * @property resource A GCP resource that is inside of the service perimeter.
 */
public data class IngressPolicyArgs(
    public val ingressPolicyName: Output? = null,
    public val resource: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.IngressPolicyArgs =
        com.pulumi.gcp.accesscontextmanager.IngressPolicyArgs.builder()
            .ingressPolicyName(ingressPolicyName?.applyValue({ args0 -> args0 }))
            .resource(resource?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IngressPolicyArgs].
 */
@PulumiTagMarker
public class IngressPolicyArgsBuilder internal constructor() {
    private var ingressPolicyName: Output? = null

    private var resource: Output? = null

    /**
     * @param value The name of the Service Perimeter to add this resource to.
     * - - -
     */
    @JvmName("prbipaucbhtuxhhk")
    public suspend fun ingressPolicyName(`value`: Output) {
        this.ingressPolicyName = value
    }

    /**
     * @param value A GCP resource that is inside of the service perimeter.
     */
    @JvmName("vfuuenlfwvulmfia")
    public suspend fun resource(`value`: Output) {
        this.resource = value
    }

    /**
     * @param value The name of the Service Perimeter to add this resource to.
     * - - -
     */
    @JvmName("jkyutkkegvaelijb")
    public suspend fun ingressPolicyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ingressPolicyName = mapped
    }

    /**
     * @param value A GCP resource that is inside of the service perimeter.
     */
    @JvmName("pkbpampkskxuikdu")
    public suspend fun resource(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resource = mapped
    }

    internal fun build(): IngressPolicyArgs = IngressPolicyArgs(
        ingressPolicyName = ingressPolicyName,
        resource = resource,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy