IotHubDps
Manages an IotHub Device Provisioning Service.
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 US",
});
var exampleIotHubDps = new Azure.Iot.IotHubDps("exampleIotHubDps", new Azure.Iot.IotHubDpsArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Sku = new Azure.Iot.Inputs.IotHubDpsSkuArgs
{
Name = "S1",
Capacity = 1,
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/iot"
"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 US"),
})
if err != nil {
return err
}
_, err = iot.NewIotHubDps(ctx, "exampleIotHubDps", &iot.IotHubDpsArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
Sku: &iot.IotHubDpsSkuArgs{
Name: pulumi.String("S1"),
Capacity: pulumi.Int(1),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West US")
example_iot_hub_dps = azure.iot.IotHubDps("exampleIotHubDps",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
sku={
"name": "S1",
"capacity": "1",
})import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West US"});
const exampleIotHubDps = new azure.iot.IotHubDps("exampleIotHubDps", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
sku: {
name: "S1",
capacity: "1",
},
});Create a IotHubDps Resource
new IotHubDps(name: string, args: IotHubDpsArgs, opts?: CustomResourceOptions);def IotHubDps(resource_name, opts=None, linked_hubs=None, location=None, name=None, resource_group_name=None, sku=None, tags=None, __props__=None);func NewIotHubDps(ctx *Context, name string, args IotHubDpsArgs, opts ...ResourceOption) (*IotHubDps, error)public IotHubDps(string name, IotHubDpsArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args IotHubDpsArgs
- 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 IotHubDpsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IotHubDpsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
IotHubDps Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The IotHubDps resource accepts the following input properties:
- Resource
Group stringName The name of the resource group under which the Iot Device Provisioning Service resource has to be created. Changing this forces a new resource to be created.
- Sku
Iot
Hub Dps Sku Args A
skublock as defined below.- Linked
Hubs List<IotHub Dps Linked Hub Args> A
linked_hubblock as defined below.- Location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Iot Device Provisioning Service resource. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Resource
Group stringName The name of the resource group under which the Iot Device Provisioning Service resource has to be created. Changing this forces a new resource to be created.
- Sku
Iot
Hub Dps Sku A
skublock as defined below.- Linked
Hubs []IotHub Dps Linked Hub A
linked_hubblock as defined below.- Location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Iot Device Provisioning Service resource. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- resource
Group stringName The name of the resource group under which the Iot Device Provisioning Service resource has to be created. Changing this forces a new resource to be created.
- sku
Iot
Hub Dps Sku A
skublock as defined below.- linked
Hubs IotHub Dps Linked Hub[] A
linked_hubblock as defined below.- location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- name string
Specifies the name of the Iot Device Provisioning Service resource. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- resource_
group_ strname The name of the resource group under which the Iot Device Provisioning Service resource has to be created. Changing this forces a new resource to be created.
- sku
Dict[Iot
Hub Dps Sku] A
skublock as defined below.- linked_
hubs List[IotHub Dps Linked Hub] A
linked_hubblock as defined below.- location str
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- name str
Specifies the name of the Iot Device Provisioning Service resource. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the IotHubDps resource produces the following output properties:
- Allocation
Policy string The allocation policy of the IoT Device Provisioning Service.
- Device
Provisioning stringHost Name The device endpoint of the IoT Device Provisioning Service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Id
Scope string The unique identifier of the IoT Device Provisioning Service.
- Service
Operations stringHost Name The service endpoint of the IoT Device Provisioning Service.
- Allocation
Policy string The allocation policy of the IoT Device Provisioning Service.
- Device
Provisioning stringHost Name The device endpoint of the IoT Device Provisioning Service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Id
Scope string The unique identifier of the IoT Device Provisioning Service.
- Service
Operations stringHost Name The service endpoint of the IoT Device Provisioning Service.
- allocation
Policy string The allocation policy of the IoT Device Provisioning Service.
- device
Provisioning stringHost Name The device endpoint of the IoT Device Provisioning Service.
- id string
- The provider-assigned unique ID for this managed resource.
- id
Scope string The unique identifier of the IoT Device Provisioning Service.
- service
Operations stringHost Name The service endpoint of the IoT Device Provisioning Service.
- allocation_
policy str The allocation policy of the IoT Device Provisioning Service.
- device_
provisioning_ strhost_ name The device endpoint of the IoT Device Provisioning Service.
- id str
- The provider-assigned unique ID for this managed resource.
- id_
scope str The unique identifier of the IoT Device Provisioning Service.
- service_
operations_ strhost_ name The service endpoint of the IoT Device Provisioning Service.
Look up an Existing IotHubDps Resource
Get an existing IotHubDps 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?: IotHubDpsState, opts?: CustomResourceOptions): IotHubDpsstatic get(resource_name, id, opts=None, allocation_policy=None, device_provisioning_host_name=None, id_scope=None, linked_hubs=None, location=None, name=None, resource_group_name=None, service_operations_host_name=None, sku=None, tags=None, __props__=None);func GetIotHubDps(ctx *Context, name string, id IDInput, state *IotHubDpsState, opts ...ResourceOption) (*IotHubDps, error)public static IotHubDps Get(string name, Input<string> id, IotHubDpsState? 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:
- Allocation
Policy string The allocation policy of the IoT Device Provisioning Service.
- Device
Provisioning stringHost Name The device endpoint of the IoT Device Provisioning Service.
- Id
Scope string The unique identifier of the IoT Device Provisioning Service.
- Linked
Hubs List<IotHub Dps Linked Hub Args> A
linked_hubblock as defined below.- Location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Iot Device Provisioning Service resource. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group under which the Iot Device Provisioning Service resource has to be created. Changing this forces a new resource to be created.
- Service
Operations stringHost Name The service endpoint of the IoT Device Provisioning Service.
- Sku
Iot
Hub Dps Sku Args A
skublock as defined below.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Allocation
Policy string The allocation policy of the IoT Device Provisioning Service.
- Device
Provisioning stringHost Name The device endpoint of the IoT Device Provisioning Service.
- Id
Scope string The unique identifier of the IoT Device Provisioning Service.
- Linked
Hubs []IotHub Dps Linked Hub A
linked_hubblock as defined below.- Location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Iot Device Provisioning Service resource. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group under which the Iot Device Provisioning Service resource has to be created. Changing this forces a new resource to be created.
- Service
Operations stringHost Name The service endpoint of the IoT Device Provisioning Service.
- Sku
Iot
Hub Dps Sku A
skublock as defined below.- map[string]string
A mapping of tags to assign to the resource.
- allocation
Policy string The allocation policy of the IoT Device Provisioning Service.
- device
Provisioning stringHost Name The device endpoint of the IoT Device Provisioning Service.
- id
Scope string The unique identifier of the IoT Device Provisioning Service.
- linked
Hubs IotHub Dps Linked Hub[] A
linked_hubblock as defined below.- location string
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- name string
Specifies the name of the Iot Device Provisioning Service resource. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group under which the Iot Device Provisioning Service resource has to be created. Changing this forces a new resource to be created.
- service
Operations stringHost Name The service endpoint of the IoT Device Provisioning Service.
- sku
Iot
Hub Dps Sku A
skublock as defined below.- {[key: string]: string}
A mapping of tags to assign to the resource.
- allocation_
policy str The allocation policy of the IoT Device Provisioning Service.
- device_
provisioning_ strhost_ name The device endpoint of the IoT Device Provisioning Service.
- id_
scope str The unique identifier of the IoT Device Provisioning Service.
- linked_
hubs List[IotHub Dps Linked Hub] A
linked_hubblock as defined below.- location str
Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
- name str
Specifies the name of the Iot Device Provisioning Service resource. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group under which the Iot Device Provisioning Service resource has to be created. Changing this forces a new resource to be created.
- service_
operations_ strhost_ name The service endpoint of the IoT Device Provisioning Service.
- sku
Dict[Iot
Hub Dps Sku] A
skublock as defined below.- Dict[str, str]
A mapping of tags to assign to the resource.
Supporting Types
IotHubDpsLinkedHub
- Connection
String string The connection string to connect to the IoT Hub. Changing this forces a new resource.
- Location string
The location of the IoT hub. Changing this forces a new resource.
- Allocation
Weight int The weight applied to the IoT Hub. Defaults to 0.
- Apply
Allocation boolPolicy Determines whether to apply allocation policies to the IoT Hub. Defaults to false.
- Hostname string
The IoT Hub hostname.
- Connection
String string The connection string to connect to the IoT Hub. Changing this forces a new resource.
- Location string
The location of the IoT hub. Changing this forces a new resource.
- Allocation
Weight int The weight applied to the IoT Hub. Defaults to 0.
- Apply
Allocation boolPolicy Determines whether to apply allocation policies to the IoT Hub. Defaults to false.
- Hostname string
The IoT Hub hostname.
- connection
String string The connection string to connect to the IoT Hub. Changing this forces a new resource.
- location string
The location of the IoT hub. Changing this forces a new resource.
- allocation
Weight number The weight applied to the IoT Hub. Defaults to 0.
- apply
Allocation booleanPolicy Determines whether to apply allocation policies to the IoT Hub. Defaults to false.
- hostname string
The IoT Hub hostname.
- connection_
string str The connection string to connect to the IoT Hub. Changing this forces a new resource.
- location str
The location of the IoT hub. Changing this forces a new resource.
- allocation
Weight float The weight applied to the IoT Hub. Defaults to 0.
- apply
Allocation boolPolicy Determines whether to apply allocation policies to the IoT Hub. Defaults to false.
- hostname str
The IoT Hub hostname.
IotHubDpsSku
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.