pspulumiyaml.azurenative.softwareplan.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionSoftwareplanGetHybridUseBenefit
{
    param (
        [parameter(mandatory=$False,HelpMessage='This is a unique identifier for a plan. Should be a guid.)')]
        [string]
        $planId,
        [parameter(mandatory=$False,HelpMessage='The scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now)')]
        [string]
        $scope
    )

    process
    {
        $arguments = @{}
        $arguments["planId"] = $planId
        $arguments["scope"] = $scope

        $functionObject = Invoke-PulumiFunction -Name azure-native:softwareplan:getHybridUseBenefit -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
class Sku
{
    [string] $name
}
function New-AzureNativeTypeSoftwareplanSku
{
    param (
        [parameter(mandatory=$False,HelpMessage='Name of the SKU to be applied)')]
        [string]
        $name
    )

    process
    {
        return $([Sku]$PSBoundParameters)
    }
}
function New-AzureNativeSoftwareplanHybridUseBenefit
{
    [Alias('azure_native_softwareplan_hybridusebenefit')]
    param (
        [parameter(mandatory=$False,HelpMessage='This is a unique identifier for a plan. Should be a guid.)')]
        [string]
        $planId,
        [parameter(mandatory=$False,HelpMessage='Hybrid use benefit SKU)')]
        [Sku]
        $sku,
        [parameter(mandatory=$False,HelpMessage='The scope at which the operation is performed. This is limited to Microsoft.Compute/virtualMachines and Microsoft.Compute/hostGroups/hosts for now)')]
        [string]
        $scope,
        [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:softwareplan:HybridUseBenefit")

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

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

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