All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
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.
com.pulumi.azurenative.insights.kotlin.MyWorkbookArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin
import com.pulumi.azurenative.insights.MyWorkbookArgs.builder
import com.pulumi.azurenative.insights.kotlin.enums.Kind
import com.pulumi.azurenative.insights.kotlin.inputs.MyWorkbookManagedIdentityArgs
import com.pulumi.azurenative.insights.kotlin.inputs.MyWorkbookManagedIdentityArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* 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}
* ```
* @property category Workbook category, as defined by the user at creation time.
* @property displayName The user-defined name of the private workbook.
* @property id Azure resource Id
* @property identity Identity used for BYOS
* @property kind The kind of workbook. Choices are user and shared.
* @property location Resource location
* @property name Azure resource name
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property resourceName The name of the Application Insights component resource.
* @property serializedData Configuration of this particular private workbook. Configuration data is a string containing valid JSON
* @property sourceId Optional resourceId for a source resource.
* @property storageUri BYOS Storage Account URI
* @property tags Resource tags
* @property type Azure resource type
* @property version This instance's version of the data model. This can change as new features are added that can be marked private workbook.
*/
public data class MyWorkbookArgs(
public val category: Output? = null,
public val displayName: Output? = null,
public val id: Output? = null,
public val identity: Output? = null,
public val kind: Output>? = null,
public val location: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
public val resourceName: Output? = null,
public val serializedData: Output? = null,
public val sourceId: Output? = null,
public val storageUri: Output? = null,
public val tags: Output>? = null,
public val type: Output? = null,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.MyWorkbookArgs =
com.pulumi.azurenative.insights.MyWorkbookArgs.builder()
.category(category?.applyValue({ args0 -> args0 }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.id(id?.applyValue({ args0 -> args0 }))
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.kind(
kind?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.resourceName(resourceName?.applyValue({ args0 -> args0 }))
.serializedData(serializedData?.applyValue({ args0 -> args0 }))
.sourceId(sourceId?.applyValue({ args0 -> args0 }))
.storageUri(storageUri?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.type(type?.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MyWorkbookArgs].
*/
@PulumiTagMarker
public class MyWorkbookArgsBuilder internal constructor() {
private var category: Output? = null
private var displayName: Output? = null
private var id: Output? = null
private var identity: Output? = null
private var kind: Output>? = null
private var location: Output? = null
private var name: Output? = null
private var resourceGroupName: Output? = null
private var resourceName: Output? = null
private var serializedData: Output? = null
private var sourceId: Output? = null
private var storageUri: Output? = null
private var tags: Output>? = null
private var type: Output? = null
private var version: Output? = null
/**
* @param value Workbook category, as defined by the user at creation time.
*/
@JvmName("ajbewiragcybfdfy")
public suspend fun category(`value`: Output) {
this.category = value
}
/**
* @param value The user-defined name of the private workbook.
*/
@JvmName("umaxgdxyctnmncvc")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value Azure resource Id
*/
@JvmName("bsgnpqvlfuiiifax")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value Identity used for BYOS
*/
@JvmName("twruccuifsludrcb")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The kind of workbook. Choices are user and shared.
*/
@JvmName("uewshqbffgbbkjna")
public suspend fun kind(`value`: Output>) {
this.kind = value
}
/**
* @param value Resource location
*/
@JvmName("mflqvlhsbsivwrse")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Azure resource name
*/
@JvmName("kqcopfsiarurocme")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("uhupdcnxjrqohdit")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the Application Insights component resource.
*/
@JvmName("ikvbubftpdfrddur")
public suspend fun resourceName(`value`: Output) {
this.resourceName = value
}
/**
* @param value Configuration of this particular private workbook. Configuration data is a string containing valid JSON
*/
@JvmName("byobhdtstirhjsau")
public suspend fun serializedData(`value`: Output) {
this.serializedData = value
}
/**
* @param value Optional resourceId for a source resource.
*/
@JvmName("yspnvpgtenglkjlc")
public suspend fun sourceId(`value`: Output) {
this.sourceId = value
}
/**
* @param value BYOS Storage Account URI
*/
@JvmName("mgqmjpubbgyipsba")
public suspend fun storageUri(`value`: Output) {
this.storageUri = value
}
/**
* @param value Resource tags
*/
@JvmName("rtpeaghcxkthehjn")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Azure resource type
*/
@JvmName("cdydgadwtooprbgc")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value This instance's version of the data model. This can change as new features are added that can be marked private workbook.
*/
@JvmName("pyyfjuwdogogdjyk")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value Workbook category, as defined by the user at creation time.
*/
@JvmName("lhiayrrtkpotsiyp")
public suspend fun category(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.category = mapped
}
/**
* @param value The user-defined name of the private workbook.
*/
@JvmName("snuvxdcuuufjpela")
public suspend fun displayName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.displayName = mapped
}
/**
* @param value Azure resource Id
*/
@JvmName("khndhwbthkelwtym")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value Identity used for BYOS
*/
@JvmName("ctsytkoomgqkstfo")
public suspend fun identity(`value`: MyWorkbookManagedIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument Identity used for BYOS
*/
@JvmName("qlvqdlifjybvecui")
public suspend fun identity(argument: suspend MyWorkbookManagedIdentityArgsBuilder.() -> Unit) {
val toBeMapped = MyWorkbookManagedIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The kind of workbook. Choices are user and shared.
*/
@JvmName("ffweafnsdwfycbng")
public suspend fun kind(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value The kind of workbook. Choices are user and shared.
*/
@JvmName("vemimpdhmsffwqaj")
public fun kind(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value The kind of workbook. Choices are user and shared.
*/
@JvmName("hytqvidmlmykiwdf")
public fun kind(`value`: Kind) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value Resource location
*/
@JvmName("isufpvnfqnwwpdjg")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Azure resource name
*/
@JvmName("vubghpvvfublpbpo")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("wwhlbaaeuajrrwad")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of the Application Insights component resource.
*/
@JvmName("lkjgiinrgrevjolx")
public suspend fun resourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceName = mapped
}
/**
* @param value Configuration of this particular private workbook. Configuration data is a string containing valid JSON
*/
@JvmName("areeapxjisgcledq")
public suspend fun serializedData(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serializedData = mapped
}
/**
* @param value Optional resourceId for a source resource.
*/
@JvmName("hdjyalfpmjfdtkmp")
public suspend fun sourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceId = mapped
}
/**
* @param value BYOS Storage Account URI
*/
@JvmName("olwgvfbunvypbxky")
public suspend fun storageUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageUri = mapped
}
/**
* @param value Resource tags
*/
@JvmName("tmyecrcmjgyesdtx")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags
*/
@JvmName("wdqamtfsahfqrvwk")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Azure resource type
*/
@JvmName("owfkbragtohaleti")
public suspend fun type(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value This instance's version of the data model. This can change as new features are added that can be marked private workbook.
*/
@JvmName("mmlgxxkmoorxrjyr")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): MyWorkbookArgs = MyWorkbookArgs(
category = category,
displayName = displayName,
id = id,
identity = identity,
kind = kind,
location = location,
name = name,
resourceGroupName = resourceGroupName,
resourceName = resourceName,
serializedData = serializedData,
sourceId = sourceId,
storageUri = storageUri,
tags = tags,
type = type,
version = version,
)
}