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

com.pulumi.azurenative.m365securityandcompliance.PrivateLinkServicesForMIPPolicySync Maven / Gradle / Ivy

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

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.m365securityandcompliance.PrivateLinkServicesForMIPPolicySyncArgs;
import com.pulumi.azurenative.m365securityandcompliance.outputs.ServicesPropertiesResponse;
import com.pulumi.azurenative.m365securityandcompliance.outputs.ServicesResourceResponseIdentity;
import com.pulumi.azurenative.m365securityandcompliance.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: 2021-03-25-preview. Prior API version in Azure Native 1.x: 2021-03-25-preview.
 * 
 * ## 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.m365securityandcompliance.PrivateLinkServicesForMIPPolicySync;
 * import com.pulumi.azurenative.m365securityandcompliance.PrivateLinkServicesForMIPPolicySyncArgs;
 * import com.pulumi.azurenative.m365securityandcompliance.inputs.ServicesResourceIdentityArgs;
 * import com.pulumi.azurenative.m365securityandcompliance.inputs.ServicesPropertiesArgs;
 * import com.pulumi.azurenative.m365securityandcompliance.inputs.ServiceAuthenticationConfigurationInfoArgs;
 * import com.pulumi.azurenative.m365securityandcompliance.inputs.ServiceCorsConfigurationInfoArgs;
 * import com.pulumi.azurenative.m365securityandcompliance.inputs.ServiceCosmosDbConfigurationInfoArgs;
 * import com.pulumi.azurenative.m365securityandcompliance.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 privateLinkServicesForMIPPolicySync = new PrivateLinkServicesForMIPPolicySync("privateLinkServicesForMIPPolicySync", PrivateLinkServicesForMIPPolicySyncArgs.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 minimum parameters * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.m365securityandcompliance.PrivateLinkServicesForMIPPolicySync;
 * import com.pulumi.azurenative.m365securityandcompliance.PrivateLinkServicesForMIPPolicySyncArgs;
 * import com.pulumi.azurenative.m365securityandcompliance.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 privateLinkServicesForMIPPolicySync = new PrivateLinkServicesForMIPPolicySync("privateLinkServicesForMIPPolicySync", PrivateLinkServicesForMIPPolicySyncArgs.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:m365securityandcompliance:PrivateLinkServicesForMIPPolicySync service2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForMIPPolicySync/{resourceName} * ``` * */ @ResourceType(type="azure-native:m365securityandcompliance:PrivateLinkServicesForMIPPolicySync") public class PrivateLinkServicesForMIPPolicySync 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; } /** * Required property for system data * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Required property for system data * */ 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 PrivateLinkServicesForMIPPolicySync(java.lang.String name) { this(name, PrivateLinkServicesForMIPPolicySyncArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public PrivateLinkServicesForMIPPolicySync(java.lang.String name, PrivateLinkServicesForMIPPolicySyncArgs 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 PrivateLinkServicesForMIPPolicySync(java.lang.String name, PrivateLinkServicesForMIPPolicySyncArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:m365securityandcompliance:PrivateLinkServicesForMIPPolicySync", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private PrivateLinkServicesForMIPPolicySync(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:m365securityandcompliance:PrivateLinkServicesForMIPPolicySync", name, null, makeResourceOptions(options, id), false); } private static PrivateLinkServicesForMIPPolicySyncArgs makeArgs(PrivateLinkServicesForMIPPolicySyncArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? PrivateLinkServicesForMIPPolicySyncArgs.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:m365securityandcompliance:privateLinkServicesForMIPPolicySync").build()), Output.of(Alias.builder().type("azure-native:m365securityandcompliance/v20210325preview:PrivateLinkServicesForMIPPolicySync").build()), Output.of(Alias.builder().type("azure-native:m365securityandcompliance/v20210325preview:privateLinkServicesForMIPPolicySync").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 PrivateLinkServicesForMIPPolicySync get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new PrivateLinkServicesForMIPPolicySync(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy