pspulumiyaml.azurenative.hybridconnectivity.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionHybridconnectivityListEndpointManagedProxyDetails
{
    param (
        [parameter(mandatory=$False,HelpMessage='The endpoint name.)')]
        [string]
        $endpointName,
        [parameter(mandatory=$False,HelpMessage='The name of the service.)')]
        [string]
        $service,
        [parameter(mandatory=$False,HelpMessage='The fully qualified Azure Resource manager identifier of the resource to be connected.)')]
        [string]
        $resourceUri,
        [parameter(mandatory=$False,HelpMessage='The target host name.)')]
        [string]
        $hostname
    )

    process
    {
        $arguments = @{}
        $arguments["endpointName"] = $endpointName
        $arguments["resourceUri"] = $resourceUri
        $arguments["service"] = $service

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:hybridconnectivity:listEndpointManagedProxyDetails -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionHybridconnectivityGetEndpoint
{
    param (
        [parameter(mandatory=$False,HelpMessage='The endpoint name.)')]
        [string]
        $endpointName,
        [parameter(mandatory=$False,HelpMessage='The fully qualified Azure Resource manager identifier of the resource to be connected.)')]
        [string]
        $resourceUri
    )

    process
    {
        $arguments = @{}
        $arguments["endpointName"] = $endpointName
        $arguments["resourceUri"] = $resourceUri

        $functionObject = Invoke-PulumiFunction -Name azure-native:hybridconnectivity:getEndpoint -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionHybridconnectivityListEndpointCredentials
{
    param (
        [parameter(mandatory=$False,HelpMessage='The endpoint name.)')]
        [string]
        $endpointName,
        [parameter(mandatory=$False,HelpMessage='The fully qualified Azure Resource manager identifier of the resource to be connected.)')]
        [string]
        $resourceUri,
        [parameter(mandatory=$False,HelpMessage='The is how long the endpoint access token is valid (in seconds).)')]
        [int]
        $expiresin
    )

    process
    {
        $arguments = @{}
        $arguments["endpointName"] = $endpointName
        $arguments["resourceUri"] = $resourceUri

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:hybridconnectivity:listEndpointCredentials -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function New-AzureNativeHybridconnectivityEndpoint
{
    [Alias('azure_native_hybridconnectivity_endpoint')]
    param (
        [parameter(mandatory=$False,HelpMessage='The type of endpoint.)')]
        [string]
        [ValidateSet('default', 'custom')]
        $type,
        [parameter(mandatory=$False,HelpMessage='The type of identity that created the resource.)')]
        [string]
        [ValidateSet('User', 'Application', 'ManagedIdentity', 'Key')]
        $createdByType,
        [parameter(mandatory=$False,HelpMessage='The resource Id of the connectivity endpoint (optional).)')]
        [string]
        $resourceId,
        [parameter(mandatory=$False,HelpMessage='The timestamp of resource creation (UTC).)')]
        [string]
        $createdAt,
        [parameter(mandatory=$False,HelpMessage='The endpoint name.)')]
        [string]
        $endpointName,
        [parameter(mandatory=$False,HelpMessage='The type of identity that last modified the resource.)')]
        [string]
        [ValidateSet('User', 'Application', 'ManagedIdentity', 'Key')]
        $lastModifiedByType,
        [parameter(mandatory=$False,HelpMessage='The fully qualified Azure Resource manager identifier of the resource to be connected.)')]
        [string]
        $resourceUri,
        [parameter(mandatory=$False,HelpMessage='The identity that created the resource.)')]
        [string]
        $createdBy,
        [parameter(mandatory=$False,HelpMessage='The timestamp of resource last modification (UTC))')]
        [string]
        $lastModifiedAt,
        [parameter(mandatory=$False,HelpMessage='The identity that last modified the resource.)')]
        [string]
        $lastModifiedBy,
        [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:hybridconnectivity:Endpoint")

        $resource.properties["resourceUri"] = $resourceUri
        $resource.properties["type"] = $type

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

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

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

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

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

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

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

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

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