Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new resource ComplianceSecurityFilter #3796

Closed
pkernevez opened this issue Oct 16, 2023 · 0 comments
Closed

Add new resource ComplianceSecurityFilter #3796

pkernevez opened this issue Oct 16, 2023 · 0 comments
Labels

Comments

@pkernevez
Copy link
Contributor

pkernevez commented Oct 16, 2023

Description

We would like to manage ComplianceSecurityFilter with DSC.
https://learn.microsoft.com/en-us/powershell/module/exchange/new-compliancesecurityfilter?view=exchange-ps

Proposed properties

    [CmdletBinding()]
    [OutputType([System.Collections.Hashtable])]
    param
    (
        # Resource properties
        [Parameter(Mandatory = $true)]
        [System.String]
        $Name,

        [Parameter()]
        [ValidateSet('Export', 'Preview', 'Purge', 'Search', 'All')]
        [System.String]
        $Action = 'All',

        [Parameter()]
        [System.String[]]
        $Users,

        # Not sure, if this field should be in the interface
        [Parameter()]
        [System.Boolean]
        $Confirm = $False,

        [Parameter()]
        [System.String]
        $Description,

        [Parameter()]
        [System.String[]]
        $Filters,

        [Parameter()]
        [ValidateSet(
            'APC', # Asia-Pacific
            'AUS', #Australia
            'CAN', # Canada
            'EUR', #Europe, Middle East, Africa
            'FRA', #France
            'GBR', # United Kingdom
            'IND', # India
            'JPN', # Japan
            'LAM', # Latin America
            'NAM' # North America
        )]
        [System.String]
        $Region,

        # And the DSC ones

        [Parameter()]
        [ValidateSet('Present', 'Absent')]
        [System.String]
        $Ensure = 'Present',

        [Parameter()]
        [System.Management.Automation.PSCredential]
        $Credential,

        [Parameter()]
        [System.String]
        $ApplicationId,

        [Parameter()]
        [System.String]
        $TenantId,

        [Parameter()]
        [System.String]
        $CertificateThumbprint,

        [Parameter()]
        [System.String]
        $CertificatePath,

        [Parameter()]
        [System.Management.Automation.PSCredential]
        $CertificatePassword
    )

Special considerations or limitations

If ok I push a feature branch for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants