selectionCriteria
Use this parameter to apply the new policy to a subset of log groups in the account or a data source name and type combination.
Specifying selectionCriteria is valid only when you specify SUBSCRIPTION_FILTER_POLICY, FIELD_INDEX_POLICY or TRANSFORMER_POLICYfor policyType.
If
policyTypeisSUBSCRIPTION_FILTER_POLICY, the only supportedselectionCriteriafilter isLogGroupName NOT IN []If
policyTypeisTRANSFORMER_POLICY, the only supportedselectionCriteriafilter isLogGroupNamePrefixIf
policyTypeisFIELD_INDEX_POLICY, the supportedselectionCriteriafilters are:LogGroupNamePrefixDataSourceNameANDDataSourceTypeWhen you specifyselectionCriteriafor a field index policy you can use eitherLogGroupNamePrefixby itself orDataSourceNameandDataSourceTypetogether.
The selectionCriteria string can be up to 25KB in length. The length is determined by using its UTF-8 bytes.
Using the selectionCriteria parameter with SUBSCRIPTION_FILTER_POLICY is useful to help prevent infinite loops. For more information, see Log recursion prevention.