pspulumiyaml.azurenative.healthbot.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionHealthbotGetBot
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')]
        [string]
        $botName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:healthbot:getBot -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
class Sku
{
    [ArgumentCompletions('F0', 'S1', 'C0')]
    [object] $name
}
function New-AzureNativeTypeHealthbotSku
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the HealthBot SKU)')]
        $name
    )

    process
    {
        return $([Sku]$PSBoundParameters)
    }
}
function New-AzureNativeHealthbotBot
{
    [Alias('azure_native_healthbot_bot')]
    param (
        [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')]
        [string]
        $location,
        [parameter(mandatory=$False,HelpMessage='Resource tags.)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')]
        [string]
        $botName,
        [parameter(mandatory=$False,HelpMessage='SKU of the HealthBot.)')]
        [Sku]
        $sku,
        [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')]
        [string]
        $pulumiid,
        [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')]
        [object]
        $DependsOn
    )

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

        foreach($Dependency in $DependsOn)
        {
            if($Dependency -is [pulumiresource])
            {
                $resource.dependson += $Dependency.Reference()
            } else
            {
                $resource.dependson += $Dependency
            }
        }
        $resource.properties["resourceGroupName"] = $resourceGroupName
        $resource.properties["sku"] = $sku

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

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

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

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