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

com.pulumi.azurenative.intune.kotlin.IoMAMPolicyByName.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.intune.kotlin

import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map

/**
 * Builder for [IoMAMPolicyByName].
 */
@PulumiTagMarker
public class IoMAMPolicyByNameResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: IoMAMPolicyByNameArgs = IoMAMPolicyByNameArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend IoMAMPolicyByNameArgsBuilder.() -> Unit) {
        val builder = IoMAMPolicyByNameArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): IoMAMPolicyByName {
        val builtJavaResource = com.pulumi.azurenative.intune.IoMAMPolicyByName(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return IoMAMPolicyByName(builtJavaResource)
    }
}

/**
 * iOS Policy entity for Intune MAM.
 * Azure REST API version: 2015-01-14-preview. Prior API version in Azure Native 1.x: 2015-01-14-preview.
 * Other available API versions: 2015-01-14-privatepreview.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:intune:IoMAMPolicyByName myresource1 /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}
 * ```
 */
public class IoMAMPolicyByName internal constructor(
    override val javaResource: com.pulumi.azurenative.intune.IoMAMPolicyByName,
) : KotlinCustomResource(javaResource, IoMAMPolicyByNameMapper) {
    public val accessRecheckOfflineTimeout: Output?
        get() = javaResource.accessRecheckOfflineTimeout().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val accessRecheckOnlineTimeout: Output?
        get() = javaResource.accessRecheckOnlineTimeout().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val appSharingFromLevel: Output?
        get() = javaResource.appSharingFromLevel().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val appSharingToLevel: Output?
        get() = javaResource.appSharingToLevel().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val authentication: Output?
        get() = javaResource.authentication().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val clipboardSharingLevel: Output?
        get() = javaResource.clipboardSharingLevel().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val dataBackup: Output?
        get() = javaResource.dataBackup().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val description: Output?
        get() = javaResource.description().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val deviceCompliance: Output?
        get() = javaResource.deviceCompliance().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val fileEncryptionLevel: Output?
        get() = javaResource.fileEncryptionLevel().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val fileSharingSaveAs: Output?
        get() = javaResource.fileSharingSaveAs().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val friendlyName: Output
        get() = javaResource.friendlyName().applyValue({ args0 -> args0 })

    public val groupStatus: Output
        get() = javaResource.groupStatus().applyValue({ args0 -> args0 })

    public val lastModifiedTime: Output
        get() = javaResource.lastModifiedTime().applyValue({ args0 -> args0 })

    /**
     * Resource Location
     */
    public val location: Output?
        get() = javaResource.location().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })

    public val managedBrowser: Output?
        get() = javaResource.managedBrowser().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Resource name
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    public val numOfApps: Output
        get() = javaResource.numOfApps().applyValue({ args0 -> args0 })

    public val offlineWipeTimeout: Output?
        get() = javaResource.offlineWipeTimeout().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val pin: Output?
        get() = javaResource.pin().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })

    public val pinNumRetry: Output?
        get() = javaResource.pinNumRetry().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Resource Tags
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }).orElse(null)
        })

    public val touchId: Output?
        get() = javaResource.touchId().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })

    /**
     * Resource type
     */
    public val type: Output
        get() = javaResource.type().applyValue({ args0 -> args0 })
}

public object IoMAMPolicyByNameMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.azurenative.intune.IoMAMPolicyByName::class == javaResource::class

    override fun map(javaResource: Resource): IoMAMPolicyByName = IoMAMPolicyByName(
        javaResource as
            com.pulumi.azurenative.intune.IoMAMPolicyByName,
    )
}

/**
 * @see [IoMAMPolicyByName].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [IoMAMPolicyByName].
 */
public suspend fun ioMAMPolicyByName(
    name: String,
    block: suspend IoMAMPolicyByNameResourceBuilder.() -> Unit,
): IoMAMPolicyByName {
    val builder = IoMAMPolicyByNameResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [IoMAMPolicyByName].
 * @param name The _unique_ name of the resulting resource.
 */
public fun ioMAMPolicyByName(name: String): IoMAMPolicyByName {
    val builder = IoMAMPolicyByNameResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy