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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimetersServicePerimeterStatusArgs.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.ServicePerimetersServicePerimeterStatusArgs.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 ServicePerimetersServicePerimeterStatusArgs(
    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.ServicePerimetersServicePerimeterStatusArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterStatusArgs.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 [ServicePerimetersServicePerimeterStatusArgs].
 */
@PulumiTagMarker
public class ServicePerimetersServicePerimeterStatusArgsBuilder 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("qxymeqpdkctacwll")
    public suspend fun accessLevels(`value`: Output>) {
        this.accessLevels = value
    }

    @JvmName("hvgmchyjtcdykyco")
    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("pdfngcaykaqtfghf")
    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("bdrkwppcnbqokxjq")
    public suspend fun egressPolicies(`value`: Output>) {
        this.egressPolicies = value
    }

    @JvmName("lksnjxnohfclqysf")
    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("paoudyotxxuimple")
    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("vskvciwyyfvecbtl")
    public suspend fun ingressPolicies(`value`: Output>) {
        this.ingressPolicies = value
    }

    @JvmName("dufgegealldkyrtw")
    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("bsvltrfmkodxepuu")
    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("vgmpaulrnveonuhq")
    public suspend fun resources(`value`: Output>) {
        this.resources = value
    }

    @JvmName("trksxynikdsccoci")
    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("vsuqwsitxqixwsfb")
    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("jhdtubclpiqhhmmd")
    public suspend fun restrictedServices(`value`: Output>) {
        this.restrictedServices = value
    }

    @JvmName("mwcjjaefygyiwpsb")
    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("nthajvvucckpvveo")
    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("ekxommkybxhndwiu")
    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("evxlisbmlbsukply")
    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("fbrkskkomkejgkpu")
    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("vnuotmdcofgpjigh")
    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("dmstxjxsfhqnrlgk")
    public suspend fun egressPolicies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServicePerimetersServicePerimeterStatusEgressPolicyArgsBuilder().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("vlesiusfiqjebxvi")
    public suspend fun egressPolicies(vararg argument: suspend ServicePerimetersServicePerimeterStatusEgressPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServicePerimetersServicePerimeterStatusEgressPolicyArgsBuilder().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("djadgwyofgredpir")
    public suspend fun egressPolicies(argument: suspend ServicePerimetersServicePerimeterStatusEgressPolicyArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ServicePerimetersServicePerimeterStatusEgressPolicyArgsBuilder().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("authbtwijxwgbrvi")
    public suspend fun egressPolicies(vararg values: ServicePerimetersServicePerimeterStatusEgressPolicyArgs) {
        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("pnjfxukmpkudbdcq")
    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("ocvwwnegascrkkli")
    public suspend fun ingressPolicies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServicePerimetersServicePerimeterStatusIngressPolicyArgsBuilder().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("jixtoafyenfjifkf")
    public suspend fun ingressPolicies(vararg argument: suspend ServicePerimetersServicePerimeterStatusIngressPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServicePerimetersServicePerimeterStatusIngressPolicyArgsBuilder().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("vphsbxrejjuyvyag")
    public suspend fun ingressPolicies(argument: suspend ServicePerimetersServicePerimeterStatusIngressPolicyArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ServicePerimetersServicePerimeterStatusIngressPolicyArgsBuilder().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("tttpiuixcotkxnjh")
    public suspend fun ingressPolicies(vararg values: ServicePerimetersServicePerimeterStatusIngressPolicyArgs) {
        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("ikobfmfkjjeyhjul")
    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("uuaubpqogbgycbqq")
    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("yadevufgwjdodlvn")
    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("oswgsjwvpnyrqmsn")
    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("hnvlmncjrmgvhouf")
    public suspend fun vpcAccessibleServices(`value`: ServicePerimetersServicePerimeterStatusVpcAccessibleServicesArgs?) {
        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("goodgtesjfrfxmrr")
    public suspend fun vpcAccessibleServices(argument: suspend ServicePerimetersServicePerimeterStatusVpcAccessibleServicesArgsBuilder.() -> Unit) {
        val toBeMapped =
            ServicePerimetersServicePerimeterStatusVpcAccessibleServicesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.vpcAccessibleServices = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy