aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.PredicateProperty

interface PredicateProperty

LanguageType name
.NETAmazon.CDK.AWS.AmplifyUIBuilder.CfnComponent.PredicateProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsamplifyuibuilder#CfnComponent_PredicateProperty
Javasoftware.amazon.awscdk.services.amplifyuibuilder.CfnComponent.PredicateProperty
Pythonaws_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: [{
    and: [predicateProperty_],
    field: 'field',
    operand: 'operand',
    operator: 'operator',
    or: [predicateProperty_],
  }],
  field: 'field',
  operand: 'operand',
  operator: 'operator',
  or: [{
    and: [predicateProperty_],
    field: 'field',
    operand: 'operand',
    operator: 'operator',
    or: [predicateProperty_],
  }],
};

Properties

NameTypeDescription
and?IResolvable | IResolvable | PredicateProperty[]A list of predicates to combine logically.
field?stringThe field to query.
operand?stringThe value to use when performing the evaluation.
operator?stringThe operator to use to perform the evaluation.
or?IResolvable | IResolvable | PredicateProperty[]A list of predicates to combine logically.

and?

Type: IResolvable | IResolvable | PredicateProperty[] (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.


operator?

Type: string (optional)

The operator to use to perform the evaluation.


or?

Type: IResolvable | IResolvable | PredicateProperty[] (optional)

A list of predicates to combine logically.