pspulumiyaml.azurenative.customproviders.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionCustomprovidersGetAssociation
{
    param (
        [parameter(mandatory=$False,HelpMessage='The scope of the association.)')]
        [string]
        $scope,
        [parameter(mandatory=$False,HelpMessage='The name of the association.)')]
        [string]
        $associationName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:customproviders:getAssociation -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionCustomprovidersGetCustomResourceProvider
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource provider.)')]
        [string]
        $resourceProviderName,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')]
        [string]
        $resourceGroupName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:customproviders:getCustomResourceProvider -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function New-AzureNativeCustomprovidersAssociation
{
    [Alias('azure_native_customproviders_association')]
    param (
        [parameter(mandatory=$False,HelpMessage='The REST resource instance of the target resource for this association.)')]
        [string]
        $targetResourceId,
        [parameter(mandatory=$False,HelpMessage='The scope of the association. The scope can be any valid REST resource instance. For example, use ''/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}'' for a virtual machine resource.)')]
        [string]
        $scope,
        [parameter(mandatory=$False,HelpMessage='The name of the association.)')]
        [string]
        $associationName,
        [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:customproviders:Association")

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
function New-AzureNativeCustomprovidersCustomResourceProvider
{
    [Alias('azure_native_customproviders_customresourceprovider')]
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the resource provider.)')]
        [string]
        $resourceProviderName,
        [parameter(mandatory=$False,HelpMessage='A list of validations to run on the custom resource provider''s requests.)')]
        $validations,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='A list of resource types that the custom resource provider implements.)')]
        $resourceTypes,
        [parameter(mandatory=$False,HelpMessage='Resource tags)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='A list of actions that the custom resource provider implements.)')]
        $actions,
        [parameter(mandatory=$False,HelpMessage='Resource location)')]
        [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:customproviders:CustomResourceProvider")

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

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

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

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

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

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

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

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