hsdp.ConnectMdmDeviceType
Explore with Pulumi AI
Create and manage MDM DeviceType resources
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const someDeviceType = new hsdp.ConnectMdmDeviceType("someDeviceType", {
description: "WEARABLE0001",
commercialTypeNumber: "WATCH1",
deviceGroupId: hsdp_connect_mdm_device_group.some_group.id,
defaultIamGroupId: data.hsdp_iam_group.wearable_group.id,
customTypeAttributes: {
position: "wrist",
region: "eu",
},
});
import pulumi
import pulumi_hsdp as hsdp
some_device_type = hsdp.ConnectMdmDeviceType("someDeviceType",
description="WEARABLE0001",
commercial_type_number="WATCH1",
device_group_id=hsdp_connect_mdm_device_group["some_group"]["id"],
default_iam_group_id=data["hsdp_iam_group"]["wearable_group"]["id"],
custom_type_attributes={
"position": "wrist",
"region": "eu",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hsdp.NewConnectMdmDeviceType(ctx, "someDeviceType", &hsdp.ConnectMdmDeviceTypeArgs{
Description: pulumi.String("WEARABLE0001"),
CommercialTypeNumber: pulumi.String("WATCH1"),
DeviceGroupId: pulumi.Any(hsdp_connect_mdm_device_group.Some_group.Id),
DefaultIamGroupId: pulumi.Any(data.Hsdp_iam_group.Wearable_group.Id),
CustomTypeAttributes: pulumi.StringMap{
"position": pulumi.String("wrist"),
"region": pulumi.String("eu"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() =>
{
var someDeviceType = new Hsdp.ConnectMdmDeviceType("someDeviceType", new()
{
Description = "WEARABLE0001",
CommercialTypeNumber = "WATCH1",
DeviceGroupId = hsdp_connect_mdm_device_group.Some_group.Id,
DefaultIamGroupId = data.Hsdp_iam_group.Wearable_group.Id,
CustomTypeAttributes =
{
{ "position", "wrist" },
{ "region", "eu" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.ConnectMdmDeviceType;
import com.pulumi.hsdp.ConnectMdmDeviceTypeArgs;
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 someDeviceType = new ConnectMdmDeviceType("someDeviceType", ConnectMdmDeviceTypeArgs.builder()
.description("WEARABLE0001")
.commercialTypeNumber("WATCH1")
.deviceGroupId(hsdp_connect_mdm_device_group.some_group().id())
.defaultIamGroupId(data.hsdp_iam_group().wearable_group().id())
.customTypeAttributes(Map.ofEntries(
Map.entry("position", "wrist"),
Map.entry("region", "eu")
))
.build());
}
}
resources:
someDeviceType:
type: hsdp:ConnectMdmDeviceType
properties:
description: WEARABLE0001
commercialTypeNumber: WATCH1
deviceGroupId: ${hsdp_connect_mdm_device_group.some_group.id}
defaultIamGroupId: ${data.hsdp_iam_group.wearable_group.id}
customTypeAttributes:
position: wrist
region: eu
Attributes reference
In addition to all arguments above, the following attributes are exported:
id
- The ID reference of the service action (format:Group/${GUID}
)guid
- The GUID of the service action
Create ConnectMdmDeviceType Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConnectMdmDeviceType(name: string, args: ConnectMdmDeviceTypeArgs, opts?: CustomResourceOptions);
@overload
def ConnectMdmDeviceType(resource_name: str,
args: ConnectMdmDeviceTypeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConnectMdmDeviceType(resource_name: str,
opts: Optional[ResourceOptions] = None,
commercial_type_number: Optional[str] = None,
device_group_id: Optional[str] = None,
connect_mdm_device_type_id: Optional[str] = None,
custom_type_attributes: Optional[Mapping[str, str]] = None,
default_iam_group_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewConnectMdmDeviceType(ctx *Context, name string, args ConnectMdmDeviceTypeArgs, opts ...ResourceOption) (*ConnectMdmDeviceType, error)
public ConnectMdmDeviceType(string name, ConnectMdmDeviceTypeArgs args, CustomResourceOptions? opts = null)
public ConnectMdmDeviceType(String name, ConnectMdmDeviceTypeArgs args)
public ConnectMdmDeviceType(String name, ConnectMdmDeviceTypeArgs args, CustomResourceOptions options)
type: hsdp:ConnectMdmDeviceType
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 ConnectMdmDeviceTypeArgs
- 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 ConnectMdmDeviceTypeArgs
- 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 ConnectMdmDeviceTypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectMdmDeviceTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectMdmDeviceTypeArgs
- 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 connectMdmDeviceTypeResource = new Hsdp.ConnectMdmDeviceType("connectMdmDeviceTypeResource", new()
{
CommercialTypeNumber = "string",
DeviceGroupId = "string",
ConnectMdmDeviceTypeId = "string",
CustomTypeAttributes =
{
{ "string", "string" },
},
DefaultIamGroupId = "string",
Description = "string",
Name = "string",
});
example, err := hsdp.NewConnectMdmDeviceType(ctx, "connectMdmDeviceTypeResource", &hsdp.ConnectMdmDeviceTypeArgs{
CommercialTypeNumber: pulumi.String("string"),
DeviceGroupId: pulumi.String("string"),
ConnectMdmDeviceTypeId: pulumi.String("string"),
CustomTypeAttributes: pulumi.StringMap{
"string": pulumi.String("string"),
},
DefaultIamGroupId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var connectMdmDeviceTypeResource = new ConnectMdmDeviceType("connectMdmDeviceTypeResource", ConnectMdmDeviceTypeArgs.builder()
.commercialTypeNumber("string")
.deviceGroupId("string")
.connectMdmDeviceTypeId("string")
.customTypeAttributes(Map.of("string", "string"))
.defaultIamGroupId("string")
.description("string")
.name("string")
.build());
connect_mdm_device_type_resource = hsdp.ConnectMdmDeviceType("connectMdmDeviceTypeResource",
commercial_type_number="string",
device_group_id="string",
connect_mdm_device_type_id="string",
custom_type_attributes={
"string": "string",
},
default_iam_group_id="string",
description="string",
name="string")
const connectMdmDeviceTypeResource = new hsdp.ConnectMdmDeviceType("connectMdmDeviceTypeResource", {
commercialTypeNumber: "string",
deviceGroupId: "string",
connectMdmDeviceTypeId: "string",
customTypeAttributes: {
string: "string",
},
defaultIamGroupId: "string",
description: "string",
name: "string",
});
type: hsdp:ConnectMdmDeviceType
properties:
commercialTypeNumber: string
connectMdmDeviceTypeId: string
customTypeAttributes:
string: string
defaultIamGroupId: string
description: string
deviceGroupId: string
name: string
ConnectMdmDeviceType Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ConnectMdmDeviceType resource accepts the following input properties:
- Commercial
Type stringNumber - Commercial Type Number
- Device
Group stringId - Reference to the Device Group this type falls under
- Connect
Mdm stringDevice Type Id - Custom
Type Dictionary<string, string>Attributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- Default
Iam stringGroup Id - The IAM Group from which this group will inherit roles from
- Description string
- A short description of the device type
- Name string
- The name of the device type
- Commercial
Type stringNumber - Commercial Type Number
- Device
Group stringId - Reference to the Device Group this type falls under
- Connect
Mdm stringDevice Type Id - Custom
Type map[string]stringAttributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- Default
Iam stringGroup Id - The IAM Group from which this group will inherit roles from
- Description string
- A short description of the device type
- Name string
- The name of the device type
- commercial
Type StringNumber - Commercial Type Number
- device
Group StringId - Reference to the Device Group this type falls under
- connect
Mdm StringDevice Type Id - custom
Type Map<String,String>Attributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- default
Iam StringGroup Id - The IAM Group from which this group will inherit roles from
- description String
- A short description of the device type
- name String
- The name of the device type
- commercial
Type stringNumber - Commercial Type Number
- device
Group stringId - Reference to the Device Group this type falls under
- connect
Mdm stringDevice Type Id - custom
Type {[key: string]: string}Attributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- default
Iam stringGroup Id - The IAM Group from which this group will inherit roles from
- description string
- A short description of the device type
- name string
- The name of the device type
- commercial_
type_ strnumber - Commercial Type Number
- device_
group_ strid - Reference to the Device Group this type falls under
- connect_
mdm_ strdevice_ type_ id - custom_
type_ Mapping[str, str]attributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- default_
iam_ strgroup_ id - The IAM Group from which this group will inherit roles from
- description str
- A short description of the device type
- name str
- The name of the device type
- commercial
Type StringNumber - Commercial Type Number
- device
Group StringId - Reference to the Device Group this type falls under
- connect
Mdm StringDevice Type Id - custom
Type Map<String>Attributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- default
Iam StringGroup Id - The IAM Group from which this group will inherit roles from
- description String
- A short description of the device type
- name String
- The name of the device type
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectMdmDeviceType resource produces the following output properties:
- guid str
- id str
- The provider-assigned unique ID for this managed resource.
- version_
id str
Look up Existing ConnectMdmDeviceType Resource
Get an existing ConnectMdmDeviceType 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?: ConnectMdmDeviceTypeState, opts?: CustomResourceOptions): ConnectMdmDeviceType
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
commercial_type_number: Optional[str] = None,
connect_mdm_device_type_id: Optional[str] = None,
custom_type_attributes: Optional[Mapping[str, str]] = None,
default_iam_group_id: Optional[str] = None,
description: Optional[str] = None,
device_group_id: Optional[str] = None,
guid: Optional[str] = None,
name: Optional[str] = None,
version_id: Optional[str] = None) -> ConnectMdmDeviceType
func GetConnectMdmDeviceType(ctx *Context, name string, id IDInput, state *ConnectMdmDeviceTypeState, opts ...ResourceOption) (*ConnectMdmDeviceType, error)
public static ConnectMdmDeviceType Get(string name, Input<string> id, ConnectMdmDeviceTypeState? state, CustomResourceOptions? opts = null)
public static ConnectMdmDeviceType get(String name, Output<String> id, ConnectMdmDeviceTypeState state, CustomResourceOptions options)
resources: _: type: hsdp:ConnectMdmDeviceType get: id: ${id}
- 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.
- Commercial
Type stringNumber - Commercial Type Number
- Connect
Mdm stringDevice Type Id - Custom
Type Dictionary<string, string>Attributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- Default
Iam stringGroup Id - The IAM Group from which this group will inherit roles from
- Description string
- A short description of the device type
- Device
Group stringId - Reference to the Device Group this type falls under
- Guid string
- Name string
- The name of the device type
- Version
Id string
- Commercial
Type stringNumber - Commercial Type Number
- Connect
Mdm stringDevice Type Id - Custom
Type map[string]stringAttributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- Default
Iam stringGroup Id - The IAM Group from which this group will inherit roles from
- Description string
- A short description of the device type
- Device
Group stringId - Reference to the Device Group this type falls under
- Guid string
- Name string
- The name of the device type
- Version
Id string
- commercial
Type StringNumber - Commercial Type Number
- connect
Mdm StringDevice Type Id - custom
Type Map<String,String>Attributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- default
Iam StringGroup Id - The IAM Group from which this group will inherit roles from
- description String
- A short description of the device type
- device
Group StringId - Reference to the Device Group this type falls under
- guid String
- name String
- The name of the device type
- version
Id String
- commercial
Type stringNumber - Commercial Type Number
- connect
Mdm stringDevice Type Id - custom
Type {[key: string]: string}Attributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- default
Iam stringGroup Id - The IAM Group from which this group will inherit roles from
- description string
- A short description of the device type
- device
Group stringId - Reference to the Device Group this type falls under
- guid string
- name string
- The name of the device type
- version
Id string
- commercial_
type_ strnumber - Commercial Type Number
- connect_
mdm_ strdevice_ type_ id - custom_
type_ Mapping[str, str]attributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- default_
iam_ strgroup_ id - The IAM Group from which this group will inherit roles from
- description str
- A short description of the device type
- device_
group_ strid - Reference to the Device Group this type falls under
- guid str
- name str
- The name of the device type
- version_
id str
- commercial
Type StringNumber - Commercial Type Number
- connect
Mdm StringDevice Type Id - custom
Type Map<String>Attributes Type attributes for all devices under this type.
The
name
maps to an AWS IoT thing type so this should be globally unique and not used (or re-used) across deployments- default
Iam StringGroup Id - The IAM Group from which this group will inherit roles from
- description String
- A short description of the device type
- device
Group StringId - Reference to the Device Group this type falls under
- guid String
- name String
- The name of the device type
- version
Id String
Package Details
- Repository
- hsdp philips-software/terraform-provider-hsdp
- License
- Notes
- This Pulumi package is based on the
hsdp
Terraform Provider.