Show / Hide Table of Contents

Class EndpointServicebusTopic

Manages an IotHub ServiceBus Topic Endpoint

NOTE: Endpoints can be defined either directly on the azure.iot.IoTHub resource, or using the azurerm_iothub_endpoint_* resources - but the two ways of defining the endpoints cannot be used together. If both are used against the same IoTHub, spurious changes will occur. Also, defining a azurerm_iothub_endpoint_* resource and another endpoint of a different type directly on the azure.iot.IoTHub resource is not supported.

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 = "East US",
    });
    var exampleNamespace = new Azure.ServiceBus.Namespace("exampleNamespace", new Azure.ServiceBus.NamespaceArgs
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        Sku = "Standard",
    });
    var exampleTopic = new Azure.ServiceBus.Topic("exampleTopic", new Azure.ServiceBus.TopicArgs
    {
        ResourceGroupName = exampleResourceGroup.Name,
        NamespaceName = exampleNamespace.Name,
    });
    var exampleTopicAuthorizationRule = new Azure.ServiceBus.TopicAuthorizationRule("exampleTopicAuthorizationRule", new Azure.ServiceBus.TopicAuthorizationRuleArgs
    {
        NamespaceName = exampleNamespace.Name,
        TopicName = exampleTopic.Name,
        ResourceGroupName = exampleResourceGroup.Name,
        Listen = false,
        Send = true,
        Manage = false,
    });
    var exampleIoTHub = new Azure.Iot.IoTHub("exampleIoTHub", new Azure.Iot.IoTHubArgs
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        Sku = new Azure.Iot.Inputs.IoTHubSkuArgs
        {
            Name = "B1",
            Tier = "Basic",
            Capacity = "1",
        },
        Tags = 
        {
            { "purpose", "example" },
        },
    });
    var exampleEndpointServicebusTopic = new Azure.Iot.EndpointServicebusTopic("exampleEndpointServicebusTopic", new Azure.Iot.EndpointServicebusTopicArgs
    {
        ResourceGroupName = exampleResourceGroup.Name,
        IothubName = exampleIoTHub.Name,
        ConnectionString = exampleTopicAuthorizationRule.PrimaryConnectionString,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
EndpointServicebusTopic
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Iot
Assembly: Pulumi.Azure.dll
Syntax
public class EndpointServicebusTopic : CustomResource

Constructors

View Source

EndpointServicebusTopic(String, EndpointServicebusTopicArgs, CustomResourceOptions)

Create a EndpointServicebusTopic resource with the given unique name, arguments, and options.

Declaration
public EndpointServicebusTopic(string name, EndpointServicebusTopicArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

EndpointServicebusTopicArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

ConnectionString

The connection string for the endpoint.

Declaration
public Output<string> ConnectionString { get; }
Property Value
Type Description
Output<System.String>
View Source

IothubName

Declaration
public Output<string> IothubName { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: events, operationsMonitoringEvents, fileNotifications and $default.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, EndpointServicebusTopicState, CustomResourceOptions)

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

Declaration
public static EndpointServicebusTopic Get(string name, Input<string> id, EndpointServicebusTopicState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

EndpointServicebusTopicState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
EndpointServicebusTopic
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.