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

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

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.healthcareapis.ServiceArgs;
import com.pulumi.azurenative.healthcareapis.outputs.ServicesPropertiesResponse;
import com.pulumi.azurenative.healthcareapis.outputs.ServicesResourceResponseIdentity;
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;

/**
 * The description of the service.
 * Azure REST API version: 2023-02-28. Prior API version in Azure Native 1.x: 2022-05-15.
 * 
 * Other available API versions: 2020-03-15, 2023-09-06, 2023-11-01, 2023-12-01, 2024-03-01, 2024-03-31.
 * 
 * ## Example Usage
 * ### Create or Update a service with all parameters
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.healthcareapis.Service;
 * import com.pulumi.azurenative.healthcareapis.ServiceArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServicesResourceIdentityArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServicesPropertiesArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServiceAuthenticationConfigurationInfoArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServiceCorsConfigurationInfoArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServiceCosmosDbConfigurationInfoArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServiceExportConfigurationInfoArgs;
 * 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 service = new Service("service", ServiceArgs.builder()
 *             .identity(ServicesResourceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .kind("fhir-R4")
 *             .location("westus2")
 *             .properties(ServicesPropertiesArgs.builder()
 *                 .accessPolicies(                
 *                     ServiceAccessPolicyEntryArgs.builder()
 *                         .objectId("c487e7d1-3210-41a3-8ccc-e9372b78da47")
 *                         .build(),
 *                     ServiceAccessPolicyEntryArgs.builder()
 *                         .objectId("5b307da8-43d4-492b-8b66-b0294ade872f")
 *                         .build())
 *                 .authenticationConfiguration(ServiceAuthenticationConfigurationInfoArgs.builder()
 *                     .audience("https://azurehealthcareapis.com")
 *                     .authority("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc")
 *                     .smartProxyEnabled(true)
 *                     .build())
 *                 .corsConfiguration(ServiceCorsConfigurationInfoArgs.builder()
 *                     .allowCredentials(false)
 *                     .headers("*")
 *                     .maxAge(1440)
 *                     .methods(                    
 *                         "DELETE",
 *                         "GET",
 *                         "OPTIONS",
 *                         "PATCH",
 *                         "POST",
 *                         "PUT")
 *                     .origins("*")
 *                     .build())
 *                 .cosmosDbConfiguration(ServiceCosmosDbConfigurationInfoArgs.builder()
 *                     .keyVaultKeyUri("https://my-vault.vault.azure.net/keys/my-key")
 *                     .offerThroughput(1000)
 *                     .build())
 *                 .exportConfiguration(ServiceExportConfigurationInfoArgs.builder()
 *                     .storageAccountName("existingStorageAccount")
 *                     .build())
 *                 .privateEndpointConnections()
 *                 .publicNetworkAccess("Disabled")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .resourceName("service1")
 *             .tags()
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create or Update a service with all parameters and CMK enabled in a data sovereign region * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.healthcareapis.Service;
 * import com.pulumi.azurenative.healthcareapis.ServiceArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServicesResourceIdentityArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServicesPropertiesArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServiceAuthenticationConfigurationInfoArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServiceCorsConfigurationInfoArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServiceCosmosDbConfigurationInfoArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServiceExportConfigurationInfoArgs;
 * 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 service = new Service("service", ServiceArgs.builder()
 *             .identity(ServicesResourceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .kind("fhir-R4")
 *             .location("Southeast Asia")
 *             .properties(ServicesPropertiesArgs.builder()
 *                 .accessPolicies(                
 *                     ServiceAccessPolicyEntryArgs.builder()
 *                         .objectId("c487e7d1-3210-41a3-8ccc-e9372b78da47")
 *                         .build(),
 *                     ServiceAccessPolicyEntryArgs.builder()
 *                         .objectId("5b307da8-43d4-492b-8b66-b0294ade872f")
 *                         .build())
 *                 .authenticationConfiguration(ServiceAuthenticationConfigurationInfoArgs.builder()
 *                     .audience("https://azurehealthcareapis.com")
 *                     .authority("https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc")
 *                     .smartProxyEnabled(true)
 *                     .build())
 *                 .corsConfiguration(ServiceCorsConfigurationInfoArgs.builder()
 *                     .allowCredentials(false)
 *                     .headers("*")
 *                     .maxAge(1440)
 *                     .methods(                    
 *                         "DELETE",
 *                         "GET",
 *                         "OPTIONS",
 *                         "PATCH",
 *                         "POST",
 *                         "PUT")
 *                     .origins("*")
 *                     .build())
 *                 .cosmosDbConfiguration(ServiceCosmosDbConfigurationInfoArgs.builder()
 *                     .crossTenantCmkApplicationId("de3fbeef-8c3a-428e-8b9f-4d229c8a85f4")
 *                     .keyVaultKeyUri("https://my-vault.vault.azure.net/keys/my-key")
 *                     .offerThroughput(1000)
 *                     .build())
 *                 .exportConfiguration(ServiceExportConfigurationInfoArgs.builder()
 *                     .storageAccountName("existingStorageAccount")
 *                     .build())
 *                 .privateEndpointConnections()
 *                 .publicNetworkAccess("Disabled")
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .resourceName("service1")
 *             .tags()
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### Create or Update a service with minimum parameters * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.healthcareapis.Service;
 * import com.pulumi.azurenative.healthcareapis.ServiceArgs;
 * import com.pulumi.azurenative.healthcareapis.inputs.ServicesPropertiesArgs;
 * 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 service = new Service("service", ServiceArgs.builder()
 *             .kind("fhir-R4")
 *             .location("westus2")
 *             .properties(ServicesPropertiesArgs.builder()
 *                 .accessPolicies(ServiceAccessPolicyEntryArgs.builder()
 *                     .objectId("c487e7d1-3210-41a3-8ccc-e9372b78da47")
 *                     .build())
 *                 .build())
 *             .resourceGroupName("rg1")
 *             .resourceName("service2")
 *             .tags()
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:healthcareapis:Service service2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName} * ``` * */ @ResourceType(type="azure-native:healthcareapis:Service") public class Service extends com.pulumi.resources.CustomResource { /** * 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={ServicesResourceResponseIdentity.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); } /** * The kind of the service. * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return The kind of the service. * */ public Output kind() { return this.kind; } /** * 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 common properties of a service. * */ @Export(name="properties", refs={ServicesPropertiesResponse.class}, tree="[0]") private Output properties; /** * @return The common properties of a service. * */ public Output properties() { return this.properties; } /** * 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; } /** * 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 Service(java.lang.String name) { this(name, ServiceArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Service(java.lang.String name, ServiceArgs 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 Service(java.lang.String name, ServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:healthcareapis:Service", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Service(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:healthcareapis:Service", name, null, makeResourceOptions(options, id), false); } private static ServiceArgs makeArgs(ServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ServiceArgs.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/v20180820preview:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20190916:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20200315:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20200330:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20210111:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20210601preview:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20211101:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20220131preview:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20220515:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20220601:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20221001preview:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20221201:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20230228:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20230906:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20231101:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20231201:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20240301:Service").build()), Output.of(Alias.builder().type("azure-native:healthcareapis/v20240331:Service").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 Service get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Service(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy