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

com.pulumi.azurenative.digitaltwins.DigitalTwin Maven / Gradle / Ivy

There is a newer version: 2.72.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.digitaltwins;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.digitaltwins.DigitalTwinArgs;
import com.pulumi.azurenative.digitaltwins.outputs.DigitalTwinsIdentityResponse;
import com.pulumi.azurenative.digitaltwins.outputs.PrivateEndpointConnectionResponse;
import com.pulumi.azurenative.digitaltwins.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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The description of the DigitalTwins service.
 * Azure REST API version: 2023-01-31. Prior API version in Azure Native 1.x: 2020-12-01.
 * 
 * Other available API versions: 2020-03-01-preview.
 * 
 * ## Example Usage
 * ### Put a DigitalTwinsInstance resource
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.digitaltwins.DigitalTwin;
 * import com.pulumi.azurenative.digitaltwins.DigitalTwinArgs;
 * 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 digitalTwin = new DigitalTwin("digitalTwin", DigitalTwinArgs.builder()
 *             .location("WestUS2")
 *             .resourceGroupName("resRg")
 *             .resourceName("myDigitalTwinsService")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Put a DigitalTwinsInstance resource with publicNetworkAccess property * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.digitaltwins.DigitalTwin;
 * import com.pulumi.azurenative.digitaltwins.DigitalTwinArgs;
 * 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 digitalTwin = new DigitalTwin("digitalTwin", DigitalTwinArgs.builder()
 *             .location("WestUS2")
 *             .publicNetworkAccess("Enabled")
 *             .resourceGroupName("resRg")
 *             .resourceName("myDigitalTwinsService")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:digitaltwins:DigitalTwin myDigitalTwinsService /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName} * ``` * */ @ResourceType(type="azure-native:digitaltwins:DigitalTwin") public class DigitalTwin extends com.pulumi.resources.CustomResource { /** * Time when DigitalTwinsInstance was created. * */ @Export(name="createdTime", refs={String.class}, tree="[0]") private Output createdTime; /** * @return Time when DigitalTwinsInstance was created. * */ public Output createdTime() { return this.createdTime; } /** * Api endpoint to work with DigitalTwinsInstance. * */ @Export(name="hostName", refs={String.class}, tree="[0]") private Output hostName; /** * @return Api endpoint to work with DigitalTwinsInstance. * */ public Output hostName() { return this.hostName; } /** * The managed identity for the DigitalTwinsInstance. * */ @Export(name="identity", refs={DigitalTwinsIdentityResponse.class}, tree="[0]") private Output identity; /** * @return The managed identity for the DigitalTwinsInstance. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * Time when DigitalTwinsInstance was updated. * */ @Export(name="lastUpdatedTime", refs={String.class}, tree="[0]") private Output lastUpdatedTime; /** * @return Time when DigitalTwinsInstance was updated. * */ public Output lastUpdatedTime() { return this.lastUpdatedTime; } /** * The resource location. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The resource location. * */ public Output location() { return this.location; } /** * The resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The resource name. * */ public Output name() { return this.name; } /** * The private endpoint connections. * */ @Export(name="privateEndpointConnections", refs={List.class,PrivateEndpointConnectionResponse.class}, tree="[0,1]") private Output> privateEndpointConnections; /** * @return The private endpoint connections. * */ public Output>> privateEndpointConnections() { return Codegen.optional(this.privateEndpointConnections); } /** * The provisioning state. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state. * */ public Output provisioningState() { return this.provisioningState; } /** * Public network access for the DigitalTwinsInstance. * */ @Export(name="publicNetworkAccess", refs={String.class}, tree="[0]") private Output publicNetworkAccess; /** * @return Public network access for the DigitalTwinsInstance. * */ public Output> publicNetworkAccess() { return Codegen.optional(this.publicNetworkAccess); } /** * Metadata pertaining to creation and last modification of the DigitalTwinsInstance. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the DigitalTwinsInstance. * */ public Output systemData() { return this.systemData; } /** * The resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return The resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The resource type. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public DigitalTwin(java.lang.String name) { this(name, DigitalTwinArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public DigitalTwin(java.lang.String name, DigitalTwinArgs 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 DigitalTwin(java.lang.String name, DigitalTwinArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:digitaltwins:DigitalTwin", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private DigitalTwin(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:digitaltwins:DigitalTwin", name, null, makeResourceOptions(options, id), false); } private static DigitalTwinArgs makeArgs(DigitalTwinArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DigitalTwinArgs.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:digitaltwins/v20200301preview:DigitalTwin").build()), Output.of(Alias.builder().type("azure-native:digitaltwins/v20201031:DigitalTwin").build()), Output.of(Alias.builder().type("azure-native:digitaltwins/v20201201:DigitalTwin").build()), Output.of(Alias.builder().type("azure-native:digitaltwins/v20210630preview:DigitalTwin").build()), Output.of(Alias.builder().type("azure-native:digitaltwins/v20220531:DigitalTwin").build()), Output.of(Alias.builder().type("azure-native:digitaltwins/v20221031:DigitalTwin").build()), Output.of(Alias.builder().type("azure-native:digitaltwins/v20230131:DigitalTwin").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 DigitalTwin get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DigitalTwin(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy