pspulumiyaml.azurenative.windowsiot.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionWindowsiotGetService
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Windows IoT Device Service.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The name of the Windows IoT Device Service.)')]
        [string]
        $deviceName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:windowsiot:getService -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function New-AzureNativeWindowsiotService
{
    [Alias('azure_native_windowsiot_service')]
    param (
        [parameter(mandatory=$False,HelpMessage='Resource tags.)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='The name of the Windows IoT Device Service.)')]
        [string]
        $deviceName,
        [parameter(mandatory=$False,HelpMessage='The Azure Region where the resource lives)')]
        [string]
        $location,
        [parameter(mandatory=$False,HelpMessage='Windows IoT Device Service ODM AAD domain)')]
        [string]
        $billingDomainName,
        [parameter(mandatory=$False,HelpMessage='Windows IoT Device Service OEM AAD domain)')]
        [string]
        $adminDomainName,
        [parameter(mandatory=$False,HelpMessage='Windows IoT Device Service notes.)')]
        [string]
        $notes,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group that contains the Windows IoT Device Service.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='Windows IoT Device Service device allocation,)')]
        [int]
        $quantity,
        [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:windowsiot:Service")

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

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

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

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

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

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

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

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

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