Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.aadb2c.kotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
/**
* Builder for [Directory].
*/
@PulumiTagMarker
public class DirectoryResourceBuilder internal constructor() {
public var name: String? = null
public var args: DirectoryArgs = DirectoryArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend DirectoryArgsBuilder.() -> Unit) {
val builder = DirectoryArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Directory {
val builtJavaResource = com.pulumi.azure.aadb2c.Directory(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Directory(builtJavaResource)
}
}
/**
* Manages an AAD B2C Directory.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.aadb2c.Directory("example", {
* countryCode: "US",
* dataResidencyLocation: "United States",
* displayName: "example-b2c-tenant",
* domainName: "exampleb2ctenant.onmicrosoft.com",
* resourceGroupName: "example-rg",
* skuName: "PremiumP1",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.aadb2c.Directory("example",
* country_code="US",
* data_residency_location="United States",
* display_name="example-b2c-tenant",
* domain_name="exampleb2ctenant.onmicrosoft.com",
* resource_group_name="example-rg",
* sku_name="PremiumP1")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.AadB2C.Directory("example", new()
* {
* CountryCode = "US",
* DataResidencyLocation = "United States",
* DisplayName = "example-b2c-tenant",
* DomainName = "exampleb2ctenant.onmicrosoft.com",
* ResourceGroupName = "example-rg",
* SkuName = "PremiumP1",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/aadb2c"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := aadb2c.NewDirectory(ctx, "example", &aadb2c.DirectoryArgs{
* CountryCode: pulumi.String("US"),
* DataResidencyLocation: pulumi.String("United States"),
* DisplayName: pulumi.String("example-b2c-tenant"),
* DomainName: pulumi.String("exampleb2ctenant.onmicrosoft.com"),
* ResourceGroupName: pulumi.String("example-rg"),
* SkuName: pulumi.String("PremiumP1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.aadb2c.Directory;
* import com.pulumi.azure.aadb2c.DirectoryArgs;
* 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 Directory("example", DirectoryArgs.builder()
* .countryCode("US")
* .dataResidencyLocation("United States")
* .displayName("example-b2c-tenant")
* .domainName("exampleb2ctenant.onmicrosoft.com")
* .resourceGroupName("example-rg")
* .skuName("PremiumP1")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:aadb2c:Directory
* properties:
* countryCode: US
* dataResidencyLocation: United States
* displayName: example-b2c-tenant
* domainName: exampleb2ctenant.onmicrosoft.com
* resourceGroupName: example-rg
* skuName: PremiumP1
* ```
*
* ## Import
* AAD B2C Directories can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:aadb2c/directory:Directory example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.AzureActiveDirectory/b2cDirectories/directory-name
* ```
*/
public class Directory internal constructor(
override val javaResource: com.pulumi.azure.aadb2c.Directory,
) : KotlinCustomResource(javaResource, DirectoryMapper) {
/**
* The type of billing for the AAD B2C tenant. Possible values include: `MAU` or `Auths`.
*/
public val billingType: Output
get() = javaResource.billingType().applyValue({ args0 -> args0 })
/**
* Country code of the B2C tenant. The `country_code` should be valid for the specified `data_residency_location`. See [official docs](https://aka.ms/B2CDataResidency) for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
*/
public val countryCode: Output
get() = javaResource.countryCode().applyValue({ args0 -> args0 })
/**
* Location in which the B2C tenant is hosted and data resides. The `data_residency_location` should be valid for the specified `country_code`. See [official docs](https://aka.ms/B2CDataResidenc) for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are `Asia Pacific`, `Australia`, `Europe`, `Global` and `United States`.
*/
public val dataResidencyLocation: Output
get() = javaResource.dataResidencyLocation().applyValue({ args0 -> args0 })
/**
* The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
*/
public val displayName: Output
get() = javaResource.displayName().applyValue({ args0 -> args0 })
/**
* Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix. Changing this forces a new AAD B2C Directory to be created.
*/
public val domainName: Output
get() = javaResource.domainName().applyValue({ args0 -> args0 })
/**
* The date from which the billing type took effect. May not be populated until after the first billing cycle.
*/
public val effectiveStartDate: Output
get() = javaResource.effectiveStartDate().applyValue({ args0 -> args0 })
/**
* The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
*/
public val resourceGroupName: Output
get() = javaResource.resourceGroupName().applyValue({ args0 -> args0 })
/**
* Billing SKU for the B2C tenant. Must be one of: `PremiumP1` or `PremiumP2` (`Standard` is not supported). See [official docs](https://aka.ms/b2cBilling) for more information.
*/
public val skuName: Output
get() = javaResource.skuName().applyValue({ args0 -> args0 })
/**
* A mapping of tags which should be assigned to the AAD B2C Directory.
*/
public val tags: Output