create_filter
async
¶
create_filter(
name: Name,
dataset_group_arn: Arn,
filter_expression: FilterExpression,
*,
config_overrides: Optional[AsyncPersonalizeClientConfig] = None,
tags: Optional[Tags] = None,
) -> CreateFilterResponse
Creates a recommendation filter. For more information, see Filtering recommendations and user segments.
Parameters:
-
name(Name) –The name of the filter to create.
-
dataset_group_arn(Arn) –The ARN of the dataset group that the filter will belong to.
-
filter_expression(FilterExpression) –The filter expression defines which items are included or excluded from recommendations. Filter expression must follow specific format rules. For information about filter expression structure and syntax, see Filter expressions.
-
tags(Optional[Tags], default:None) –A list of tags to apply to the filter.
Raises:
-
InvalidInputException–Provide a valid value for the field or parameter.
-
LimitExceededException–The limit on the number of requests per second has been exceeded.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceNotFoundException–Could not find the specified resource.
-
TooManyTagsException–You have exceeded the maximum number of tags you can apply to this resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_personalize/_services/async_personalize.py
1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 | |