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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimeterStatusArgs.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.ServicePerimeterStatusArgs.builder
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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property accessLevels A list of AccessLevel resource names that allow resources within
 * the ServicePerimeter to be accessed from the internet.
 * AccessLevels listed must be in the same policy as this
 * ServicePerimeter. Referencing a nonexistent AccessLevel is a
 * syntax error. If no AccessLevel names are listed, resources within
 * the perimeter can only be accessed via GCP calls with request
 * origins within the perimeter. For Service Perimeter Bridge, must
 * be empty.
 * Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
 * @property egressPolicies List of EgressPolicies to apply to the perimeter. A perimeter may
 * have multiple EgressPolicies, each of which is evaluated separately.
 * Access is granted if any EgressPolicy grants it. Must be empty for
 * a perimeter bridge.
 * Structure is documented below.
 * @property ingressPolicies List of `IngressPolicies` to apply to the perimeter. A perimeter may
 * have multiple `IngressPolicies`, each of which is evaluated
 * separately. Access is granted if any `Ingress Policy` grants it.
 * Must be empty for a perimeter bridge.
 * Structure is documented below.
 * @property resources A list of GCP resources that are inside of the service perimeter.
 * Currently only projects are allowed.
 * Format: projects/{project_number}
 * @property restrictedServices GCP services that are subject to the Service Perimeter
 * restrictions. Must contain a list of services. For example, if
 * `storage.googleapis.com` is specified, access to the storage
 * buckets inside the perimeter must meet the perimeter's access
 * restrictions.
 * @property vpcAccessibleServices Specifies how APIs are allowed to communicate within the Service
 * Perimeter.
 * Structure is documented below.
 */
public data class ServicePerimeterStatusArgs(
    public val accessLevels: Output>? = null,
    public val egressPolicies: Output>? = null,
    public val ingressPolicies: Output>? = null,
    public val resources: Output>? = null,
    public val restrictedServices: Output>? = null,
    public val vpcAccessibleServices: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusArgs.builder()
            .accessLevels(accessLevels?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .egressPolicies(
                egressPolicies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ingressPolicies(
                ingressPolicies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .resources(resources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .restrictedServices(restrictedServices?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .vpcAccessibleServices(
                vpcAccessibleServices?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ServicePerimeterStatusArgs].
 */
@PulumiTagMarker
public class ServicePerimeterStatusArgsBuilder internal constructor() {
    private var accessLevels: Output>? = null

    private var egressPolicies: Output>? = null

    private var ingressPolicies: Output>? = null

    private var resources: Output>? = null

    private var restrictedServices: Output>? = null

    private var vpcAccessibleServices: Output? = null

    /**
     * @param value A list of AccessLevel resource names that allow resources within
     * the ServicePerimeter to be accessed from the internet.
     * AccessLevels listed must be in the same policy as this
     * ServicePerimeter. Referencing a nonexistent AccessLevel is a
     * syntax error. If no AccessLevel names are listed, resources within
     * the perimeter can only be accessed via GCP calls with request
     * origins within the perimeter. For Service Perimeter Bridge, must
     * be empty.
     * Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
     */
    @JvmName("jubeykqhxgmgucwg")
    public suspend fun accessLevels(`value`: Output>) {
        this.accessLevels = value
    }

    @JvmName("tptyrqvgewkvvoas")
    public suspend fun accessLevels(vararg values: Output) {
        this.accessLevels = Output.all(values.asList())
    }

    /**
     * @param values A list of AccessLevel resource names that allow resources within
     * the ServicePerimeter to be accessed from the internet.
     * AccessLevels listed must be in the same policy as this
     * ServicePerimeter. Referencing a nonexistent AccessLevel is a
     * syntax error. If no AccessLevel names are listed, resources within
     * the perimeter can only be accessed via GCP calls with request
     * origins within the perimeter. For Service Perimeter Bridge, must
     * be empty.
     * Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
     */
    @JvmName("xkbxiphlgbujkvbg")
    public suspend fun accessLevels(values: List>) {
        this.accessLevels = Output.all(values)
    }

    /**
     * @param value List of EgressPolicies to apply to the perimeter. A perimeter may
     * have multiple EgressPolicies, each of which is evaluated separately.
     * Access is granted if any EgressPolicy grants it. Must be empty for
     * a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("optoplrsxdtodbdx")
    public suspend fun egressPolicies(`value`: Output>) {
        this.egressPolicies = value
    }

    @JvmName("dpjrxkroligynvwc")
    public suspend fun egressPolicies(vararg values: Output) {
        this.egressPolicies = Output.all(values.asList())
    }

    /**
     * @param values List of EgressPolicies to apply to the perimeter. A perimeter may
     * have multiple EgressPolicies, each of which is evaluated separately.
     * Access is granted if any EgressPolicy grants it. Must be empty for
     * a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("ycvliynqnibhkljm")
    public suspend fun egressPolicies(values: List>) {
        this.egressPolicies = Output.all(values)
    }

    /**
     * @param value List of `IngressPolicies` to apply to the perimeter. A perimeter may
     * have multiple `IngressPolicies`, each of which is evaluated
     * separately. Access is granted if any `Ingress Policy` grants it.
     * Must be empty for a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("mewwkcgmulhkbyok")
    public suspend fun ingressPolicies(`value`: Output>) {
        this.ingressPolicies = value
    }

    @JvmName("escsoopljhhjkjjc")
    public suspend fun ingressPolicies(vararg values: Output) {
        this.ingressPolicies = Output.all(values.asList())
    }

    /**
     * @param values List of `IngressPolicies` to apply to the perimeter. A perimeter may
     * have multiple `IngressPolicies`, each of which is evaluated
     * separately. Access is granted if any `Ingress Policy` grants it.
     * Must be empty for a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("tvjfctjecwuxhcbm")
    public suspend fun ingressPolicies(values: List>) {
        this.ingressPolicies = Output.all(values)
    }

    /**
     * @param value A list of GCP resources that are inside of the service perimeter.
     * Currently only projects are allowed.
     * Format: projects/{project_number}
     */
    @JvmName("sfdqqvxqyynwbtgu")
    public suspend fun resources(`value`: Output>) {
        this.resources = value
    }

    @JvmName("cvvrvugsmuvlrdyd")
    public suspend fun resources(vararg values: Output) {
        this.resources = Output.all(values.asList())
    }

    /**
     * @param values A list of GCP resources that are inside of the service perimeter.
     * Currently only projects are allowed.
     * Format: projects/{project_number}
     */
    @JvmName("bmnranppeiknnofw")
    public suspend fun resources(values: List>) {
        this.resources = Output.all(values)
    }

    /**
     * @param value GCP services that are subject to the Service Perimeter
     * restrictions. Must contain a list of services. For example, if
     * `storage.googleapis.com` is specified, access to the storage
     * buckets inside the perimeter must meet the perimeter's access
     * restrictions.
     */
    @JvmName("eeucsnoenfrkimow")
    public suspend fun restrictedServices(`value`: Output>) {
        this.restrictedServices = value
    }

    @JvmName("tlnlvmpvmnhpofsf")
    public suspend fun restrictedServices(vararg values: Output) {
        this.restrictedServices = Output.all(values.asList())
    }

    /**
     * @param values GCP services that are subject to the Service Perimeter
     * restrictions. Must contain a list of services. For example, if
     * `storage.googleapis.com` is specified, access to the storage
     * buckets inside the perimeter must meet the perimeter's access
     * restrictions.
     */
    @JvmName("xjbefhebdhtxavww")
    public suspend fun restrictedServices(values: List>) {
        this.restrictedServices = Output.all(values)
    }

    /**
     * @param value Specifies how APIs are allowed to communicate within the Service
     * Perimeter.
     * Structure is documented below.
     */
    @JvmName("gumtqpythqxsldjy")
    public suspend fun vpcAccessibleServices(`value`: Output) {
        this.vpcAccessibleServices = value
    }

    /**
     * @param value A list of AccessLevel resource names that allow resources within
     * the ServicePerimeter to be accessed from the internet.
     * AccessLevels listed must be in the same policy as this
     * ServicePerimeter. Referencing a nonexistent AccessLevel is a
     * syntax error. If no AccessLevel names are listed, resources within
     * the perimeter can only be accessed via GCP calls with request
     * origins within the perimeter. For Service Perimeter Bridge, must
     * be empty.
     * Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
     */
    @JvmName("tgppbcohjwdxoiox")
    public suspend fun accessLevels(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessLevels = mapped
    }

    /**
     * @param values A list of AccessLevel resource names that allow resources within
     * the ServicePerimeter to be accessed from the internet.
     * AccessLevels listed must be in the same policy as this
     * ServicePerimeter. Referencing a nonexistent AccessLevel is a
     * syntax error. If no AccessLevel names are listed, resources within
     * the perimeter can only be accessed via GCP calls with request
     * origins within the perimeter. For Service Perimeter Bridge, must
     * be empty.
     * Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
     */
    @JvmName("tmyuklphnkypbhun")
    public suspend fun accessLevels(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessLevels = mapped
    }

    /**
     * @param value List of EgressPolicies to apply to the perimeter. A perimeter may
     * have multiple EgressPolicies, each of which is evaluated separately.
     * Access is granted if any EgressPolicy grants it. Must be empty for
     * a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("aaqjvouanxaelqhj")
    public suspend fun egressPolicies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressPolicies = mapped
    }

    /**
     * @param argument List of EgressPolicies to apply to the perimeter. A perimeter may
     * have multiple EgressPolicies, each of which is evaluated separately.
     * Access is granted if any EgressPolicy grants it. Must be empty for
     * a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("eiboejlgornwesty")
    public suspend fun egressPolicies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServicePerimeterStatusEgressPolicyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.egressPolicies = mapped
    }

    /**
     * @param argument List of EgressPolicies to apply to the perimeter. A perimeter may
     * have multiple EgressPolicies, each of which is evaluated separately.
     * Access is granted if any EgressPolicy grants it. Must be empty for
     * a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("wiejbmyduihyhdpa")
    public suspend fun egressPolicies(vararg argument: suspend ServicePerimeterStatusEgressPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServicePerimeterStatusEgressPolicyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.egressPolicies = mapped
    }

    /**
     * @param argument List of EgressPolicies to apply to the perimeter. A perimeter may
     * have multiple EgressPolicies, each of which is evaluated separately.
     * Access is granted if any EgressPolicy grants it. Must be empty for
     * a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("pllucarxqimewxct")
    public suspend fun egressPolicies(argument: suspend ServicePerimeterStatusEgressPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ServicePerimeterStatusEgressPolicyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.egressPolicies = mapped
    }

    /**
     * @param values List of EgressPolicies to apply to the perimeter. A perimeter may
     * have multiple EgressPolicies, each of which is evaluated separately.
     * Access is granted if any EgressPolicy grants it. Must be empty for
     * a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("nkjvepqfagqtrixu")
    public suspend fun egressPolicies(vararg values: ServicePerimeterStatusEgressPolicyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.egressPolicies = mapped
    }

    /**
     * @param value List of `IngressPolicies` to apply to the perimeter. A perimeter may
     * have multiple `IngressPolicies`, each of which is evaluated
     * separately. Access is granted if any `Ingress Policy` grants it.
     * Must be empty for a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("xnvsvjybfugccvnx")
    public suspend fun ingressPolicies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ingressPolicies = mapped
    }

    /**
     * @param argument List of `IngressPolicies` to apply to the perimeter. A perimeter may
     * have multiple `IngressPolicies`, each of which is evaluated
     * separately. Access is granted if any `Ingress Policy` grants it.
     * Must be empty for a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("efyfskjxcnvabcfe")
    public suspend fun ingressPolicies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServicePerimeterStatusIngressPolicyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ingressPolicies = mapped
    }

    /**
     * @param argument List of `IngressPolicies` to apply to the perimeter. A perimeter may
     * have multiple `IngressPolicies`, each of which is evaluated
     * separately. Access is granted if any `Ingress Policy` grants it.
     * Must be empty for a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("nvptexavfiychtab")
    public suspend fun ingressPolicies(vararg argument: suspend ServicePerimeterStatusIngressPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServicePerimeterStatusIngressPolicyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ingressPolicies = mapped
    }

    /**
     * @param argument List of `IngressPolicies` to apply to the perimeter. A perimeter may
     * have multiple `IngressPolicies`, each of which is evaluated
     * separately. Access is granted if any `Ingress Policy` grants it.
     * Must be empty for a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("siooyxqkbbxidllw")
    public suspend fun ingressPolicies(argument: suspend ServicePerimeterStatusIngressPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ServicePerimeterStatusIngressPolicyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ingressPolicies = mapped
    }

    /**
     * @param values List of `IngressPolicies` to apply to the perimeter. A perimeter may
     * have multiple `IngressPolicies`, each of which is evaluated
     * separately. Access is granted if any `Ingress Policy` grants it.
     * Must be empty for a perimeter bridge.
     * Structure is documented below.
     */
    @JvmName("pwvcyvkacwgdhxwk")
    public suspend fun ingressPolicies(vararg values: ServicePerimeterStatusIngressPolicyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ingressPolicies = mapped
    }

    /**
     * @param value A list of GCP resources that are inside of the service perimeter.
     * Currently only projects are allowed.
     * Format: projects/{project_number}
     */
    @JvmName("xbwhmalyjaxpqqtr")
    public suspend fun resources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param values A list of GCP resources that are inside of the service perimeter.
     * Currently only projects are allowed.
     * Format: projects/{project_number}
     */
    @JvmName("shfdomlcbcnlhsbr")
    public suspend fun resources(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param value GCP services that are subject to the Service Perimeter
     * restrictions. Must contain a list of services. For example, if
     * `storage.googleapis.com` is specified, access to the storage
     * buckets inside the perimeter must meet the perimeter's access
     * restrictions.
     */
    @JvmName("vlpaxwaencqqdgih")
    public suspend fun restrictedServices(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.restrictedServices = mapped
    }

    /**
     * @param values GCP services that are subject to the Service Perimeter
     * restrictions. Must contain a list of services. For example, if
     * `storage.googleapis.com` is specified, access to the storage
     * buckets inside the perimeter must meet the perimeter's access
     * restrictions.
     */
    @JvmName("ytbxxsjlyxlpayuf")
    public suspend fun restrictedServices(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.restrictedServices = mapped
    }

    /**
     * @param value Specifies how APIs are allowed to communicate within the Service
     * Perimeter.
     * Structure is documented below.
     */
    @JvmName("vakmkihrewgnlfjy")
    public suspend fun vpcAccessibleServices(`value`: ServicePerimeterStatusVpcAccessibleServicesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcAccessibleServices = mapped
    }

    /**
     * @param argument Specifies how APIs are allowed to communicate within the Service
     * Perimeter.
     * Structure is documented below.
     */
    @JvmName("kkkpfjigyydhttod")
    public suspend fun vpcAccessibleServices(argument: suspend ServicePerimeterStatusVpcAccessibleServicesArgsBuilder.() -> Unit) {
        val toBeMapped = ServicePerimeterStatusVpcAccessibleServicesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.vpcAccessibleServices = mapped
    }

    internal fun build(): ServicePerimeterStatusArgs = ServicePerimeterStatusArgs(
        accessLevels = accessLevels,
        egressPolicies = egressPolicies,
        ingressPolicies = ingressPolicies,
        resources = resources,
        restrictedServices = restrictedServices,
        vpcAccessibleServices = vpcAccessibleServices,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy