Skip to content

Commit 3df3ee8

Browse files
author
awstools
committed
feat(client-datazone): This release adds support for 1) highlighting relevant text in returned results for Search and SearchListings APIs and 2) returning aggregated counts of values for specified attributes for SearchListings API.
1 parent dd06bc1 commit 3df3ee8

File tree

11 files changed

+1243
-546
lines changed

11 files changed

+1243
-546
lines changed

clients/client-datazone/src/commands/CreateSubscriptionGrantCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { CreateSubscriptionGrantInput } from "../models/models_0";
10-
import { CreateSubscriptionGrantOutput } from "../models/models_1";
9+
import { CreateSubscriptionGrantInput, CreateSubscriptionGrantOutput } from "../models/models_1";
1110
import { de_CreateSubscriptionGrantCommand, se_CreateSubscriptionGrantCommand } from "../protocols/Aws_restJson1";
1211

1312
/**

clients/client-datazone/src/commands/DeleteRuleCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DeleteRuleInput, DeleteRuleOutput } from "../models/models_1";
9+
import { DeleteRuleInput, DeleteRuleOutput } from "../models/models_2";
1010
import { de_DeleteRuleCommand, se_DeleteRuleCommand } from "../protocols/Aws_restJson1";
1111

1212
/**

clients/client-datazone/src/commands/GetRuleCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { GetRuleInput, GetRuleOutput, GetRuleOutputFilterSensitiveLog } from "../models/models_1";
9+
import { GetRuleInput, GetRuleOutput, GetRuleOutputFilterSensitiveLog } from "../models/models_2";
1010
import { de_GetRuleCommand, se_GetRuleCommand } from "../protocols/Aws_restJson1";
1111

1212
/**

clients/client-datazone/src/commands/ListRulesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { DataZoneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DataZoneClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { ListRulesInput, ListRulesOutput, ListRulesOutputFilterSensitiveLog } from "../models/models_1";
9+
import { ListRulesInput, ListRulesOutput, ListRulesOutputFilterSensitiveLog } from "../models/models_2";
1010
import { de_ListRulesCommand, se_ListRulesCommand } from "../protocols/Aws_restJson1";
1111

1212
/**

clients/client-datazone/src/commands/SearchCommand.ts

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export interface SearchCommandOutput extends SearchOutput, __MetadataBearer {}
7575
* order: "ASCENDING" || "DESCENDING",
7676
* },
7777
* additionalAttributes: [ // SearchOutputAdditionalAttributes
78-
* "FORMS" || "TIME_SERIES_DATA_POINT_FORMS",
78+
* "FORMS" || "TIME_SERIES_DATA_POINT_FORMS" || "TEXT_MATCH_RATIONALE",
7979
* ],
8080
* };
8181
* const command = new SearchCommand(input);
@@ -94,6 +94,24 @@ export interface SearchCommandOutput extends SearchOutput, __MetadataBearer {}
9494
* // createdBy: "STRING_VALUE",
9595
* // updatedAt: new Date("TIMESTAMP"),
9696
* // updatedBy: "STRING_VALUE",
97+
* // additionalAttributes: { // GlossaryItemAdditionalAttributes
98+
* // matchRationale: [ // MatchRationale
99+
* // { // MatchRationaleItem Union: only one key present
100+
* // textMatches: [ // TextMatches
101+
* // { // TextMatchItem
102+
* // attribute: "STRING_VALUE",
103+
* // text: "STRING_VALUE",
104+
* // matchOffsets: [ // MatchOffsets
105+
* // { // MatchOffset
106+
* // startOffset: Number("int"),
107+
* // endOffset: Number("int"),
108+
* // },
109+
* // ],
110+
* // },
111+
* // ],
112+
* // },
113+
* // ],
114+
* // },
97115
* // },
98116
* // glossaryTermItem: { // GlossaryTermItem
99117
* // domainId: "STRING_VALUE", // required
@@ -115,6 +133,24 @@ export interface SearchCommandOutput extends SearchOutput, __MetadataBearer {}
115133
* // createdBy: "STRING_VALUE",
116134
* // updatedAt: new Date("TIMESTAMP"),
117135
* // updatedBy: "STRING_VALUE",
136+
* // additionalAttributes: { // GlossaryTermItemAdditionalAttributes
137+
* // matchRationale: [
138+
* // {// Union: only one key present
139+
* // textMatches: [
140+
* // {
141+
* // attribute: "STRING_VALUE",
142+
* // text: "STRING_VALUE",
143+
* // matchOffsets: [
144+
* // {
145+
* // startOffset: Number("int"),
146+
* // endOffset: Number("int"),
147+
* // },
148+
* // ],
149+
* // },
150+
* // ],
151+
* // },
152+
* // ],
153+
* // },
118154
* // },
119155
* // assetItem: { // AssetItem
120156
* // domainId: "STRING_VALUE", // required
@@ -159,6 +195,22 @@ export interface SearchCommandOutput extends SearchOutput, __MetadataBearer {}
159195
* // id: "STRING_VALUE",
160196
* // },
161197
* // ],
198+
* // matchRationale: [
199+
* // {// Union: only one key present
200+
* // textMatches: [
201+
* // {
202+
* // attribute: "STRING_VALUE",
203+
* // text: "STRING_VALUE",
204+
* // matchOffsets: [
205+
* // {
206+
* // startOffset: Number("int"),
207+
* // endOffset: Number("int"),
208+
* // },
209+
* // ],
210+
* // },
211+
* // ],
212+
* // },
213+
* // ],
162214
* // },
163215
* // },
164216
* // dataProductItem: { // DataProductResultItem
@@ -174,6 +226,24 @@ export interface SearchCommandOutput extends SearchOutput, __MetadataBearer {}
174226
* // createdBy: "STRING_VALUE",
175227
* // firstRevisionCreatedAt: new Date("TIMESTAMP"),
176228
* // firstRevisionCreatedBy: "STRING_VALUE",
229+
* // additionalAttributes: { // DataProductItemAdditionalAttributes
230+
* // matchRationale: [
231+
* // {// Union: only one key present
232+
* // textMatches: [
233+
* // {
234+
* // attribute: "STRING_VALUE",
235+
* // text: "STRING_VALUE",
236+
* // matchOffsets: [
237+
* // {
238+
* // startOffset: Number("int"),
239+
* // endOffset: Number("int"),
240+
* // },
241+
* // ],
242+
* // },
243+
* // ],
244+
* // },
245+
* // ],
246+
* // },
177247
* // },
178248
* // },
179249
* // ],

clients/client-datazone/src/commands/SearchListingsCommand.ts

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,18 @@ export interface SearchListingsCommandOutput extends SearchListingsOutput, __Met
6868
* "<FilterClause>",
6969
* ],
7070
* },
71+
* aggregations: [ // AggregationList
72+
* { // AggregationListItem
73+
* attribute: "STRING_VALUE", // required
74+
* displayValue: "STRING_VALUE",
75+
* },
76+
* ],
7177
* sort: { // SearchSort
7278
* attribute: "STRING_VALUE", // required
7379
* order: "ASCENDING" || "DESCENDING",
7480
* },
7581
* additionalAttributes: [ // SearchOutputAdditionalAttributes
76-
* "FORMS" || "TIME_SERIES_DATA_POINT_FORMS",
82+
* "FORMS" || "TIME_SERIES_DATA_POINT_FORMS" || "TEXT_MATCH_RATIONALE",
7783
* ],
7884
* };
7985
* const command = new SearchListingsCommand(input);
@@ -101,6 +107,22 @@ export interface SearchListingsCommandOutput extends SearchListingsOutput, __Met
101107
* // owningProjectId: "STRING_VALUE",
102108
* // additionalAttributes: { // AssetListingItemAdditionalAttributes
103109
* // forms: "STRING_VALUE",
110+
* // matchRationale: [ // MatchRationale
111+
* // { // MatchRationaleItem Union: only one key present
112+
* // textMatches: [ // TextMatches
113+
* // { // TextMatchItem
114+
* // attribute: "STRING_VALUE",
115+
* // text: "STRING_VALUE",
116+
* // matchOffsets: [ // MatchOffsets
117+
* // { // MatchOffset
118+
* // startOffset: Number("int"),
119+
* // endOffset: Number("int"),
120+
* // },
121+
* // ],
122+
* // },
123+
* // ],
124+
* // },
125+
* // ],
104126
* // latestTimeSeriesDataPointForms: [ // TimeSeriesDataPointSummaryFormOutputList
105127
* // { // TimeSeriesDataPointSummaryFormOutput
106128
* // formName: "STRING_VALUE", // required
@@ -132,6 +154,22 @@ export interface SearchListingsCommandOutput extends SearchListingsOutput, __Met
132154
* // owningProjectId: "STRING_VALUE",
133155
* // additionalAttributes: { // DataProductListingItemAdditionalAttributes
134156
* // forms: "STRING_VALUE",
157+
* // matchRationale: [
158+
* // {// Union: only one key present
159+
* // textMatches: [
160+
* // {
161+
* // attribute: "STRING_VALUE",
162+
* // text: "STRING_VALUE",
163+
* // matchOffsets: [
164+
* // {
165+
* // startOffset: Number("int"),
166+
* // endOffset: Number("int"),
167+
* // },
168+
* // ],
169+
* // },
170+
* // ],
171+
* // },
172+
* // ],
135173
* // },
136174
* // items: [ // ListingSummaryItems
137175
* // { // ListingSummaryItem
@@ -150,6 +188,19 @@ export interface SearchListingsCommandOutput extends SearchListingsOutput, __Met
150188
* // ],
151189
* // nextToken: "STRING_VALUE",
152190
* // totalMatchCount: Number("int"),
191+
* // aggregates: [ // AggregationOutputList
192+
* // { // AggregationOutput
193+
* // attribute: "STRING_VALUE",
194+
* // displayValue: "STRING_VALUE",
195+
* // items: [ // AggregationOutputItems
196+
* // { // AggregationOutputItem
197+
* // value: "STRING_VALUE",
198+
* // count: Number("int"),
199+
* // displayValue: "STRING_VALUE",
200+
* // },
201+
* // ],
202+
* // },
203+
* // ],
153204
* // };
154205
*
155206
* ```

0 commit comments

Comments
 (0)