1. Packages
  2. Azure Native
  3. API Docs
  4. databoxedge
  5. MECRole
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.databoxedge.MECRole

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    MEC role. Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01.

    Example Usage

    RolePut

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var mecRole = new AzureNative.DataBoxEdge.MECRole("mecRole", new()
        {
            DeviceName = "testedgedevice",
            Name = "IoTRole1",
            ResourceGroupName = "GroupForEdgeAutomation",
        });
    
    });
    
    package main
    
    import (
    	databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databoxedge.NewMECRole(ctx, "mecRole", &databoxedge.MECRoleArgs{
    			DeviceName:        pulumi.String("testedgedevice"),
    			Name:              pulumi.String("IoTRole1"),
    			ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.databoxedge.MECRole;
    import com.pulumi.azurenative.databoxedge.MECRoleArgs;
    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 mecRole = new MECRole("mecRole", MECRoleArgs.builder()
                .deviceName("testedgedevice")
                .name("IoTRole1")
                .resourceGroupName("GroupForEdgeAutomation")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    mec_role = azure_native.databoxedge.MECRole("mecRole",
        device_name="testedgedevice",
        name="IoTRole1",
        resource_group_name="GroupForEdgeAutomation")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const mecRole = new azure_native.databoxedge.MECRole("mecRole", {
        deviceName: "testedgedevice",
        name: "IoTRole1",
        resourceGroupName: "GroupForEdgeAutomation",
    });
    
    resources:
      mecRole:
        type: azure-native:databoxedge:MECRole
        properties:
          deviceName: testedgedevice
          name: IoTRole1
          resourceGroupName: GroupForEdgeAutomation
    

    Create MECRole Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MECRole(name: string, args: MECRoleArgs, opts?: CustomResourceOptions);
    @overload
    def MECRole(resource_name: str,
                args: MECRoleArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def MECRole(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                device_name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                role_status: Optional[Union[str, RoleStatus]] = None,
                connection_string: Optional[AsymmetricEncryptedSecretArgs] = None,
                controller_endpoint: Optional[str] = None,
                name: Optional[str] = None,
                resource_unique_id: Optional[str] = None)
    func NewMECRole(ctx *Context, name string, args MECRoleArgs, opts ...ResourceOption) (*MECRole, error)
    public MECRole(string name, MECRoleArgs args, CustomResourceOptions? opts = null)
    public MECRole(String name, MECRoleArgs args)
    public MECRole(String name, MECRoleArgs args, CustomResourceOptions options)
    
    type: azure-native:databoxedge:MECRole
    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 MECRoleArgs
    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 MECRoleArgs
    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 MECRoleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MECRoleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MECRoleArgs
    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 mecroleResource = new AzureNative.DataBoxEdge.MECRole("mecroleResource", new()
    {
        DeviceName = "string",
        Kind = "string",
        ResourceGroupName = "string",
        RoleStatus = "string",
        ConnectionString = new AzureNative.DataBoxEdge.Inputs.AsymmetricEncryptedSecretArgs
        {
            EncryptionAlgorithm = "string",
            Value = "string",
            EncryptionCertThumbprint = "string",
        },
        ControllerEndpoint = "string",
        Name = "string",
        ResourceUniqueId = "string",
    });
    
    example, err := databoxedge.NewMECRole(ctx, "mecroleResource", &databoxedge.MECRoleArgs{
    	DeviceName:        pulumi.String("string"),
    	Kind:              pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	RoleStatus:        pulumi.String("string"),
    	ConnectionString: &databoxedge.AsymmetricEncryptedSecretArgs{
    		EncryptionAlgorithm:      pulumi.String("string"),
    		Value:                    pulumi.String("string"),
    		EncryptionCertThumbprint: pulumi.String("string"),
    	},
    	ControllerEndpoint: pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	ResourceUniqueId:   pulumi.String("string"),
    })
    
    var mecroleResource = new MECRole("mecroleResource", MECRoleArgs.builder()
        .deviceName("string")
        .kind("string")
        .resourceGroupName("string")
        .roleStatus("string")
        .connectionString(AsymmetricEncryptedSecretArgs.builder()
            .encryptionAlgorithm("string")
            .value("string")
            .encryptionCertThumbprint("string")
            .build())
        .controllerEndpoint("string")
        .name("string")
        .resourceUniqueId("string")
        .build());
    
    mecrole_resource = azure_native.databoxedge.MECRole("mecroleResource",
        device_name="string",
        kind="string",
        resource_group_name="string",
        role_status="string",
        connection_string={
            "encryption_algorithm": "string",
            "value": "string",
            "encryption_cert_thumbprint": "string",
        },
        controller_endpoint="string",
        name="string",
        resource_unique_id="string")
    
    const mecroleResource = new azure_native.databoxedge.MECRole("mecroleResource", {
        deviceName: "string",
        kind: "string",
        resourceGroupName: "string",
        roleStatus: "string",
        connectionString: {
            encryptionAlgorithm: "string",
            value: "string",
            encryptionCertThumbprint: "string",
        },
        controllerEndpoint: "string",
        name: "string",
        resourceUniqueId: "string",
    });
    
    type: azure-native:databoxedge:MECRole
    properties:
        connectionString:
            encryptionAlgorithm: string
            encryptionCertThumbprint: string
            value: string
        controllerEndpoint: string
        deviceName: string
        kind: string
        name: string
        resourceGroupName: string
        resourceUniqueId: string
        roleStatus: string
    

    MECRole 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 MECRole resource accepts the following input properties:

    DeviceName string
    The device name.
    ResourceGroupName string
    The resource group name.
    RoleStatus string | Pulumi.AzureNative.DataBoxEdge.RoleStatus
    Role status.
    ConnectionString Pulumi.AzureNative.DataBoxEdge.Inputs.AsymmetricEncryptedSecret
    Activation key of the MEC.
    ControllerEndpoint string
    Controller Endpoint.
    Name string
    The role name.
    ResourceUniqueId string
    Unique Id of the Resource.
    DeviceName string
    The device name.
    ResourceGroupName string
    The resource group name.
    RoleStatus string | RoleStatus
    Role status.
    ConnectionString AsymmetricEncryptedSecretArgs
    Activation key of the MEC.
    ControllerEndpoint string
    Controller Endpoint.
    Name string
    The role name.
    ResourceUniqueId string
    Unique Id of the Resource.
    deviceName String
    The device name.
    resourceGroupName String
    The resource group name.
    roleStatus String | RoleStatus
    Role status.
    connectionString AsymmetricEncryptedSecret
    Activation key of the MEC.
    controllerEndpoint String
    Controller Endpoint.
    name String
    The role name.
    resourceUniqueId String
    Unique Id of the Resource.
    deviceName string
    The device name.
    resourceGroupName string
    The resource group name.
    roleStatus string | RoleStatus
    Role status.
    connectionString AsymmetricEncryptedSecret
    Activation key of the MEC.
    controllerEndpoint string
    Controller Endpoint.
    name string
    The role name.
    resourceUniqueId string
    Unique Id of the Resource.
    device_name str
    The device name.
    resource_group_name str
    The resource group name.
    role_status str | RoleStatus
    Role status.
    connection_string AsymmetricEncryptedSecretArgs
    Activation key of the MEC.
    controller_endpoint str
    Controller Endpoint.
    name str
    The role name.
    resource_unique_id str
    Unique Id of the Resource.
    deviceName String
    The device name.
    resourceGroupName String
    The resource group name.
    roleStatus String | "Enabled" | "Disabled"
    Role status.
    connectionString Property Map
    Activation key of the MEC.
    controllerEndpoint String
    Controller Endpoint.
    name String
    The role name.
    resourceUniqueId String
    Unique Id of the Resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MECRole resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    SystemData Pulumi.AzureNative.DataBoxEdge.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of Role
    Type string
    The hierarchical type of the object.
    Id string
    The provider-assigned unique ID for this managed resource.
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of Role
    Type string
    The hierarchical type of the object.
    id String
    The provider-assigned unique ID for this managed resource.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of Role
    type String
    The hierarchical type of the object.
    id string
    The provider-assigned unique ID for this managed resource.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of Role
    type string
    The hierarchical type of the object.
    id str
    The provider-assigned unique ID for this managed resource.
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of Role
    type str
    The hierarchical type of the object.
    id String
    The provider-assigned unique ID for this managed resource.
    systemData Property Map
    Metadata pertaining to creation and last modification of Role
    type String
    The hierarchical type of the object.

    Supporting Types

    AsymmetricEncryptedSecret, AsymmetricEncryptedSecretArgs

    EncryptionAlgorithm string | Pulumi.AzureNative.DataBoxEdge.EncryptionAlgorithm
    The algorithm used to encrypt "Value".
    Value string
    The value of the secret.
    EncryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    EncryptionAlgorithm string | EncryptionAlgorithm
    The algorithm used to encrypt "Value".
    Value string
    The value of the secret.
    EncryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm String | EncryptionAlgorithm
    The algorithm used to encrypt "Value".
    value String
    The value of the secret.
    encryptionCertThumbprint String
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm string | EncryptionAlgorithm
    The algorithm used to encrypt "Value".
    value string
    The value of the secret.
    encryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryption_algorithm str | EncryptionAlgorithm
    The algorithm used to encrypt "Value".
    value str
    The value of the secret.
    encryption_cert_thumbprint str
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm String | "None" | "AES256" | "RSAES_PKCS1_v_1_5"
    The algorithm used to encrypt "Value".
    value String
    The value of the secret.
    encryptionCertThumbprint String
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.

    AsymmetricEncryptedSecretResponse, AsymmetricEncryptedSecretResponseArgs

    EncryptionAlgorithm string
    The algorithm used to encrypt "Value".
    Value string
    The value of the secret.
    EncryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    EncryptionAlgorithm string
    The algorithm used to encrypt "Value".
    Value string
    The value of the secret.
    EncryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm String
    The algorithm used to encrypt "Value".
    value String
    The value of the secret.
    encryptionCertThumbprint String
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm string
    The algorithm used to encrypt "Value".
    value string
    The value of the secret.
    encryptionCertThumbprint string
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryption_algorithm str
    The algorithm used to encrypt "Value".
    value str
    The value of the secret.
    encryption_cert_thumbprint str
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.
    encryptionAlgorithm String
    The algorithm used to encrypt "Value".
    value String
    The value of the secret.
    encryptionCertThumbprint String
    Thumbprint certificate used to encrypt "Value". If the value is unencrypted, it will be null.

    EncryptionAlgorithm, EncryptionAlgorithmArgs

    None
    None
    AES256
    AES256
    RSAES_PKCS1_v_1_5
    RSAES_PKCS1_v_1_5
    EncryptionAlgorithmNone
    None
    EncryptionAlgorithmAES256
    AES256
    EncryptionAlgorithm_RSAES_PKCS1_v_1_5
    RSAES_PKCS1_v_1_5
    None
    None
    AES256
    AES256
    RSAES_PKCS1_v_1_5
    RSAES_PKCS1_v_1_5
    None
    None
    AES256
    AES256
    RSAES_PKCS1_v_1_5
    RSAES_PKCS1_v_1_5
    NONE
    None
    AES256
    AES256
    RSAE_S_PKCS1_V_1_5
    RSAES_PKCS1_v_1_5
    "None"
    None
    "AES256"
    AES256
    "RSAES_PKCS1_v_1_5"
    RSAES_PKCS1_v_1_5

    RoleStatus, RoleStatusArgs

    Enabled
    Enabled
    Disabled
    Disabled
    RoleStatusEnabled
    Enabled
    RoleStatusDisabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    ENABLED
    Enabled
    DISABLED
    Disabled
    "Enabled"
    Enabled
    "Disabled"
    Disabled

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:databoxedge:MECRole IoTRole1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{name} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi