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.servicebus.kotlin.NamespaceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.servicebus.kotlin
import com.pulumi.azurenative.servicebus.NamespaceArgs.builder
import com.pulumi.azurenative.servicebus.kotlin.enums.PublicNetworkAccess
import com.pulumi.azurenative.servicebus.kotlin.enums.TlsVersion
import com.pulumi.azurenative.servicebus.kotlin.inputs.EncryptionArgs
import com.pulumi.azurenative.servicebus.kotlin.inputs.EncryptionArgsBuilder
import com.pulumi.azurenative.servicebus.kotlin.inputs.IdentityArgs
import com.pulumi.azurenative.servicebus.kotlin.inputs.IdentityArgsBuilder
import com.pulumi.azurenative.servicebus.kotlin.inputs.PrivateEndpointConnectionArgs
import com.pulumi.azurenative.servicebus.kotlin.inputs.PrivateEndpointConnectionArgsBuilder
import com.pulumi.azurenative.servicebus.kotlin.inputs.SBSkuArgs
import com.pulumi.azurenative.servicebus.kotlin.inputs.SBSkuArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Description of a namespace resource.
* Azure REST API version: 2022-01-01-preview. Prior API version in Azure Native 1.x: 2017-04-01.
* Other available API versions: 2015-08-01, 2022-10-01-preview, 2023-01-01-preview.
* ## Example Usage
* ### NameSpaceCreate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var @namespace = new AzureNative.ServiceBus.Namespace("namespace", new()
* {
* Location = "South Central US",
* NamespaceName = "sdk-Namespace2924",
* ResourceGroupName = "ArunMonocle",
* Sku = new AzureNative.ServiceBus.Inputs.SBSkuArgs
* {
* Name = AzureNative.ServiceBus.SkuName.Standard,
* Tier = AzureNative.ServiceBus.SkuTier.Standard,
* },
* Tags =
* {
* { "tag1", "value1" },
* { "tag2", "value2" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := servicebus.NewNamespace(ctx, "namespace", &servicebus.NamespaceArgs{
* Location: pulumi.String("South Central US"),
* NamespaceName: pulumi.String("sdk-Namespace2924"),
* ResourceGroupName: pulumi.String("ArunMonocle"),
* Sku: &servicebus.SBSkuArgs{
* Name: pulumi.String(servicebus.SkuNameStandard),
* Tier: pulumi.String(servicebus.SkuTierStandard),
* },
* Tags: pulumi.StringMap{
* "tag1": pulumi.String("value1"),
* "tag2": pulumi.String("value2"),
* },
* })
* 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.servicebus.Namespace;
* import com.pulumi.azurenative.servicebus.NamespaceArgs;
* import com.pulumi.azurenative.servicebus.inputs.SBSkuArgs;
* 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 namespace = new Namespace("namespace", NamespaceArgs.builder()
* .location("South Central US")
* .namespaceName("sdk-Namespace2924")
* .resourceGroupName("ArunMonocle")
* .sku(SBSkuArgs.builder()
* .name("Standard")
* .tier("Standard")
* .build())
* .tags(Map.ofEntries(
* Map.entry("tag1", "value1"),
* Map.entry("tag2", "value2")
* ))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:servicebus:Namespace sdk-Namespace-2924 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}
* ```
* @property alternateName Alternate name for namespace
* @property disableLocalAuth This property disables SAS authentication for the Service Bus namespace.
* @property encryption Properties of BYOK Encryption description
* @property identity Properties of BYOK Identity description
* @property location The Geo-location where the resource lives
* @property minimumTlsVersion The minimum TLS version for the cluster to support, e.g. '1.2'
* @property namespaceName The namespace name.
* @property privateEndpointConnections List of private endpoint connections.
* 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 This determines if traffic is allowed over public network. By default it is enabled.
* @property resourceGroupName Name of the Resource group within the Azure subscription.
* @property sku Properties of SKU
* @property tags Resource tags
* @property zoneRedundant Enabling this property creates a Premium Service Bus Namespace in regions supported availability zones.
*/
public data class NamespaceArgs(
public val alternateName: Output? = null,
public val disableLocalAuth: Output? = null,
public val encryption: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val minimumTlsVersion: Output>? = null,
public val namespaceName: 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,
public val zoneRedundant: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.servicebus.NamespaceArgs =
com.pulumi.azurenative.servicebus.NamespaceArgs.builder()
.alternateName(alternateName?.applyValue({ args0 -> args0 }))
.disableLocalAuth(disableLocalAuth?.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 }))
.minimumTlsVersion(
minimumTlsVersion?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.namespaceName(namespaceName?.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.let({ args0 -> args0.toJava() }) }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.zoneRedundant(zoneRedundant?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NamespaceArgs].
*/
@PulumiTagMarker
public class NamespaceArgsBuilder internal constructor() {
private var alternateName: Output? = null
private var disableLocalAuth: Output? = null
private var encryption: Output? = null
private var identity: Output? = null
private var location: Output? = null
private var minimumTlsVersion: Output>? = null
private var namespaceName: 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
private var zoneRedundant: Output? = null
/**
* @param value Alternate name for namespace
*/
@JvmName("rsderfidibkhjksg")
public suspend fun alternateName(`value`: Output) {
this.alternateName = value
}
/**
* @param value This property disables SAS authentication for the Service Bus namespace.
*/
@JvmName("tekshfokmfgqfugt")
public suspend fun disableLocalAuth(`value`: Output) {
this.disableLocalAuth = value
}
/**
* @param value Properties of BYOK Encryption description
*/
@JvmName("ifwuksytbrohhxgd")
public suspend fun encryption(`value`: Output) {
this.encryption = value
}
/**
* @param value Properties of BYOK Identity description
*/
@JvmName("jyqtwkcamyfnganb")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The Geo-location where the resource lives
*/
@JvmName("afmmqllmmfhevxau")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The minimum TLS version for the cluster to support, e.g. '1.2'
*/
@JvmName("wdkgmffqmvlcpnvd")
public suspend fun minimumTlsVersion(`value`: Output>) {
this.minimumTlsVersion = value
}
/**
* @param value The namespace name.
*/
@JvmName("lsvqyeecjqvvlelq")
public suspend fun namespaceName(`value`: Output) {
this.namespaceName = value
}
/**
* @param value List of private endpoint connections.
* 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("cqbbvleqabtxtfvh")
public suspend fun privateEndpointConnections(`value`: Output>) {
this.privateEndpointConnections = value
}
@JvmName("aqkdjlinqncvyohh")
public suspend fun privateEndpointConnections(vararg values: Output) {
this.privateEndpointConnections = Output.all(values.asList())
}
/**
* @param values List of private endpoint connections.
* 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("luupdehpnqwbfvox")
public suspend fun privateEndpointConnections(values: List>) {
this.privateEndpointConnections = Output.all(values)
}
/**
* @param value This determines if traffic is allowed over public network. By default it is enabled.
*/
@JvmName("uisrulwnmcrlxcyp")
public suspend fun publicNetworkAccess(`value`: Output>) {
this.publicNetworkAccess = value
}
/**
* @param value Name of the Resource group within the Azure subscription.
*/
@JvmName("jlhvgtnyiogrhpeq")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Properties of SKU
*/
@JvmName("xxeavovhfvoaptww")
public suspend fun sku(`value`: Output) {
this.sku = value
}
/**
* @param value Resource tags
*/
@JvmName("buvrtcamlfrbcsqp")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Enabling this property creates a Premium Service Bus Namespace in regions supported availability zones.
*/
@JvmName("hqffqeppeadkorja")
public suspend fun zoneRedundant(`value`: Output) {
this.zoneRedundant = value
}
/**
* @param value Alternate name for namespace
*/
@JvmName("hjowpyeghntcabks")
public suspend fun alternateName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.alternateName = mapped
}
/**
* @param value This property disables SAS authentication for the Service Bus namespace.
*/
@JvmName("pscktlbnrckpusci")
public suspend fun disableLocalAuth(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disableLocalAuth = mapped
}
/**
* @param value Properties of BYOK Encryption description
*/
@JvmName("lwgfyfbovtgcxrrq")
public suspend fun encryption(`value`: EncryptionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encryption = mapped
}
/**
* @param argument Properties of BYOK Encryption description
*/
@JvmName("hhlabxcclsjpfqkc")
public suspend fun encryption(argument: suspend EncryptionArgsBuilder.() -> Unit) {
val toBeMapped = EncryptionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.encryption = mapped
}
/**
* @param value Properties of BYOK Identity description
*/
@JvmName("peiouseufoyhwgch")
public suspend fun identity(`value`: IdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument Properties of BYOK Identity description
*/
@JvmName("banpkndgthsgfqcj")
public suspend fun identity(argument: suspend IdentityArgsBuilder.() -> Unit) {
val toBeMapped = IdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The Geo-location where the resource lives
*/
@JvmName("haiperejkxliuknw")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The minimum TLS version for the cluster to support, e.g. '1.2'
*/
@JvmName("debecjclgrcbqxfi")
public suspend fun minimumTlsVersion(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minimumTlsVersion = mapped
}
/**
* @param value The minimum TLS version for the cluster to support, e.g. '1.2'
*/
@JvmName("uvdondsjplwicmnc")
public fun minimumTlsVersion(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minimumTlsVersion = mapped
}
/**
* @param value The minimum TLS version for the cluster to support, e.g. '1.2'
*/
@JvmName("vsgeuekkijvfekxv")
public fun minimumTlsVersion(`value`: TlsVersion) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minimumTlsVersion = mapped
}
/**
* @param value The namespace name.
*/
@JvmName("wuknfhnkwkruskpe")
public suspend fun namespaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespaceName = mapped
}
/**
* @param value List of private endpoint connections.
* 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("hdmkgtehnqnnwckb")
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.
* 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("agttwebseqwldick")
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.
* 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("qdshimvxklltjbad")
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.
* 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("kafuxchvbjftosee")
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.
* 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("fksuvqcgwidlctga")
public suspend fun privateEndpointConnections(vararg values: PrivateEndpointConnectionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.privateEndpointConnections = mapped
}
/**
* @param value This determines if traffic is allowed over public network. By default it is enabled.
*/
@JvmName("wevugmgrrwncjcae")
public suspend fun publicNetworkAccess(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value This determines if traffic is allowed over public network. By default it is enabled.
*/
@JvmName("yadgbgbhdpyhhutq")
public fun publicNetworkAccess(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value This determines if traffic is allowed over public network. By default it is enabled.
*/
@JvmName("jutsnalkgsetahjs")
public fun publicNetworkAccess(`value`: PublicNetworkAccess) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value Name of the Resource group within the Azure subscription.
*/
@JvmName("vlxqknpbcpiillrp")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Properties of SKU
*/
@JvmName("lrrqswuslfnqdvuo")
public suspend fun sku(`value`: SBSkuArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param argument Properties of SKU
*/
@JvmName("rlsbkqcnqxoelqhr")
public suspend fun sku(argument: suspend SBSkuArgsBuilder.() -> Unit) {
val toBeMapped = SBSkuArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sku = mapped
}
/**
* @param value Resource tags
*/
@JvmName("gupgggiqievbajmq")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags
*/
@JvmName("gbdmtbhlnppwxtdm")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value Enabling this property creates a Premium Service Bus Namespace in regions supported availability zones.
*/
@JvmName("cyxocirlnrcwevpm")
public suspend fun zoneRedundant(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.zoneRedundant = mapped
}
internal fun build(): NamespaceArgs = NamespaceArgs(
alternateName = alternateName,
disableLocalAuth = disableLocalAuth,
encryption = encryption,
identity = identity,
location = location,
minimumTlsVersion = minimumTlsVersion,
namespaceName = namespaceName,
privateEndpointConnections = privateEndpointConnections,
publicNetworkAccess = publicNetworkAccess,
resourceGroupName = resourceGroupName,
sku = sku,
tags = tags,
zoneRedundant = zoneRedundant,
)
}