@aws-sdk/client-personalize-runtime 3.34.0 → 3.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/PersonalizeRuntime.js +1 -5
  3. package/{dist/cjs → dist-cjs}/PersonalizeRuntimeClient.js +8 -17
  4. package/{dist/cjs → dist-cjs}/commands/GetPersonalizedRankingCommand.js +2 -32
  5. package/dist-cjs/commands/GetRecommendationsCommand.js +36 -0
  6. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  7. package/{dist/cjs → dist-cjs}/index.js +0 -1
  8. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -22
  10. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +2 -8
  11. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  12. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  15. package/{dist/es → dist-es}/PersonalizeRuntime.js +1 -2
  16. package/{dist/es → dist-es}/PersonalizeRuntimeClient.js +1 -2
  17. package/{dist/es → dist-es}/commands/GetPersonalizedRankingCommand.js +2 -3
  18. package/{dist/es → dist-es}/commands/GetRecommendationsCommand.js +2 -3
  19. package/{dist/es → dist-es}/endpoints.js +1 -2
  20. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  21. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  22. package/{dist/es → dist-es}/models/models_0.js +0 -1
  23. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  24. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  25. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  26. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  27. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  28. package/{dist/types → dist-types}/PersonalizeRuntime.d.ts +2 -2
  29. package/{dist/types → dist-types}/PersonalizeRuntimeClient.d.ts +3 -3
  30. package/{dist/types → dist-types}/commands/GetPersonalizedRankingCommand.d.ts +3 -3
  31. package/{dist/types → dist-types}/commands/GetRecommendationsCommand.d.ts +3 -3
  32. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  33. package/{index.ts → dist-types/index.d.ts} +0 -0
  34. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  35. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  36. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  37. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  38. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  39. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  40. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  41. package/{dist/types → dist-types}/ts3.4/PersonalizeRuntime.d.ts +5 -30
  42. package/dist-types/ts3.4/PersonalizeRuntimeClient.d.ts +69 -0
  43. package/dist-types/ts3.4/commands/GetPersonalizedRankingCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +17 -0
  45. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  46. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  47. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +98 -0
  49. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  50. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  51. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  52. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  53. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  54. package/package.json +45 -42
  55. package/PersonalizeRuntime.ts +0 -100
  56. package/PersonalizeRuntimeClient.ts +0 -240
  57. package/commands/GetPersonalizedRankingCommand.ts +0 -103
  58. package/commands/GetRecommendationsCommand.ts +0 -112
  59. package/dist/cjs/PersonalizeRuntime.js.map +0 -1
  60. package/dist/cjs/PersonalizeRuntimeClient.js.map +0 -1
  61. package/dist/cjs/commands/GetPersonalizedRankingCommand.js.map +0 -1
  62. package/dist/cjs/commands/GetRecommendationsCommand.js +0 -75
  63. package/dist/cjs/commands/GetRecommendationsCommand.js.map +0 -1
  64. package/dist/cjs/endpoints.js.map +0 -1
  65. package/dist/cjs/index.js.map +0 -1
  66. package/dist/cjs/models/index.js.map +0 -1
  67. package/dist/cjs/models/models_0.js.map +0 -1
  68. package/dist/cjs/package.json +0 -91
  69. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  70. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  71. package/dist/cjs/runtimeConfig.js.map +0 -1
  72. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  73. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  74. package/dist/es/PersonalizeRuntime.js.map +0 -1
  75. package/dist/es/PersonalizeRuntimeClient.js.map +0 -1
  76. package/dist/es/commands/GetPersonalizedRankingCommand.js.map +0 -1
  77. package/dist/es/commands/GetRecommendationsCommand.js.map +0 -1
  78. package/dist/es/endpoints.js.map +0 -1
  79. package/dist/es/index.js +0 -6
  80. package/dist/es/index.js.map +0 -1
  81. package/dist/es/models/index.js +0 -2
  82. package/dist/es/models/index.js.map +0 -1
  83. package/dist/es/models/models_0.js.map +0 -1
  84. package/dist/es/package.json +0 -91
  85. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  86. package/dist/es/runtimeConfig.browser.js.map +0 -1
  87. package/dist/es/runtimeConfig.js.map +0 -1
  88. package/dist/es/runtimeConfig.native.js.map +0 -1
  89. package/dist/es/runtimeConfig.shared.js.map +0 -1
  90. package/dist/types/ts3.4/PersonalizeRuntimeClient.d.ts +0 -134
  91. package/dist/types/ts3.4/commands/GetPersonalizedRankingCommand.d.ts +0 -40
  92. package/dist/types/ts3.4/commands/GetRecommendationsCommand.d.ts +0 -49
  93. package/dist/types/ts3.4/models/models_0.d.ts +0 -190
  94. package/endpoints.ts +0 -57
  95. package/jest.config.js +0 -4
  96. package/models/models_0.ts +0 -229
  97. package/protocols/Aws_restJson1.ts +0 -372
  98. package/runtimeConfig.browser.ts +0 -40
  99. package/runtimeConfig.native.ts +0 -16
  100. package/runtimeConfig.shared.ts +0 -16
  101. package/runtimeConfig.ts +0 -45
  102. package/tsconfig.es.json +0 -10
  103. package/tsconfig.json +0 -31
  104. package/tsconfig.types.json +0 -8
@@ -1,190 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- export interface GetPersonalizedRankingRequest {
3
- /**
4
- * <p>The Amazon Resource Name (ARN) of the campaign to use for generating the personalized
5
- * ranking.</p>
6
- */
7
- campaignArn: string | undefined;
8
- /**
9
- * <p>A list of items (by <code>itemId</code>) to rank. If an item was not included in the training dataset,
10
- * the item is appended to the end of the reranked list. The maximum is 500.</p>
11
- */
12
- inputList: string[] | undefined;
13
- /**
14
- * <p>The user for which you want the campaign to provide a personalized ranking.</p>
15
- */
16
- userId: string | undefined;
17
- /**
18
- * <p>The contextual metadata to use when getting recommendations. Contextual metadata includes
19
- * any interaction information that might be relevant when getting a user's recommendations, such
20
- * as the user's current location or device type.</p>
21
- */
22
- context?: {
23
- [key: string]: string;
24
- };
25
- /**
26
- * <p>The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for a given user.
27
- * For more information, see
28
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
29
- */
30
- filterArn?: string;
31
- /**
32
- * <p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case)
33
- * as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
34
- * </p>
35
- * <p>For filter expressions that use an <code>INCLUDE</code> element to include items,
36
- * you must provide values for all parameters that are defined in the expression. For
37
- * filters with expressions that use an <code>EXCLUDE</code> element to exclude items, you
38
- * can omit the <code>filter-values</code>.In this case, Amazon Personalize doesn't use that portion of
39
- * the expression to filter recommendations.</p>
40
- * <p>For more information, see
41
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
42
- */
43
- filterValues?: {
44
- [key: string]: string;
45
- };
46
- }
47
- export declare namespace GetPersonalizedRankingRequest {
48
- /**
49
- * @internal
50
- */
51
- const filterSensitiveLog: (obj: GetPersonalizedRankingRequest) => any;
52
- }
53
- /**
54
- * <p>An object that identifies an item.</p>
55
- * <p>The and APIs return a list of
56
- * <code>PredictedItem</code>s.</p>
57
- */
58
- export interface PredictedItem {
59
- /**
60
- * <p>The recommended item ID.</p>
61
- */
62
- itemId?: string;
63
- /**
64
- * <p>A numeric representation of the model's certainty that the item will be the next user
65
- * selection. For more information on scoring logic, see <a>how-scores-work</a>.</p>
66
- */
67
- score?: number;
68
- }
69
- export declare namespace PredictedItem {
70
- /**
71
- * @internal
72
- */
73
- const filterSensitiveLog: (obj: PredictedItem) => any;
74
- }
75
- export interface GetPersonalizedRankingResponse {
76
- /**
77
- * <p>A list of items in order of most likely interest to the user. The maximum is 500.</p>
78
- */
79
- personalizedRanking?: PredictedItem[];
80
- /**
81
- * <p>The ID of the recommendation.</p>
82
- */
83
- recommendationId?: string;
84
- }
85
- export declare namespace GetPersonalizedRankingResponse {
86
- /**
87
- * @internal
88
- */
89
- const filterSensitiveLog: (obj: GetPersonalizedRankingResponse) => any;
90
- }
91
- /**
92
- * <p>Provide a valid value for the field or parameter.</p>
93
- */
94
- export interface InvalidInputException extends __SmithyException, $MetadataBearer {
95
- name: "InvalidInputException";
96
- $fault: "client";
97
- message?: string;
98
- }
99
- export declare namespace InvalidInputException {
100
- /**
101
- * @internal
102
- */
103
- const filterSensitiveLog: (obj: InvalidInputException) => any;
104
- }
105
- /**
106
- * <p>The specified resource does not exist.</p>
107
- */
108
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
109
- name: "ResourceNotFoundException";
110
- $fault: "client";
111
- message?: string;
112
- }
113
- export declare namespace ResourceNotFoundException {
114
- /**
115
- * @internal
116
- */
117
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
118
- }
119
- export interface GetRecommendationsRequest {
120
- /**
121
- * <p>The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.</p>
122
- */
123
- campaignArn: string | undefined;
124
- /**
125
- * <p>The item ID to provide recommendations for.</p>
126
- * <p>Required for <code>RELATED_ITEMS</code> recipe type.</p>
127
- */
128
- itemId?: string;
129
- /**
130
- * <p>The user ID to provide recommendations for.</p>
131
- * <p>Required for <code>USER_PERSONALIZATION</code> recipe type.</p>
132
- */
133
- userId?: string;
134
- /**
135
- * <p>The number of results to return. The default is 25. The maximum is 500.</p>
136
- */
137
- numResults?: number;
138
- /**
139
- * <p>The contextual metadata to use when getting recommendations. Contextual metadata includes
140
- * any interaction information that might be relevant when getting a user's recommendations, such
141
- * as the user's current location or device type.</p>
142
- */
143
- context?: {
144
- [key: string]: string;
145
- };
146
- /**
147
- * <p>The ARN of the filter to apply to the returned recommendations. For more information, see
148
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
149
- * <p>When using this parameter, be sure the filter resource is <code>ACTIVE</code>.</p>
150
- */
151
- filterArn?: string;
152
- /**
153
- * <p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case)
154
- * as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
155
- * </p>
156
- * <p>For filter expressions that use an <code>INCLUDE</code> element to include items,
157
- * you must provide values for all parameters that are defined in the expression. For
158
- * filters with expressions that use an <code>EXCLUDE</code> element to exclude items, you
159
- * can omit the <code>filter-values</code>.In this case, Amazon Personalize doesn't use that portion of
160
- * the expression to filter recommendations.</p>
161
- * <p>For more information, see
162
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
163
- */
164
- filterValues?: {
165
- [key: string]: string;
166
- };
167
- }
168
- export declare namespace GetRecommendationsRequest {
169
- /**
170
- * @internal
171
- */
172
- const filterSensitiveLog: (obj: GetRecommendationsRequest) => any;
173
- }
174
- export interface GetRecommendationsResponse {
175
- /**
176
- * <p>A list of recommendations sorted in ascending order by prediction score. There can be a
177
- * maximum of 500 items in the list.</p>
178
- */
179
- itemList?: PredictedItem[];
180
- /**
181
- * <p>The ID of the recommendation.</p>
182
- */
183
- recommendationId?: string;
184
- }
185
- export declare namespace GetRecommendationsResponse {
186
- /**
187
- * @internal
188
- */
189
- const filterSensitiveLog: (obj: GetRecommendationsResponse) => any;
190
- }
package/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "personalize-runtime.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "personalize-runtime.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "personalize-runtime.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "personalize-runtime.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "personalize-runtime.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "personalize",
55
- regionHash,
56
- partitionHash,
57
- });
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: "ts-jest",
3
- testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
4
- };
@@ -1,229 +0,0 @@
1
- import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
-
4
- export interface GetPersonalizedRankingRequest {
5
- /**
6
- * <p>The Amazon Resource Name (ARN) of the campaign to use for generating the personalized
7
- * ranking.</p>
8
- */
9
- campaignArn: string | undefined;
10
-
11
- /**
12
- * <p>A list of items (by <code>itemId</code>) to rank. If an item was not included in the training dataset,
13
- * the item is appended to the end of the reranked list. The maximum is 500.</p>
14
- */
15
- inputList: string[] | undefined;
16
-
17
- /**
18
- * <p>The user for which you want the campaign to provide a personalized ranking.</p>
19
- */
20
- userId: string | undefined;
21
-
22
- /**
23
- * <p>The contextual metadata to use when getting recommendations. Contextual metadata includes
24
- * any interaction information that might be relevant when getting a user's recommendations, such
25
- * as the user's current location or device type.</p>
26
- */
27
- context?: { [key: string]: string };
28
-
29
- /**
30
- * <p>The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for a given user.
31
- * For more information, see
32
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
33
- */
34
- filterArn?: string;
35
-
36
- /**
37
- * <p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case)
38
- * as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
39
- * </p>
40
- * <p>For filter expressions that use an <code>INCLUDE</code> element to include items,
41
- * you must provide values for all parameters that are defined in the expression. For
42
- * filters with expressions that use an <code>EXCLUDE</code> element to exclude items, you
43
- * can omit the <code>filter-values</code>.In this case, Amazon Personalize doesn't use that portion of
44
- * the expression to filter recommendations.</p>
45
- * <p>For more information, see
46
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
47
- */
48
- filterValues?: { [key: string]: string };
49
- }
50
-
51
- export namespace GetPersonalizedRankingRequest {
52
- /**
53
- * @internal
54
- */
55
- export const filterSensitiveLog = (obj: GetPersonalizedRankingRequest): any => ({
56
- ...obj,
57
- ...(obj.context && { context: SENSITIVE_STRING }),
58
- ...(obj.filterValues && { filterValues: SENSITIVE_STRING }),
59
- });
60
- }
61
-
62
- /**
63
- * <p>An object that identifies an item.</p>
64
- * <p>The and APIs return a list of
65
- * <code>PredictedItem</code>s.</p>
66
- */
67
- export interface PredictedItem {
68
- /**
69
- * <p>The recommended item ID.</p>
70
- */
71
- itemId?: string;
72
-
73
- /**
74
- * <p>A numeric representation of the model's certainty that the item will be the next user
75
- * selection. For more information on scoring logic, see <a>how-scores-work</a>.</p>
76
- */
77
- score?: number;
78
- }
79
-
80
- export namespace PredictedItem {
81
- /**
82
- * @internal
83
- */
84
- export const filterSensitiveLog = (obj: PredictedItem): any => ({
85
- ...obj,
86
- });
87
- }
88
-
89
- export interface GetPersonalizedRankingResponse {
90
- /**
91
- * <p>A list of items in order of most likely interest to the user. The maximum is 500.</p>
92
- */
93
- personalizedRanking?: PredictedItem[];
94
-
95
- /**
96
- * <p>The ID of the recommendation.</p>
97
- */
98
- recommendationId?: string;
99
- }
100
-
101
- export namespace GetPersonalizedRankingResponse {
102
- /**
103
- * @internal
104
- */
105
- export const filterSensitiveLog = (obj: GetPersonalizedRankingResponse): any => ({
106
- ...obj,
107
- });
108
- }
109
-
110
- /**
111
- * <p>Provide a valid value for the field or parameter.</p>
112
- */
113
- export interface InvalidInputException extends __SmithyException, $MetadataBearer {
114
- name: "InvalidInputException";
115
- $fault: "client";
116
- message?: string;
117
- }
118
-
119
- export namespace InvalidInputException {
120
- /**
121
- * @internal
122
- */
123
- export const filterSensitiveLog = (obj: InvalidInputException): any => ({
124
- ...obj,
125
- });
126
- }
127
-
128
- /**
129
- * <p>The specified resource does not exist.</p>
130
- */
131
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
132
- name: "ResourceNotFoundException";
133
- $fault: "client";
134
- message?: string;
135
- }
136
-
137
- export namespace ResourceNotFoundException {
138
- /**
139
- * @internal
140
- */
141
- export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
142
- ...obj,
143
- });
144
- }
145
-
146
- export interface GetRecommendationsRequest {
147
- /**
148
- * <p>The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.</p>
149
- */
150
- campaignArn: string | undefined;
151
-
152
- /**
153
- * <p>The item ID to provide recommendations for.</p>
154
- * <p>Required for <code>RELATED_ITEMS</code> recipe type.</p>
155
- */
156
- itemId?: string;
157
-
158
- /**
159
- * <p>The user ID to provide recommendations for.</p>
160
- * <p>Required for <code>USER_PERSONALIZATION</code> recipe type.</p>
161
- */
162
- userId?: string;
163
-
164
- /**
165
- * <p>The number of results to return. The default is 25. The maximum is 500.</p>
166
- */
167
- numResults?: number;
168
-
169
- /**
170
- * <p>The contextual metadata to use when getting recommendations. Contextual metadata includes
171
- * any interaction information that might be relevant when getting a user's recommendations, such
172
- * as the user's current location or device type.</p>
173
- */
174
- context?: { [key: string]: string };
175
-
176
- /**
177
- * <p>The ARN of the filter to apply to the returned recommendations. For more information, see
178
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
179
- * <p>When using this parameter, be sure the filter resource is <code>ACTIVE</code>.</p>
180
- */
181
- filterArn?: string;
182
-
183
- /**
184
- * <p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case)
185
- * as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma.
186
- * </p>
187
- * <p>For filter expressions that use an <code>INCLUDE</code> element to include items,
188
- * you must provide values for all parameters that are defined in the expression. For
189
- * filters with expressions that use an <code>EXCLUDE</code> element to exclude items, you
190
- * can omit the <code>filter-values</code>.In this case, Amazon Personalize doesn't use that portion of
191
- * the expression to filter recommendations.</p>
192
- * <p>For more information, see
193
- * <a href="https://docs.aws.amazon.com/personalize/latest/dg/filter.html">Filtering Recommendations</a>.</p>
194
- */
195
- filterValues?: { [key: string]: string };
196
- }
197
-
198
- export namespace GetRecommendationsRequest {
199
- /**
200
- * @internal
201
- */
202
- export const filterSensitiveLog = (obj: GetRecommendationsRequest): any => ({
203
- ...obj,
204
- ...(obj.context && { context: SENSITIVE_STRING }),
205
- ...(obj.filterValues && { filterValues: SENSITIVE_STRING }),
206
- });
207
- }
208
-
209
- export interface GetRecommendationsResponse {
210
- /**
211
- * <p>A list of recommendations sorted in ascending order by prediction score. There can be a
212
- * maximum of 500 items in the list.</p>
213
- */
214
- itemList?: PredictedItem[];
215
-
216
- /**
217
- * <p>The ID of the recommendation.</p>
218
- */
219
- recommendationId?: string;
220
- }
221
-
222
- export namespace GetRecommendationsResponse {
223
- /**
224
- * @internal
225
- */
226
- export const filterSensitiveLog = (obj: GetRecommendationsResponse): any => ({
227
- ...obj,
228
- });
229
- }