AnyOf¶
SYNOPSIS¶
Alternatives: holds when at least one statement or group inside it holds (ADR-0026).
SYNTAX¶
AnyOf [-Body] <ScriptBlock> [<CommonParameters>]
USED IN¶
When, Require, Each, AnyOf, AllOf, Count -Where
EXAMPLES¶
Example 1¶
Each securityRules[*] {
AnyOf {
Field direction | Must -Not -Be 'Inbound'
Field access | Must -Not -Be 'Allow'
}
}
PARAMETERS¶
-Body¶
The alternatives: Must statements, Count, nested AnyOf, and AllOf for an alternative of several statements.
Type: ScriptBlock
Required: true
Position: 1
Accept pipeline input: false