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

com.pulumi.azurenative.aadiam.PrivateLinkForAzureAd 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.aadiam;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.aadiam.PrivateLinkForAzureAdArgs;
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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * PrivateLink Policy configuration object.
 * Azure REST API version: 2020-03-01. Prior API version in Azure Native 1.x: 2020-03-01.
 * 
 * ## Example Usage
 * ### privateLinkPolicyCreate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.aadiam.PrivateLinkForAzureAd;
 * import com.pulumi.azurenative.aadiam.PrivateLinkForAzureAdArgs;
 * 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 privateLinkForAzureAd = new PrivateLinkForAzureAd("privateLinkForAzureAd", PrivateLinkForAzureAdArgs.builder()
 *             .allTenants(false)
 *             .name("myOrgPrivateLinkPolicy")
 *             .ownerTenantId("950f8bca-bf4d-4a41-ad10-034e792a243d")
 *             .policyName("ddb1")
 *             .resourceGroup("myOrgVnetRG")
 *             .resourceGroupName("rg1")
 *             .resourceName("myOrgVnetPrivateLink")
 *             .subscriptionId("57849194-ea1f-470b-abda-d195b25634c1")
 *             .tenants(            
 *                 "3616657d-1c80-41ae-9d83-2a2776f2c9be",
 *                 "727b6ef1-18ab-4627-ac95-3f9cd945ed87")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### privateLinkPolicyMinCreate * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.aadiam.PrivateLinkForAzureAd;
 * import com.pulumi.azurenative.aadiam.PrivateLinkForAzureAdArgs;
 * 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 privateLinkForAzureAd = new PrivateLinkForAzureAd("privateLinkForAzureAd", PrivateLinkForAzureAdArgs.builder()
 *             .allTenants(false)
 *             .name("myOrgPrivateLinkPolicy")
 *             .ownerTenantId("950f8bca-bf4d-4a41-ad10-034e792a243d")
 *             .policyName("ddb1")
 *             .resourceGroup("myOrgVnetRG")
 *             .resourceGroupName("rg1")
 *             .resourceName("myOrgVnetPrivateLink")
 *             .subscriptionId("57849194-ea1f-470b-abda-d195b25634c1")
 *             .tenants(            
 *                 "3616657d-1c80-41ae-9d83-2a2776f2c9be",
 *                 "727b6ef1-18ab-4627-ac95-3f9cd945ed87")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:aadiam:PrivateLinkForAzureAd myOrgPrivateLinkPolicy /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.aadiam/privateLinkForAzureAd/{policyName} * ``` * */ @ResourceType(type="azure-native:aadiam:PrivateLinkForAzureAd") public class PrivateLinkForAzureAd extends com.pulumi.resources.CustomResource { /** * Flag indicating whether all tenants are allowed * */ @Export(name="allTenants", refs={Boolean.class}, tree="[0]") private Output allTenants; /** * @return Flag indicating whether all tenants are allowed * */ public Output> allTenants() { return Codegen.optional(this.allTenants); } /** * Name of this resource. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Name of this resource. * */ public Output> name() { return Codegen.optional(this.name); } /** * Guid of the owner tenant * */ @Export(name="ownerTenantId", refs={String.class}, tree="[0]") private Output ownerTenantId; /** * @return Guid of the owner tenant * */ public Output> ownerTenantId() { return Codegen.optional(this.ownerTenantId); } /** * Name of the resource group * */ @Export(name="resourceGroup", refs={String.class}, tree="[0]") private Output resourceGroup; /** * @return Name of the resource group * */ public Output> resourceGroup() { return Codegen.optional(this.resourceGroup); } /** * Name of the private link policy resource * */ @Export(name="resourceName", refs={String.class}, tree="[0]") private Output resourceName; /** * @return Name of the private link policy resource * */ public Output> resourceName() { return Codegen.optional(this.resourceName); } /** * Subscription Identifier * */ @Export(name="subscriptionId", refs={String.class}, tree="[0]") private Output subscriptionId; /** * @return Subscription Identifier * */ public Output> subscriptionId() { return Codegen.optional(this.subscriptionId); } /** * 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 list of tenantIds. * */ @Export(name="tenants", refs={List.class,String.class}, tree="[0,1]") private Output> tenants; /** * @return The list of tenantIds. * */ public Output>> tenants() { return Codegen.optional(this.tenants); } /** * Type of this resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Type of this resource. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public PrivateLinkForAzureAd(java.lang.String name) { this(name, PrivateLinkForAzureAdArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public PrivateLinkForAzureAd(java.lang.String name, PrivateLinkForAzureAdArgs 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 PrivateLinkForAzureAd(java.lang.String name, PrivateLinkForAzureAdArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:aadiam:PrivateLinkForAzureAd", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private PrivateLinkForAzureAd(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:aadiam:PrivateLinkForAzureAd", name, null, makeResourceOptions(options, id), false); } private static PrivateLinkForAzureAdArgs makeArgs(PrivateLinkForAzureAdArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? PrivateLinkForAzureAdArgs.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:aadiam:privateLinkForAzureAd").build()), Output.of(Alias.builder().type("azure-native:aadiam/v20200301:PrivateLinkForAzureAd").build()), Output.of(Alias.builder().type("azure-native:aadiam/v20200301:privateLinkForAzureAd").build()), Output.of(Alias.builder().type("azure-native:aadiam/v20200301preview:PrivateLinkForAzureAd").build()), Output.of(Alias.builder().type("azure-native:aadiam/v20200301preview:privateLinkForAzureAd").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 PrivateLinkForAzureAd get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new PrivateLinkForAzureAd(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy