Broker Listener Args
data class BrokerListenerArgs(val brokerName: Output<String>? = null, val extendedLocation: Output<ExtendedLocationArgs>? = null, val instanceName: Output<String>? = null, val listenerName: Output<String>? = null, val properties: Output<BrokerListenerPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<BrokerListenerArgs>
Instance broker resource Uses Azure REST API version 2024-07-01-preview. Other available API versions: 2024-08-15-preview, 2024-09-15-preview, 2024-11-01, 2025-04-01.
Example Usage
BrokerListener_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var brokerListener = new AzureNative.IoTOperations.BrokerListener("brokerListener", new()
{
BrokerName = "aio-broker",
ExtendedLocation = new AzureNative.IoTOperations.Inputs.ExtendedLocationArgs
{
Name = "ycsyubcxttlusbhfdqaynmkaatnbyv",
Type = AzureNative.IoTOperations.ExtendedLocationType.CustomLocation,
},
InstanceName = "aio-instance",
ListenerName = "aio-listener",
Properties = new AzureNative.IoTOperations.Inputs.BrokerListenerPropertiesArgs
{
BrokerRef = "aio-broker",
Ports = new[]
{
new AzureNative.IoTOperations.Inputs.ListenerPortArgs
{
AuthenticationRef = "authn",
Port = 8883,
Protocol = AzureNative.IoTOperations.BrokerProtocolType.Mqtt,
Tls = new AzureNative.IoTOperations.Inputs.TlsCertMethodArgs
{
Automatic = new AzureNative.IoTOperations.Inputs.AutomaticCertMethodArgs
{
IssuerRef = new AzureNative.IoTOperations.Inputs.CertManagerIssuerRefArgs
{
ApiGroup = "cert-manager.io",
Kind = AzureNative.IoTOperations.CertManagerIssuerKind.Issuer,
Name = "mq-dmqtt-frontend",
},
},
Mode = AzureNative.IoTOperations.TlsCertMethodMode.Automatic,
},
},
},
ServiceName = "aio-mq-dmqtt-frontend",
ServiceType = AzureNative.IoTOperations.ServiceType.ClusterIp,
},
ResourceGroupName = "rgiotoperations",
});
});
Content copied to clipboard
package main
import (
iotoperations "github.com/pulumi/pulumi-azure-native-sdk/iotoperations/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iotoperations.NewBrokerListener(ctx, "brokerListener", &iotoperations.BrokerListenerArgs{
BrokerName: pulumi.String("aio-broker"),
ExtendedLocation: &iotoperations.ExtendedLocationArgs{
Name: pulumi.String("ycsyubcxttlusbhfdqaynmkaatnbyv"),
Type: pulumi.String(iotoperations.ExtendedLocationTypeCustomLocation),
},
InstanceName: pulumi.String("aio-instance"),
ListenerName: pulumi.String("aio-listener"),
Properties: &iotoperations.BrokerListenerPropertiesArgs{
BrokerRef: pulumi.String("aio-broker"),
Ports: iotoperations.ListenerPortArray{
&iotoperations.ListenerPortArgs{
AuthenticationRef: pulumi.String("authn"),
Port: pulumi.Int(8883),
Protocol: pulumi.String(iotoperations.BrokerProtocolTypeMqtt),
Tls: &iotoperations.TlsCertMethodArgs{
Automatic: &iotoperations.AutomaticCertMethodArgs{
IssuerRef: &iotoperations.CertManagerIssuerRefArgs{
ApiGroup: pulumi.String("cert-manager.io"),
Kind: pulumi.String(iotoperations.CertManagerIssuerKindIssuer),
Name: pulumi.String("mq-dmqtt-frontend"),
},
},
Mode: pulumi.String(iotoperations.TlsCertMethodModeAutomatic),
},
},
},
ServiceName: pulumi.String("aio-mq-dmqtt-frontend"),
ServiceType: pulumi.String(iotoperations.ServiceTypeClusterIp),
},
ResourceGroupName: pulumi.String("rgiotoperations"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.iotoperations.BrokerListener;
import com.pulumi.azurenative.iotoperations.BrokerListenerArgs;
import com.pulumi.azurenative.iotoperations.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.iotoperations.inputs.BrokerListenerPropertiesArgs;
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 brokerListener = new BrokerListener("brokerListener", BrokerListenerArgs.builder()
.brokerName("aio-broker")
.extendedLocation(ExtendedLocationArgs.builder()
.name("ycsyubcxttlusbhfdqaynmkaatnbyv")
.type("CustomLocation")
.build())
.instanceName("aio-instance")
.listenerName("aio-listener")
.properties(BrokerListenerPropertiesArgs.builder()
.brokerRef("aio-broker")
.ports(ListenerPortArgs.builder()
.authenticationRef("authn")
.port(8883)
.protocol("Mqtt")
.tls(TlsCertMethodArgs.builder()
.automatic(AutomaticCertMethodArgs.builder()
.issuerRef(CertManagerIssuerRefArgs.builder()
.apiGroup("cert-manager.io")
.kind("Issuer")
.name("mq-dmqtt-frontend")
.build())
.build())
.mode("Automatic")
.build())
.build())
.serviceName("aio-mq-dmqtt-frontend")
.serviceType("ClusterIp")
.build())
.resourceGroupName("rgiotoperations")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:iotoperations:BrokerListener jngsyyonj /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(brokerName: Output<String>? = null, extendedLocation: Output<ExtendedLocationArgs>? = null, instanceName: Output<String>? = null, listenerName: Output<String>? = null, properties: Output<BrokerListenerPropertiesArgs>? = null, resourceGroupName: Output<String>? = null)
Properties
Link copied to clipboard
Name of broker.
Link copied to clipboard
Edge location of the resource.
Link copied to clipboard
Name of instance.
Link copied to clipboard
Name of Instance broker listener resource
Link copied to clipboard
The resource-specific properties for this resource.
Link copied to clipboard
The name of the resource group. The name is case insensitive.