EventHubNamespace
Manages an EventHub 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 exampleEventHubNamespace = new Azure.EventHub.EventHubNamespace("exampleEventHubNamespace", new Azure.EventHub.EventHubNamespaceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Sku = "Standard",
Capacity = 2,
Tags =
{
{ "environment", "Production" },
},
});
}
}
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
}
_, err = eventhub.NewEventHubNamespace(ctx, "exampleEventHubNamespace", &eventhub.EventHubNamespaceArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
Sku: pulumi.String("Standard"),
Capacity: pulumi.Int(2),
Tags: pulumi.Map{
"environment": pulumi.String("Production"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_event_hub_namespace = azure.eventhub.EventHubNamespace("exampleEventHubNamespace",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku="Standard",
capacity=2,
tags={
"environment": "Production",
})import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("exampleEventHubNamespace", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
sku: "Standard",
capacity: 2,
tags: {
environment: "Production",
},
});Create a EventHubNamespace Resource
new EventHubNamespace(name: string, args: EventHubNamespaceArgs, opts?: CustomResourceOptions);def EventHubNamespace(resource_name, opts=None, auto_inflate_enabled=None, capacity=None, location=None, maximum_throughput_units=None, name=None, network_rulesets=None, resource_group_name=None, sku=None, tags=None, __props__=None);func NewEventHubNamespace(ctx *Context, name string, args EventHubNamespaceArgs, opts ...ResourceOption) (*EventHubNamespace, error)public EventHubNamespace(string name, EventHubNamespaceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args EventHubNamespaceArgs
- 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 EventHubNamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventHubNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
EventHubNamespace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The EventHubNamespace resource accepts the following input properties:
- Resource
Group stringName The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
- Sku string
Defines which tier to use. Valid options are
BasicandStandard.- Auto
Inflate boolEnabled Is Auto Inflate enabled for the EventHub Namespace?
- Capacity int
Specifies the Capacity / Throughput Units for a
StandardSKU namespace. Valid values range from1-20.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Maximum
Throughput intUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from
1-20.- Name string
Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
- Network
Rulesets EventHub Namespace Network Rulesets Args A
network_rulesetsblock as defined below.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Resource
Group stringName The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
- Sku string
Defines which tier to use. Valid options are
BasicandStandard.- Auto
Inflate boolEnabled Is Auto Inflate enabled for the EventHub Namespace?
- Capacity int
Specifies the Capacity / Throughput Units for a
StandardSKU namespace. Valid values range from1-20.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Maximum
Throughput intUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from
1-20.- Name string
Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
- Network
Rulesets EventHub Namespace Network Rulesets A
network_rulesetsblock as defined below.- map[string]string
A mapping of tags to assign to the resource.
- resource
Group stringName The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
- sku string
Defines which tier to use. Valid options are
BasicandStandard.- auto
Inflate booleanEnabled Is Auto Inflate enabled for the EventHub Namespace?
- capacity number
Specifies the Capacity / Throughput Units for a
StandardSKU namespace. Valid values range from1-20.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maximum
Throughput numberUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from
1-20.- name string
Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
- network
Rulesets EventHub Namespace Network Rulesets A
network_rulesetsblock as defined below.- {[key: string]: string}
A mapping of tags to assign to the resource.
- resource_
group_ strname The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
- sku str
Defines which tier to use. Valid options are
BasicandStandard.- auto_
inflate_ boolenabled Is Auto Inflate enabled for the EventHub Namespace?
- capacity float
Specifies the Capacity / Throughput Units for a
StandardSKU namespace. Valid values range from1-20.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maximum_
throughput_ floatunits Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from
1-20.- name str
Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
- network_
rulesets Dict[EventHub Namespace Network Rulesets] A
network_rulesetsblock as defined below.- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the EventHubNamespace resource produces the following output properties:
- Default
Primary stringConnection String The primary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Primary stringConnection String Alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- Default
Primary stringKey The primary access key for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String The secondary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String Alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- Default
Secondary stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- Id string
- The provider-assigned unique ID for this managed resource.
- Default
Primary stringConnection String The primary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Primary stringConnection String Alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- Default
Primary stringKey The primary access key for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String The secondary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String Alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- Default
Secondary stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- Id string
- The provider-assigned unique ID for this managed resource.
- default
Primary stringConnection String The primary connection string for the authorization rule
RootManageSharedAccessKey.- default
Primary stringConnection String Alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- default
Primary stringKey The primary access key for the authorization rule
RootManageSharedAccessKey.- default
Secondary stringConnection String The secondary connection string for the authorization rule
RootManageSharedAccessKey.- default
Secondary stringConnection String Alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- default
Secondary stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- id string
- The provider-assigned unique ID for this managed resource.
- default_
primary_ strconnection_ string The primary connection string for the authorization rule
RootManageSharedAccessKey.- default_
primary_ strconnection_ string_ alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- default_
primary_ strkey The primary access key for the authorization rule
RootManageSharedAccessKey.- default_
secondary_ strconnection_ string The secondary connection string for the authorization rule
RootManageSharedAccessKey.- default_
secondary_ strconnection_ string_ alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- default_
secondary_ strkey The secondary access key for the authorization rule
RootManageSharedAccessKey.- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing EventHubNamespace Resource
Get an existing EventHubNamespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EventHubNamespaceState, opts?: CustomResourceOptions): EventHubNamespacestatic get(resource_name, id, opts=None, auto_inflate_enabled=None, capacity=None, default_primary_connection_string=None, default_primary_connection_string_alias=None, default_primary_key=None, default_secondary_connection_string=None, default_secondary_connection_string_alias=None, default_secondary_key=None, location=None, maximum_throughput_units=None, name=None, network_rulesets=None, resource_group_name=None, sku=None, tags=None, __props__=None);func GetEventHubNamespace(ctx *Context, name string, id IDInput, state *EventHubNamespaceState, opts ...ResourceOption) (*EventHubNamespace, error)public static EventHubNamespace Get(string name, Input<string> id, EventHubNamespaceState? state, CustomResourceOptions? opts = null)- 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:
- Auto
Inflate boolEnabled Is Auto Inflate enabled for the EventHub Namespace?
- Capacity int
Specifies the Capacity / Throughput Units for a
StandardSKU namespace. Valid values range from1-20.- Default
Primary stringConnection String The primary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Primary stringConnection String Alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- Default
Primary stringKey The primary access key for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String The secondary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String Alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- Default
Secondary stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Maximum
Throughput intUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from
1-20.- Name string
Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
- Network
Rulesets EventHub Namespace Network Rulesets Args A
network_rulesetsblock as defined below.- Resource
Group stringName The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
- Sku string
Defines which tier to use. Valid options are
BasicandStandard.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Auto
Inflate boolEnabled Is Auto Inflate enabled for the EventHub Namespace?
- Capacity int
Specifies the Capacity / Throughput Units for a
StandardSKU namespace. Valid values range from1-20.- Default
Primary stringConnection String The primary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Primary stringConnection String Alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- Default
Primary stringKey The primary access key for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String The secondary connection string for the authorization rule
RootManageSharedAccessKey.- Default
Secondary stringConnection String Alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- Default
Secondary stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Maximum
Throughput intUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from
1-20.- Name string
Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
- Network
Rulesets EventHub Namespace Network Rulesets A
network_rulesetsblock as defined below.- Resource
Group stringName The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
- Sku string
Defines which tier to use. Valid options are
BasicandStandard.- map[string]string
A mapping of tags to assign to the resource.
- auto
Inflate booleanEnabled Is Auto Inflate enabled for the EventHub Namespace?
- capacity number
Specifies the Capacity / Throughput Units for a
StandardSKU namespace. Valid values range from1-20.- default
Primary stringConnection String The primary connection string for the authorization rule
RootManageSharedAccessKey.- default
Primary stringConnection String Alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- default
Primary stringKey The primary access key for the authorization rule
RootManageSharedAccessKey.- default
Secondary stringConnection String The secondary connection string for the authorization rule
RootManageSharedAccessKey.- default
Secondary stringConnection String Alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- default
Secondary stringKey The secondary access key for the authorization rule
RootManageSharedAccessKey.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maximum
Throughput numberUnits Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from
1-20.- name string
Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
- network
Rulesets EventHub Namespace Network Rulesets A
network_rulesetsblock as defined below.- resource
Group stringName The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
- sku string
Defines which tier to use. Valid options are
BasicandStandard.- {[key: string]: string}
A mapping of tags to assign to the resource.
- auto_
inflate_ boolenabled Is Auto Inflate enabled for the EventHub Namespace?
- capacity float
Specifies the Capacity / Throughput Units for a
StandardSKU namespace. Valid values range from1-20.- default_
primary_ strconnection_ string The primary connection string for the authorization rule
RootManageSharedAccessKey.- default_
primary_ strconnection_ string_ alias The alias of the primary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- default_
primary_ strkey The primary access key for the authorization rule
RootManageSharedAccessKey.- default_
secondary_ strconnection_ string The secondary connection string for the authorization rule
RootManageSharedAccessKey.- default_
secondary_ strconnection_ string_ alias The alias of the secondary connection string for the authorization rule
RootManageSharedAccessKey, which is generated when disaster recovery is enabled.- default_
secondary_ strkey The secondary access key for the authorization rule
RootManageSharedAccessKey.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maximum_
throughput_ floatunits Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from
1-20.- name str
Specifies the name of the EventHub Namespace resource. Changing this forces a new resource to be created.
- network_
rulesets Dict[EventHub Namespace Network Rulesets] A
network_rulesetsblock as defined below.- resource_
group_ strname The name of the resource group in which to create the namespace. Changing this forces a new resource to be created.
- sku str
Defines which tier to use. Valid options are
BasicandStandard.- Dict[str, str]
A mapping of tags to assign to the resource.
Supporting Types
EventHubNamespaceNetworkRulesets
- Default
Action string The default action to take when a rule is not matched. Possible values are
AllowandDeny. Defaults toDeny.- Ip
Rules List<EventHub Namespace Network Rulesets Ip Rule Args> One or more
ip_ruleblocks as defined below.- Virtual
Network List<EventRules Hub Namespace Network Rulesets Virtual Network Rule Args> One or more
virtual_network_ruleblocks as defined below.
- Default
Action string The default action to take when a rule is not matched. Possible values are
AllowandDeny. Defaults toDeny.- Ip
Rules []EventHub Namespace Network Rulesets Ip Rule One or more
ip_ruleblocks as defined below.- Virtual
Network []EventRules Hub Namespace Network Rulesets Virtual Network Rule One or more
virtual_network_ruleblocks as defined below.
- default
Action string The default action to take when a rule is not matched. Possible values are
AllowandDeny. Defaults toDeny.- ip
Rules EventHub Namespace Network Rulesets Ip Rule[] One or more
ip_ruleblocks as defined below.- virtual
Network EventRules Hub Namespace Network Rulesets Virtual Network Rule[] One or more
virtual_network_ruleblocks as defined below.
- default_
action str The default action to take when a rule is not matched. Possible values are
AllowandDeny. Defaults toDeny.- ip_
rules List[EventHub Namespace Network Rulesets Ip Rule] One or more
ip_ruleblocks as defined below.- virtual_
network_ List[Eventrules Hub Namespace Network Rulesets Virtual Network Rule] One or more
virtual_network_ruleblocks as defined below.
EventHubNamespaceNetworkRulesetsIpRule
EventHubNamespaceNetworkRulesetsVirtualNetworkRule
- Subnet
Id string The id of the subnet to match on.
- Ignore
Missing boolVirtual Network Service Endpoint Are missing virtual network service endpoints ignored? Defaults to
false.
- Subnet
Id string The id of the subnet to match on.
- Ignore
Missing boolVirtual Network Service Endpoint Are missing virtual network service endpoints ignored? Defaults to
false.
- subnet
Id string The id of the subnet to match on.
- ignore
Missing booleanVirtual Network Service Endpoint Are missing virtual network service endpoints ignored? Defaults to
false.
- subnet_
id str The id of the subnet to match on.
- ignore
Missing boolVirtual Network Service Endpoint Are missing virtual network service endpoints ignored? Defaults to
false.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.