

# UsageCriteria


Contains information about the criteria used to query usage statistics.

## Contents


 ** accountIds **   <a name="guardduty-Type-UsageCriteria-accountIds"></a>
The account IDs to aggregate usage statistics from.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 50 items.  
Length Constraints: Fixed length of 12.  
Required: No

 ** dataSources **   <a name="guardduty-Type-UsageCriteria-dataSources"></a>
 *This member has been deprecated.*   
The data sources to aggregate usage statistics from.  
Type: Array of strings  
Valid Values: `FLOW_LOGS | CLOUD_TRAIL | DNS_LOGS | S3_LOGS | KUBERNETES_AUDIT_LOGS | EC2_MALWARE_SCAN`   
Required: No

 ** features **   <a name="guardduty-Type-UsageCriteria-features"></a>
The features to aggregate usage statistics from.  
Type: Array of strings  
Valid Values: `FLOW_LOGS | CLOUD_TRAIL | DNS_LOGS | S3_DATA_EVENTS | EKS_AUDIT_LOGS | EBS_MALWARE_PROTECTION | RDS_LOGIN_EVENTS | LAMBDA_NETWORK_LOGS | EKS_RUNTIME_MONITORING | FARGATE_RUNTIME_MONITORING | EC2_RUNTIME_MONITORING | RDS_DBI_PROTECTION_PROVISIONED | RDS_DBI_PROTECTION_SERVERLESS`   
Required: No

 ** resources **   <a name="guardduty-Type-UsageCriteria-resources"></a>
The resources to aggregate usage statistics from. Only accepts exact resource names.  
Type: Array of strings  
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/guardduty-2017-11-28/UsageCriteria) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/guardduty-2017-11-28/UsageCriteria) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/guardduty-2017-11-28/UsageCriteria) 