All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.databoxedge.Device Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.databoxedge;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.databoxedge.DeviceArgs;
import com.pulumi.azurenative.databoxedge.outputs.DataResidencyResponse;
import com.pulumi.azurenative.databoxedge.outputs.EdgeProfileResponse;
import com.pulumi.azurenative.databoxedge.outputs.ResourceIdentityResponse;
import com.pulumi.azurenative.databoxedge.outputs.ResourceMoveDetailsResponse;
import com.pulumi.azurenative.databoxedge.outputs.SkuResponse;
import com.pulumi.azurenative.databoxedge.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The Data Box Edge/Gateway device.
 * Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01.
 * 
 * Other available API versions: 2020-05-01-preview, 2021-02-01, 2021-02-01-preview, 2022-04-01-preview, 2023-01-01-preview, 2023-07-01, 2023-12-01.
 * 
 * ## Example Usage
 * ### DataBoxEdgeDevicePut
 * 
 * 
 * {@code
 * 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 * *
 * {@code
 * 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. * * ```sh * $ pulumi import azure-native:databoxedge:Device testedgedevice /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName} * ``` * */ @ResourceType(type="azure-native:databoxedge:Device") public class Device extends com.pulumi.resources.CustomResource { /** * Type of compute roles configured. * */ @Export(name="configuredRoleTypes", refs={List.class,String.class}, tree="[0,1]") private Output> configuredRoleTypes; /** * @return Type of compute roles configured. * */ public Output> configuredRoleTypes() { return this.configuredRoleTypes; } /** * The Data Box Edge/Gateway device culture. * */ @Export(name="culture", refs={String.class}, tree="[0]") private Output culture; /** * @return The Data Box Edge/Gateway device culture. * */ public Output culture() { return this.culture; } /** * The status of the Data Box Edge/Gateway device. * */ @Export(name="dataBoxEdgeDeviceStatus", refs={String.class}, tree="[0]") private Output dataBoxEdgeDeviceStatus; /** * @return The status of the Data Box Edge/Gateway device. * */ public Output dataBoxEdgeDeviceStatus() { return this.dataBoxEdgeDeviceStatus; } /** * The details of data-residency related properties for this resource * */ @Export(name="dataResidency", refs={DataResidencyResponse.class}, tree="[0]") private Output dataResidency; /** * @return The details of data-residency related properties for this resource * */ public Output> dataResidency() { return Codegen.optional(this.dataResidency); } /** * The Description of the Data Box Edge/Gateway device. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return The Description of the Data Box Edge/Gateway device. * */ public Output description() { return this.description; } /** * The device software version number of the device (eg: 1.2.18105.6). * */ @Export(name="deviceHcsVersion", refs={String.class}, tree="[0]") private Output deviceHcsVersion; /** * @return The device software version number of the device (eg: 1.2.18105.6). * */ public Output deviceHcsVersion() { return this.deviceHcsVersion; } /** * The Data Box Edge/Gateway device local capacity in MB. * */ @Export(name="deviceLocalCapacity", refs={Double.class}, tree="[0]") private Output deviceLocalCapacity; /** * @return The Data Box Edge/Gateway device local capacity in MB. * */ public Output deviceLocalCapacity() { return this.deviceLocalCapacity; } /** * The Data Box Edge/Gateway device model. * */ @Export(name="deviceModel", refs={String.class}, tree="[0]") private Output deviceModel; /** * @return The Data Box Edge/Gateway device model. * */ public Output deviceModel() { return this.deviceModel; } /** * The Data Box Edge/Gateway device software version. * */ @Export(name="deviceSoftwareVersion", refs={String.class}, tree="[0]") private Output deviceSoftwareVersion; /** * @return The Data Box Edge/Gateway device software version. * */ public Output deviceSoftwareVersion() { return this.deviceSoftwareVersion; } /** * The type of the Data Box Edge/Gateway device. * */ @Export(name="deviceType", refs={String.class}, tree="[0]") private Output deviceType; /** * @return The type of the Data Box Edge/Gateway device. * */ public Output deviceType() { return this.deviceType; } /** * The details of Edge Profile for this resource * */ @Export(name="edgeProfile", refs={EdgeProfileResponse.class}, tree="[0]") private Output edgeProfile; /** * @return The details of Edge Profile for this resource * */ public Output edgeProfile() { return this.edgeProfile; } /** * The etag for the devices. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return The etag for the devices. * */ public Output> etag() { return Codegen.optional(this.etag); } /** * The Data Box Edge/Gateway device name. * */ @Export(name="friendlyName", refs={String.class}, tree="[0]") private Output friendlyName; /** * @return The Data Box Edge/Gateway device name. * */ public Output friendlyName() { return this.friendlyName; } /** * Msi identity of the resource * */ @Export(name="identity", refs={ResourceIdentityResponse.class}, tree="[0]") private Output identity; /** * @return Msi identity of the resource * */ public Output> identity() { return Codegen.optional(this.identity); } /** * The kind of the device. * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return The kind of the device. * */ public Output kind() { return this.kind; } /** * 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. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return 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. * */ public Output location() { return this.location; } /** * The description of the Data Box Edge/Gateway device model. * */ @Export(name="modelDescription", refs={String.class}, tree="[0]") private Output modelDescription; /** * @return The description of the Data Box Edge/Gateway device model. * */ public Output modelDescription() { return this.modelDescription; } /** * The object name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The object name. * */ public Output name() { return this.name; } /** * The number of nodes in the cluster. * */ @Export(name="nodeCount", refs={Integer.class}, tree="[0]") private Output nodeCount; /** * @return The number of nodes in the cluster. * */ public Output nodeCount() { return this.nodeCount; } /** * The details of the move operation on this resource. * */ @Export(name="resourceMoveDetails", refs={ResourceMoveDetailsResponse.class}, tree="[0]") private Output resourceMoveDetails; /** * @return The details of the move operation on this resource. * */ public Output resourceMoveDetails() { return this.resourceMoveDetails; } /** * The Serial Number of Data Box Edge/Gateway device. * */ @Export(name="serialNumber", refs={String.class}, tree="[0]") private Output serialNumber; /** * @return The Serial Number of Data Box Edge/Gateway device. * */ public Output serialNumber() { return this.serialNumber; } /** * The SKU type. * */ @Export(name="sku", refs={SkuResponse.class}, tree="[0]") private Output sku; /** * @return The SKU type. * */ public Output> sku() { return Codegen.optional(this.sku); } /** * DataBoxEdge Resource * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return DataBoxEdge Resource * */ public Output systemData() { return this.systemData; } /** * The list of tags that describe the device. These tags can be used to view and group this device (across resource groups). * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return The list of tags that describe the device. These tags can be used to view and group this device (across resource groups). * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The Data Box Edge/Gateway device timezone. * */ @Export(name="timeZone", refs={String.class}, tree="[0]") private Output timeZone; /** * @return The Data Box Edge/Gateway device timezone. * */ public Output timeZone() { return this.timeZone; } /** * The hierarchical type of the object. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The hierarchical type of the object. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public Device(java.lang.String name) { this(name, DeviceArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Device(java.lang.String name, DeviceArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Device(java.lang.String name, DeviceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:databoxedge:Device", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Device(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:databoxedge:Device", name, null, makeResourceOptions(options, id), false); } private static DeviceArgs makeArgs(DeviceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DeviceArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:databoxedge/v20190301:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20190701:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20190801:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200501preview:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200901:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200901preview:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20201201:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210201:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210201preview:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210601:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210601preview:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20220301:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20220401preview:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20221201preview:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20230101preview:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20230701:Device").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20231201:Device").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static Device get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Device(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy