pspulumiyaml.azurenative.managedidentity.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionManagedidentityListUserAssignedIdentityAssociatedResources
{
    param (
        [parameter(mandatory=$False,HelpMessage='Number of records to return.)')]
        [int]
        $top,
        [parameter(mandatory=$False,HelpMessage='The name of the identity resource.)')]
        [string]
        $resourceName,
        [parameter(mandatory=$False,HelpMessage='OData filter expression to apply to the query.)')]
        [string]
        $filter,
        [parameter(mandatory=$False,HelpMessage='The name of the Resource Group to which the identity belongs.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='OData orderBy expression to apply to the query.)')]
        [string]
        $orderby,
        [parameter(mandatory=$False,HelpMessage='A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.)')]
        [string]
        $skiptoken,
        [parameter(mandatory=$False,HelpMessage='Number of records to skip.)')]
        [int]
        $skip
    )

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

        if($PSBoundParameters.Keys -icontains 'top')
        {
            $arguments["top"] = $top
        }

        if($PSBoundParameters.Keys -icontains 'filter')
        {
            $arguments["filter"] = $filter
        }

        if($PSBoundParameters.Keys -icontains 'orderby')
        {
            $arguments["orderby"] = $orderby
        }

        if($PSBoundParameters.Keys -icontains 'skiptoken')
        {
            $arguments["skiptoken"] = $skiptoken
        }

        if($PSBoundParameters.Keys -icontains 'skip')
        {
            $arguments["skip"] = $skip
        }

        $functionObject = Invoke-PulumiFunction -Name azure-native:managedidentity:listUserAssignedIdentityAssociatedResources -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionManagedidentityGetUserAssignedIdentity
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the Resource Group to which the identity belongs.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The name of the identity resource.)')]
        [string]
        $resourceName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:managedidentity:getUserAssignedIdentity -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function New-AzureNativeManagedidentityUserAssignedIdentity
{
    [Alias('azure_native_managedidentity_userassignedidentity')]
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the Resource Group to which the identity belongs.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The name of the identity resource.)')]
        [string]
        $resourceName,
        [parameter(mandatory=$False,HelpMessage='Resource tags.)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='The geo-location where the resource lives)')]
        [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:managedidentity:UserAssignedIdentity")

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

        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
    }
}