com.pulumi.gcp.projects.kotlin.inputs.GetOrganizationPolicyPlainArgs.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.projects.kotlin.inputs
import com.pulumi.gcp.projects.inputs.GetOrganizationPolicyPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getOrganizationPolicy.
* @property constraint (Required) The name of the Constraint the Policy is configuring, for example, `serviceuser.services`. Check out the [complete list of available constraints](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-constraints#available_constraints).
* @property project The project ID.
*/
public data class GetOrganizationPolicyPlainArgs(
public val constraint: String,
public val project: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.projects.inputs.GetOrganizationPolicyPlainArgs =
com.pulumi.gcp.projects.inputs.GetOrganizationPolicyPlainArgs.builder()
.constraint(constraint.let({ args0 -> args0 }))
.project(project.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetOrganizationPolicyPlainArgs].
*/
@PulumiTagMarker
public class GetOrganizationPolicyPlainArgsBuilder internal constructor() {
private var constraint: String? = null
private var project: String? = null
/**
* @param value (Required) The name of the Constraint the Policy is configuring, for example, `serviceuser.services`. Check out the [complete list of available constraints](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-constraints#available_constraints).
*/
@JvmName("erofqenvmncbwgcq")
public suspend fun constraint(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.constraint = mapped
}
/**
* @param value The project ID.
*/
@JvmName("tuncufghefyqesoq")
public suspend fun project(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.project = mapped
}
internal fun build(): GetOrganizationPolicyPlainArgs = GetOrganizationPolicyPlainArgs(
constraint = constraint ?: throw PulumiNullFieldException("constraint"),
project = project ?: throw PulumiNullFieldException("project"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy