FilterProperty Struct
Defines how to filter the objects coming in for calculated attributes.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_customerprofiles as customerprofiles } from 'aws-cdk-lib';
const filterProperty: customerprofiles.CfnCalculatedAttributeDefinition.FilterProperty = {
groups: [{
dimensions: [{
attributes: {
attributesKey: {
dimensionType: 'dimensionType',
values: ['values'],
},
},
}],
type: 'type',
}],
include: 'include',
};
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_customerprofiles as customerprofiles
filter_property = customerprofiles.CfnCalculatedAttributeDefinition.FilterProperty(
groups=[customerprofiles.CfnCalculatedAttributeDefinition.FilterGroupProperty(
dimensions=[customerprofiles.CfnCalculatedAttributeDefinition.FilterDimensionProperty(
attributes={
"attributes_key": customerprofiles.CfnCalculatedAttributeDefinition.FilterAttributeDimensionProperty(
dimension_type="dimensionType",
values=["values"]
)
}
)],
type="type"
)],
include="include"
)
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.customerprofiles.*;
FilterProperty filterProperty = FilterProperty.builder()
.groups(List.of(FilterGroupProperty.builder()
.dimensions(List.of(FilterDimensionProperty.builder()
.attributes(Map.of(
"attributesKey", FilterAttributeDimensionProperty.builder()
.dimensionType("dimensionType")
.values(List.of("values"))
.build()))
.build()))
.type("type")
.build()))
.include("include")
.build();
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.CustomerProfiles;
var filterProperty = new FilterProperty {
Groups = new [] { new FilterGroupProperty {
Dimensions = new [] { new FilterDimensionProperty {
Attributes = new Dictionary<string, object> {
{ "attributesKey", new FilterAttributeDimensionProperty {
DimensionType = "dimensionType",
Values = new [] { "values" }
} }
}
} },
Type = "type"
} },
Include = "include"
};
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"
filterProperty := &FilterProperty{
Groups: []interface{}{
&FilterGroupProperty{
Dimensions: []interface{}{
&FilterDimensionProperty{
Attributes: map[string]interface{}{
"attributesKey": &FilterAttributeDimensionProperty{
"dimensionType": jsii.String("dimensionType"),
"values": []*string{
jsii.String("values"),
},
},
},
},
},
Type: jsii.String("type"),
},
},
Include: jsii.String("include"),
}
Properties
groupsIResolvable | IResolvable | CfnCalculatedAttributeDefinition.groupstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FilterGroupProperty]]]groupsIResolvableGroupsIResolvableGroupsinterface{} required #Define whether to include or exclude objects for Calculated Attributed calculation that fit the filter groups criteria.