pspulumiyaml.azurenative.managementpartner.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionManagementpartnerGetPartner
{
    param (
        [parameter(mandatory=$False,HelpMessage='Id of the Partner)')]
        [string]
        $partnerId
    )

    process
    {
        $arguments = @{}
        $arguments["partnerId"] = $partnerId

        $functionObject = Invoke-PulumiFunction -Name azure-native:managementpartner:getPartner -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function New-AzureNativeManagementpartnerPartner
{
    [Alias('azure_native_managementpartner_partner')]
    param (
        [parameter(mandatory=$False,HelpMessage='Id of the Partner)')]
        [string]
        $partnerId,
        [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:managementpartner:Partner")

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

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

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