![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.eventhub.kotlin.EventHubNamespace.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.eventhub.kotlin
import com.pulumi.azure.eventhub.kotlin.outputs.EventHubNamespaceIdentity
import com.pulumi.azure.eventhub.kotlin.outputs.EventHubNamespaceNetworkRulesets
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.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.azure.eventhub.kotlin.outputs.EventHubNamespaceIdentity.Companion.toKotlin as eventHubNamespaceIdentityToKotlin
import com.pulumi.azure.eventhub.kotlin.outputs.EventHubNamespaceNetworkRulesets.Companion.toKotlin as eventHubNamespaceNetworkRulesetsToKotlin
/**
* Builder for [EventHubNamespace].
*/
@PulumiTagMarker
public class EventHubNamespaceResourceBuilder internal constructor() {
public var name: String? = null
public var args: EventHubNamespaceArgs = EventHubNamespaceArgs()
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 EventHubNamespaceArgsBuilder.() -> Unit) {
val builder = EventHubNamespaceArgsBuilder()
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(): EventHubNamespace {
val builtJavaResource = com.pulumi.azure.eventhub.EventHubNamespace(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return EventHubNamespace(builtJavaResource)
}
}
/**
* Manages an EventHub Namespace.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("example", {
* name: "example-namespace",
* location: example.location,
* resourceGroupName: example.name,
* sku: "Standard",
* capacity: 2,
* tags: {
* environment: "Production",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_event_hub_namespace = azure.eventhub.EventHubNamespace("example",
* name="example-namespace",
* location=example.location,
* resource_group_name=example.name,
* sku="Standard",
* capacity=2,
* tags={
* "environment": "Production",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var exampleEventHubNamespace = new Azure.EventHub.EventHubNamespace("example", new()
* {
* Name = "example-namespace",
* Location = example.Location,
* ResourceGroupName = example.Name,
* Sku = "Standard",
* Capacity = 2,
* Tags =
* {
* { "environment", "Production" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/eventhub"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* _, err = eventhub.NewEventHubNamespace(ctx, "example", &eventhub.EventHubNamespaceArgs{
* Name: pulumi.String("example-namespace"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* Sku: pulumi.String("Standard"),
* Capacity: pulumi.Int(2),
* Tags: pulumi.StringMap{
* "environment": pulumi.String("Production"),
* },
* })
* 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.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.eventhub.EventHubNamespace;
* import com.pulumi.azure.eventhub.EventHubNamespaceArgs;
* 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
* var exampleEventHubNamespace = new EventHubNamespace("exampleEventHubNamespace", EventHubNamespaceArgs.builder()
* .name("example-namespace")
* .location(example.location())
* .resourceGroupName(example.name())
* .sku("Standard")
* .capacity(2)
* .tags(Map.of("environment", "Production"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleEventHubNamespace:
* type: azure:eventhub:EventHubNamespace
* name: example
* properties:
* name: example-namespace
* location: ${example.location}
* resourceGroupName: ${example.name}
* sku: Standard
* capacity: 2
* tags:
* environment: Production
* ```
*
* ## Import
* EventHub Namespaces can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:eventhub/eventHubNamespace:EventHubNamespace namespace1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/namespaces/namespace1
* ```
*/
public class EventHubNamespace internal constructor(
override val javaResource: com.pulumi.azure.eventhub.EventHubNamespace,
) : KotlinCustomResource(javaResource, EventHubNamespaceMapper) {
/**
* Is Auto Inflate enabled for the EventHub Namespace?
*/
public val autoInflateEnabled: Output?
get() = javaResource.autoInflateEnabled().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Specifies the Capacity / Throughput Units for a `Standard` SKU namespace. Default capacity has a maximum of `2`, but can be increased in blocks of 2 on a committed purchase basis. Defaults to `1`.
*/
public val capacity: Output?
get() = javaResource.capacity().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Specifies the ID of the EventHub Dedicated Cluster where this Namespace should created. Changing this forces a new resource to be created.
*/
public val dedicatedClusterId: Output?
get() = javaResource.dedicatedClusterId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The primary connection string for the authorization rule `RootManageSharedAccessKey`.
*/
public val defaultPrimaryConnectionString: Output
get() = javaResource.defaultPrimaryConnectionString().applyValue({ args0 -> args0 })
/**
* The alias of the primary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled.
*/
public val defaultPrimaryConnectionStringAlias: Output
get() = javaResource.defaultPrimaryConnectionStringAlias().applyValue({ args0 -> args0 })
/**
* The primary access key for the authorization rule `RootManageSharedAccessKey`.
*/
public val defaultPrimaryKey: Output
get() = javaResource.defaultPrimaryKey().applyValue({ args0 -> args0 })
/**
* The secondary connection string for the authorization rule `RootManageSharedAccessKey`.
*/
public val defaultSecondaryConnectionString: Output
get() = javaResource.defaultSecondaryConnectionString().applyValue({ args0 -> args0 })
/**
* The alias of the secondary connection string for the authorization rule `RootManageSharedAccessKey`, which is generated when disaster recovery is enabled.
*/
public val defaultSecondaryConnectionStringAlias: Output
get() = javaResource.defaultSecondaryConnectionStringAlias().applyValue({ args0 -> args0 })
/**
* The secondary access key for the authorization rule `RootManageSharedAccessKey`.
*/
public val defaultSecondaryKey: Output
get() = javaResource.defaultSecondaryKey().applyValue({ args0 -> args0 })
/**
* An `identity` block as defined below.
*/
public val identity: Output?
get() = javaResource.identity().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
eventHubNamespaceIdentityToKotlin(args0)
})
}).orElse(null)
})
/**
* Is SAS authentication enabled for the EventHub Namespace? Defaults to `true`.
*/
public val localAuthenticationEnabled: Output?
get() = javaResource.localAuthenticationEnabled().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*/
public val location: Output
get() = javaResource.location().applyValue({ args0 -> args0 })
/**
* Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from `1` - `20`.
*/
public val maximumThroughputUnits: Output?
get() = javaResource.maximumThroughputUnits().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The minimum supported TLS version for this EventHub Namespace. Valid values are: `1.0`, `1.1` and `1.2`. The current default minimum TLS version is `1.2`.
*/
public val minimumTlsVersion: Output
get() = javaResource.minimumTlsVersion().applyValue({ args0 -> args0 })
/**
* Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* A `network_rulesets` block as defined below.
*/
public val networkRulesets: Output
get() = javaResource.networkRulesets().applyValue({ args0 ->
args0.let({ args0 ->
eventHubNamespaceNetworkRulesetsToKotlin(args0)
})
})
/**
* Is public network access enabled for the EventHub Namespace? Defaults to `true`.
*/
public val publicNetworkAccessEnabled: Output?
get() = javaResource.publicNetworkAccessEnabled().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
*/
public val resourceGroupName: Output
get() = javaResource.resourceGroupName().applyValue({ args0 -> args0 })
/**
* Defines which tier to use. Valid options are `Basic`, `Standard`, and `Premium`. Please note that setting this field to `Premium` will force the creation of a new resource.
*/
public val sku: Output
get() = javaResource.sku().applyValue({ args0 -> args0 })
/**
* A mapping of tags to assign to the resource.
*/
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy