

# Condition
<a name="API_Condition"></a>

A Lake Formation condition, which applies to permissions and opt-ins that contain an expression.

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

 ** Expression **   <a name="lakeformation-Type-Condition-Expression"></a>
An expression written based on the Cedar Policy Language used to match the principal attributes.  
Type: String  
Length Constraints: Maximum length of 3000.  
Required: No

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/lakeformation-2017-03-31/Condition) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/lakeformation-2017-03-31/Condition) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/lakeformation-2017-03-31/Condition) 