We recommend using Azure Native.
azure.iot.EndpointServicebusQueue
Explore with Pulumi AI
Manages an IotHub ServiceBus Queue Endpoint
NOTE: Endpoints can be defined either directly on the
azure.iot.IoTHub
resource, or using theazurerm_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 aazurerm_iothub_endpoint_*
resource and another endpoint of a different type directly on theazure.iot.IoTHub
resource is not supported.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleNamespace:
type: azure:servicebus:Namespace
name: example
properties:
name: exampleNamespace
location: ${example.location}
resourceGroupName: ${example.name}
sku: Standard
exampleQueue:
type: azure:servicebus:Queue
name: example
properties:
name: exampleQueue
namespaceId: ${exampleNamespace.id}
enablePartitioning: true
exampleQueueAuthorizationRule:
type: azure:servicebus:QueueAuthorizationRule
name: example
properties:
name: exampleRule
queueId: ${exampleQueue.id}
listen: false
send: true
manage: false
exampleIoTHub:
type: azure:iot:IoTHub
name: example
properties:
name: exampleIothub
resourceGroupName: ${example.name}
location: ${example.location}
sku:
name: B1
capacity: '1'
tags:
purpose: example
exampleEndpointServicebusQueue:
type: azure:iot:EndpointServicebusQueue
name: example
properties:
resourceGroupName: ${example.name}
iothubId: ${exampleIoTHub.id}
name: example
connectionString: ${exampleQueueAuthorizationRule.primaryConnectionString}
Create EndpointServicebusQueue Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EndpointServicebusQueue(name: string, args: EndpointServicebusQueueArgs, opts?: CustomResourceOptions);
@overload
def EndpointServicebusQueue(resource_name: str,
args: EndpointServicebusQueueArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EndpointServicebusQueue(resource_name: str,
opts: Optional[ResourceOptions] = None,
iothub_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
authentication_type: Optional[str] = None,
connection_string: Optional[str] = None,
endpoint_uri: Optional[str] = None,
entity_path: Optional[str] = None,
identity_id: Optional[str] = None,
name: Optional[str] = None)
func NewEndpointServicebusQueue(ctx *Context, name string, args EndpointServicebusQueueArgs, opts ...ResourceOption) (*EndpointServicebusQueue, error)
public EndpointServicebusQueue(string name, EndpointServicebusQueueArgs args, CustomResourceOptions? opts = null)
public EndpointServicebusQueue(String name, EndpointServicebusQueueArgs args)
public EndpointServicebusQueue(String name, EndpointServicebusQueueArgs args, CustomResourceOptions options)
type: azure:iot:EndpointServicebusQueue
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EndpointServicebusQueueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EndpointServicebusQueueArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EndpointServicebusQueueArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointServicebusQueueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointServicebusQueueArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var endpointServicebusQueueResource = new Azure.Iot.EndpointServicebusQueue("endpointServicebusQueueResource", new()
{
IothubId = "string",
ResourceGroupName = "string",
AuthenticationType = "string",
ConnectionString = "string",
EndpointUri = "string",
EntityPath = "string",
IdentityId = "string",
Name = "string",
});
example, err := iot.NewEndpointServicebusQueue(ctx, "endpointServicebusQueueResource", &iot.EndpointServicebusQueueArgs{
IothubId: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
AuthenticationType: pulumi.String("string"),
ConnectionString: pulumi.String("string"),
EndpointUri: pulumi.String("string"),
EntityPath: pulumi.String("string"),
IdentityId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var endpointServicebusQueueResource = new EndpointServicebusQueue("endpointServicebusQueueResource", EndpointServicebusQueueArgs.builder()
.iothubId("string")
.resourceGroupName("string")
.authenticationType("string")
.connectionString("string")
.endpointUri("string")
.entityPath("string")
.identityId("string")
.name("string")
.build());
endpoint_servicebus_queue_resource = azure.iot.EndpointServicebusQueue("endpointServicebusQueueResource",
iothub_id="string",
resource_group_name="string",
authentication_type="string",
connection_string="string",
endpoint_uri="string",
entity_path="string",
identity_id="string",
name="string")
const endpointServicebusQueueResource = new azure.iot.EndpointServicebusQueue("endpointServicebusQueueResource", {
iothubId: "string",
resourceGroupName: "string",
authenticationType: "string",
connectionString: "string",
endpointUri: "string",
entityPath: "string",
identityId: "string",
name: "string",
});
type: azure:iot:EndpointServicebusQueue
properties:
authenticationType: string
connectionString: string
endpointUri: string
entityPath: string
identityId: string
iothubId: string
name: string
resourceGroupName: string
EndpointServicebusQueue Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The EndpointServicebusQueue resource accepts the following input properties:
- Iothub
Id string - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- Authentication
Type string - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - Connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - Endpoint
Uri string - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - Entity
Path string - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - Identity
Id string ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- Name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created.
- Iothub
Id string - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- Authentication
Type string - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - Connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - Endpoint
Uri string - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - Entity
Path string - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - Identity
Id string ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- Name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created.
- iothub
Id String - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- authentication
Type String - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - connection
String String - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - endpoint
Uri String - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - entity
Path String - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - identity
Id String ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- name String
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created.
- iothub
Id string - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- authentication
Type string - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - endpoint
Uri string - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - entity
Path string - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - identity
Id string ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created.
- iothub_
id str - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- authentication_
type str - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - connection_
string str - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - endpoint_
uri str - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - entity_
path str - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - identity_
id str ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- name str
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created.
- iothub
Id String - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- authentication
Type String - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - connection
String String - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - endpoint
Uri String - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - entity
Path String - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - identity
Id String ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- name String
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the EndpointServicebusQueue 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 string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EndpointServicebusQueue Resource
Get an existing EndpointServicebusQueue 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?: EndpointServicebusQueueState, opts?: CustomResourceOptions): EndpointServicebusQueue
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authentication_type: Optional[str] = None,
connection_string: Optional[str] = None,
endpoint_uri: Optional[str] = None,
entity_path: Optional[str] = None,
identity_id: Optional[str] = None,
iothub_id: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None) -> EndpointServicebusQueue
func GetEndpointServicebusQueue(ctx *Context, name string, id IDInput, state *EndpointServicebusQueueState, opts ...ResourceOption) (*EndpointServicebusQueue, error)
public static EndpointServicebusQueue Get(string name, Input<string> id, EndpointServicebusQueueState? state, CustomResourceOptions? opts = null)
public static EndpointServicebusQueue get(String name, Output<String> id, EndpointServicebusQueueState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Authentication
Type string - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - Connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - Endpoint
Uri string - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - Entity
Path string - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - Identity
Id string ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- Iothub
Id string - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- Name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created. - Resource
Group stringName - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- Authentication
Type string - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - Connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - Endpoint
Uri string - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - Entity
Path string - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - Identity
Id string ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- Iothub
Id string - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- Name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created. - Resource
Group stringName - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- authentication
Type String - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - connection
String String - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - endpoint
Uri String - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - entity
Path String - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - identity
Id String ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- iothub
Id String - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- name String
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created. - resource
Group StringName - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- authentication
Type string - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - connection
String string - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - endpoint
Uri string - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - entity
Path string - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - identity
Id string ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- iothub
Id string - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- name string
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created. - resource
Group stringName - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- authentication_
type str - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - connection_
string str - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - endpoint_
uri str - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - entity_
path str - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - identity_
id str ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- iothub_
id str - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- name str
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created. - resource_
group_ strname - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
- authentication
Type String - Type used to authenticate against the Service Bus Queue endpoint. Possible values are
keyBased
andidentityBased
. Defaults tokeyBased
. - connection
String String - The connection string for the endpoint. This attribute can only be specified and is mandatory when
authentication_type
iskeyBased
. - endpoint
Uri String - URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - entity
Path String - Name of the Service Bus Queue. This attribute can only be specified and is mandatory when
authentication_type
isidentityBased
. - identity
Id String ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
NOTE:
identity_id
can only be specified whenauthentication_type
isidentityBased
. It must be one of theidentity_ids
of the Iot Hub. If not specified whenauthentication_type
isidentityBased
, System Assigned Managed Identity of the Iot Hub will be used.- iothub
Id String - The IoTHub ID for the endpoint. Changing this forces a new resource to be created.
- name String
- The name of the endpoint. The name must be unique across endpoint types. The following names are reserved:
events
,operationsMonitoringEvents
,fileNotifications
and$default
. Changing this forces a new resource to be created. - resource
Group StringName - The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.
Import
IoTHub ServiceBus Queue Endpoint can be imported using the resource id
, e.g.
g
$ pulumi import azure:iot/endpointServicebusQueue:EndpointServicebusQueue servicebus_queue1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Devices/iotHubs/hub1/endpoints/servicebusqueue_endpoint1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.