com.pulumi.gcp.folder.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.folder.kotlin.inputs
import com.pulumi.gcp.folder.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 folder The resource name of the folder to set the policy for. Its format is folders/{folder_id}.
*/
public data class GetOrganizationPolicyPlainArgs(
public val constraint: String,
public val folder: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.folder.inputs.GetOrganizationPolicyPlainArgs =
com.pulumi.gcp.folder.inputs.GetOrganizationPolicyPlainArgs.builder()
.constraint(constraint.let({ args0 -> args0 }))
.folder(folder.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetOrganizationPolicyPlainArgs].
*/
@PulumiTagMarker
public class GetOrganizationPolicyPlainArgsBuilder internal constructor() {
private var constraint: String? = null
private var folder: 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("hyuxsmleklwlqhil")
public suspend fun constraint(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.constraint = mapped
}
/**
* @param value The resource name of the folder to set the policy for. Its format is folders/{folder_id}.
*/
@JvmName("slhloqhjyhsnpekt")
public suspend fun folder(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.folder = mapped
}
internal fun build(): GetOrganizationPolicyPlainArgs = GetOrganizationPolicyPlainArgs(
constraint = constraint ?: throw PulumiNullFieldException("constraint"),
folder = folder ?: throw PulumiNullFieldException("folder"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy