![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.labservices.kotlin.EnvironmentSetting.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.labservices.kotlin
import com.pulumi.azurenative.labservices.kotlin.outputs.LatestOperationResultResponse
import com.pulumi.azurenative.labservices.kotlin.outputs.ResourceSettingsResponse
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.azurenative.labservices.kotlin.outputs.LatestOperationResultResponse.Companion.toKotlin as latestOperationResultResponseToKotlin
import com.pulumi.azurenative.labservices.kotlin.outputs.ResourceSettingsResponse.Companion.toKotlin as resourceSettingsResponseToKotlin
/**
* Builder for [EnvironmentSetting].
*/
@PulumiTagMarker
public class EnvironmentSettingResourceBuilder internal constructor() {
public var name: String? = null
public var args: EnvironmentSettingArgs = EnvironmentSettingArgs()
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 EnvironmentSettingArgsBuilder.() -> Unit) {
val builder = EnvironmentSettingArgsBuilder()
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(): EnvironmentSetting {
val builtJavaResource =
com.pulumi.azurenative.labservices.EnvironmentSetting(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return EnvironmentSetting(builtJavaResource)
}
}
/**
* Represents settings of an environment, from which environment instances would be created
* Azure REST API version: 2018-10-15. Prior API version in Azure Native 1.x: 2018-10-15.
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:labservices:EnvironmentSetting myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}
* ```
*/
public class EnvironmentSetting internal constructor(
override val javaResource: com.pulumi.azurenative.labservices.EnvironmentSetting,
) : KotlinCustomResource(javaResource, EnvironmentSettingMapper) {
/**
* Describes the user's progress in configuring their environment setting
*/
public val configurationState: Output?
get() = javaResource.configurationState().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Describes the environment and its resource settings
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Time when the template VM was last changed.
*/
public val lastChanged: Output
get() = javaResource.lastChanged().applyValue({ args0 -> args0 })
/**
* Time when the template VM was last sent for publishing.
*/
public val lastPublished: Output
get() = javaResource.lastPublished().applyValue({ args0 -> args0 })
/**
* The details of the latest operation. ex: status, error
*/
public val latestOperationResult: Output
get() = javaResource.latestOperationResult().applyValue({ args0 ->
args0.let({ args0 ->
latestOperationResultResponseToKotlin(args0)
})
})
/**
* The location of the resource.
*/
public val location: Output?
get() = javaResource.location().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The name of the resource.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The provisioning status of the resource.
*/
public val provisioningState: Output?
get() = javaResource.provisioningState().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Describes the readiness of this environment setting
*/
public val publishingState: Output
get() = javaResource.publishingState().applyValue({ args0 -> args0 })
/**
* The resource specific settings
*/
public val resourceSettings: Output
get() = javaResource.resourceSettings().applyValue({ args0 ->
args0.let({ args0 ->
resourceSettingsResponseToKotlin(args0)
})
})
/**
* The tags of the resource.
*/
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy