DSCResources/cTeamsGuestMeetingConfiguration/cTeamsGuestMeetingConfiguration.schema.psm1

configuration cTeamsGuestMeetingConfiguration {
    param (
        [Parameter()]
        [hashtable[]]
        $Items
)

<#
TeamsGuestMeetingConfiguration [String] #ResourceName
{
    Identity = [string]{ Global }
    [AccessTokens = [string[]]]
    [AllowIPVideo = [bool]]
    [AllowMeetNow = [bool]]
    [AllowTranscription = [bool]]
    [ApplicationId = [string]]
    [CertificateThumbprint = [string]]
    [Credential = [PSCredential]]
    [DependsOn = [string[]]]
    [LiveCaptionsEnabledType = [string]{ Disabled | DisabledUserOverride }]
    [ManagedIdentity = [bool]]
    [PsDscRunAsCredential = [PSCredential]]
    [ScreenSharingMode = [string]{ Disabled | EntireScreen | SingleApplication }]
    [TenantId = [string]]
}
 
#>



    Import-DscResource -ModuleName PSDesiredStateConfiguration
    Import-DscResource -ModuleName Microsoft365DSC

    $dscResourceName = 'TeamsGuestMeetingConfiguration'

    $param = $PSBoundParameters
    $param.Remove("InstanceName")

    $dscParameterKeys = 'Identity' -split ', '

        foreach ($item in $Items)
        {
            $keyValues = foreach ($key in $dscParameterKeys)
        {
            $item.$key
        }
        $executionName = $keyValues -join '_'
        $executionName = $executionName -replace "[\s()\\:*-+/{}```"']", '_'
        (Get-DscSplattedResource -ResourceName $dscResourceName -ExecutionName $executionName -Properties $item -NoInvoke).Invoke($item)
    }
}