com.pulumi.gcp.accesscontextmanager.kotlin.EgressPolicyArgs.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
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.accesscontextmanager.EgressPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* This resource has been deprecated, please refer to ServicePerimeterEgressPolicy.
* To get more information about EgressPolicy, see:
* * [API documentation](https://cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#egresspolicy)
* ## Import
* EgressPolicy can be imported using any of these accepted formats:
* * `{{egress_policy_name}}/{{resource}}`
* When using the `pulumi import` command, EgressPolicy can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:accesscontextmanager/egressPolicy:EgressPolicy default {{egress_policy_name}}/{{resource}}
* ```
* @property egressPolicyName The name of the Service Perimeter to add this resource to.
* - - -
* @property resource A GCP resource that is inside of the service perimeter.
*/
public data class EgressPolicyArgs(
public val egressPolicyName: Output? = null,
public val resource: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.accesscontextmanager.EgressPolicyArgs =
com.pulumi.gcp.accesscontextmanager.EgressPolicyArgs.builder()
.egressPolicyName(egressPolicyName?.applyValue({ args0 -> args0 }))
.resource(resource?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EgressPolicyArgs].
*/
@PulumiTagMarker
public class EgressPolicyArgsBuilder internal constructor() {
private var egressPolicyName: Output? = null
private var resource: Output? = null
/**
* @param value The name of the Service Perimeter to add this resource to.
* - - -
*/
@JvmName("oqxnollvmivpxote")
public suspend fun egressPolicyName(`value`: Output) {
this.egressPolicyName = value
}
/**
* @param value A GCP resource that is inside of the service perimeter.
*/
@JvmName("rmijlnyxcipfhefi")
public suspend fun resource(`value`: Output) {
this.resource = value
}
/**
* @param value The name of the Service Perimeter to add this resource to.
* - - -
*/
@JvmName("gcykpaselmvoajal")
public suspend fun egressPolicyName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.egressPolicyName = mapped
}
/**
* @param value A GCP resource that is inside of the service perimeter.
*/
@JvmName("paqpsuajsiaqxoop")
public suspend fun resource(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resource = mapped
}
internal fun build(): EgressPolicyArgs = EgressPolicyArgs(
egressPolicyName = egressPolicyName,
resource = resource,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy