EventhubNamespaceDisasterRecoveryConfigArgs

data class EventhubNamespaceDisasterRecoveryConfigArgs(val name: Output<String>? = null, val namespaceName: Output<String>? = null, val partnerNamespaceId: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<EventhubNamespaceDisasterRecoveryConfigArgs>

Manages an Disaster Recovery Config for an Event Hub Namespace.

Example Usage

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 com.pulumi.azure.eventhub.EventhubNamespaceDisasterRecoveryConfig;
import com.pulumi.azure.eventhub.EventhubNamespaceDisasterRecoveryConfigArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var primary = new EventHubNamespace("primary", EventHubNamespaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("Standard")
.build());
var secondary = new EventHubNamespace("secondary", EventHubNamespaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("Standard")
.build());
var exampleEventhubNamespaceDisasterRecoveryConfig = new EventhubNamespaceDisasterRecoveryConfig("exampleEventhubNamespaceDisasterRecoveryConfig", EventhubNamespaceDisasterRecoveryConfigArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.namespaceName(primary.name())
.partnerNamespaceId(secondary.id())
.build());
}
}

Import

EventHubs can be imported using the resource id, e.g.

$ pulumi import azure:eventhub/eventhubNamespaceDisasterRecoveryConfig:EventhubNamespaceDisasterRecoveryConfig config1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/namespaces/namespace1/disasterRecoveryConfigs/config1

Constructors

fun EventhubNamespaceDisasterRecoveryConfigArgs(name: Output<String>? = null, namespaceName: Output<String>? = null, partnerNamespaceId: Output<String>? = null, resourceGroupName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): EventhubNamespaceDisasterRecoveryConfigArgs

Properties

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the Disaster Recovery Config. Changing this forces a new resource to be created.

Link copied to clipboard
val namespaceName: Output<String>? = null

Specifies the name of the primary EventHub Namespace to replicate. Changing this forces a new resource to be created.

Link copied to clipboard
val partnerNamespaceId: Output<String>? = null

The ID of the EventHub Namespace to replicate to.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group in which the Disaster Recovery Config exists. Changing this forces a new resource to be created.