com.pulumi.gcp.accesscontextmanager.kotlin.inputs.ServicePerimetersServicePerimeterStatusEgressPolicyEgressToArgs.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.ServicePerimetersServicePerimeterStatusEgressPolicyEgressToArgs.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 externalResources A list of external resources that are allowed to be accessed. A request
* matches if it contains an external resource in this list (Example:
* s3://bucket/path). Currently '*' is not allowed.
* @property operations A list of `ApiOperations` that this egress rule applies to. A request matches
* if it contains an operation/service in this list.
* Structure is documented below.
* @property resources A list of resources, currently only projects in the form
* `projects/`, that match this to stanza. A request matches
* if it contains a resource in this list. If * is specified for resources,
* then this `EgressTo` rule will authorize access to all resources outside
* the perimeter.
*/
public data class ServicePerimetersServicePerimeterStatusEgressPolicyEgressToArgs(
public val externalResources: Output>? = null,
public val operations: Output>? =
null,
public val resources: Output>? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterStatusEgressPolicyEgressToArgs =
com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimetersServicePerimeterStatusEgressPolicyEgressToArgs.builder()
.externalResources(externalResources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.operations(
operations?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.resources(resources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [ServicePerimetersServicePerimeterStatusEgressPolicyEgressToArgs].
*/
@PulumiTagMarker
public class ServicePerimetersServicePerimeterStatusEgressPolicyEgressToArgsBuilder internal constructor() {
private var externalResources: Output>? = null
private var operations:
Output>? = null
private var resources: Output>? = null
/**
* @param value A list of external resources that are allowed to be accessed. A request
* matches if it contains an external resource in this list (Example:
* s3://bucket/path). Currently '*' is not allowed.
*/
@JvmName("hsyfkeqesuthsace")
public suspend fun externalResources(`value`: Output>) {
this.externalResources = value
}
@JvmName("txhglewvwihvmmek")
public suspend fun externalResources(vararg values: Output) {
this.externalResources = Output.all(values.asList())
}
/**
* @param values A list of external resources that are allowed to be accessed. A request
* matches if it contains an external resource in this list (Example:
* s3://bucket/path). Currently '*' is not allowed.
*/
@JvmName("vboquedhuyhqxnig")
public suspend fun externalResources(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy