com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimetersServicePerimeterSpecIngressPolicyIngressToArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy