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

com.pulumi.azure.batch.kotlin.outputs.PoolCertificate.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.batch.kotlin.outputs

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

/**
 *
 * @property id The ID of the Batch Certificate to install on the Batch Pool, which must be inside the same Batch Account.
 * @property storeLocation The location of the certificate store on the compute node into which to install the certificate. Possible values are `CurrentUser` or `LocalMachine`.
 * > **NOTE:** This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable `AZ_BATCH_CERTIFICATES_DIR` is supplied to the task to query for this location. For certificates with visibility of `remoteUser`, a 'certs' directory is created in the user's home directory (e.g., `/home/{user-name}/certs`) and certificates are placed in that directory.
 * @property storeName The name of the certificate store on the compute node into which to install the certificate. This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). Common store names include: `My`, `Root`, `CA`, `Trust`, `Disallowed`, `TrustedPeople`, `TrustedPublisher`, `AuthRoot`, `AddressBook`, but any custom store name can also be used.
 * @property visibilities Which user accounts on the compute node should have access to the private data of the certificate. Possible values are `StartTask`, `Task` and `RemoteUser`.
 */
public data class PoolCertificate(
    public val id: String,
    public val storeLocation: String,
    public val storeName: String? = null,
    public val visibilities: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.batch.outputs.PoolCertificate): PoolCertificate =
            PoolCertificate(
                id = javaType.id(),
                storeLocation = javaType.storeLocation(),
                storeName = javaType.storeName().map({ args0 -> args0 }).orElse(null),
                visibilities = javaType.visibilities().map({ args0 -> args0 }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy