create_calculated_attribute_definition
async
¶
create_calculated_attribute_definition(
domain_name: name,
calculated_attribute_name: typeName,
attribute_details: AttributeDetails,
statistic: Statistic,
*,
config_overrides: Optional[AsyncCustomerProfilesClientConfig] = None,
display_name: Optional[displayName] = None,
description: Optional[sensitiveText] = None,
conditions: Optional[Conditions] = None,
filter: Optional[Filter] = None,
use_historical_data: Optional[optionalBoolean] = None,
tags: Optional[TagMap] = None,
) -> CreateCalculatedAttributeDefinitionResponse
Creates a new calculated attribute definition. After creation, new object data ingested into Customer Profiles will be included in the calculated attribute, which can be retrieved for a profile using the GetCalculatedAttributeForProfile API. Defining a calculated attribute makes it available for all profiles within a domain. Each calculated attribute can only reference one ObjectType and at most, two fields from that ObjectType.
Parameters:
-
domain_name(name) –The unique name of the domain.
-
calculated_attribute_name(typeName) –The unique name of the calculated attribute.
-
display_name(Optional[displayName], default:None) –The display name of the calculated attribute.
-
description(Optional[sensitiveText], default:None) –The description of the calculated attribute.
-
attribute_details(AttributeDetails) –Mathematical expression and a list of attribute items specified in that expression.
-
conditions(Optional[Conditions], default:None) –The conditions including range, object count, and threshold for the calculated attribute.
-
filter(Optional[Filter], default:None) –Defines how to filter incoming objects to include part of the Calculated Attribute.
-
statistic(Statistic) –The aggregation operation to perform for the calculated attribute.
-
use_historical_data(Optional[optionalBoolean], default:None) –Whether historical data ingested before the Calculated Attribute was created should be included in calculations.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
BadRequestException–The input you provided is invalid.
-
InternalServerException–An internal service error occurred.
-
ResourceNotFoundException–The requested resource does not exist, or access was denied.
-
ThrottlingException–You exceeded the maximum number of requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_customer_profiles/_services/async_customer_profiles.py
817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 | |