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

com.pulumi.azurenative.azureactivedirectory.B2CTenant Maven / Gradle / Ivy

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

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.azureactivedirectory.B2CTenantArgs;
import com.pulumi.azurenative.azureactivedirectory.outputs.B2CResourceSKUResponse;
import com.pulumi.azurenative.azureactivedirectory.outputs.B2CTenantResourcePropertiesResponseBillingConfig;
import com.pulumi.azurenative.azureactivedirectory.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;

/**
 * Azure REST API version: 2021-04-01. Prior API version in Azure Native 1.x: 2019-01-01-preview.
 * 
 * Other available API versions: 2019-01-01-preview, 2023-01-18-preview, 2023-05-17-preview.
 * 
 * ## Example Usage
 * ### Create tenant
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.azureactivedirectory.B2CTenant;
 * import com.pulumi.azurenative.azureactivedirectory.B2CTenantArgs;
 * import com.pulumi.azurenative.azureactivedirectory.inputs.B2CResourceSKUArgs;
 * 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 b2cTenant = new B2CTenant("b2cTenant", B2CTenantArgs.builder()
 *             .countryCode("US")
 *             .displayName("Contoso")
 *             .location("United States")
 *             .resourceGroupName("contosoResourceGroup")
 *             .resourceName("contoso.onmicrosoft.com")
 *             .sku(B2CResourceSKUArgs.builder()
 *                 .name("Standard")
 *                 .tier("A0")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:azureactivedirectory:B2CTenant contoso.onmicrosoft.com /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureActiveDirectory/b2cDirectories/{resourceName} * ``` * */ @ResourceType(type="azure-native:azureactivedirectory:B2CTenant") public class B2CTenant extends com.pulumi.resources.CustomResource { /** * The billing configuration for the tenant. * */ @Export(name="billingConfig", refs={B2CTenantResourcePropertiesResponseBillingConfig.class}, tree="[0]") private Output billingConfig; /** * @return The billing configuration for the tenant. * */ public Output> billingConfig() { return Codegen.optional(this.billingConfig); } /** * The location in which the resource is hosted and data resides. Can be one of 'United States', 'Europe', 'Asia Pacific', or 'Australia'. Refer to [this documentation](https://aka.ms/B2CDataResidency) for more information. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The location in which the resource is hosted and data resides. Can be one of 'United States', 'Europe', 'Asia Pacific', or 'Australia'. Refer to [this documentation](https://aka.ms/B2CDataResidency) for more information. * */ public Output location() { return this.location; } /** * The name of the Azure AD B2C tenant resource. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the Azure AD B2C tenant resource. * */ public Output name() { return this.name; } /** * SKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at [aka.ms/b2cBilling](https://aka.ms/b2cBilling). * */ @Export(name="sku", refs={B2CResourceSKUResponse.class}, tree="[0]") private Output sku; /** * @return SKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at [aka.ms/b2cBilling](https://aka.ms/b2cBilling). * */ public Output sku() { return this.sku; } /** * 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; } /** * 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); } /** * An identifier of the Azure AD B2C tenant. * */ @Export(name="tenantId", refs={String.class}, tree="[0]") private Output tenantId; /** * @return An identifier of the Azure AD B2C tenant. * */ public Output> tenantId() { return Codegen.optional(this.tenantId); } /** * The type of the B2C tenant resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the B2C tenant resource. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public B2CTenant(java.lang.String name) { this(name, B2CTenantArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public B2CTenant(java.lang.String name, B2CTenantArgs 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 B2CTenant(java.lang.String name, B2CTenantArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:azureactivedirectory:B2CTenant", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private B2CTenant(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:azureactivedirectory:B2CTenant", name, null, makeResourceOptions(options, id), false); } private static B2CTenantArgs makeArgs(B2CTenantArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? B2CTenantArgs.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:azureactivedirectory/v20190101preview:B2CTenant").build()), Output.of(Alias.builder().type("azure-native:azureactivedirectory/v20210401:B2CTenant").build()), Output.of(Alias.builder().type("azure-native:azureactivedirectory/v20230118preview:B2CTenant").build()), Output.of(Alias.builder().type("azure-native:azureactivedirectory/v20230517preview:B2CTenant").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 B2CTenant get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new B2CTenant(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy