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.datacatalog.kotlin.ADCCatalogArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datacatalog.kotlin
import com.pulumi.azurenative.datacatalog.ADCCatalogArgs.builder
import com.pulumi.azurenative.datacatalog.kotlin.enums.SkuType
import com.pulumi.azurenative.datacatalog.kotlin.inputs.PrincipalsArgs
import com.pulumi.azurenative.datacatalog.kotlin.inputs.PrincipalsArgsBuilder
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.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Azure Data Catalog.
* Azure REST API version: 2016-03-30. Prior API version in Azure Native 1.x: 2016-03-30.
* ## Example Usage
* ### Create Azure Data Catalog Service
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var adcCatalog = new AzureNative.DataCatalog.ADCCatalog("adcCatalog", new()
* {
* Admins = new[]
* {
* new AzureNative.DataCatalog.Inputs.PrincipalsArgs
* {
* ObjectId = "99999999-9999-9999-999999999999",
* Upn = "[email protected] ",
* },
* },
* CatalogName = "exampleCatalog",
* EnableAutomaticUnitAdjustment = false,
* Location = "North US",
* ResourceGroupName = "exampleResourceGroup",
* Sku = AzureNative.DataCatalog.SkuType.Standard,
* Tags =
* {
* { "mykey", "myvalue" },
* { "mykey2", "myvalue2" },
* },
* Units = 1,
* Users = new[]
* {
* new AzureNative.DataCatalog.Inputs.PrincipalsArgs
* {
* ObjectId = "99999999-9999-9999-999999999999",
* Upn = "[email protected] ",
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* datacatalog "github.com/pulumi/pulumi-azure-native-sdk/datacatalog/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datacatalog.NewADCCatalog(ctx, "adcCatalog", &datacatalog.ADCCatalogArgs{
* Admins: datacatalog.PrincipalsArray{
* &datacatalog.PrincipalsArgs{
* ObjectId: pulumi.String("99999999-9999-9999-999999999999"),
* Upn: pulumi.String("[email protected] "),
* },
* },
* CatalogName: pulumi.String("exampleCatalog"),
* EnableAutomaticUnitAdjustment: pulumi.Bool(false),
* Location: pulumi.String("North US"),
* ResourceGroupName: pulumi.String("exampleResourceGroup"),
* Sku: pulumi.String(datacatalog.SkuTypeStandard),
* Tags: pulumi.StringMap{
* "mykey": pulumi.String("myvalue"),
* "mykey2": pulumi.String("myvalue2"),
* },
* Units: pulumi.Int(1),
* Users: datacatalog.PrincipalsArray{
* &datacatalog.PrincipalsArgs{
* ObjectId: pulumi.String("99999999-9999-9999-999999999999"),
* Upn: pulumi.String("[email protected] "),
* },
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datacatalog.ADCCatalog;
* import com.pulumi.azurenative.datacatalog.ADCCatalogArgs;
* import com.pulumi.azurenative.datacatalog.inputs.PrincipalsArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var adcCatalog = new ADCCatalog("adcCatalog", ADCCatalogArgs.builder()
* .admins(PrincipalsArgs.builder()
* .objectId("99999999-9999-9999-999999999999")
* .upn("[email protected] ")
* .build())
* .catalogName("exampleCatalog")
* .enableAutomaticUnitAdjustment(false)
* .location("North US")
* .resourceGroupName("exampleResourceGroup")
* .sku("Standard")
* .tags(Map.ofEntries(
* Map.entry("mykey", "myvalue"),
* Map.entry("mykey2", "myvalue2")
* ))
* .units(1)
* .users(PrincipalsArgs.builder()
* .objectId("99999999-9999-9999-999999999999")
* .upn("[email protected] ")
* .build())
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:datacatalog:ADCCatalog exampleCatalog /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataCatalog/catalogs/{catalogName}
* ```
* @property admins Azure data catalog admin list.
* @property catalogName The name of the data catalog in the specified subscription and resource group.
* @property enableAutomaticUnitAdjustment Automatic unit adjustment enabled or not.
* @property location Resource location
* @property resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
* @property sku Azure data catalog SKU.
* @property successfullyProvisioned Azure data catalog provision status.
* @property tags Resource tags
* @property units Azure data catalog units.
* @property users Azure data catalog user list.
*/
public data class ADCCatalogArgs(
public val admins: Output>? = null,
public val catalogName: Output? = null,
public val enableAutomaticUnitAdjustment: Output? = null,
public val location: Output? = null,
public val resourceGroupName: Output? = null,
public val sku: Output>? = null,
public val successfullyProvisioned: Output? = null,
public val tags: Output>? = null,
public val units: Output? = null,
public val users: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datacatalog.ADCCatalogArgs =
com.pulumi.azurenative.datacatalog.ADCCatalogArgs.builder()
.admins(admins?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.catalogName(catalogName?.applyValue({ args0 -> args0 }))
.enableAutomaticUnitAdjustment(enableAutomaticUnitAdjustment?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.sku(
sku?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.successfullyProvisioned(successfullyProvisioned?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.units(units?.applyValue({ args0 -> args0 }))
.users(
users?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ADCCatalogArgs].
*/
@PulumiTagMarker
public class ADCCatalogArgsBuilder internal constructor() {
private var admins: Output>? = null
private var catalogName: Output? = null
private var enableAutomaticUnitAdjustment: Output? = null
private var location: Output? = null
private var resourceGroupName: Output? = null
private var sku: Output>? = null
private var successfullyProvisioned: Output? = null
private var tags: Output>? = null
private var units: Output? = null
private var users: Output>? = null
/**
* @param value Azure data catalog admin list.
*/
@JvmName("wrxqgheawhnxtfsw")
public suspend fun admins(`value`: Output>) {
this.admins = value
}
@JvmName("jeffbpokkdrsxhju")
public suspend fun admins(vararg values: Output) {
this.admins = Output.all(values.asList())
}
/**
* @param values Azure data catalog admin list.
*/
@JvmName("qjjwhfdjckpqcbfq")
public suspend fun admins(values: List>) {
this.admins = Output.all(values)
}
/**
* @param value The name of the data catalog in the specified subscription and resource group.
*/
@JvmName("gvceythqjxrejrbh")
public suspend fun catalogName(`value`: Output) {
this.catalogName = value
}
/**
* @param value Automatic unit adjustment enabled or not.
*/
@JvmName("kbujxqnmjwnfrljr")
public suspend fun enableAutomaticUnitAdjustment(`value`: Output) {
this.enableAutomaticUnitAdjustment = value
}
/**
* @param value Resource location
*/
@JvmName("ieildadjtentsweo")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The name of the resource group within the user's subscription. The name is case insensitive.
*/
@JvmName("fhrdwkfnxopeyguo")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Azure data catalog SKU.
*/
@JvmName("mybyupxfsijcwhyv")
public suspend fun sku(`value`: Output>) {
this.sku = value
}
/**
* @param value Azure data catalog provision status.
*/
@JvmName("xbrnbqrxuayrkhgx")
public suspend fun successfullyProvisioned(`value`: Output) {
this.successfullyProvisioned = value
}
/**
* @param value Resource tags
*/
@JvmName("oxsisewsodxtlgtw")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Azure data catalog units.
*/
@JvmName("vdgtjixuuosjbait")
public suspend fun units(`value`: Output) {
this.units = value
}
/**
* @param value Azure data catalog user list.
*/
@JvmName("wjykoqlutniuyntp")
public suspend fun users(`value`: Output>) {
this.users = value
}
@JvmName("uljrohsojlmfuqur")
public suspend fun users(vararg values: Output) {
this.users = Output.all(values.asList())
}
/**
* @param values Azure data catalog user list.
*/
@JvmName("vvhjgxlosbrhqynq")
public suspend fun users(values: List>) {
this.users = Output.all(values)
}
/**
* @param value Azure data catalog admin list.
*/
@JvmName("ymhxlmfwhdjlphbp")
public suspend fun admins(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.admins = mapped
}
/**
* @param argument Azure data catalog admin list.
*/
@JvmName("hoqljkqbjgjsiwjo")
public suspend fun admins(argument: List Unit>) {
val toBeMapped = argument.toList().map { PrincipalsArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.admins = mapped
}
/**
* @param argument Azure data catalog admin list.
*/
@JvmName("xrraeyxudjysgmgx")
public suspend fun admins(vararg argument: suspend PrincipalsArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { PrincipalsArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.admins = mapped
}
/**
* @param argument Azure data catalog admin list.
*/
@JvmName("ssymiifriaesljsr")
public suspend fun admins(argument: suspend PrincipalsArgsBuilder.() -> Unit) {
val toBeMapped = listOf(PrincipalsArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.admins = mapped
}
/**
* @param values Azure data catalog admin list.
*/
@JvmName("vlrvlekgwqogjgpc")
public suspend fun admins(vararg values: PrincipalsArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.admins = mapped
}
/**
* @param value The name of the data catalog in the specified subscription and resource group.
*/
@JvmName("usmslnxfovjpyltj")
public suspend fun catalogName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.catalogName = mapped
}
/**
* @param value Automatic unit adjustment enabled or not.
*/
@JvmName("habmemrvwuydticp")
public suspend fun enableAutomaticUnitAdjustment(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableAutomaticUnitAdjustment = mapped
}
/**
* @param value Resource location
*/
@JvmName("ocykcbpdmgabakpk")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The name of the resource group within the user's subscription. The name is case insensitive.
*/
@JvmName("rkgoaxjevvhdsjan")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Azure data catalog SKU.
*/
@JvmName("ufhlsiuwiviomvgn")
public suspend fun sku(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param value Azure data catalog SKU.
*/
@JvmName("fiqraxnuvwrhcslo")
public fun sku(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param value Azure data catalog SKU.
*/
@JvmName("tmeqlxbgoihdrtgd")
public fun sku(`value`: SkuType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param value Azure data catalog provision status.
*/
@JvmName("wqnwtkcsojwoehtm")
public suspend fun successfullyProvisioned(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.successfullyProvisioned = mapped
}
/**
* @param value Resource tags
*/
@JvmName("evrmjxoacoqvsele")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags
*/
@JvmName("hbbardwtukgfmevc")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Azure data catalog units.
*/
@JvmName("oqeksyngfconginj")
public suspend fun units(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.units = mapped
}
/**
* @param value Azure data catalog user list.
*/
@JvmName("lrgtpcifjmsqjefl")
public suspend fun users(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.users = mapped
}
/**
* @param argument Azure data catalog user list.
*/
@JvmName("tdhhtiqkmuutsavr")
public suspend fun users(argument: List Unit>) {
val toBeMapped = argument.toList().map { PrincipalsArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.users = mapped
}
/**
* @param argument Azure data catalog user list.
*/
@JvmName("mgxtrobohaeyanjv")
public suspend fun users(vararg argument: suspend PrincipalsArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map { PrincipalsArgsBuilder().applySuspend { it() }.build() }
val mapped = of(toBeMapped)
this.users = mapped
}
/**
* @param argument Azure data catalog user list.
*/
@JvmName("cjsfhmerxnagldrv")
public suspend fun users(argument: suspend PrincipalsArgsBuilder.() -> Unit) {
val toBeMapped = listOf(PrincipalsArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.users = mapped
}
/**
* @param values Azure data catalog user list.
*/
@JvmName("yrjmjcfhhqgbsnbl")
public suspend fun users(vararg values: PrincipalsArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.users = mapped
}
internal fun build(): ADCCatalogArgs = ADCCatalogArgs(
admins = admins,
catalogName = catalogName,
enableAutomaticUnitAdjustment = enableAutomaticUnitAdjustment,
location = location,
resourceGroupName = resourceGroupName,
sku = sku,
successfullyProvisioned = successfullyProvisioned,
tags = tags,
units = units,
users = users,
)
}