

# StorageLensCostAndUsageReportsSelectionCriteria

A container for the selection criteria used by the S3 Storage Lens Amazon Cost and Usage Reports (Amazon CUR) publish configuration. The selection criteria specifies the minimum and maximum prefix depth (both inclusive) for which cost data is published to Amazon CUR. You must provide both `MinDepth` and `MaxDepth` together, or neither; `MinDepth` must be less than or equal to `MaxDepth`, and the difference must not exceed 4. If neither is provided, `MinDepth` defaults to `1` and `MaxDepth` defaults to `3`.

## Contents
<a name="API_control_StorageLensCostAndUsageReportsSelectionCriteria_Contents"></a>

 ** MaxDepth **   <a name="AmazonS3-Type-control_StorageLensCostAndUsageReportsSelectionCriteria-MaxDepth"></a>
The maximum prefix depth (inclusive) for which cost data is published to Amazon CUR. You must provide both `MinDepth` and `MaxDepth` together, or neither. If neither is provided, `MaxDepth` defaults to `3`.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 15.  
Required: No

 ** MinDepth **   <a name="AmazonS3-Type-control_StorageLensCostAndUsageReportsSelectionCriteria-MinDepth"></a>
The minimum prefix depth (inclusive) for which cost data is published to Amazon CUR. You must provide both `MinDepth` and `MaxDepth` together, or neither. If neither is provided, `MinDepth` defaults to `1`.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 15.  
Required: No

## See Also
<a name="API_control_StorageLensCostAndUsageReportsSelectionCriteria_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/s3control-2018-08-20/StorageLensCostAndUsageReportsSelectionCriteria) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/s3control-2018-08-20/StorageLensCostAndUsageReportsSelectionCriteria) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/s3control-2018-08-20/StorageLensCostAndUsageReportsSelectionCriteria) 