Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.accesscontextmanager.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelConditionDevicePolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property allowedDeviceManagementLevels A list of allowed device management levels.
* An empty list allows all management levels.
* Each value may be one of: `MANAGEMENT_UNSPECIFIED`, `NONE`, `BASIC`, `COMPLETE`.
* @property allowedEncryptionStatuses A list of allowed encryptions statuses.
* An empty list allows all statuses.
* Each value may be one of: `ENCRYPTION_UNSPECIFIED`, `ENCRYPTION_UNSUPPORTED`, `UNENCRYPTED`, `ENCRYPTED`.
* @property osConstraints A list of allowed OS versions.
* An empty list allows all types and all versions.
* Structure is documented below.
* @property requireAdminApproval Whether the device needs to be approved by the customer admin.
* @property requireCorpOwned Whether the device needs to be corp owned.
* @property requireScreenLock Whether or not screenlock is required for the DevicePolicy
* to be true. Defaults to false.
*/
public data class AccessLevelConditionDevicePolicyArgs(
public val allowedDeviceManagementLevels: Output>? = null,
public val allowedEncryptionStatuses: Output>? = null,
public val osConstraints: Output>? = null,
public val requireAdminApproval: Output? = null,
public val requireCorpOwned: Output? = null,
public val requireScreenLock: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelConditionDevicePolicyArgs =
com.pulumi.gcp.accesscontextmanager.inputs.AccessLevelConditionDevicePolicyArgs.builder()
.allowedDeviceManagementLevels(
allowedDeviceManagementLevels?.applyValue({ args0 ->
args0.map({ args0 -> args0 })
}),
)
.allowedEncryptionStatuses(
allowedEncryptionStatuses?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
)
.osConstraints(
osConstraints?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.requireAdminApproval(requireAdminApproval?.applyValue({ args0 -> args0 }))
.requireCorpOwned(requireCorpOwned?.applyValue({ args0 -> args0 }))
.requireScreenLock(requireScreenLock?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccessLevelConditionDevicePolicyArgs].
*/
@PulumiTagMarker
public class AccessLevelConditionDevicePolicyArgsBuilder internal constructor() {
private var allowedDeviceManagementLevels: Output>? = null
private var allowedEncryptionStatuses: Output>? = null
private var osConstraints: Output>? = null
private var requireAdminApproval: Output? = null
private var requireCorpOwned: Output? = null
private var requireScreenLock: Output? = null
/**
* @param value A list of allowed device management levels.
* An empty list allows all management levels.
* Each value may be one of: `MANAGEMENT_UNSPECIFIED`, `NONE`, `BASIC`, `COMPLETE`.
*/
@JvmName("lrwfkyvcynfalduq")
public suspend fun allowedDeviceManagementLevels(`value`: Output>) {
this.allowedDeviceManagementLevels = value
}
@JvmName("nnfjuuwrtsjaighc")
public suspend fun allowedDeviceManagementLevels(vararg values: Output) {
this.allowedDeviceManagementLevels = Output.all(values.asList())
}
/**
* @param values A list of allowed device management levels.
* An empty list allows all management levels.
* Each value may be one of: `MANAGEMENT_UNSPECIFIED`, `NONE`, `BASIC`, `COMPLETE`.
*/
@JvmName("aigifstmsourxuha")
public suspend fun allowedDeviceManagementLevels(values: List