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

com.pulumi.azure.healthcare.MedtechService Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.healthcare;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.healthcare.MedtechServiceArgs;
import com.pulumi.azure.healthcare.inputs.MedtechServiceState;
import com.pulumi.azure.healthcare.outputs.MedtechServiceIdentity;
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.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages a Healthcare Med Tech Service.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.healthcare.Workspace;
 * import com.pulumi.azure.healthcare.WorkspaceArgs;
 * import com.pulumi.azure.healthcare.MedtechService;
 * import com.pulumi.azure.healthcare.MedtechServiceArgs;
 * import com.pulumi.azure.healthcare.inputs.MedtechServiceIdentityArgs;
 * import static com.pulumi.codegen.internal.Serialization.*;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-rg")
 *             .location("east us")
 *             .build());
 * 
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("examplewkspace")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .build());
 * 
 *         var exampleMedtechService = new MedtechService("exampleMedtechService", MedtechServiceArgs.builder()
 *             .name("examplemed")
 *             .workspaceId(exampleWorkspace.id())
 *             .location("east us")
 *             .identity(MedtechServiceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .eventhubNamespaceName("example-eventhub-namespace")
 *             .eventhubName("example-eventhub")
 *             .eventhubConsumerGroupName("$Default")
 *             .deviceMappingJson(serializeJson(
 *                 jsonObject(
 *                     jsonProperty("templateType", "CollectionContent"),
 *                     jsonProperty("template", jsonArray(jsonObject(
 *                         jsonProperty("templateType", "JsonPathContent"),
 *                         jsonProperty("template", jsonObject(
 *                             jsonProperty("typeName", "heartrate"),
 *                             jsonProperty("typeMatchExpression", "$..[?(}{@literal @}{@code heartrate)]"),
 *                             jsonProperty("deviceIdExpression", "$.deviceid"),
 *                             jsonProperty("timestampExpression", "$.measurementdatetime"),
 *                             jsonProperty("values", jsonArray(jsonObject(
 *                                 jsonProperty("required", "true"),
 *                                 jsonProperty("valueExpression", "$.heartrate"),
 *                                 jsonProperty("valueName", "hr")
 *                             )))
 *                         ))
 *                     )))
 *                 )))
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Healthcare Med Tech Service can be imported using the resource`id`, e.g. * * ```sh * $ pulumi import azure:healthcare/medtechService:MedtechService example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1 * ``` * */ @ResourceType(type="azure:healthcare/medtechService:MedtechService") public class MedtechService extends com.pulumi.resources.CustomResource { /** * Specifies the Device Mappings of the Med Tech Service. * */ @Export(name="deviceMappingJson", refs={String.class}, tree="[0]") private Output deviceMappingJson; /** * @return Specifies the Device Mappings of the Med Tech Service. * */ public Output deviceMappingJson() { return this.deviceMappingJson; } /** * Specifies the Consumer Group of the Event Hub to connect to. * */ @Export(name="eventhubConsumerGroupName", refs={String.class}, tree="[0]") private Output eventhubConsumerGroupName; /** * @return Specifies the Consumer Group of the Event Hub to connect to. * */ public Output eventhubConsumerGroupName() { return this.eventhubConsumerGroupName; } /** * Specifies the name of the Event Hub to connect to. * */ @Export(name="eventhubName", refs={String.class}, tree="[0]") private Output eventhubName; /** * @return Specifies the name of the Event Hub to connect to. * */ public Output eventhubName() { return this.eventhubName; } /** * Specifies the namespace name of the Event Hub to connect to. * */ @Export(name="eventhubNamespaceName", refs={String.class}, tree="[0]") private Output eventhubNamespaceName; /** * @return Specifies the namespace name of the Event Hub to connect to. * */ public Output eventhubNamespaceName() { return this.eventhubNamespaceName; } /** * An `identity` block as defined below. * */ @Export(name="identity", refs={MedtechServiceIdentity.class}, tree="[0]") private Output identity; /** * @return An `identity` block as defined below. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Specifies the Azure Region where the Healthcare Med Tech Service should be created. Changing this forces a new Healthcare Med Tech Service to be created. * */ public Output location() { return this.location; } /** * Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Specifies the name of the Healthcare Med Tech Service. Changing this forces a new Healthcare Med Tech Service to be created. * */ public Output name() { return this.name; } /** * A mapping of tags to assign to the Healthcare Med Tech Service. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return A mapping of tags to assign to the Healthcare Med Tech Service. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created. * */ @Export(name="workspaceId", refs={String.class}, tree="[0]") private Output workspaceId; /** * @return Specifies the id of the Healthcare Workspace where the Healthcare Med Tech Service should exist. Changing this forces a new Healthcare Med Tech Service to be created. * */ public Output workspaceId() { return this.workspaceId; } /** * * @param name The _unique_ name of the resulting resource. */ public MedtechService(java.lang.String name) { this(name, MedtechServiceArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public MedtechService(java.lang.String name, MedtechServiceArgs 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 MedtechService(java.lang.String name, MedtechServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:healthcare/medtechService:MedtechService", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private MedtechService(java.lang.String name, Output id, @Nullable MedtechServiceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:healthcare/medtechService:MedtechService", name, state, makeResourceOptions(options, id), false); } private static MedtechServiceArgs makeArgs(MedtechServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? MedtechServiceArgs.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()) .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 state * @param options Optional settings to control the behavior of the CustomResource. */ public static MedtechService get(java.lang.String name, Output id, @Nullable MedtechServiceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new MedtechService(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy