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.deviceupdate.kotlin.AccountArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.deviceupdate.kotlin
import com.pulumi.azurenative.deviceupdate.AccountArgs.builder
import com.pulumi.azurenative.deviceupdate.kotlin.enums.PublicNetworkAccess
import com.pulumi.azurenative.deviceupdate.kotlin.enums.SKU
import com.pulumi.azurenative.deviceupdate.kotlin.inputs.EncryptionArgs
import com.pulumi.azurenative.deviceupdate.kotlin.inputs.EncryptionArgsBuilder
import com.pulumi.azurenative.deviceupdate.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.deviceupdate.kotlin.inputs.ManagedServiceIdentityArgsBuilder
import com.pulumi.azurenative.deviceupdate.kotlin.inputs.PrivateEndpointConnectionArgs
import com.pulumi.azurenative.deviceupdate.kotlin.inputs.PrivateEndpointConnectionArgsBuilder
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.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Device Update account details.
* Azure REST API version: 2023-07-01. Prior API version in Azure Native 1.x: 2020-03-01-preview.
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:deviceupdate:Account contoso /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}
* ```
* @property accountName Account name.
* @property encryption CMK encryption at rest properties
* @property identity The type of identity used for the resource.
* @property location The geo-location where the resource lives
* @property privateEndpointConnections List of private endpoint connections associated with the account.
* These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
* @property publicNetworkAccess Whether or not public network access is allowed for the account.
* @property resourceGroupName The resource group name.
* @property sku Device Update Sku
* @property tags Resource tags.
*/
public data class AccountArgs(
public val accountName: Output? = null,
public val encryption: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val privateEndpointConnections: Output>? = null,
public val publicNetworkAccess: Output>? = null,
public val resourceGroupName: Output? = null,
public val sku: Output>? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.deviceupdate.AccountArgs =
com.pulumi.azurenative.deviceupdate.AccountArgs.builder()
.accountName(accountName?.applyValue({ args0 -> args0 }))
.encryption(encryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location?.applyValue({ args0 -> args0 }))
.privateEndpointConnections(
privateEndpointConnections?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.publicNetworkAccess(
publicNetworkAccess?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.sku(
sku?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [AccountArgs].
*/
@PulumiTagMarker
public class AccountArgsBuilder internal constructor() {
private var accountName: Output? = null
private var encryption: Output? = null
private var identity: Output? = null
private var location: Output? = null
private var privateEndpointConnections: Output>? = null
private var publicNetworkAccess: Output>? = null
private var resourceGroupName: Output? = null
private var sku: Output>? = null
private var tags: Output>? = null
/**
* @param value Account name.
*/
@JvmName("mctotwjqoevfafet")
public suspend fun accountName(`value`: Output) {
this.accountName = value
}
/**
* @param value CMK encryption at rest properties
*/
@JvmName("utgjnpfhnrceoihv")
public suspend fun encryption(`value`: Output) {
this.encryption = value
}
/**
* @param value The type of identity used for the resource.
*/
@JvmName("diqdkiuteuhsfsis")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("ixokpnkombmujsjl")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value List of private endpoint connections associated with the account.
* These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
*/
@JvmName("jognthqitauubasw")
public suspend fun privateEndpointConnections(`value`: Output>) {
this.privateEndpointConnections = value
}
@JvmName("jpdbstaswdnxblyg")
public suspend fun privateEndpointConnections(vararg values: Output) {
this.privateEndpointConnections = Output.all(values.asList())
}
/**
* @param values List of private endpoint connections associated with the account.
* These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
*/
@JvmName("cakcseeunqjujftf")
public suspend fun privateEndpointConnections(values: List>) {
this.privateEndpointConnections = Output.all(values)
}
/**
* @param value Whether or not public network access is allowed for the account.
*/
@JvmName("dtswylcmoloxmcce")
public suspend fun publicNetworkAccess(`value`: Output>) {
this.publicNetworkAccess = value
}
/**
* @param value The resource group name.
*/
@JvmName("hhtudgivrncoesvs")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Device Update Sku
*/
@JvmName("vnhaactjvdopabjg")
public suspend fun sku(`value`: Output>) {
this.sku = value
}
/**
* @param value Resource tags.
*/
@JvmName("wpdhmswtugxktaff")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Account name.
*/
@JvmName("mxhrkwmvhjugrusu")
public suspend fun accountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountName = mapped
}
/**
* @param value CMK encryption at rest properties
*/
@JvmName("khnuwnubqdrmsgxa")
public suspend fun encryption(`value`: EncryptionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encryption = mapped
}
/**
* @param argument CMK encryption at rest properties
*/
@JvmName("flbmpcfrwynekwmo")
public suspend fun encryption(argument: suspend EncryptionArgsBuilder.() -> Unit) {
val toBeMapped = EncryptionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.encryption = mapped
}
/**
* @param value The type of identity used for the resource.
*/
@JvmName("sdxjguvklavxkxwp")
public suspend fun identity(`value`: ManagedServiceIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument The type of identity used for the resource.
*/
@JvmName("hodelovfndgkjeph")
public suspend fun identity(argument: suspend ManagedServiceIdentityArgsBuilder.() -> Unit) {
val toBeMapped = ManagedServiceIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("pqptpathtdlhysfn")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value List of private endpoint connections associated with the account.
* These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
*/
@JvmName("ayxbejbhnmjvvgwm")
public suspend fun privateEndpointConnections(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateEndpointConnections = mapped
}
/**
* @param argument List of private endpoint connections associated with the account.
* These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
*/
@JvmName("aguynwovthvoqnnd")
public suspend fun privateEndpointConnections(argument: List Unit>) {
val toBeMapped = argument.toList().map {
PrivateEndpointConnectionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.privateEndpointConnections = mapped
}
/**
* @param argument List of private endpoint connections associated with the account.
* These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
*/
@JvmName("gdvjfhftfcndvnrw")
public suspend fun privateEndpointConnections(vararg argument: suspend PrivateEndpointConnectionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
PrivateEndpointConnectionArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.privateEndpointConnections = mapped
}
/**
* @param argument List of private endpoint connections associated with the account.
* These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
*/
@JvmName("mpgshetmpuoqjcet")
public suspend fun privateEndpointConnections(argument: suspend PrivateEndpointConnectionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
PrivateEndpointConnectionArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.privateEndpointConnections = mapped
}
/**
* @param values List of private endpoint connections associated with the account.
* These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
*/
@JvmName("tbjwmcgkpqffjudr")
public suspend fun privateEndpointConnections(vararg values: PrivateEndpointConnectionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.privateEndpointConnections = mapped
}
/**
* @param value Whether or not public network access is allowed for the account.
*/
@JvmName("aegcybrliijcqway")
public suspend fun publicNetworkAccess(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value Whether or not public network access is allowed for the account.
*/
@JvmName("yaccgrywebicretj")
public fun publicNetworkAccess(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value Whether or not public network access is allowed for the account.
*/
@JvmName("yydbqkjrmcbhlbdh")
public fun publicNetworkAccess(`value`: PublicNetworkAccess) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value The resource group name.
*/
@JvmName("yertaetbvgmdklry")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Device Update Sku
*/
@JvmName("ufkrvmbwmukdmpbk")
public suspend fun sku(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param value Device Update Sku
*/
@JvmName("cvnklkpsxtphvciw")
public fun sku(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param value Device Update Sku
*/
@JvmName("qcggmonjwaumwmhw")
public fun sku(`value`: SKU) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("fbagbqryrjqwiltn")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("fdvdhmluacgesfhp")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): AccountArgs = AccountArgs(
accountName = accountName,
encryption = encryption,
identity = identity,
location = location,
privateEndpointConnections = privateEndpointConnections,
publicNetworkAccess = publicNetworkAccess,
resourceGroupName = resourceGroupName,
sku = sku,
tags = tags,
)
}