EventhubNamespaceDisasterRecoveryConfig

Manages an Disaster Recovery Config for an Event Hub Namespace.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West Europe",
        });
        var primary = new Azure.EventHub.EventHubNamespace("primary", new Azure.EventHub.EventHubNamespaceArgs
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            Sku = "Standard",
        });
        var secondary = new Azure.EventHub.EventHubNamespace("secondary", new Azure.EventHub.EventHubNamespaceArgs
        {
            Location = "West US",
            ResourceGroupName = exampleResourceGroup.Name,
            Sku = "Standard",
        });
        var exampleEventhubNamespaceDisasterRecoveryConfig = new Azure.EventHub.EventhubNamespaceDisasterRecoveryConfig("exampleEventhubNamespaceDisasterRecoveryConfig", new Azure.EventHub.EventhubNamespaceDisasterRecoveryConfigArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            NamespaceName = primary.Name,
            PartnerNamespaceId = secondary.Id,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/eventhub"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
            Location: pulumi.String("West Europe"),
        })
        if err != nil {
            return err
        }
        primary, err := eventhub.NewEventHubNamespace(ctx, "primary", &eventhub.EventHubNamespaceArgs{
            Location:          exampleResourceGroup.Location,
            ResourceGroupName: exampleResourceGroup.Name,
            Sku:               pulumi.String("Standard"),
        })
        if err != nil {
            return err
        }
        secondary, err := eventhub.NewEventHubNamespace(ctx, "secondary", &eventhub.EventHubNamespaceArgs{
            Location:          pulumi.String("West US"),
            ResourceGroupName: exampleResourceGroup.Name,
            Sku:               pulumi.String("Standard"),
        })
        if err != nil {
            return err
        }
        _, err = eventhub.NewEventhubNamespaceDisasterRecoveryConfig(ctx, "exampleEventhubNamespaceDisasterRecoveryConfig", &eventhub.EventhubNamespaceDisasterRecoveryConfigArgs{
            ResourceGroupName:  exampleResourceGroup.Name,
            NamespaceName:      primary.Name,
            PartnerNamespaceId: secondary.ID(),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
primary = azure.eventhub.EventHubNamespace("primary",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    sku="Standard")
secondary = azure.eventhub.EventHubNamespace("secondary",
    location="West US",
    resource_group_name=example_resource_group.name,
    sku="Standard")
example_eventhub_namespace_disaster_recovery_config = azure.eventhub.EventhubNamespaceDisasterRecoveryConfig("exampleEventhubNamespaceDisasterRecoveryConfig",
    resource_group_name=example_resource_group.name,
    namespace_name=primary.name,
    partner_namespace_id=secondary.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const primary = new azure.eventhub.EventHubNamespace("primary", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    sku: "Standard",
});
const secondary = new azure.eventhub.EventHubNamespace("secondary", {
    location: "West US",
    resourceGroupName: exampleResourceGroup.name,
    sku: "Standard",
});
const exampleEventhubNamespaceDisasterRecoveryConfig = new azure.eventhub.EventhubNamespaceDisasterRecoveryConfig("exampleEventhubNamespaceDisasterRecoveryConfig", {
    resourceGroupName: exampleResourceGroup.name,
    namespaceName: primary.name,
    partnerNamespaceId: secondary.id,
});

Create a EventhubNamespaceDisasterRecoveryConfig Resource

def EventhubNamespaceDisasterRecoveryConfig(resource_name, opts=None, alternate_name=None, name=None, namespace_name=None, partner_namespace_id=None, resource_group_name=None, __props__=None);
name string
The unique name of the resource.
args EventhubNamespaceDisasterRecoveryConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args EventhubNamespaceDisasterRecoveryConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EventhubNamespaceDisasterRecoveryConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

EventhubNamespaceDisasterRecoveryConfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The EventhubNamespaceDisasterRecoveryConfig resource accepts the following input properties:

NamespaceName string

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

PartnerNamespaceId string

The ID of the EventHub Namespace to replicate to.

ResourceGroupName string

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

AlternateName string

An alternate name to use when the Disaster Recovery Config’s name is the same as the replicated namespace’s name.

Name string

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

NamespaceName string

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

PartnerNamespaceId string

The ID of the EventHub Namespace to replicate to.

ResourceGroupName string

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

AlternateName string

An alternate name to use when the Disaster Recovery Config’s name is the same as the replicated namespace’s name.

Name string

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

namespaceName string

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

partnerNamespaceId string

The ID of the EventHub Namespace to replicate to.

resourceGroupName string

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

alternateName string

An alternate name to use when the Disaster Recovery Config’s name is the same as the replicated namespace’s name.

name string

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

namespace_name str

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

partner_namespace_id str

The ID of the EventHub Namespace to replicate to.

resource_group_name str

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

alternate_name str

An alternate name to use when the Disaster Recovery Config’s name is the same as the replicated namespace’s name.

name str

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

Outputs

All input properties are implicitly available as output properties. Additionally, the EventhubNamespaceDisasterRecoveryConfig resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing EventhubNamespaceDisasterRecoveryConfig Resource

Get an existing EventhubNamespaceDisasterRecoveryConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, alternate_name=None, name=None, namespace_name=None, partner_namespace_id=None, resource_group_name=None, __props__=None);
func GetEventhubNamespaceDisasterRecoveryConfig(ctx *Context, name string, id IDInput, state *EventhubNamespaceDisasterRecoveryConfigState, opts ...ResourceOption) (*EventhubNamespaceDisasterRecoveryConfig, error)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AlternateName string

An alternate name to use when the Disaster Recovery Config’s name is the same as the replicated namespace’s name.

Name string

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

NamespaceName string

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

PartnerNamespaceId string

The ID of the EventHub Namespace to replicate to.

ResourceGroupName string

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

AlternateName string

An alternate name to use when the Disaster Recovery Config’s name is the same as the replicated namespace’s name.

Name string

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

NamespaceName string

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

PartnerNamespaceId string

The ID of the EventHub Namespace to replicate to.

ResourceGroupName string

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

alternateName string

An alternate name to use when the Disaster Recovery Config’s name is the same as the replicated namespace’s name.

name string

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

namespaceName string

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

partnerNamespaceId string

The ID of the EventHub Namespace to replicate to.

resourceGroupName string

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

alternate_name str

An alternate name to use when the Disaster Recovery Config’s name is the same as the replicated namespace’s name.

name str

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

namespace_name str

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

partner_namespace_id str

The ID of the EventHub Namespace to replicate to.

resource_group_name str

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

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.