# PredicateProperty

The `Predicate` property specifies information for generating Amplify DataStore queries.

Use `Predicate` to retrieve a subset of the data in a collection.

- Source: Generated at build time
- Type last changed: v2.127.0 · 10 Feb 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplifyuibuilder as amplifyuibuilder } from 'aws-cdk-lib';

declare const predicateProperty_: amplifyuibuilder.CfnComponent.PredicateProperty;
const predicateProperty: amplifyuibuilder.CfnComponent.PredicateProperty = {
  and: [predicateProperty_],
  field: 'field',
  operand: 'operand',
  operandType: 'operandType',
  operator: 'operator',
  or: [predicateProperty_],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_amplifyuibuilder as amplifyuibuilder

# predicate_property_: amplifyuibuilder.CfnComponent.PredicateProperty

predicate_property = amplifyuibuilder.CfnComponent.PredicateProperty(
    and=[predicate_property_],
    field="field",
    operand="operand",
    operand_type="operandType",
    operator="operator",
    or=[predicate_property_]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.amplifyuibuilder.*;

PredicateProperty predicateProperty_;

PredicateProperty predicateProperty = PredicateProperty.builder()
        .and(List.of(predicateProperty_))
        .field("field")
        .operand("operand")
        .operandType("operandType")
        .operator("operator")
        .or(List.of(predicateProperty_))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AmplifyUIBuilder;

PredicateProperty predicateProperty_;

var predicateProperty = new PredicateProperty {
    And = new [] { predicateProperty_ },
    Field = "field",
    Operand = "operand",
    OperandType = "operandType",
    Operator = "operator",
    Or = new [] { predicateProperty_ }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var predicateProperty_ PredicateProperty

predicateProperty := &PredicateProperty{
	And: []interface{}{
		predicateProperty_,
	},
	Field: jsii.String("field"),
	Operand: jsii.String("operand"),
	OperandType: jsii.String("operandType"),
	Operator: jsii.String("operator"),
	Or: []interface{}{
		predicateProperty_,
	},
}
```

## Properties

- `and`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponent.PredicateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.PredicateProperty.html)[] — A list of predicates to combine logically.

- `field`: string — The field to query.

- `operand`: string — The value to use when performing the evaluation.

- `operandType`: string — The type of value to use when performing the evaluation.

- `operator`: string — The operator to use to perform the evaluation.

- `or`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponent.PredicateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.PredicateProperty.html)[] — A list of predicates to combine logically.
