interface AttributeFilterProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.aws_qbusiness.CfnDataAccessor.AttributeFilterProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsqbusiness#CfnDataAccessor_AttributeFilterProperty |
Java | software.amazon.awscdk.services.qbusiness.CfnDataAccessor.AttributeFilterProperty |
Python | aws_cdk.aws_qbusiness.CfnDataAccessor.AttributeFilterProperty |
TypeScript | aws-cdk-lib » aws_qbusiness » CfnDataAccessor » AttributeFilterProperty |
Enables filtering of responses based on document attributes or metadata fields.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_qbusiness as qbusiness } from 'aws-cdk-lib';
declare const attributeFilterProperty_: qbusiness.CfnDataAccessor.AttributeFilterProperty;
const attributeFilterProperty: qbusiness.CfnDataAccessor.AttributeFilterProperty = {
andAllFilters: [attributeFilterProperty_],
containsAll: {
name: 'name',
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
containsAny: {
name: 'name',
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
equalsTo: {
name: 'name',
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
greaterThan: {
name: 'name',
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
greaterThanOrEquals: {
name: 'name',
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
lessThan: {
name: 'name',
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
lessThanOrEquals: {
name: 'name',
value: {
dateValue: 'dateValue',
longValue: 123,
stringListValue: ['stringListValue'],
stringValue: 'stringValue',
},
},
notFilter: attributeFilterProperty_,
orAllFilters: [attributeFilterProperty_],
};
Properties
| Name | Type | Description |
|---|---|---|
| and | IResolvable | (IResolvable | Attribute)[] | Performs a logical AND operation on all supplied filters. |
| contains | IResolvable | Document | Returns true when a document contains all the specified document attributes or metadata fields. |
| contains | IResolvable | Document | Returns true when a document contains any of the specified document attributes or metadata fields. |
| equals | IResolvable | Document | Performs an equals operation on two document attributes or metadata fields. |
| greater | IResolvable | Document | Performs a greater than operation on two document attributes or metadata fields. |
| greater | IResolvable | Document | Performs a greater or equals than operation on two document attributes or metadata fields. |
| less | IResolvable | Document | Performs a less than operation on two document attributes or metadata fields. |
| less | IResolvable | Document | Performs a less than or equals operation on two document attributes or metadata fields.Supported for the following document attribute value type : dateValue and longValue . |
| not | IResolvable | Attribute | Performs a logical NOT operation on all supplied filters. |
| or | IResolvable | (IResolvable | Attribute)[] | Performs a logical OR operation on all supplied filters. |
andAllFilters?
Type:
IResolvable | (IResolvable | Attribute)[]
(optional)
Performs a logical AND operation on all supplied filters.
containsAll?
Type:
IResolvable | Document
(optional)
Returns true when a document contains all the specified document attributes or metadata fields.
Supported for the following document attribute value types : stringListValue .
containsAny?
Type:
IResolvable | Document
(optional)
Returns true when a document contains any of the specified document attributes or metadata fields.
Supported for the following document attribute value types : stringListValue .
equalsTo?
Type:
IResolvable | Document
(optional)
Performs an equals operation on two document attributes or metadata fields.
Supported for the following document attribute value types : dateValue , longValue , stringListValue and stringValue .
greaterThan?
Type:
IResolvable | Document
(optional)
Performs a greater than operation on two document attributes or metadata fields.
Supported for the following document attribute value types : dateValue and longValue .
greaterThanOrEquals?
Type:
IResolvable | Document
(optional)
Performs a greater or equals than operation on two document attributes or metadata fields.
Supported for the following document attribute value types : dateValue and longValue .
lessThan?
Type:
IResolvable | Document
(optional)
Performs a less than operation on two document attributes or metadata fields.
Supported for the following document attribute value types : dateValue and longValue .
lessThanOrEquals?
Type:
IResolvable | Document
(optional)
Performs a less than or equals operation on two document attributes or metadata fields.Supported for the following document attribute value type : dateValue and longValue .
notFilter?
Type:
IResolvable | Attribute
(optional)
Performs a logical NOT operation on all supplied filters.
orAllFilters?
Type:
IResolvable | (IResolvable | Attribute)[]
(optional)
Performs a logical OR operation on all supplied filters.

.NET
Go
Java
Python
TypeScript