Skip to content

Commit bf694a1

Browse files
author
awstools
committed
feat(client-qbusiness): This release removes the deprecated UserId and UserGroups fields from SearchRelevantContent api's request parameters.
1 parent d04051f commit bf694a1

File tree

4 files changed

+3
-37
lines changed

4 files changed

+3
-37
lines changed

clients/client-qbusiness/src/commands/SearchRelevantContentCommand.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface SearchRelevantContentCommandOutput extends SearchRelevantConten
3131
/**
3232
* <p>Searches for relevant content in a Q Business application based on a query. This operation takes a
3333
* search query text, the Q Business application identifier, and optional filters
34-
* (such as user ID, user groups, content source, and maximum results) as input. It returns a list of
34+
* (such as content source and maximum results) as input. It returns a list of
3535
* relevant content items, where each item includes the content text, the unique document identifier,
3636
* the document title, the document URI, any relevant document attributes, and score attributes
3737
* indicating the confidence level of the relevance.</p>
@@ -43,10 +43,6 @@ export interface SearchRelevantContentCommandOutput extends SearchRelevantConten
4343
* const client = new QBusinessClient(config);
4444
* const input = { // SearchRelevantContentRequest
4545
* applicationId: "STRING_VALUE", // required
46-
* userId: "STRING_VALUE",
47-
* userGroups: [ // UserGroups
48-
* "STRING_VALUE",
49-
* ],
5046
* queryText: "STRING_VALUE", // required
5147
* contentSource: { // ContentSource Union: only one key present
5248
* retriever: { // RetrieverContentSource

clients/client-qbusiness/src/models/models_1.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -487,18 +487,6 @@ export interface SearchRelevantContentRequest {
487487
*/
488488
applicationId: string | undefined;
489489

490-
/**
491-
* <p>The ID of the user performing the search. Used for access control.</p>
492-
* @public
493-
*/
494-
userId?: string | undefined;
495-
496-
/**
497-
* <p>The groups the user belongs to. Used for access control.</p>
498-
* @public
499-
*/
500-
userGroups?: string[] | undefined;
501-
502490
/**
503491
* <p>The text to search for.</p>
504492
* @public

clients/client-qbusiness/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,10 +1505,6 @@ export const se_SearchRelevantContentCommand = async (
15051505
};
15061506
b.bp("/applications/{applicationId}/relevant-content");
15071507
b.p("applicationId", () => input.applicationId!, "{applicationId}", false);
1508-
const query: any = map({
1509-
[_uI]: [, input[_uI]!],
1510-
[_uG]: [() => input.userGroups !== void 0, () => input[_uG]! || []],
1511-
});
15121508
let body: any;
15131509
body = JSON.stringify(
15141510
take(input, {
@@ -1519,7 +1515,7 @@ export const se_SearchRelevantContentCommand = async (
15191515
queryText: [],
15201516
})
15211517
);
1522-
b.m("POST").h(headers).q(query).b(body);
1518+
b.m("POST").h(headers).b(body);
15231519
return b.build();
15241520
};
15251521

codegen/sdk-codegen/aws-models/qbusiness.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11978,7 +11978,7 @@
1197811978
}
1197911979
],
1198011980
"traits": {
11981-
"smithy.api#documentation": "<p>Searches for relevant content in a Q Business application based on a query. This operation takes a \n search query text, the Q Business application identifier, and optional filters \n (such as user ID, user groups, content source, and maximum results) as input. It returns a list of \n relevant content items, where each item includes the content text, the unique document identifier, \n the document title, the document URI, any relevant document attributes, and score attributes \n indicating the confidence level of the relevance.</p>",
11981+
"smithy.api#documentation": "<p>Searches for relevant content in a Q Business application based on a query. This operation takes a \n search query text, the Q Business application identifier, and optional filters \n (such as content source and maximum results) as input. It returns a list of \n relevant content items, where each item includes the content text, the unique document identifier, \n the document title, the document URI, any relevant document attributes, and score attributes \n indicating the confidence level of the relevance.</p>",
1198211982
"smithy.api#http": {
1198311983
"uri": "/applications/{applicationId}/relevant-content",
1198411984
"method": "POST"
@@ -12002,20 +12002,6 @@
1200212002
"smithy.api#required": {}
1200312003
}
1200412004
},
12005-
"userId": {
12006-
"target": "com.amazonaws.qbusiness#UserId",
12007-
"traits": {
12008-
"smithy.api#documentation": "<p>The ID of the user performing the search. Used for access control.</p>",
12009-
"smithy.api#httpQuery": "userId"
12010-
}
12011-
},
12012-
"userGroups": {
12013-
"target": "com.amazonaws.qbusiness#UserGroups",
12014-
"traits": {
12015-
"smithy.api#documentation": "<p>The groups the user belongs to. Used for access control.</p>",
12016-
"smithy.api#httpQuery": "userGroups"
12017-
}
12018-
},
1201912005
"queryText": {
1202012006
"target": "com.amazonaws.qbusiness#QueryText",
1202112007
"traits": {

0 commit comments

Comments
 (0)