Documentation ¶
Index ¶
- type Directory
- func (*Directory) ElementType() reflect.Type
- func (i *Directory) ToDirectoryOutput() DirectoryOutput
- func (i *Directory) ToDirectoryOutputWithContext(ctx context.Context) DirectoryOutput
- func (i *Directory) ToDirectoryPtrOutput() DirectoryPtrOutput
- func (i *Directory) ToDirectoryPtrOutputWithContext(ctx context.Context) DirectoryPtrOutput
- type DirectoryArgs
- type DirectoryArray
- type DirectoryArrayInput
- type DirectoryArrayOutput
- func (DirectoryArrayOutput) ElementType() reflect.Type
- func (o DirectoryArrayOutput) Index(i pulumi.IntInput) DirectoryOutput
- func (o DirectoryArrayOutput) ToDirectoryArrayOutput() DirectoryArrayOutput
- func (o DirectoryArrayOutput) ToDirectoryArrayOutputWithContext(ctx context.Context) DirectoryArrayOutput
- type DirectoryInput
- type DirectoryMap
- type DirectoryMapInput
- type DirectoryMapOutput
- type DirectoryOutput
- func (DirectoryOutput) ElementType() reflect.Type
- func (o DirectoryOutput) ToDirectoryOutput() DirectoryOutput
- func (o DirectoryOutput) ToDirectoryOutputWithContext(ctx context.Context) DirectoryOutput
- func (o DirectoryOutput) ToDirectoryPtrOutput() DirectoryPtrOutput
- func (o DirectoryOutput) ToDirectoryPtrOutputWithContext(ctx context.Context) DirectoryPtrOutput
- type DirectoryPtrInput
- type DirectoryPtrOutput
- type DirectoryState
- type LookupDirectoryArgs
- type LookupDirectoryOutputArgs
- type LookupDirectoryResult
- type LookupDirectoryResultOutput
- func (o LookupDirectoryResultOutput) BillingType() pulumi.StringOutput
- func (o LookupDirectoryResultOutput) DataResidencyLocation() pulumi.StringOutput
- func (o LookupDirectoryResultOutput) DomainName() pulumi.StringOutput
- func (o LookupDirectoryResultOutput) EffectiveStartDate() pulumi.StringOutput
- func (LookupDirectoryResultOutput) ElementType() reflect.Type
- func (o LookupDirectoryResultOutput) Id() pulumi.StringOutput
- func (o LookupDirectoryResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupDirectoryResultOutput) SkuName() pulumi.StringOutput
- func (o LookupDirectoryResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupDirectoryResultOutput) TenantId() pulumi.StringOutput
- func (o LookupDirectoryResultOutput) ToLookupDirectoryResultOutput() LookupDirectoryResultOutput
- func (o LookupDirectoryResultOutput) ToLookupDirectoryResultOutputWithContext(ctx context.Context) LookupDirectoryResultOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct { pulumi.CustomResourceState // The type of billing for the AAD B2C tenant. Possible values include: `MAU` or `Auths`. BillingType pulumi.StringOutput `pulumi:"billingType"` // Country code of the B2C tenant. The `countryCode` should be valid for the specified `dataResidencyLocation`. See [official docs](https://aka.ms/B2CDataResidency) for valid country codes. Changing this forces a new AAD B2C Directory to be created. CountryCode pulumi.StringOutput `pulumi:"countryCode"` // Location in which the B2C tenant is hosted and data resides. The `dataResidencyLocation` should be valid for the specified `countryCode`. See [official docs](https://aka.ms/B2CDataResidenc) for more information. Changing this forces a new AAD B2C Directory to be created. DataResidencyLocation pulumi.StringOutput `pulumi:"dataResidencyLocation"` // The initial display name of the B2C tenant. Changing this forces a new AAD B2C Directory to be created. DisplayName pulumi.StringOutput `pulumi:"displayName"` // Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix. Changing this forces a new AAD B2C Directory to be created. DomainName pulumi.StringOutput `pulumi:"domainName"` // The date from which the billing type took effect. May not be populated until after the first billing cycle. EffectiveStartDate pulumi.StringOutput `pulumi:"effectiveStartDate"` // The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // 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. SkuName pulumi.StringOutput `pulumi:"skuName"` // A mapping of tags which should be assigned to the AAD B2C Directory. Tags pulumi.StringMapOutput `pulumi:"tags"` // The Tenant ID for the AAD B2C tenant. TenantId pulumi.StringOutput `pulumi:"tenantId"` }
Manages an AAD B2C Directory.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/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 }) }
```
## 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
```
func GetDirectory ¶
func GetDirectory(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DirectoryState, opts ...pulumi.ResourceOption) (*Directory, error)
GetDirectory gets an existing Directory resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDirectory ¶
func NewDirectory(ctx *pulumi.Context, name string, args *DirectoryArgs, opts ...pulumi.ResourceOption) (*Directory, error)
NewDirectory registers a new resource with the given unique name, arguments, and options.
func (*Directory) ElementType ¶
func (*Directory) ToDirectoryOutput ¶
func (i *Directory) ToDirectoryOutput() DirectoryOutput
func (*Directory) ToDirectoryOutputWithContext ¶
func (i *Directory) ToDirectoryOutputWithContext(ctx context.Context) DirectoryOutput
func (*Directory) ToDirectoryPtrOutput ¶
func (i *Directory) ToDirectoryPtrOutput() DirectoryPtrOutput
func (*Directory) ToDirectoryPtrOutputWithContext ¶
func (i *Directory) ToDirectoryPtrOutputWithContext(ctx context.Context) DirectoryPtrOutput
type DirectoryArgs ¶
type DirectoryArgs struct { // Country code of the B2C tenant. The `countryCode` should be valid for the specified `dataResidencyLocation`. See [official docs](https://aka.ms/B2CDataResidency) for valid country codes. Changing this forces a new AAD B2C Directory to be created. CountryCode pulumi.StringInput // Location in which the B2C tenant is hosted and data resides. The `dataResidencyLocation` should be valid for the specified `countryCode`. See [official docs](https://aka.ms/B2CDataResidenc) for more information. Changing this forces a new AAD B2C Directory to be created. DataResidencyLocation pulumi.StringInput // The initial display name of the B2C tenant. Changing this forces a new AAD B2C Directory to be created. DisplayName pulumi.StringInput // Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix. Changing this forces a new AAD B2C Directory to be created. DomainName pulumi.StringInput // The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created. ResourceGroupName pulumi.StringInput // 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. SkuName pulumi.StringInput // A mapping of tags which should be assigned to the AAD B2C Directory. Tags pulumi.StringMapInput }
The set of arguments for constructing a Directory resource.
func (DirectoryArgs) ElementType ¶
func (DirectoryArgs) ElementType() reflect.Type
type DirectoryArray ¶
type DirectoryArray []DirectoryInput
func (DirectoryArray) ElementType ¶
func (DirectoryArray) ElementType() reflect.Type
func (DirectoryArray) ToDirectoryArrayOutput ¶
func (i DirectoryArray) ToDirectoryArrayOutput() DirectoryArrayOutput
func (DirectoryArray) ToDirectoryArrayOutputWithContext ¶
func (i DirectoryArray) ToDirectoryArrayOutputWithContext(ctx context.Context) DirectoryArrayOutput
type DirectoryArrayInput ¶
type DirectoryArrayInput interface { pulumi.Input ToDirectoryArrayOutput() DirectoryArrayOutput ToDirectoryArrayOutputWithContext(context.Context) DirectoryArrayOutput }
DirectoryArrayInput is an input type that accepts DirectoryArray and DirectoryArrayOutput values. You can construct a concrete instance of `DirectoryArrayInput` via:
DirectoryArray{ DirectoryArgs{...} }
type DirectoryArrayOutput ¶
type DirectoryArrayOutput struct{ *pulumi.OutputState }
func (DirectoryArrayOutput) ElementType ¶
func (DirectoryArrayOutput) ElementType() reflect.Type
func (DirectoryArrayOutput) Index ¶
func (o DirectoryArrayOutput) Index(i pulumi.IntInput) DirectoryOutput
func (DirectoryArrayOutput) ToDirectoryArrayOutput ¶
func (o DirectoryArrayOutput) ToDirectoryArrayOutput() DirectoryArrayOutput
func (DirectoryArrayOutput) ToDirectoryArrayOutputWithContext ¶
func (o DirectoryArrayOutput) ToDirectoryArrayOutputWithContext(ctx context.Context) DirectoryArrayOutput
type DirectoryInput ¶
type DirectoryInput interface { pulumi.Input ToDirectoryOutput() DirectoryOutput ToDirectoryOutputWithContext(ctx context.Context) DirectoryOutput }
type DirectoryMap ¶
type DirectoryMap map[string]DirectoryInput
func (DirectoryMap) ElementType ¶
func (DirectoryMap) ElementType() reflect.Type
func (DirectoryMap) ToDirectoryMapOutput ¶
func (i DirectoryMap) ToDirectoryMapOutput() DirectoryMapOutput
func (DirectoryMap) ToDirectoryMapOutputWithContext ¶
func (i DirectoryMap) ToDirectoryMapOutputWithContext(ctx context.Context) DirectoryMapOutput
type DirectoryMapInput ¶
type DirectoryMapInput interface { pulumi.Input ToDirectoryMapOutput() DirectoryMapOutput ToDirectoryMapOutputWithContext(context.Context) DirectoryMapOutput }
DirectoryMapInput is an input type that accepts DirectoryMap and DirectoryMapOutput values. You can construct a concrete instance of `DirectoryMapInput` via:
DirectoryMap{ "key": DirectoryArgs{...} }
type DirectoryMapOutput ¶
type DirectoryMapOutput struct{ *pulumi.OutputState }
func (DirectoryMapOutput) ElementType ¶
func (DirectoryMapOutput) ElementType() reflect.Type
func (DirectoryMapOutput) MapIndex ¶
func (o DirectoryMapOutput) MapIndex(k pulumi.StringInput) DirectoryOutput
func (DirectoryMapOutput) ToDirectoryMapOutput ¶
func (o DirectoryMapOutput) ToDirectoryMapOutput() DirectoryMapOutput
func (DirectoryMapOutput) ToDirectoryMapOutputWithContext ¶
func (o DirectoryMapOutput) ToDirectoryMapOutputWithContext(ctx context.Context) DirectoryMapOutput
type DirectoryOutput ¶
type DirectoryOutput struct{ *pulumi.OutputState }
func (DirectoryOutput) ElementType ¶
func (DirectoryOutput) ElementType() reflect.Type
func (DirectoryOutput) ToDirectoryOutput ¶
func (o DirectoryOutput) ToDirectoryOutput() DirectoryOutput
func (DirectoryOutput) ToDirectoryOutputWithContext ¶
func (o DirectoryOutput) ToDirectoryOutputWithContext(ctx context.Context) DirectoryOutput
func (DirectoryOutput) ToDirectoryPtrOutput ¶
func (o DirectoryOutput) ToDirectoryPtrOutput() DirectoryPtrOutput
func (DirectoryOutput) ToDirectoryPtrOutputWithContext ¶
func (o DirectoryOutput) ToDirectoryPtrOutputWithContext(ctx context.Context) DirectoryPtrOutput
type DirectoryPtrInput ¶
type DirectoryPtrInput interface { pulumi.Input ToDirectoryPtrOutput() DirectoryPtrOutput ToDirectoryPtrOutputWithContext(ctx context.Context) DirectoryPtrOutput }
type DirectoryPtrOutput ¶
type DirectoryPtrOutput struct{ *pulumi.OutputState }
func (DirectoryPtrOutput) Elem ¶
func (o DirectoryPtrOutput) Elem() DirectoryOutput
func (DirectoryPtrOutput) ElementType ¶
func (DirectoryPtrOutput) ElementType() reflect.Type
func (DirectoryPtrOutput) ToDirectoryPtrOutput ¶
func (o DirectoryPtrOutput) ToDirectoryPtrOutput() DirectoryPtrOutput
func (DirectoryPtrOutput) ToDirectoryPtrOutputWithContext ¶
func (o DirectoryPtrOutput) ToDirectoryPtrOutputWithContext(ctx context.Context) DirectoryPtrOutput
type DirectoryState ¶
type DirectoryState struct { // The type of billing for the AAD B2C tenant. Possible values include: `MAU` or `Auths`. BillingType pulumi.StringPtrInput // Country code of the B2C tenant. The `countryCode` should be valid for the specified `dataResidencyLocation`. See [official docs](https://aka.ms/B2CDataResidency) for valid country codes. Changing this forces a new AAD B2C Directory to be created. CountryCode pulumi.StringPtrInput // Location in which the B2C tenant is hosted and data resides. The `dataResidencyLocation` should be valid for the specified `countryCode`. See [official docs](https://aka.ms/B2CDataResidenc) for more information. Changing this forces a new AAD B2C Directory to be created. DataResidencyLocation pulumi.StringPtrInput // The initial display name of the B2C tenant. Changing this forces a new AAD B2C Directory to be created. DisplayName pulumi.StringPtrInput // Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix. Changing this forces a new AAD B2C Directory to be created. DomainName pulumi.StringPtrInput // The date from which the billing type took effect. May not be populated until after the first billing cycle. EffectiveStartDate pulumi.StringPtrInput // The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created. ResourceGroupName pulumi.StringPtrInput // 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. SkuName pulumi.StringPtrInput // A mapping of tags which should be assigned to the AAD B2C Directory. Tags pulumi.StringMapInput // The Tenant ID for the AAD B2C tenant. TenantId pulumi.StringPtrInput }
func (DirectoryState) ElementType ¶
func (DirectoryState) ElementType() reflect.Type
type LookupDirectoryArgs ¶
type LookupDirectoryArgs struct { // Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix. DomainName string `pulumi:"domainName"` // The name of the Resource Group where the AAD B2C Directory exists. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getDirectory.
type LookupDirectoryOutputArgs ¶
type LookupDirectoryOutputArgs struct { // Domain name of the B2C tenant, including the `.onmicrosoft.com` suffix. DomainName pulumi.StringInput `pulumi:"domainName"` // The name of the Resource Group where the AAD B2C Directory exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getDirectory.
func (LookupDirectoryOutputArgs) ElementType ¶
func (LookupDirectoryOutputArgs) ElementType() reflect.Type
type LookupDirectoryResult ¶
type LookupDirectoryResult struct { // The type of billing for the AAD B2C tenant. Possible values include: `MAU` or `Auths`. BillingType string `pulumi:"billingType"` // Location in which the B2C tenant is hosted and data resides. See [official docs](https://aka.ms/B2CDataResidenc) for more information. DataResidencyLocation string `pulumi:"dataResidencyLocation"` DomainName string `pulumi:"domainName"` // The date from which the billing type took effect. May not be populated until after the first billing cycle. EffectiveStartDate string `pulumi:"effectiveStartDate"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` ResourceGroupName string `pulumi:"resourceGroupName"` // Billing SKU for the B2C tenant. See [official docs](https://aka.ms/b2cBilling) for more information. SkuName string `pulumi:"skuName"` // A mapping of tags assigned to the AAD B2C Directory. Tags map[string]string `pulumi:"tags"` // The Tenant ID for the AAD B2C tenant. TenantId string `pulumi:"tenantId"` }
A collection of values returned by getDirectory.
func LookupDirectory ¶
func LookupDirectory(ctx *pulumi.Context, args *LookupDirectoryArgs, opts ...pulumi.InvokeOption) (*LookupDirectoryResult, error)
Use this data source to access information about an existing AAD B2C Directory.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/aadb2c" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := aadb2c.LookupDirectory(ctx, &aadb2c.LookupDirectoryArgs{ ResourceGroupName: "example-rg", DomainName: "exampleb2ctenant.onmicrosoft.com", }, nil) if err != nil { return err } ctx.Export("tenantId", example.TenantId) return nil }) }
```
type LookupDirectoryResultOutput ¶
type LookupDirectoryResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDirectory.
func LookupDirectoryOutput ¶
func LookupDirectoryOutput(ctx *pulumi.Context, args LookupDirectoryOutputArgs, opts ...pulumi.InvokeOption) LookupDirectoryResultOutput
func (LookupDirectoryResultOutput) BillingType ¶
func (o LookupDirectoryResultOutput) BillingType() pulumi.StringOutput
The type of billing for the AAD B2C tenant. Possible values include: `MAU` or `Auths`.
func (LookupDirectoryResultOutput) DataResidencyLocation ¶
func (o LookupDirectoryResultOutput) DataResidencyLocation() pulumi.StringOutput
Location in which the B2C tenant is hosted and data resides. See [official docs](https://aka.ms/B2CDataResidenc) for more information.
func (LookupDirectoryResultOutput) DomainName ¶
func (o LookupDirectoryResultOutput) DomainName() pulumi.StringOutput
func (LookupDirectoryResultOutput) EffectiveStartDate ¶
func (o LookupDirectoryResultOutput) EffectiveStartDate() pulumi.StringOutput
The date from which the billing type took effect. May not be populated until after the first billing cycle.
func (LookupDirectoryResultOutput) ElementType ¶
func (LookupDirectoryResultOutput) ElementType() reflect.Type
func (LookupDirectoryResultOutput) Id ¶
func (o LookupDirectoryResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupDirectoryResultOutput) ResourceGroupName ¶
func (o LookupDirectoryResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupDirectoryResultOutput) SkuName ¶
func (o LookupDirectoryResultOutput) SkuName() pulumi.StringOutput
Billing SKU for the B2C tenant. See [official docs](https://aka.ms/b2cBilling) for more information.
func (LookupDirectoryResultOutput) Tags ¶
func (o LookupDirectoryResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the AAD B2C Directory.
func (LookupDirectoryResultOutput) TenantId ¶
func (o LookupDirectoryResultOutput) TenantId() pulumi.StringOutput
The Tenant ID for the AAD B2C tenant.
func (LookupDirectoryResultOutput) ToLookupDirectoryResultOutput ¶
func (o LookupDirectoryResultOutput) ToLookupDirectoryResultOutput() LookupDirectoryResultOutput
func (LookupDirectoryResultOutput) ToLookupDirectoryResultOutputWithContext ¶
func (o LookupDirectoryResultOutput) ToLookupDirectoryResultOutputWithContext(ctx context.Context) LookupDirectoryResultOutput