com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimetersServicePerimeterSpecIngressPolicyIngressFromSourceArgs.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.ServicePerimetersServicePerimeterSpecIngressPolicyIngressFromSourceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property accessLevel An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
* @property resource A Google Cloud resource that is allowed to ingress the perimeter.
* Requests from these resources will be allowed to access perimeter data.
* Currently only projects are allowed. Format `projects/{project_number}`
* The project may be in any Google Cloud organization, not just the
* organization that the perimeter is defined in. `*` is not allowed, the case
* of allowing all Google Cloud resources only is not supported.
*/
public data class ServicePerimetersServicePerimeterSpecIngressPolicyIngressFromSourceArgs(
public val accessLevel: Output? = null,
public val resource: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterSpecIngressPolicyIngressFromSourceArgs =
com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterSpecIngressPolicyIngressFromSourceArgs.builder()
.accessLevel(accessLevel?.applyValue({ args0 -> args0 }))
.resource(resource?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServicePerimetersServicePerimeterSpecIngressPolicyIngressFromSourceArgs].
*/
@PulumiTagMarker
public class ServicePerimetersServicePerimeterSpecIngressPolicyIngressFromSourceArgsBuilder internal constructor() {
private var accessLevel: Output? = null
private var resource: Output? = null
/**
* @param value An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
*/
@JvmName("npvojqvimgmcjhvw")
public suspend fun accessLevel(`value`: Output) {
this.accessLevel = value
}
/**
* @param value A Google Cloud resource that is allowed to ingress the perimeter.
* Requests from these resources will be allowed to access perimeter data.
* Currently only projects are allowed. Format `projects/{project_number}`
* The project may be in any Google Cloud organization, not just the
* organization that the perimeter is defined in. `*` is not allowed, the case
* of allowing all Google Cloud resources only is not supported.
*/
@JvmName("mckxyjvbnfvmcsim")
public suspend fun resource(`value`: Output) {
this.resource = value
}
/**
* @param value An AccessLevel resource name that allows resources outside the ServicePerimeter to be accessed from the inside.
*/
@JvmName("ualsutpqfsssubmu")
public suspend fun accessLevel(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accessLevel = mapped
}
/**
* @param value A Google Cloud resource that is allowed to ingress the perimeter.
* Requests from these resources will be allowed to access perimeter data.
* Currently only projects are allowed. Format `projects/{project_number}`
* The project may be in any Google Cloud organization, not just the
* organization that the perimeter is defined in. `*` is not allowed, the case
* of allowing all Google Cloud resources only is not supported.
*/
@JvmName("vjxsbvuoctofroxw")
public suspend fun resource(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resource = mapped
}
internal fun build(): ServicePerimetersServicePerimeterSpecIngressPolicyIngressFromSourceArgs =
ServicePerimetersServicePerimeterSpecIngressPolicyIngressFromSourceArgs(
accessLevel = accessLevel,
resource = resource,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy