1. Packages
  2. Hsdp Provider
  3. API Docs
  4. ConnectMdmDeviceType
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

hsdp.ConnectMdmDeviceType

Explore with Pulumi AI

hsdp logo
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

    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:

    CommercialTypeNumber string
    Commercial Type Number
    DeviceGroupId string
    Reference to the Device Group this type falls under
    ConnectMdmDeviceTypeId string
    CustomTypeAttributes Dictionary<string, string>

    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

    DefaultIamGroupId string
    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
    CommercialTypeNumber string
    Commercial Type Number
    DeviceGroupId string
    Reference to the Device Group this type falls under
    ConnectMdmDeviceTypeId string
    CustomTypeAttributes map[string]string

    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

    DefaultIamGroupId string
    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
    commercialTypeNumber String
    Commercial Type Number
    deviceGroupId String
    Reference to the Device Group this type falls under
    connectMdmDeviceTypeId String
    customTypeAttributes Map<String,String>

    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

    defaultIamGroupId String
    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
    commercialTypeNumber string
    Commercial Type Number
    deviceGroupId string
    Reference to the Device Group this type falls under
    connectMdmDeviceTypeId string
    customTypeAttributes {[key: string]: string}

    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

    defaultIamGroupId string
    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_number str
    Commercial Type Number
    device_group_id str
    Reference to the Device Group this type falls under
    connect_mdm_device_type_id str
    custom_type_attributes Mapping[str, str]

    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_group_id str
    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
    commercialTypeNumber String
    Commercial Type Number
    deviceGroupId String
    Reference to the Device Group this type falls under
    connectMdmDeviceTypeId String
    customTypeAttributes Map<String>

    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

    defaultIamGroupId String
    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 string
    Id string
    The provider-assigned unique ID for this managed resource.
    VersionId string
    Guid string
    Id string
    The provider-assigned unique ID for this managed resource.
    VersionId string
    guid String
    id String
    The provider-assigned unique ID for this managed resource.
    versionId String
    guid string
    id string
    The provider-assigned unique ID for this managed resource.
    versionId string
    guid str
    id str
    The provider-assigned unique ID for this managed resource.
    version_id str
    guid String
    id String
    The provider-assigned unique ID for this managed resource.
    versionId String

    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.
    The following state arguments are supported:
    CommercialTypeNumber string
    Commercial Type Number
    ConnectMdmDeviceTypeId string
    CustomTypeAttributes Dictionary<string, string>

    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

    DefaultIamGroupId string
    The IAM Group from which this group will inherit roles from
    Description string
    A short description of the device type
    DeviceGroupId string
    Reference to the Device Group this type falls under
    Guid string
    Name string
    The name of the device type
    VersionId string
    CommercialTypeNumber string
    Commercial Type Number
    ConnectMdmDeviceTypeId string
    CustomTypeAttributes map[string]string

    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

    DefaultIamGroupId string
    The IAM Group from which this group will inherit roles from
    Description string
    A short description of the device type
    DeviceGroupId string
    Reference to the Device Group this type falls under
    Guid string
    Name string
    The name of the device type
    VersionId string
    commercialTypeNumber String
    Commercial Type Number
    connectMdmDeviceTypeId String
    customTypeAttributes Map<String,String>

    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

    defaultIamGroupId String
    The IAM Group from which this group will inherit roles from
    description String
    A short description of the device type
    deviceGroupId String
    Reference to the Device Group this type falls under
    guid String
    name String
    The name of the device type
    versionId String
    commercialTypeNumber string
    Commercial Type Number
    connectMdmDeviceTypeId string
    customTypeAttributes {[key: string]: string}

    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

    defaultIamGroupId string
    The IAM Group from which this group will inherit roles from
    description string
    A short description of the device type
    deviceGroupId string
    Reference to the Device Group this type falls under
    guid string
    name string
    The name of the device type
    versionId string
    commercial_type_number str
    Commercial Type Number
    connect_mdm_device_type_id str
    custom_type_attributes Mapping[str, str]

    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_group_id str
    The IAM Group from which this group will inherit roles from
    description str
    A short description of the device type
    device_group_id str
    Reference to the Device Group this type falls under
    guid str
    name str
    The name of the device type
    version_id str
    commercialTypeNumber String
    Commercial Type Number
    connectMdmDeviceTypeId String
    customTypeAttributes Map<String>

    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

    defaultIamGroupId String
    The IAM Group from which this group will inherit roles from
    description String
    A short description of the device type
    deviceGroupId String
    Reference to the Device Group this type falls under
    guid String
    name String
    The name of the device type
    versionId String

    Package Details

    Repository
    hsdp philips-software/terraform-provider-hsdp
    License
    Notes
    This Pulumi package is based on the hsdp Terraform Provider.
    hsdp logo
    hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software