com.pulumi.azurenative.insights.kotlin.MyWorkbook.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin
import com.pulumi.azurenative.insights.kotlin.outputs.MyWorkbookManagedIdentityResponse
import com.pulumi.azurenative.insights.kotlin.outputs.SystemDataResponse
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.insights.kotlin.outputs.MyWorkbookManagedIdentityResponse.Companion.toKotlin as myWorkbookManagedIdentityResponseToKotlin
import com.pulumi.azurenative.insights.kotlin.outputs.SystemDataResponse.Companion.toKotlin as systemDataResponseToKotlin
/**
* Builder for [MyWorkbook].
*/
@PulumiTagMarker
public class MyWorkbookResourceBuilder internal constructor() {
public var name: String? = null
public var args: MyWorkbookArgs = MyWorkbookArgs()
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 MyWorkbookArgsBuilder.() -> Unit) {
val builder = MyWorkbookArgsBuilder()
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(): MyWorkbook {
val builtJavaResource = com.pulumi.azurenative.insights.MyWorkbook(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return MyWorkbook(builtJavaResource)
}
}
/**
* An Application Insights private workbook definition.
* Azure REST API version: 2021-03-08. Prior API version in Azure Native 1.x: 2020-10-20.
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:insights:MyWorkbook deadb33f-8bee-4d3b-a059-9be8dac93960 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}
* ```
*/
public class MyWorkbook internal constructor(
override val javaResource: com.pulumi.azurenative.insights.MyWorkbook,
) : KotlinCustomResource(javaResource, MyWorkbookMapper) {
/**
* Workbook category, as defined by the user at creation time.
*/
public val category: Output
get() = javaResource.category().applyValue({ args0 -> args0 })
/**
* The user-defined name of the private workbook.
*/
public val displayName: Output
get() = javaResource.displayName().applyValue({ args0 -> args0 })
/**
* Resource etag
*/
public val etag: Output