All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.accesscontextmanager.kotlin.outputs.ServicePerimeterEgressPolicyEgressFrom.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.accesscontextmanager.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property identities A list of identities that are allowed access through this `EgressPolicy`.
 * Should be in the format of an email address. The email address should
 * represent an individual user, service account, or Google group.
 * @property identityType Specifies the type of identities that are allowed access to outside the
 * perimeter. If left unspecified, then members of `identities` field will
 * be allowed access.
 * Possible values are: `ANY_IDENTITY`, `ANY_USER_ACCOUNT`, `ANY_SERVICE_ACCOUNT`.
 * @property sourceRestriction Whether to enforce traffic restrictions based on `sources` field. If the `sources` field is non-empty, then this field must be set to `SOURCE_RESTRICTION_ENABLED`.
 * Possible values are: `SOURCE_RESTRICTION_UNSPECIFIED`, `SOURCE_RESTRICTION_ENABLED`, `SOURCE_RESTRICTION_DISABLED`.
 * @property sources Sources that this EgressPolicy authorizes access from.
 * Structure is documented below.
 */
public data class ServicePerimeterEgressPolicyEgressFrom(
    public val identities: List? = null,
    public val identityType: String? = null,
    public val sourceRestriction: String? = null,
    public val sources: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.accesscontextmanager.outputs.ServicePerimeterEgressPolicyEgressFrom): ServicePerimeterEgressPolicyEgressFrom = ServicePerimeterEgressPolicyEgressFrom(
            identities = javaType.identities().map({ args0 -> args0 }),
            identityType = javaType.identityType().map({ args0 -> args0 }).orElse(null),
            sourceRestriction = javaType.sourceRestriction().map({ args0 -> args0 }).orElse(null),
            sources = javaType.sources().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.accesscontextmanager.kotlin.outputs.ServicePerimeterEgressPolicyEgressFromSource.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy