interface PredicateProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AmplifyUIBuilder.CfnComponent.PredicateProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsamplifyuibuilder#CfnComponent_PredicateProperty |
Java | software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.PredicateProperty |
Python | aws_cdk.aws_amplifyuibuilder.CfnComponent.PredicateProperty |
TypeScript | aws-cdk-lib » aws_amplifyuibuilder » CfnComponent » PredicateProperty |
The Predicate property specifies information for generating Amplify DataStore queries.
Use Predicate to retrieve a subset of the data in a collection.
Example
// 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_],
};
Properties
| Name | Type | Description |
|---|---|---|
| and? | IResolvable | (IResolvable | Predicate)[] | A list of predicates to combine logically. |
| field? | string | The field to query. |
| operand? | string | The value to use when performing the evaluation. |
| operand | string | The type of value to use when performing the evaluation. |
| operator? | string | The operator to use to perform the evaluation. |
| or? | IResolvable | (IResolvable | Predicate)[] | A list of predicates to combine logically. |
and?
Type:
IResolvable | (IResolvable | Predicate)[]
(optional)
A list of predicates to combine logically.
field?
Type:
string
(optional)
The field to query.
operand?
Type:
string
(optional)
The value to use when performing the evaluation.
operandType?
Type:
string
(optional)
The type of value to use when performing the evaluation.
operator?
Type:
string
(optional)
The operator to use to perform the evaluation.
or?
Type:
IResolvable | (IResolvable | Predicate)[]
(optional)
A list of predicates to combine logically.

.NET
Go
Java
Python
TypeScript