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

com.pulumi.gcp.organizations.kotlin.outputs.GetIAMPolicyBinding.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.organizations.kotlin.outputs

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

/**
 *
 * @property condition An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding. Structure is documented below.
 * @property members An array of identities that will be granted the privilege in the `role`. For more details on format and restrictions see https://cloud.google.com/billing/reference/rest/v1/Policy#Binding
 * Each entry can have one of the following values:
 * * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. Some resources **don't** support this identity.
 * * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. Some resources **don't** support this identity.
 * * **user:{emailid}**: An email address that represents a specific Google account. For example, [email protected].
 * * **serviceAccount:{emailid}**: An email address that represents a service account. For example, [email protected].
 * * **group:{emailid}**: An email address that represents a Google group. For example, [email protected].
 * * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
 * @property role The role/permission that will be granted to the members.
 * See the [IAM Roles](https://cloud.google.com/compute/docs/access/iam) documentation for a complete list of roles.
 * Note that custom roles must be of the format `[projects|organizations]/{parent-name}/roles/{role-name}`.
 */
public data class GetIAMPolicyBinding(
    public val condition: GetIAMPolicyBindingCondition? = null,
    public val members: List,
    public val role: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.organizations.outputs.GetIAMPolicyBinding): GetIAMPolicyBinding = GetIAMPolicyBinding(
            condition = javaType.condition().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.organizations.kotlin.outputs.GetIAMPolicyBindingCondition.Companion.toKotlin(args0)
                })
            }).orElse(null),
            members = javaType.members().map({ args0 -> args0 }),
            role = javaType.role(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy