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

com.pulumi.azurenative.healthcareapis.IotConnector 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.healthcareapis;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.healthcareapis.IotConnectorArgs;
import com.pulumi.azurenative.healthcareapis.outputs.IotEventHubIngestionEndpointConfigurationResponse;
import com.pulumi.azurenative.healthcareapis.outputs.IotMappingPropertiesResponse;
import com.pulumi.azurenative.healthcareapis.outputs.ServiceManagedIdentityResponseIdentity;
import com.pulumi.azurenative.healthcareapis.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;

/**
 * IoT Connector definition.
 * Azure REST API version: 2023-02-28. Prior API version in Azure Native 1.x: 2022-05-15.
 * 
 * Other available API versions: 2023-09-06, 2023-11-01, 2023-12-01, 2024-03-01, 2024-03-31.
 * 
 * ## Example Usage
 * ### Create an IoT Connector
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.healthcareapis.IotConnector;
 * import com.pulumi.azurenative.healthcareapis.IotConnectorArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.IotMappingPropertiesArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServiceManagedIdentityIdentityArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.IotEventHubIngestionEndpointConfigurationArgs;
 * 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 }{{@code
 *     public static void main(String[] args) }{{@code
 *         Pulumi.run(App::stack);
 *     }}{@code
 * 
 *     public static void stack(Context ctx) }{{@code
 *         var iotConnector = new IotConnector("iotConnector", IotConnectorArgs.builder()
 *             .deviceMapping(IotMappingPropertiesArgs.builder()
 *                 .content(Map.ofEntries(
 *                     Map.entry("template", Map.ofEntries(
 *                         Map.entry("template", Map.ofEntries(
 *                             Map.entry("deviceIdExpression", "$.deviceid"),
 *                             Map.entry("timestampExpression", "$.measurementdatetime"),
 *                             Map.entry("typeMatchExpression", "$..[?(}{@literal @}{@code heartrate)]"),
 *                             Map.entry("typeName", "heartrate"),
 *                             Map.entry("values", Map.ofEntries(
 *                                 Map.entry("required", "true"),
 *                                 Map.entry("valueExpression", "$.heartrate"),
 *                                 Map.entry("valueName", "hr")
 *                             ))
 *                         )),
 *                         Map.entry("templateType", "JsonPathContent")
 *                     )),
 *                     Map.entry("templateType", "CollectionContent")
 *                 ))
 *                 .build())
 *             .identity(ServiceManagedIdentityIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .ingestionEndpointConfiguration(IotEventHubIngestionEndpointConfigurationArgs.builder()
 *                 .consumerGroup("ConsumerGroupA")
 *                 .eventHubName("MyEventHubName")
 *                 .fullyQualifiedEventHubNamespace("myeventhub.servicesbus.windows.net")
 *                 .build())
 *             .iotConnectorName("blue")
 *             .location("westus")
 *             .resourceGroupName("testRG")
 *             .tags(Map.ofEntries(
 *                 Map.entry("additionalProp1", "string"),
 *                 Map.entry("additionalProp2", "string"),
 *                 Map.entry("additionalProp3", "string")
 *             ))
 *             .workspaceName("workspace1")
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:healthcareapis:IotConnector blue /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName} * ``` * */ @ResourceType(type="azure-native:healthcareapis:IotConnector") public class IotConnector extends com.pulumi.resources.CustomResource { /** * Device Mappings. * */ @Export(name="deviceMapping", refs={IotMappingPropertiesResponse.class}, tree="[0]") private Output deviceMapping; /** * @return Device Mappings. * */ public Output> deviceMapping() { return Codegen.optional(this.deviceMapping); } /** * An etag associated with the resource, used for optimistic concurrency when editing it. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return An etag associated with the resource, used for optimistic concurrency when editing it. * */ public Output> etag() { return Codegen.optional(this.etag); } /** * Setting indicating whether the service has a managed identity associated with it. * */ @Export(name="identity", refs={ServiceManagedIdentityResponseIdentity.class}, tree="[0]") private Output identity; /** * @return Setting indicating whether the service has a managed identity associated with it. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * Source configuration. * */ @Export(name="ingestionEndpointConfiguration", refs={IotEventHubIngestionEndpointConfigurationResponse.class}, tree="[0]") private Output ingestionEndpointConfiguration; /** * @return Source configuration. * */ public Output> ingestionEndpointConfiguration() { return Codegen.optional(this.ingestionEndpointConfiguration); } /** * The resource location. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The resource location. * */ public Output> location() { return Codegen.optional(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 provisioning state. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state. * */ public Output provisioningState() { return this.provisioningState; } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ 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 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 IotConnector(java.lang.String name) { this(name, IotConnectorArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public IotConnector(java.lang.String name, IotConnectorArgs 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 IotConnector(java.lang.String name, IotConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:healthcareapis:IotConnector", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private IotConnector(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:healthcareapis:IotConnector", name, null, makeResourceOptions(options, id), false); } private static IotConnectorArgs makeArgs(IotConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? IotConnectorArgs.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:healthcareapis/v20210601preview:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20211101:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20220131preview:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20220515:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20220601:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20221001preview:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20221201:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20230228:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20230906:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20231101:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20231201:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20240301:IotConnector").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20240331:IotConnector").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 IotConnector get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new IotConnector(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy