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

com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimetersServicePerimeterSpecIngressPolicyIngressToArgs.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.ServicePerimetersServicePerimeterSpecIngressPolicyIngressToArgs.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 operations A list of `ApiOperations` the sources specified in corresponding `IngressFrom`
 * are allowed to perform in this `ServicePerimeter`.
 * Structure is documented below.
 * @property resources A list of resources, currently only projects in the form
 * `projects/`, protected by this `ServicePerimeter`
 * that are allowed to be accessed by sources defined in the
 * corresponding `IngressFrom`. A request matches if it contains
 * a resource in this list. If `*` is specified for resources,
 * then this `IngressTo` rule will authorize access to all
 * resources inside the perimeter, provided that the request
 * also matches the `operations` field.
 */
public data class ServicePerimetersServicePerimeterSpecIngressPolicyIngressToArgs(
    public val operations: Output>? =
        null,
    public val resources: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterSpecIngressPolicyIngressToArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterSpecIngressPolicyIngressToArgs.builder()
            .operations(
                operations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .resources(resources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var resources: Output>? = null

    /**
     * @param value A list of `ApiOperations` the sources specified in corresponding `IngressFrom`
     * are allowed to perform in this `ServicePerimeter`.
     * Structure is documented below.
     */
    @JvmName("wtxysnyhnmsettge")
    public suspend fun operations(`value`: Output>) {
        this.operations = value
    }

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

    /**
     * @param values A list of `ApiOperations` the sources specified in corresponding `IngressFrom`
     * are allowed to perform in this `ServicePerimeter`.
     * Structure is documented below.
     */
    @JvmName("vdbdjteenevkgnbh")
    public suspend fun operations(values: List>) {
        this.operations = Output.all(values)
    }

    /**
     * @param value A list of resources, currently only projects in the form
     * `projects/`, protected by this `ServicePerimeter`
     * that are allowed to be accessed by sources defined in the
     * corresponding `IngressFrom`. A request matches if it contains
     * a resource in this list. If `*` is specified for resources,
     * then this `IngressTo` rule will authorize access to all
     * resources inside the perimeter, provided that the request
     * also matches the `operations` field.
     */
    @JvmName("tgimkeglcqdseylm")
    public suspend fun resources(`value`: Output>) {
        this.resources = value
    }

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

    /**
     * @param values A list of resources, currently only projects in the form
     * `projects/`, protected by this `ServicePerimeter`
     * that are allowed to be accessed by sources defined in the
     * corresponding `IngressFrom`. A request matches if it contains
     * a resource in this list. If `*` is specified for resources,
     * then this `IngressTo` rule will authorize access to all
     * resources inside the perimeter, provided that the request
     * also matches the `operations` field.
     */
    @JvmName("nmotdkfejsqgfdkl")
    public suspend fun resources(values: List>) {
        this.resources = Output.all(values)
    }

    /**
     * @param value A list of `ApiOperations` the sources specified in corresponding `IngressFrom`
     * are allowed to perform in this `ServicePerimeter`.
     * Structure is documented below.
     */
    @JvmName("lltjdyainppbmakl")
    public suspend fun operations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.operations = mapped
    }

    /**
     * @param argument A list of `ApiOperations` the sources specified in corresponding `IngressFrom`
     * are allowed to perform in this `ServicePerimeter`.
     * Structure is documented below.
     */
    @JvmName("vfqwjkvugtkfstmy")
    public suspend fun operations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServicePerimetersServicePerimeterSpecIngressPolicyIngressToOperationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.operations = mapped
    }

    /**
     * @param argument A list of `ApiOperations` the sources specified in corresponding `IngressFrom`
     * are allowed to perform in this `ServicePerimeter`.
     * Structure is documented below.
     */
    @JvmName("muepsixpxnqhcnqu")
    public suspend fun operations(vararg argument: suspend ServicePerimetersServicePerimeterSpecIngressPolicyIngressToOperationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServicePerimetersServicePerimeterSpecIngressPolicyIngressToOperationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.operations = mapped
    }

    /**
     * @param argument A list of `ApiOperations` the sources specified in corresponding `IngressFrom`
     * are allowed to perform in this `ServicePerimeter`.
     * Structure is documented below.
     */
    @JvmName("qqsgmtvgwfhxdlaw")
    public suspend fun operations(argument: suspend ServicePerimetersServicePerimeterSpecIngressPolicyIngressToOperationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ServicePerimetersServicePerimeterSpecIngressPolicyIngressToOperationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.operations = mapped
    }

    /**
     * @param values A list of `ApiOperations` the sources specified in corresponding `IngressFrom`
     * are allowed to perform in this `ServicePerimeter`.
     * Structure is documented below.
     */
    @JvmName("pvbucuiehcflbqqu")
    public suspend fun operations(vararg values: ServicePerimetersServicePerimeterSpecIngressPolicyIngressToOperationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operations = mapped
    }

    /**
     * @param value A list of resources, currently only projects in the form
     * `projects/`, protected by this `ServicePerimeter`
     * that are allowed to be accessed by sources defined in the
     * corresponding `IngressFrom`. A request matches if it contains
     * a resource in this list. If `*` is specified for resources,
     * then this `IngressTo` rule will authorize access to all
     * resources inside the perimeter, provided that the request
     * also matches the `operations` field.
     */
    @JvmName("bqriscpbffgiesrd")
    public suspend fun resources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param values A list of resources, currently only projects in the form
     * `projects/`, protected by this `ServicePerimeter`
     * that are allowed to be accessed by sources defined in the
     * corresponding `IngressFrom`. A request matches if it contains
     * a resource in this list. If `*` is specified for resources,
     * then this `IngressTo` rule will authorize access to all
     * resources inside the perimeter, provided that the request
     * also matches the `operations` field.
     */
    @JvmName("povwlpsochxjtxvq")
    public suspend fun resources(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    internal fun build(): ServicePerimetersServicePerimeterSpecIngressPolicyIngressToArgs =
        ServicePerimetersServicePerimeterSpecIngressPolicyIngressToArgs(
            operations = operations,
            resources = resources,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy