pspulumiyaml.azurenative.policyinsights.psm1

using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" }
function Invoke-AzureNativeFunctionPolicyinsightsListRemediationDeploymentsAtResource
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName,
        [parameter(mandatory=$False,HelpMessage='Maximum number of records to return.)')]
        [int]
        $top,
        [parameter(mandatory=$False,HelpMessage='Resource ID.)')]
        [string]
        $resourceId
    )

    process
    {
        $arguments = @{}
        $arguments["remediationName"] = $remediationName
        $arguments["resourceId"] = $resourceId

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:listRemediationDeploymentsAtResource -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionPolicyinsightsGetAttestationAtSubscription
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the attestation.)')]
        [string]
        $attestationName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:getAttestationAtSubscription -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionPolicyinsightsGetRemediationAtSubscription
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:getRemediationAtSubscription -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionPolicyinsightsGetAttestationAtResourceGroup
{
    param (
        [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 attestation.)')]
        [string]
        $attestationName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:getAttestationAtResourceGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionPolicyinsightsListRemediationDeploymentsAtManagementGroup
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName,
        [parameter(mandatory=$False,HelpMessage='Maximum number of records to return.)')]
        [int]
        $top,
        [parameter(mandatory=$False,HelpMessage='The namespace for Microsoft Management RP; only "Microsoft.Management" is allowed.)')]
        [string]
        $managementGroupsNamespace,
        [parameter(mandatory=$False,HelpMessage='Management group ID.)')]
        [string]
        $managementGroupId
    )

    process
    {
        $arguments = @{}
        $arguments["managementGroupId"] = $managementGroupId
        $arguments["managementGroupsNamespace"] = $managementGroupsNamespace
        $arguments["remediationName"] = $remediationName

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:listRemediationDeploymentsAtManagementGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionPolicyinsightsGetRemediationAtManagementGroup
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName,
        [parameter(mandatory=$False,HelpMessage='The namespace for Microsoft Management RP; only "Microsoft.Management" is allowed.)')]
        [string]
        $managementGroupsNamespace,
        [parameter(mandatory=$False,HelpMessage='Management group ID.)')]
        [string]
        $managementGroupId
    )

    process
    {
        $arguments = @{}
        $arguments["managementGroupId"] = $managementGroupId
        $arguments["managementGroupsNamespace"] = $managementGroupsNamespace
        $arguments["remediationName"] = $remediationName

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:getRemediationAtManagementGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionPolicyinsightsListRemediationDeploymentsAtResourceGroup
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName,
        [parameter(mandatory=$False,HelpMessage='Maximum number of records to return.)')]
        [int]
        $top,
        [parameter(mandatory=$False,HelpMessage='Resource group name.)')]
        [string]
        $resourceGroupName
    )

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

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:listRemediationDeploymentsAtResourceGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionPolicyinsightsGetRemediationAtResource
{
    param (
        [parameter(mandatory=$False,HelpMessage='Resource ID.)')]
        [string]
        $resourceId,
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName
    )

    process
    {
        $arguments = @{}
        $arguments["remediationName"] = $remediationName
        $arguments["resourceId"] = $resourceId

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:getRemediationAtResource -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionPolicyinsightsListRemediationDeploymentsAtSubscription
{
    param (
        [parameter(mandatory=$False,HelpMessage='Maximum number of records to return.)')]
        [int]
        $top,
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName
    )

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

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:listRemediationDeploymentsAtSubscription -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionPolicyinsightsGetRemediationAtResourceGroup
{
    param (
        [parameter(mandatory=$False,HelpMessage='Resource group name.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName
    )

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

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:getRemediationAtResourceGroup -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function Invoke-AzureNativeFunctionPolicyinsightsGetAttestationAtResource
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the attestation.)')]
        [string]
        $attestationName,
        [parameter(mandatory=$False,HelpMessage='Resource ID.)')]
        [string]
        $resourceId
    )

    process
    {
        $arguments = @{}
        $arguments["attestationName"] = $attestationName
        $arguments["resourceId"] = $resourceId

        $functionObject = Invoke-PulumiFunction -Name azure-native:policyinsights:getAttestationAtResource -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
function New-AzureNativePolicyinsightsAttestationAtResource
{
    [Alias('azure_native_policyinsights_attestationatresource')]
    param (
        [parameter(mandatory=$False,HelpMessage='The evidence supporting the compliance state set in this attestation.)')]
        $evidence,
        [parameter(mandatory=$False,HelpMessage='The compliance state that should be set on the resource.)')]
        [string]
        [ArgumentCompletions('Compliant', 'NonCompliant', 'Unknown')]
        $complianceState,
        [parameter(mandatory=$False,HelpMessage='Resource ID.)')]
        [string]
        $resourceId,
        [parameter(mandatory=$False,HelpMessage='The time the compliance state should expire.)')]
        [string]
        $expiresOn,
        [parameter(mandatory=$False,HelpMessage='The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.)')]
        [string]
        $owner,
        [parameter(mandatory=$False,HelpMessage='Comments describing why this attestation was created.)')]
        [string]
        $comments,
        [parameter(mandatory=$False,HelpMessage='The resource ID of the policy assignment that the attestation is setting the state for.)')]
        [string]
        $policyAssignmentId,
        [parameter(mandatory=$False,HelpMessage='The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition.)')]
        [string]
        $policyDefinitionReferenceId,
        [parameter(mandatory=$False,HelpMessage='The name of the attestation.)')]
        [string]
        $attestationName,
        [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:policyinsights:AttestationAtResource")

        $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["policyAssignmentId"] = $policyAssignmentId
        $resource.properties["resourceId"] = $resourceId

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

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

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

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

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
class RemediationFilters
{
    [string[]] $locations
}
function New-AzureNativeTypePolicyinsightsRemediationFilters
{
    param (
        [parameter(mandatory=$False,HelpMessage='The resource locations that will be remediated.)')]
        [string[]]
        $locations
    )

    process
    {
        return $([RemediationFilters]$PSBoundParameters)
    }
}
function New-AzureNativePolicyinsightsRemediationAtManagementGroup
{
    [Alias('azure_native_policyinsights_remediationatmanagementgroup')]
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName,
        [parameter(mandatory=$False,HelpMessage='The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.)')]
        [string]
        $policyDefinitionReferenceId,
        [parameter(mandatory=$False,HelpMessage='Management group ID.)')]
        [string]
        $managementGroupId,
        [parameter(mandatory=$False,HelpMessage='The filters that will be applied to determine which resources to remediate.)')]
        [RemediationFilters]
        $filters,
        [parameter(mandatory=$False,HelpMessage='The resource ID of the policy assignment that should be remediated.)')]
        [string]
        $policyAssignmentId,
        [parameter(mandatory=$False,HelpMessage='The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.)')]
        [string]
        [ArgumentCompletions('ExistingNonCompliant', 'ReEvaluateCompliance')]
        $resourceDiscoveryMode,
        [parameter(mandatory=$False,HelpMessage='The namespace for Microsoft Management RP; only "Microsoft.Management" is allowed.)')]
        [string]
        $managementGroupsNamespace,
        [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:policyinsights:RemediationAtManagementGroup")

        $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["managementGroupId"] = $managementGroupId
        $resource.properties["managementGroupsNamespace"] = $managementGroupsNamespace

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

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

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
function New-AzureNativePolicyinsightsAttestationAtResourceGroup
{
    [Alias('azure_native_policyinsights_attestationatresourcegroup')]
    param (
        [parameter(mandatory=$False,HelpMessage='The evidence supporting the compliance state set in this attestation.)')]
        $evidence,
        [parameter(mandatory=$False,HelpMessage='The compliance state that should be set on the resource.)')]
        [string]
        [ArgumentCompletions('Compliant', 'NonCompliant', 'Unknown')]
        $complianceState,
        [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The time the compliance state should expire.)')]
        [string]
        $expiresOn,
        [parameter(mandatory=$False,HelpMessage='The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.)')]
        [string]
        $owner,
        [parameter(mandatory=$False,HelpMessage='Comments describing why this attestation was created.)')]
        [string]
        $comments,
        [parameter(mandatory=$False,HelpMessage='The resource ID of the policy assignment that the attestation is setting the state for.)')]
        [string]
        $policyAssignmentId,
        [parameter(mandatory=$False,HelpMessage='The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition.)')]
        [string]
        $policyDefinitionReferenceId,
        [parameter(mandatory=$False,HelpMessage='The name of the attestation.)')]
        [string]
        $attestationName,
        [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:policyinsights:AttestationAtResourceGroup")

        $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["policyAssignmentId"] = $policyAssignmentId
        $resource.properties["resourceGroupName"] = $resourceGroupName

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

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

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

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

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
function New-AzureNativePolicyinsightsRemediationAtSubscription
{
    [Alias('azure_native_policyinsights_remediationatsubscription')]
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName,
        [parameter(mandatory=$False,HelpMessage='The resource ID of the policy assignment that should be remediated.)')]
        [string]
        $policyAssignmentId,
        [parameter(mandatory=$False,HelpMessage='The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.)')]
        [string]
        $policyDefinitionReferenceId,
        [parameter(mandatory=$False,HelpMessage='The filters that will be applied to determine which resources to remediate.)')]
        [RemediationFilters]
        $filters,
        [parameter(mandatory=$False,HelpMessage='The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.)')]
        [string]
        [ArgumentCompletions('ExistingNonCompliant', 'ReEvaluateCompliance')]
        $resourceDiscoveryMode,
        [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:policyinsights:RemediationAtSubscription")

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

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

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

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
function New-AzureNativePolicyinsightsRemediationAtResource
{
    [Alias('azure_native_policyinsights_remediationatresource')]
    param (
        [parameter(mandatory=$False,HelpMessage='Resource ID.)')]
        [string]
        $resourceId,
        [parameter(mandatory=$False,HelpMessage='The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.)')]
        [string]
        $policyDefinitionReferenceId,
        [parameter(mandatory=$False,HelpMessage='The filters that will be applied to determine which resources to remediate.)')]
        [RemediationFilters]
        $filters,
        [parameter(mandatory=$False,HelpMessage='The resource ID of the policy assignment that should be remediated.)')]
        [string]
        $policyAssignmentId,
        [parameter(mandatory=$False,HelpMessage='The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.)')]
        [string]
        [ArgumentCompletions('ExistingNonCompliant', 'ReEvaluateCompliance')]
        $resourceDiscoveryMode,
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName,
        [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:policyinsights:RemediationAtResource")

        $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["resourceId"] = $resourceId

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

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

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
function New-AzureNativePolicyinsightsRemediationAtResourceGroup
{
    [Alias('azure_native_policyinsights_remediationatresourcegroup')]
    param (
        [parameter(mandatory=$False,HelpMessage='Resource group name.)')]
        [string]
        $resourceGroupName,
        [parameter(mandatory=$False,HelpMessage='The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.)')]
        [string]
        $policyDefinitionReferenceId,
        [parameter(mandatory=$False,HelpMessage='The filters that will be applied to determine which resources to remediate.)')]
        [RemediationFilters]
        $filters,
        [parameter(mandatory=$False,HelpMessage='The resource ID of the policy assignment that should be remediated.)')]
        [string]
        $policyAssignmentId,
        [parameter(mandatory=$False,HelpMessage='The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified.)')]
        [string]
        [ArgumentCompletions('ExistingNonCompliant', 'ReEvaluateCompliance')]
        $resourceDiscoveryMode,
        [parameter(mandatory=$False,HelpMessage='The name of the remediation.)')]
        [string]
        $remediationName,
        [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:policyinsights:RemediationAtResourceGroup")

        $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["resourceGroupName"] = $resourceGroupName

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

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

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

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

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

        $global:pulumiresources += $resource
        return $resource
    }
}
function New-AzureNativePolicyinsightsAttestationAtSubscription
{
    [Alias('azure_native_policyinsights_attestationatsubscription')]
    param (
        [parameter(mandatory=$False,HelpMessage='The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.)')]
        [string]
        $owner,
        [parameter(mandatory=$False,HelpMessage='The time the compliance state should expire.)')]
        [string]
        $expiresOn,
        [parameter(mandatory=$False,HelpMessage='The resource ID of the policy assignment that the attestation is setting the state for.)')]
        [string]
        $policyAssignmentId,
        [parameter(mandatory=$False,HelpMessage='The name of the attestation.)')]
        [string]
        $attestationName,
        [parameter(mandatory=$False,HelpMessage='The compliance state that should be set on the resource.)')]
        [string]
        [ArgumentCompletions('Compliant', 'NonCompliant', 'Unknown')]
        $complianceState,
        [parameter(mandatory=$False,HelpMessage='The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition.)')]
        [string]
        $policyDefinitionReferenceId,
        [parameter(mandatory=$False,HelpMessage='Comments describing why this attestation was created.)')]
        [string]
        $comments,
        [parameter(mandatory=$False,HelpMessage='The evidence supporting the compliance state set in this attestation.)')]
        $evidence,
        [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:policyinsights:AttestationAtSubscription")

        $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["policyAssignmentId"] = $policyAssignmentId

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

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

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

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

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

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

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

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