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

com.pulumi.azurenative.deviceregistry.AssetEndpointProfile Maven / Gradle / Ivy

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

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.deviceregistry.AssetEndpointProfileArgs;
import com.pulumi.azurenative.deviceregistry.outputs.ExtendedLocationResponse;
import com.pulumi.azurenative.deviceregistry.outputs.SystemDataResponse;
import com.pulumi.azurenative.deviceregistry.outputs.TransportAuthenticationResponse;
import com.pulumi.azurenative.deviceregistry.outputs.UserAuthenticationResponse;
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;

/**
 * Asset Endpoint Profile definition.
 * Azure REST API version: 2023-11-01-preview.
 * 
 * Other available API versions: 2024-09-01-preview, 2024-11-01.
 * 
 * ## Example Usage
 * ### Create_AssetEndpointProfile
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.deviceregistry.AssetEndpointProfile;
 * import com.pulumi.azurenative.deviceregistry.AssetEndpointProfileArgs;
 * import com.pulumi.azurenative.deviceregistry.inputs.ExtendedLocationArgs;
 * import com.pulumi.azurenative.deviceregistry.inputs.UserAuthenticationArgs;
 * 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 assetEndpointProfile = new AssetEndpointProfile("assetEndpointProfile", AssetEndpointProfileArgs.builder()
 *             .assetEndpointProfileName("my-assetendpointprofile")
 *             .extendedLocation(ExtendedLocationArgs.builder()
 *                 .name("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1")
 *                 .type("CustomLocation")
 *                 .build())
 *             .location("West Europe")
 *             .resourceGroupName("myResourceGroup")
 *             .tags(Map.of("site", "building-1"))
 *             .targetAddress("https://www.example.com/myTargetAddress")
 *             .userAuthentication(UserAuthenticationArgs.builder()
 *                 .mode("Anonymous")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:deviceregistry:AssetEndpointProfile my-assetendpointprofile /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assetEndpointProfiles/{assetEndpointProfileName} * ``` * */ @ResourceType(type="azure-native:deviceregistry:AssetEndpointProfile") public class AssetEndpointProfile extends com.pulumi.resources.CustomResource { /** * Stringified JSON that contains connectivity type specific further configuration (e.g. OPC UA, Modbus, ONVIF). * */ @Export(name="additionalConfiguration", refs={String.class}, tree="[0]") private Output additionalConfiguration; /** * @return Stringified JSON that contains connectivity type specific further configuration (e.g. OPC UA, Modbus, ONVIF). * */ public Output> additionalConfiguration() { return Codegen.optional(this.additionalConfiguration); } /** * The extended location. * */ @Export(name="extendedLocation", refs={ExtendedLocationResponse.class}, tree="[0]") private Output extendedLocation; /** * @return The extended location. * */ public Output extendedLocation() { return this.extendedLocation; } /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output location() { return this.location; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * Provisioning state of the resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state of the resource. * */ public Output provisioningState() { return this.provisioningState; } /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ public Output systemData() { return this.systemData; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The local valid URI specifying the network address/DNS name of a southbound device. The scheme part of the targetAddress URI specifies the type of the device. The additionalConfiguration field holds further connector type specific configuration. * */ @Export(name="targetAddress", refs={String.class}, tree="[0]") private Output targetAddress; /** * @return The local valid URI specifying the network address/DNS name of a southbound device. The scheme part of the targetAddress URI specifies the type of the device. The additionalConfiguration field holds further connector type specific configuration. * */ public Output targetAddress() { return this.targetAddress; } /** * Defines the authentication mechanism for the southbound connector connecting to the shop floor/OT device. * */ @Export(name="transportAuthentication", refs={TransportAuthenticationResponse.class}, tree="[0]") private Output transportAuthentication; /** * @return Defines the authentication mechanism for the southbound connector connecting to the shop floor/OT device. * */ public Output> transportAuthentication() { return Codegen.optional(this.transportAuthentication); } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * Defines the client authentication mechanism to the server. * */ @Export(name="userAuthentication", refs={UserAuthenticationResponse.class}, tree="[0]") private Output userAuthentication; /** * @return Defines the client authentication mechanism to the server. * */ public Output> userAuthentication() { return Codegen.optional(this.userAuthentication); } /** * Globally unique, immutable, non-reusable id. * */ @Export(name="uuid", refs={String.class}, tree="[0]") private Output uuid; /** * @return Globally unique, immutable, non-reusable id. * */ public Output uuid() { return this.uuid; } /** * * @param name The _unique_ name of the resulting resource. */ public AssetEndpointProfile(java.lang.String name) { this(name, AssetEndpointProfileArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public AssetEndpointProfile(java.lang.String name, AssetEndpointProfileArgs 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 AssetEndpointProfile(java.lang.String name, AssetEndpointProfileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:deviceregistry:AssetEndpointProfile", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private AssetEndpointProfile(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:deviceregistry:AssetEndpointProfile", name, null, makeResourceOptions(options, id), false); } private static AssetEndpointProfileArgs makeArgs(AssetEndpointProfileArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AssetEndpointProfileArgs.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:deviceregistry/v20231101preview:AssetEndpointProfile").build()), Output.of(Alias.builder().type("azure-native:deviceregistry/v20240901preview:AssetEndpointProfile").build()), Output.of(Alias.builder().type("azure-native:deviceregistry/v20241101:AssetEndpointProfile").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 AssetEndpointProfile get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AssetEndpointProfile(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy