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

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

// *** 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.MedtechServiceFhirDestinationArgs;
import com.pulumi.azure.healthcare.inputs.MedtechServiceFhirDestinationState;
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 javax.annotation.Nullable;

/**
 * Manages a Healthcare Med Tech Service Fhir Destination.
 * 
 * <!--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.core.CoreFunctions;
 * import com.pulumi.azure.healthcare.Workspace;
 * import com.pulumi.azure.healthcare.WorkspaceArgs;
 * import com.pulumi.azure.eventhub.EventHubNamespace;
 * import com.pulumi.azure.eventhub.EventHubNamespaceArgs;
 * import com.pulumi.azure.eventhub.EventHub;
 * import com.pulumi.azure.eventhub.EventHubArgs;
 * import com.pulumi.azure.eventhub.ConsumerGroup;
 * import com.pulumi.azure.eventhub.ConsumerGroupArgs;
 * import com.pulumi.azure.healthcare.FhirService;
 * import com.pulumi.azure.healthcare.FhirServiceArgs;
 * import com.pulumi.azure.healthcare.inputs.FhirServiceAuthenticationArgs;
 * import com.pulumi.azure.healthcare.MedtechService;
 * import com.pulumi.azure.healthcare.MedtechServiceArgs;
 * import com.pulumi.azure.healthcare.MedtechServiceFhirDestination;
 * import com.pulumi.azure.healthcare.MedtechServiceFhirDestinationArgs;
 * 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 {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-rg")
 *             .location("West Europe")
 *             .build());
 * 
 *         final var current = CoreFunctions.getClientConfig();
 * 
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("exampleworkspace")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .build());
 * 
 *         var exampleEventHubNamespace = new EventHubNamespace("exampleEventHubNamespace", EventHubNamespaceArgs.builder()
 *             .name("example-ehn")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .sku("Standard")
 *             .build());
 * 
 *         var exampleEventHub = new EventHub("exampleEventHub", EventHubArgs.builder()
 *             .name("example-eh")
 *             .namespaceName(exampleEventHubNamespace.name())
 *             .resourceGroupName(example.name())
 *             .partitionCount(1)
 *             .messageRetention(1)
 *             .build());
 * 
 *         var exampleConsumerGroup = new ConsumerGroup("exampleConsumerGroup", ConsumerGroupArgs.builder()
 *             .name("$default")
 *             .namespaceName(exampleEventHubNamespace.name())
 *             .eventhubName(exampleEventHub.name())
 *             .resourceGroupName(example.name())
 *             .build());
 * 
 *         var exampleFhirService = new FhirService("exampleFhirService", FhirServiceArgs.builder()
 *             .name("examplefhir")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .workspaceId(exampleWorkspace.id())
 *             .kind("fhir-R4")
 *             .authentication(FhirServiceAuthenticationArgs.builder()
 *                 .authority("https://login.microsoftonline.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
 *                 .audience("https://examplefhir.fhir.azurehealthcareapis.com")
 *                 .build())
 *             .build());
 * 
 *         var exampleMedtechService = new MedtechService("exampleMedtechService", MedtechServiceArgs.builder()
 *             .name("examplemt")
 *             .workspaceId(exampleWorkspace.id())
 *             .location(example.location())
 *             .eventhubNamespaceName(exampleEventHubNamespace.name())
 *             .eventhubName(exampleEventHub.name())
 *             .eventhubConsumerGroupName(exampleConsumerGroup.name())
 *             .deviceMappingJson(serializeJson(
 *                 jsonObject(
 *                     jsonProperty("templateType", "CollectionContent"),
 *                     jsonProperty("template", jsonArray(
 *                     ))
 *                 )))
 *             .build());
 * 
 *         var exampleMedtechServiceFhirDestination = new MedtechServiceFhirDestination("exampleMedtechServiceFhirDestination", MedtechServiceFhirDestinationArgs.builder()
 *             .name("examplemtdes")
 *             .location("east us")
 *             .medtechServiceId(exampleMedtechService.id())
 *             .destinationFhirServiceId(exampleFhirService.id())
 *             .destinationIdentityResolutionType("Create")
 *             .destinationFhirMappingJson(serializeJson(
 *                 jsonObject(
 *                     jsonProperty("templateType", "CollectionFhirTemplate"),
 *                     jsonProperty("template", jsonArray(jsonObject(
 *                         jsonProperty("templateType", "CodeValueFhir"),
 *                         jsonProperty("template", jsonObject(
 *                             jsonProperty("codes", jsonArray(jsonObject(
 *                                 jsonProperty("code", "8867-4"),
 *                                 jsonProperty("system", "http://loinc.org"),
 *                                 jsonProperty("display", "Heart rate")
 *                             ))),
 *                             jsonProperty("periodInterval", 60),
 *                             jsonProperty("typeName", "heartrate"),
 *                             jsonProperty("value", jsonObject(
 *                                 jsonProperty("defaultPeriod", 5000),
 *                                 jsonProperty("unit", "count/min"),
 *                                 jsonProperty("valueName", "hr"),
 *                                 jsonProperty("valueType", "SampledData")
 *                             ))
 *                         ))
 *                     )))
 *                 )))
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Healthcare Med Tech Service Fhir Destination can be imported using the resource`id`, e.g. * * ```sh * $ pulumi import azure:healthcare/medtechServiceFhirDestination:MedtechServiceFhirDestination example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/iotConnectors/iotconnector1/fhirDestinations/destination1 * ``` * */ @ResourceType(type="azure:healthcare/medtechServiceFhirDestination:MedtechServiceFhirDestination") public class MedtechServiceFhirDestination extends com.pulumi.resources.CustomResource { /** * Specifies the destination Fhir mappings of the Med Tech Service Fhir Destination. * */ @Export(name="destinationFhirMappingJson", refs={String.class}, tree="[0]") private Output destinationFhirMappingJson; /** * @return Specifies the destination Fhir mappings of the Med Tech Service Fhir Destination. * */ public Output destinationFhirMappingJson() { return this.destinationFhirMappingJson; } /** * Specifies the destination fhir service id of the Med Tech Service Fhir Destination. * */ @Export(name="destinationFhirServiceId", refs={String.class}, tree="[0]") private Output destinationFhirServiceId; /** * @return Specifies the destination fhir service id of the Med Tech Service Fhir Destination. * */ public Output destinationFhirServiceId() { return this.destinationFhirServiceId; } /** * Specifies the destination identity resolution type where the Healthcare Med Tech Service Fhir Destination should be created. Possible values are `Create`, `Lookup`. * */ @Export(name="destinationIdentityResolutionType", refs={String.class}, tree="[0]") private Output destinationIdentityResolutionType; /** * @return Specifies the destination identity resolution type where the Healthcare Med Tech Service Fhir Destination should be created. Possible values are `Create`, `Lookup`. * */ public Output destinationIdentityResolutionType() { return this.destinationIdentityResolutionType; } /** * Specifies the Azure Region where the Healthcare Med Tech Service Fhir Destination should be created. Changing this forces a new Healthcare Med Tech Service Fhir Destination 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 Fhir Destination should be created. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. * */ public Output location() { return this.location; } /** * Specifies the name of the Healthcare Med Tech Service where the Healthcare Med Tech Service Fhir Destination should exist. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. * */ @Export(name="medtechServiceId", refs={String.class}, tree="[0]") private Output medtechServiceId; /** * @return Specifies the name of the Healthcare Med Tech Service where the Healthcare Med Tech Service Fhir Destination should exist. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. * */ public Output medtechServiceId() { return this.medtechServiceId; } /** * Specifies the name of the Healthcare Med Tech Service Fhir Destination. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Specifies the name of the Healthcare Med Tech Service Fhir Destination. Changing this forces a new Healthcare Med Tech Service Fhir Destination to be created. * */ public Output name() { return this.name; } /** * * @param name The _unique_ name of the resulting resource. */ public MedtechServiceFhirDestination(java.lang.String name) { this(name, MedtechServiceFhirDestinationArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public MedtechServiceFhirDestination(java.lang.String name, MedtechServiceFhirDestinationArgs 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 MedtechServiceFhirDestination(java.lang.String name, MedtechServiceFhirDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:healthcare/medtechServiceFhirDestination:MedtechServiceFhirDestination", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private MedtechServiceFhirDestination(java.lang.String name, Output id, @Nullable MedtechServiceFhirDestinationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:healthcare/medtechServiceFhirDestination:MedtechServiceFhirDestination", name, state, makeResourceOptions(options, id), false); } private static MedtechServiceFhirDestinationArgs makeArgs(MedtechServiceFhirDestinationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? MedtechServiceFhirDestinationArgs.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 MedtechServiceFhirDestination get(java.lang.String name, Output id, @Nullable MedtechServiceFhirDestinationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new MedtechServiceFhirDestination(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy