Show / Hide Table of Contents

Class OutputServicebusTopic

Manages a Stream Analytics Output to a ServiceBus Topic.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var exampleResourceGroup = Output.Create(Azure.Core.GetResourceGroup.InvokeAsync(new Azure.Core.GetResourceGroupArgs
    {
        Name = "example-resources",
    }));
    var exampleJob = Output.Create(Azure.StreamAnalytics.GetJob.InvokeAsync(new Azure.StreamAnalytics.GetJobArgs
    {
        Name = "example-job",
        ResourceGroupName = azurerm_resource_group.Example.Name,
    }));
    var exampleNamespace = new Azure.ServiceBus.Namespace("exampleNamespace", new Azure.ServiceBus.NamespaceArgs
    {
        Location = exampleResourceGroup.Apply(exampleResourceGroup => exampleResourceGroup.Location),
        ResourceGroupName = exampleResourceGroup.Apply(exampleResourceGroup => exampleResourceGroup.Name),
        Sku = "Standard",
    });
    var exampleTopic = new Azure.ServiceBus.Topic("exampleTopic", new Azure.ServiceBus.TopicArgs
    {
        ResourceGroupName = exampleResourceGroup.Apply(exampleResourceGroup => exampleResourceGroup.Name),
        NamespaceName = exampleNamespace.Name,
        EnablePartitioning = true,
    });
    var exampleOutputServicebusTopic = new Azure.StreamAnalytics.OutputServicebusTopic("exampleOutputServicebusTopic", new Azure.StreamAnalytics.OutputServicebusTopicArgs
    {
        StreamAnalyticsJobName = exampleJob.Apply(exampleJob => exampleJob.Name),
        ResourceGroupName = exampleJob.Apply(exampleJob => exampleJob.ResourceGroupName),
        TopicName = exampleTopic.Name,
        ServicebusNamespace = exampleNamespace.Name,
        SharedAccessPolicyKey = exampleNamespace.DefaultPrimaryKey,
        SharedAccessPolicyName = "RootManageSharedAccessKey",
        Serialization = new Azure.StreamAnalytics.Inputs.OutputServicebusTopicSerializationArgs
        {
            Format = "Avro",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
OutputServicebusTopic
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.StreamAnalytics
Assembly: Pulumi.Azure.dll
Syntax
public class OutputServicebusTopic : CustomResource

Constructors

View Source

OutputServicebusTopic(String, OutputServicebusTopicArgs, CustomResourceOptions)

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

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

The unique name of the resource

OutputServicebusTopicArgs 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

Name

The name of the Stream Output. Changing this forces a new resource to be created.

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

ResourceGroupName

The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created.

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

Serialization

A serialization block as defined below.

Declaration
public Output<OutputServicebusTopicSerialization> Serialization { get; }
Property Value
Type Description
Output<OutputServicebusTopicSerialization>
View Source

ServicebusNamespace

The namespace that is associated with the desired Event Hub, Service Bus Topic, Service Bus Topic, etc.

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

SharedAccessPolicyKey

The shared access policy key for the specified shared access policy.

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

SharedAccessPolicyName

The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.

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

StreamAnalyticsJobName

The name of the Stream Analytics Job. Changing this forces a new resource to be created.

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

TopicName

The name of the Service Bus Topic.

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

Methods

View Source

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

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

Declaration
public static OutputServicebusTopic Get(string name, Input<string> id, OutputServicebusTopicState 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.

OutputServicebusTopicState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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