DeviceArgs

data class DeviceArgs(val dataResidency: Output<DataResidencyArgs>? = null, val deviceName: Output<String>? = null, val identity: Output<ResourceIdentityArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<DeviceArgs>

The Data Box Edge/Gateway device. Uses Azure REST API version 2023-07-01. In version 2.x of the Azure Native provider, it used API version 2022-03-01. Other available API versions: 2022-03-01, 2022-04-01-preview, 2022-12-01-preview, 2023-01-01-preview, 2023-12-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native databoxedge [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

DataBoxEdgeDevicePut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var device = new AzureNative.DataBoxEdge.Device("device", new()
{
DeviceName = "testedgedevice",
Location = "WUS",
ResourceGroupName = "GroupForEdgeAutomation",
Sku = new AzureNative.DataBoxEdge.Inputs.SkuArgs
{
Name = AzureNative.DataBoxEdge.SkuName.Edge,
Tier = AzureNative.DataBoxEdge.SkuTier.Standard,
},
Tags = null,
});
});
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.NewDevice(ctx, "device", &databoxedge.DeviceArgs{
DeviceName: pulumi.String("testedgedevice"),
Location: pulumi.String("WUS"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
Sku: &databoxedge.SkuArgs{
Name: pulumi.String(databoxedge.SkuNameEdge),
Tier: pulumi.String(databoxedge.SkuTierStandard),
},
Tags: pulumi.StringMap{},
})
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.Device;
import com.pulumi.azurenative.databoxedge.DeviceArgs;
import com.pulumi.azurenative.databoxedge.inputs.SkuArgs;
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 device = new Device("device", DeviceArgs.builder()
.deviceName("testedgedevice")
.location("WUS")
.resourceGroupName("GroupForEdgeAutomation")
.sku(SkuArgs.builder()
.name("Edge")
.tier("Standard")
.build())
.tags()
.build());
}
}

DataBoxEdgeDevicePutWithDataResidency

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var device = new AzureNative.DataBoxEdge.Device("device", new()
{
DataResidency = new AzureNative.DataBoxEdge.Inputs.DataResidencyArgs
{
Type = AzureNative.DataBoxEdge.DataResidencyType.ZoneReplication,
},
DeviceName = "testedgedevice",
Location = "WUS",
ResourceGroupName = "GroupForEdgeAutomation",
Sku = new AzureNative.DataBoxEdge.Inputs.SkuArgs
{
Name = AzureNative.DataBoxEdge.SkuName.Edge,
Tier = AzureNative.DataBoxEdge.SkuTier.Standard,
},
Tags = null,
});
});
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.NewDevice(ctx, "device", &databoxedge.DeviceArgs{
DataResidency: &databoxedge.DataResidencyArgs{
Type: pulumi.String(databoxedge.DataResidencyTypeZoneReplication),
},
DeviceName: pulumi.String("testedgedevice"),
Location: pulumi.String("WUS"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
Sku: &databoxedge.SkuArgs{
Name: pulumi.String(databoxedge.SkuNameEdge),
Tier: pulumi.String(databoxedge.SkuTierStandard),
},
Tags: pulumi.StringMap{},
})
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.Device;
import com.pulumi.azurenative.databoxedge.DeviceArgs;
import com.pulumi.azurenative.databoxedge.inputs.DataResidencyArgs;
import com.pulumi.azurenative.databoxedge.inputs.SkuArgs;
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 device = new Device("device", DeviceArgs.builder()
.dataResidency(DataResidencyArgs.builder()
.type("ZoneReplication")
.build())
.deviceName("testedgedevice")
.location("WUS")
.resourceGroupName("GroupForEdgeAutomation")
.sku(SkuArgs.builder()
.name("Edge")
.tier("Standard")
.build())
.tags()
.build());
}
}

Import

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

$ pulumi import azure-native:databoxedge:Device testedgedevice /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}

Constructors

Link copied to clipboard
constructor(dataResidency: Output<DataResidencyArgs>? = null, deviceName: Output<String>? = null, identity: Output<ResourceIdentityArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val dataResidency: Output<DataResidencyArgs>? = null

The details of data-residency related properties for this resource

Link copied to clipboard
val deviceName: Output<String>? = null

The device name.

Link copied to clipboard
val identity: Output<ResourceIdentityArgs>? = null

Msi identity of the resource

Link copied to clipboard
val location: Output<String>? = null

The location of the device. This is a supported and registered Azure geographical region (for example, West US, East US, or Southeast Asia). The geographical region of a device cannot be changed once it is created, but if an identical geographical region is specified on update, the request will succeed.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The resource group name.

Link copied to clipboard
val sku: Output<SkuArgs>? = null

The SKU type.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

The list of tags that describe the device. These tags can be used to view and group this device (across resource groups).

Functions

Link copied to clipboard
open override fun toJava(): DeviceArgs