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

com.pulumi.gcp.accesscontextmanager.kotlin.outputs.ServicePerimetersServicePerimeterStatusEgressPolicyEgressTo.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 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 ServicePerimetersServicePerimeterStatusEgressPolicyEgressTo(
    public val externalResources: List? = null,
    public val operations: List? =
        null,
    public val resources: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.accesscontextmanager.outputs.ServicePerimetersServicePerimeterStatusEgressPolicyEgressTo): ServicePerimetersServicePerimeterStatusEgressPolicyEgressTo =
            ServicePerimetersServicePerimeterStatusEgressPolicyEgressTo(
                externalResources = javaType.externalResources().map({ args0 -> args0 }),
                operations = javaType.operations().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.accesscontextmanager.kotlin.outputs.ServicePerimetersServicePerimeterStatusEgressPolicyEgressToOperation.Companion.toKotlin(args0)
                    })
                }),
                resources = javaType.resources().map({ args0 -> args0 }),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy