pspulumiyaml.azurenative.solutions.psm1

using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" }
function Invoke-AzureNativeFunctionSolutionsGetApplicationDefinition
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the managed application definition.)')]
        [string]
        $applicationDefinitionName,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:solutions:getApplicationDefinition -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionSolutionsGetJitRequest
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the JIT request.)')]
        [string]
        $jitRequestName,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:solutions:getJitRequest -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionSolutionsGetApplication
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the managed application.)')]
        [string]
        $applicationName,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:solutions:getApplication -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
class Sku
{
    [string] $name
    [string] $family
    [int] $capacity
    [string] $model
    [string] $size
    [string] $tier
}
function New-AzureNativeTypeSolutionsSku
{
    param (
        [parameter(mandatory=$False,HelpMessage='The SKU name.)')]
        [string]
        $name,
        [parameter(mandatory=$False,HelpMessage='The SKU family.)')]
        [string]
        $family,
        [parameter(mandatory=$False,HelpMessage='The SKU capacity.)')]
        [int]
        $capacity,
        [parameter(mandatory=$False,HelpMessage='The SKU model.)')]
        [string]
        $model,
        [parameter(mandatory=$False,HelpMessage='The SKU size.)')]
        [string]
        $size,
        [parameter(mandatory=$False,HelpMessage='The SKU tier.)')]
        [string]
        $tier
    )

    process
    {
        return $([Sku]$PSBoundParameters)
    }
}
class Plan
{
    [string] $product
    [string] $name
    [string] $version
    [string] $publisher
    [string] $promotionCode
}
function New-AzureNativeTypeSolutionsPlan
{
    param (
        [parameter(mandatory=$False,HelpMessage='The product code.)')]
        [string]
        $product,
        [parameter(mandatory=$False,HelpMessage='The plan name.)')]
        [string]
        $name,
        [parameter(mandatory=$False,HelpMessage='The plan''s version.)')]
        [string]
        $version,
        [parameter(mandatory=$False,HelpMessage='The publisher ID.)')]
        [string]
        $publisher,
        [parameter(mandatory=$False,HelpMessage='The promotion code.)')]
        [string]
        $promotionCode
    )

    process
    {
        return $([Plan]$PSBoundParameters)
    }
}
class Identity
{
    [ArgumentCompletions('SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None')]
    [object] $type
    [object] $userAssignedIdentities
}
function New-AzureNativeTypeSolutionsIdentity
{
    param (
        [parameter(mandatory=$False,HelpMessage='The identity type.)')]
        $type,
        [parameter(mandatory=$False,HelpMessage='The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}''.)')]
        [object]
        $userAssignedIdentities
    )

    process
    {
        return $([Identity]$PSBoundParameters)
    }
}
class JitApproverDefinition
{
    [ArgumentCompletions('user', 'group')]
    [string] $type
    [string] $displayName
    [string] $id
}
function New-AzureNativeTypeSolutionsJitApproverDefinition
{
    param (
        [parameter(mandatory=$False,HelpMessage='The approver type.)')]
        [string]
        [ArgumentCompletions('user', 'group')]
        $type,
        [parameter(mandatory=$False,HelpMessage='The approver display name.)')]
        [string]
        $displayName,
        [parameter(mandatory=$False,HelpMessage='The approver service principal Id.)')]
        [string]
        $id
    )

    process
    {
        return $([JitApproverDefinition]$PSBoundParameters)
    }
}
class ApplicationJitAccessPolicy
{
    [ArgumentCompletions('NotSpecified', 'AutoApprove', 'ManualApprove')]
    [string] $jitApprovalMode
    [string] $maximumJitAccessDuration
    [JitApproverDefinition[]] $jitApprovers
    [bool] $jitAccessEnabled
}
function New-AzureNativeTypeSolutionsApplicationJitAccessPolicy
{
    param (
        [parameter(mandatory=$False,HelpMessage='JIT approval mode.)')]
        [string]
        [ArgumentCompletions('NotSpecified', 'AutoApprove', 'ManualApprove')]
        $jitApprovalMode,
        [parameter(mandatory=$False,HelpMessage='The maximum duration JIT access is granted. This is an ISO8601 time period value.)')]
        [string]
        $maximumJitAccessDuration,
        [parameter(mandatory=$False,HelpMessage='The JIT approvers)')]
        $jitApprovers,
        [parameter(mandatory=$False,HelpMessage='Whether the JIT access is enabled.)')]
        [bool]
        $jitAccessEnabled
    )

    process
    {
        return $([ApplicationJitAccessPolicy]$PSBoundParameters)
    }
}
function New-AzureNativeSolutionsApplication
{
    [Alias('azure_native_solutions_application')]
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the managed application.)')]
        [string]
        $applicationName,
        [parameter(mandatory=$False,HelpMessage='The SKU of the resource.)')]
        [Sku]
        $sku,
        [parameter(mandatory=$False,HelpMessage='ID of the resource that manages this resource.)')]
        [string]
        $managedBy,
        [parameter(mandatory=$False,HelpMessage='Name and value pairs that define the managed application parameters. It can be a JObject or a well formed JSON string.)')]
        $parameters,
        [parameter(mandatory=$False,HelpMessage='The plan information.)')]
        [Plan]
        $plan,
        [parameter(mandatory=$False,HelpMessage='Resource location)')]
        [string]
        $location,
        [parameter(mandatory=$False,HelpMessage='The managed resource group Id.)')]
        [string]
        $managedResourceGroupId,
        [parameter(mandatory=$False,HelpMessage='Resource tags)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='The kind of the managed application. Allowed values are MarketPlace and ServiceCatalog.)')]
        [string]
        $kind,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The identity of the resource.)')]
        [Identity]
        $identity,
        [parameter(mandatory=$False,HelpMessage='The fully qualified path of managed application definition Id.)')]
        [string]
        $applicationDefinitionId,
        [parameter(mandatory=$False,HelpMessage='The managed application Jit access policy.)')]
        [ApplicationJitAccessPolicy]
        $jitAccessPolicy,
        [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')]
        [string]
        $pulumiid,
        [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')]
        [string[]]
        $PulumiSecretOutputs,
        [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')]
        [string[]]
        $PulumiAliases,
        [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')]
        [pulumicustomtimeouts]
        $PulumiCustomTimeouts,
        [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')]
        [bool]
        $PulumiDeleteBeforeReplace,
        [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')]
        [object[]]
        $PulumiDependsOn,
        [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')]
        [string[]]
        $PulumiIgnoreChanges,
        [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')]
        [string]
        $PulumiImport = [NullString]::Value,
        [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')]
        [object]
        $PulumiParent = [NullString]::Value,
        [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')]
        [bool]
        $PulumiProtect,
        [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')]
        [object]
        $PulumiProvider = [NullString]::Value,
        [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')]
        [object[]]
        $PulumiProviders,
        [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')]
        [string[]]
        $PulumiReplaceOnChanges,
        [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')]
        [bool]
        $PulumiRetainOnDelete,
        [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')]
        [string]
        $PulumiProviderVersion = [NullString]::Value
    )

    process
    {
        $resource = [pulumiresource]::new($pulumiid, "azure-native:solutions:Application")

        $resource.options.additionalSecretOutputs = $PulumiSecretOutputs
        $resource.options.aliases = $PulumiAliases
        $resource.options.customTimeouts = $PulumiCustomTimeouts
        $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace
        $resource.options.ignoreChanges = $PulumiIgnoreChanges
        $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport }
        $resource.options.protect = $PulumiProtect
        $resource.options.replaceOnChanges = $PulumiReplaceOnChanges
        $resource.options.retainOnDelete = $PulumiRetainOnDelete
        $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion }

        foreach($Dependency in $DependsOn)
        {
            if($Dependency -is [pulumiresource])
            {
                $resource.options.dependson += $Dependency.Reference()
            } else
            {
                $resource.options.dependson += $Dependency
            }
        }
        if($PulumiParent -is [pulumiresource])
        {
            $resource.options.parent = $PulumiParent.Reference()
        } else
        {
            $resource.options.parent = $PulumiParent
        }
        foreach($provider in $PulumiProviders)
        {
            if($provider -is [pulumiprovider])
            {
                $resource.options.providers += $provider.Reference()
            } else
            {
                $resource.options.providers += $provider
            }
        }
        if($PulumiProvider -is [pulumiprovider])
        {
            $resource.options.provider = $PulumiProvider.Reference()
        } else
        {
            $resource.options.provider = $PulumiProvider
        }
        $resource.properties["kind"] = $kind
        $resource.properties["resourceGroupName"] = $resourceGroupName

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

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

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

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

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

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

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

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

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
class ApplicationNotificationEndpoint
{
    [string] $uri
}
function New-AzureNativeTypeSolutionsApplicationNotificationEndpoint
{
    param (
        [parameter(mandatory=$False,HelpMessage='The managed application notification endpoint uri.)')]
        [string]
        $uri
    )

    process
    {
        return $([ApplicationNotificationEndpoint]$PSBoundParameters)
    }
}
class ApplicationNotificationPolicy
{
    [ApplicationNotificationEndpoint[]] $notificationEndpoints
}
function New-AzureNativeTypeSolutionsApplicationNotificationPolicy
{
    param (
        [parameter(mandatory=$False,HelpMessage='The managed application notification endpoint.)')]
        $notificationEndpoints
    )

    process
    {
        return $([ApplicationNotificationPolicy]$PSBoundParameters)
    }
}
class ApplicationDeploymentPolicy
{
    [ArgumentCompletions('NotSpecified', 'Incremental', 'Complete')]
    [string] $deploymentMode
}
function New-AzureNativeTypeSolutionsApplicationDeploymentPolicy
{
    param (
        [parameter(mandatory=$False,HelpMessage='The managed application deployment mode.)')]
        [string]
        [ArgumentCompletions('NotSpecified', 'Incremental', 'Complete')]
        $deploymentMode
    )

    process
    {
        return $([ApplicationDeploymentPolicy]$PSBoundParameters)
    }
}
class ApplicationManagementPolicy
{
    [ArgumentCompletions('NotSpecified', 'Unmanaged', 'Managed')]
    [string] $mode
}
function New-AzureNativeTypeSolutionsApplicationManagementPolicy
{
    param (
        [parameter(mandatory=$False,HelpMessage='The managed application management mode.)')]
        [string]
        [ArgumentCompletions('NotSpecified', 'Unmanaged', 'Managed')]
        $mode
    )

    process
    {
        return $([ApplicationManagementPolicy]$PSBoundParameters)
    }
}
class ApplicationPackageLockingPolicyDefinition
{
    [string[]] $allowedActions
    [string[]] $allowedDataActions
}
function New-AzureNativeTypeSolutionsApplicationPackageLockingPolicyDefinition
{
    param (
        [parameter(mandatory=$False,HelpMessage='The deny assignment excluded actions.)')]
        [string[]]
        $allowedActions,
        [parameter(mandatory=$False,HelpMessage='The deny assignment excluded data actions.)')]
        [string[]]
        $allowedDataActions
    )

    process
    {
        return $([ApplicationPackageLockingPolicyDefinition]$PSBoundParameters)
    }
}
function New-AzureNativeSolutionsApplicationDefinition
{
    [Alias('azure_native_solutions_applicationdefinition')]
    param (
        [parameter(mandatory=$False,HelpMessage='A value indicating whether the package is enabled or not.)')]
        [bool]
        $isEnabled,
        [parameter(mandatory=$False,HelpMessage='The inline main template json which has resources to be provisioned. It can be a JObject or well-formed JSON string.)')]
        $mainTemplate,
        [parameter(mandatory=$False,HelpMessage='The managed application notification policy.)')]
        [ApplicationNotificationPolicy]
        $notificationPolicy,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The managed application deployment policy.)')]
        [ApplicationDeploymentPolicy]
        $deploymentPolicy,
        [parameter(mandatory=$False,HelpMessage='The SKU of the resource.)')]
        [Sku]
        $sku,
        [parameter(mandatory=$False,HelpMessage='Resource tags)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='Resource location)')]
        [string]
        $location,
        [parameter(mandatory=$False,HelpMessage='The managed application definition package file Uri. Use this element)')]
        [string]
        $packageFileUri,
        [parameter(mandatory=$False,HelpMessage='ID of the resource that manages this resource.)')]
        [string]
        $managedBy,
        [parameter(mandatory=$False,HelpMessage='The managed application management policy that determines publisher''s access to the managed resource group.)')]
        [ApplicationManagementPolicy]
        $managementPolicy,
        [parameter(mandatory=$False,HelpMessage='The collection of managed application artifacts. The portal will use the files specified as artifacts to construct the user experience of creating a managed application from a managed application definition.)')]
        $artifacts,
        [parameter(mandatory=$False,HelpMessage='The managed application provider authorizations.)')]
        $authorizations,
        [parameter(mandatory=$False,HelpMessage='The managed application definition display name.)')]
        [string]
        $displayName,
        [parameter(mandatory=$False,HelpMessage='The createUiDefinition json for the backing template with Microsoft.Solutions/applications resource. It can be a JObject or well-formed JSON string.)')]
        $createUiDefinition,
        [parameter(mandatory=$False,HelpMessage='The managed application locking policy.)')]
        [ApplicationPackageLockingPolicyDefinition]
        $lockingPolicy,
        [parameter(mandatory=$False,HelpMessage='The managed application lock level.)')]
        $lockLevel,
        [parameter(mandatory=$False,HelpMessage='The managed application definition description.)')]
        [string]
        $description,
        [parameter(mandatory=$False,HelpMessage='The name of the managed application definition.)')]
        [string]
        $applicationDefinitionName,
        [parameter(mandatory=$False,HelpMessage='The managed application provider policies.)')]
        $policies,
        [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')]
        [string]
        $pulumiid,
        [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')]
        [string[]]
        $PulumiSecretOutputs,
        [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')]
        [string[]]
        $PulumiAliases,
        [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')]
        [pulumicustomtimeouts]
        $PulumiCustomTimeouts,
        [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')]
        [bool]
        $PulumiDeleteBeforeReplace,
        [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')]
        [object[]]
        $PulumiDependsOn,
        [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')]
        [string[]]
        $PulumiIgnoreChanges,
        [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')]
        [string]
        $PulumiImport = [NullString]::Value,
        [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')]
        [object]
        $PulumiParent = [NullString]::Value,
        [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')]
        [bool]
        $PulumiProtect,
        [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')]
        [object]
        $PulumiProvider = [NullString]::Value,
        [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')]
        [object[]]
        $PulumiProviders,
        [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')]
        [string[]]
        $PulumiReplaceOnChanges,
        [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')]
        [bool]
        $PulumiRetainOnDelete,
        [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')]
        [string]
        $PulumiProviderVersion = [NullString]::Value
    )

    process
    {
        $resource = [pulumiresource]::new($pulumiid, "azure-native:solutions:ApplicationDefinition")

        $resource.options.additionalSecretOutputs = $PulumiSecretOutputs
        $resource.options.aliases = $PulumiAliases
        $resource.options.customTimeouts = $PulumiCustomTimeouts
        $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace
        $resource.options.ignoreChanges = $PulumiIgnoreChanges
        $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport }
        $resource.options.protect = $PulumiProtect
        $resource.options.replaceOnChanges = $PulumiReplaceOnChanges
        $resource.options.retainOnDelete = $PulumiRetainOnDelete
        $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion }

        foreach($Dependency in $DependsOn)
        {
            if($Dependency -is [pulumiresource])
            {
                $resource.options.dependson += $Dependency.Reference()
            } else
            {
                $resource.options.dependson += $Dependency
            }
        }
        if($PulumiParent -is [pulumiresource])
        {
            $resource.options.parent = $PulumiParent.Reference()
        } else
        {
            $resource.options.parent = $PulumiParent
        }
        foreach($provider in $PulumiProviders)
        {
            if($provider -is [pulumiprovider])
            {
                $resource.options.providers += $provider.Reference()
            } else
            {
                $resource.options.providers += $provider
            }
        }
        if($PulumiProvider -is [pulumiprovider])
        {
            $resource.options.provider = $PulumiProvider.Reference()
        } else
        {
            $resource.options.provider = $PulumiProvider
        }
        $resource.properties["lockLevel"] = $lockLevel
        $resource.properties["resourceGroupName"] = $resourceGroupName

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
class JitSchedulingPolicy
{
    [string] $duration
    [string] $startTime
}
function New-AzureNativeTypeSolutionsJitSchedulingPolicy
{
    param (
        [parameter(mandatory=$False,HelpMessage=')')]
        [string]
        $duration,
        [parameter(mandatory=$False,HelpMessage='The start time of the request.)')]
        [string]
        $startTime
    )

    process
    {
        return $([JitSchedulingPolicy]$PSBoundParameters)
    }
}
function New-AzureNativeSolutionsJitRequest
{
    [Alias('azure_native_solutions_jitrequest')]
    param (
        [parameter(mandatory=$False,HelpMessage='The JIT request properties.)')]
        [JitSchedulingPolicy]
        $jitSchedulingPolicy,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The name of the JIT request.)')]
        [string]
        $jitRequestName,
        [parameter(mandatory=$False,HelpMessage='The JIT authorization policies.)')]
        $jitAuthorizationPolicies,
        [parameter(mandatory=$False,HelpMessage='Resource location)')]
        [string]
        $location,
        [parameter(mandatory=$False,HelpMessage='Resource tags)')]
        [hashtable]
        $tags,
        [parameter(mandatory=$False,HelpMessage='The parent application id.)')]
        [string]
        $applicationResourceId,
        [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')]
        [string]
        $pulumiid,
        [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')]
        [string[]]
        $PulumiSecretOutputs,
        [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')]
        [string[]]
        $PulumiAliases,
        [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')]
        [pulumicustomtimeouts]
        $PulumiCustomTimeouts,
        [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')]
        [bool]
        $PulumiDeleteBeforeReplace,
        [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')]
        [object[]]
        $PulumiDependsOn,
        [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')]
        [string[]]
        $PulumiIgnoreChanges,
        [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')]
        [string]
        $PulumiImport = [NullString]::Value,
        [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')]
        [object]
        $PulumiParent = [NullString]::Value,
        [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')]
        [bool]
        $PulumiProtect,
        [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')]
        [object]
        $PulumiProvider = [NullString]::Value,
        [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')]
        [object[]]
        $PulumiProviders,
        [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')]
        [string[]]
        $PulumiReplaceOnChanges,
        [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')]
        [bool]
        $PulumiRetainOnDelete,
        [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')]
        [string]
        $PulumiProviderVersion = [NullString]::Value
    )

    process
    {
        $resource = [pulumiresource]::new($pulumiid, "azure-native:solutions:JitRequest")

        $resource.options.additionalSecretOutputs = $PulumiSecretOutputs
        $resource.options.aliases = $PulumiAliases
        $resource.options.customTimeouts = $PulumiCustomTimeouts
        $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace
        $resource.options.ignoreChanges = $PulumiIgnoreChanges
        $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport }
        $resource.options.protect = $PulumiProtect
        $resource.options.replaceOnChanges = $PulumiReplaceOnChanges
        $resource.options.retainOnDelete = $PulumiRetainOnDelete
        $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion }

        foreach($Dependency in $DependsOn)
        {
            if($Dependency -is [pulumiresource])
            {
                $resource.options.dependson += $Dependency.Reference()
            } else
            {
                $resource.options.dependson += $Dependency
            }
        }
        if($PulumiParent -is [pulumiresource])
        {
            $resource.options.parent = $PulumiParent.Reference()
        } else
        {
            $resource.options.parent = $PulumiParent
        }
        foreach($provider in $PulumiProviders)
        {
            if($provider -is [pulumiprovider])
            {
                $resource.options.providers += $provider.Reference()
            } else
            {
                $resource.options.providers += $provider
            }
        }
        if($PulumiProvider -is [pulumiprovider])
        {
            $resource.options.provider = $PulumiProvider.Reference()
        } else
        {
            $resource.options.provider = $PulumiProvider
        }
        $resource.properties["applicationResourceId"] = $applicationResourceId
        $resource.properties["jitAuthorizationPolicies"] = $jitAuthorizationPolicies
        $resource.properties["jitSchedulingPolicy"] = $jitSchedulingPolicy
        $resource.properties["resourceGroupName"] = $resourceGroupName

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

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

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

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