

# LocationFilter
<a name="API_LocationFilter"></a>

Narrow down the list of resources returned by `ListLocations`. For example, to see all your Amazon S3 locations, create a filter using `"Name": "LocationType"`, `"Operator": "Equals"`, and `"Values": "S3"`.

For more information, see [filtering resources](https://docs.aws.amazon.com/datasync/latest/userguide/query-resources.html).

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

 ** Name **   <a name="DataSync-Type-LocationFilter-Name"></a>
The name of the filter being used. Each API call supports a list of filters that are available for it (for example, `LocationType` for `ListLocations`).  
Type: String  
Valid Values: `LocationUri | LocationType | CreationTime`   
Required: Yes

 ** Operator **   <a name="DataSync-Type-LocationFilter-Operator"></a>
The operator that is used to compare filter values (for example, `Equals` or `Contains`).  
Type: String  
Valid Values: `Equals | NotEquals | In | LessThanOrEqual | LessThan | GreaterThanOrEqual | GreaterThan | Contains | NotContains | BeginsWith`   
Required: Yes

 ** Values **   <a name="DataSync-Type-LocationFilter-Values"></a>
The values that you want to filter for. For example, you might want to display only Amazon S3 locations.  
Type: Array of strings  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `^[0-9a-zA-Z_\ \-\:\*\.\\/\?-]*$`   
Required: Yes

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

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/datasync-2018-11-09/LocationFilter) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/datasync-2018-11-09/LocationFilter) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/datasync-2018-11-09/LocationFilter) 