pspulumiyaml.azurenative.azureactivedirectory.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionAzureactivedirectoryGetGuestUsage
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The initial domain name of the AAD tenant.)')]
        [string]
        $resourceName
    )

    process
    {
        $arguments = @{}
        $arguments["resourceGroupName"] = $resourceGroupName
        $arguments["resourceName"] = $resourceName

        $functionObject = Invoke-PulumiFunction -Name azure-native:azureactivedirectory:getGuestUsage -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionAzureactivedirectoryGetB2CTenant
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The initial domain name of the B2C tenant.)')]
        [string]
        $resourceName
    )

    process
    {
        $arguments = @{}
        $arguments["resourceGroupName"] = $resourceGroupName
        $arguments["resourceName"] = $resourceName

        $functionObject = Invoke-PulumiFunction -Name azure-native:azureactivedirectory:getB2CTenant -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function New-AzureNativeAzureactivedirectoryGuestUsage
{
    [Alias('azure_native_azureactivedirectory_guestusage')]
    param (
        [parameter(mandatory=$False,HelpMessage='An identifier for the tenant for which the resource is being created)')]
        [string]
        $tenantId,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The initial domain name of the AAD tenant.)')]
        [string]
        $resourceName,
        [parameter(mandatory=$False,HelpMessage='Key-value pairs of additional resource provisioning properties.)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='Location of the Guest Usages resource.)')]
        [string]
        $location,
        [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')]
        [string]
        $pulumiid
    )

    process
    {
        $resource = [pulumiresource]::new($pulumiid, "azure-native:azureactivedirectory:GuestUsage")

        $resource.properties["resourceGroupName"] = $resourceGroupName

        if($PSBoundParameters.Keys -icontains 'tenantId')
        {
            $resource.properties["tenantId"] = $tenantId
        }

        if($PSBoundParameters.Keys -icontains 'resourceName')
        {
            $resource.properties["resourceName"] = $resourceName
        }

        if($PSBoundParameters.Keys -icontains 'tags')
        {
            $resource.properties["tags"] = $tags
        }

        if($PSBoundParameters.Keys -icontains 'location')
        {
            $resource.properties["location"] = $location
        }

        $global:pulumiresources += $resource
        return $resource
    }
}
class B2CResourceSKU
{
    [ValidateSet('Standard', 'PremiumP1', 'PremiumP2')]
    [object] $name
    [ValidateSet('A0')]
    [object] $tier
}
function New-AzureNativeTypeAzureactivedirectoryB2CResourceSKU
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the SKU for the tenant.)')]
        $name,
        [parameter(mandatory=$False,HelpMessage='The tier of the tenant.)')]
        $tier
    )

    process
    {
        return $([B2CResourceSKU]$PSBoundParameters)
    }
}
class CreateTenantRequestBodyProperties
{
    [string] $countryCode
    [string] $displayName
}
function New-AzureNativeTypeAzureactivedirectoryCreateTenantRequestBodyProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage='Country code of Azure tenant (e.g. ''US''). Refer to [aka.ms/B2CDataResidency](https://aka.ms/B2CDataResidency) to see valid country codes and corresponding data residency locations. If you do not see a country code in an valid data residency location, choose one from the list.)')]
        [string]
        $countryCode,
        [parameter(mandatory=$False,HelpMessage='The display name of the B2C tenant.)')]
        [string]
        $displayName
    )

    process
    {
        return $([CreateTenantRequestBodyProperties]$PSBoundParameters)
    }
}
function New-AzureNativeAzureactivedirectoryB2CTenant
{
    [Alias('azure_native_azureactivedirectory_b2ctenant')]
    param (
        [parameter(mandatory=$False,HelpMessage='SKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at [aka.ms/b2cBilling](https://aka.ms/b2cBilling).)')]
        [B2CResourceSKU]
        $sku,
        [parameter(mandatory=$False,HelpMessage='The initial domain name of the B2C tenant.)')]
        [string]
        $resourceName,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Resource Tags)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage=')')]
        [CreateTenantRequestBodyProperties]
        $properties,
        [parameter(mandatory=$False,HelpMessage='The location in which the resource is hosted and data resides. Can be one of ''United States'', ''Europe'', ''Asia Pacific'', or ''Australia'' (preview). Refer to [this documentation](https://aka.ms/B2CDataResidency) for more information.)')]
        [string]
        $location,
        [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')]
        [string]
        $pulumiid
    )

    process
    {
        $resource = [pulumiresource]::new($pulumiid, "azure-native:azureactivedirectory:B2CTenant")

        $resource.properties["properties"] = $properties
        $resource.properties["resourceGroupName"] = $resourceGroupName
        $resource.properties["sku"] = $sku

        if($PSBoundParameters.Keys -icontains 'resourceName')
        {
            $resource.properties["resourceName"] = $resourceName
        }

        if($PSBoundParameters.Keys -icontains 'tags')
        {
            $resource.properties["tags"] = $tags
        }

        if($PSBoundParameters.Keys -icontains 'location')
        {
            $resource.properties["location"] = $location
        }

        $global:pulumiresources += $resource
        return $resource
    }
}