
com.pulumi.gcp.accesscontextmanager.kotlin.outputs.ServicePerimeterIngressPolicyIngressFromSource.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.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property accessLevel An `AccessLevel` resource name that allow resources within the
* `ServicePerimeters` to be accessed from the internet. `AccessLevels` listed
* must be in the same policy as this `ServicePerimeter`. Referencing a nonexistent
* `AccessLevel` will cause an error. If no `AccessLevel` names are listed,
* resources within the perimeter can only be accessed via Google Cloud calls
* with request origins within the perimeter.
* Example `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL.`
* If * is specified, then all IngressSources will be allowed.
* @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 and VPCs are allowed.
* Project format: `projects/{projectNumber}`
* VPC network format:
* `//compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME}`.
* 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 ServicePerimeterIngressPolicyIngressFromSource(
public val accessLevel: String? = null,
public val resource: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.accesscontextmanager.outputs.ServicePerimeterIngressPolicyIngressFromSource): ServicePerimeterIngressPolicyIngressFromSource =
ServicePerimeterIngressPolicyIngressFromSource(
accessLevel = javaType.accessLevel().map({ args0 -> args0 }).orElse(null),
resource = javaType.resource().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy